# mcp-language-server

> MCP Server

This repository provides an MCP language server that bridges the gap between LLMs and language servers, offering tools like `read_definition` and `find_references` for enhanced code understanding and manipulation.

## Overview

- **Category:** Developer Tools
- **Language:** Go
- **Stars:** 1577
- **Forks:** 7
- **Owner:** isaacphi
- **GitHub:** https://github.com/isaacphi/mcp-language-server
- **Created:** 2024-12-30T20:43:23+00:00
- **Updated:** 2025-03-28T20:29:00+00:00
- **Source:** https://model-context-protocol.com/servers/mcp-language-server-code-understanding-manipulation

## Setup

## Setup
Add a configuration to your Claude Desktop settings (or similar MCP-enabled client) with the `mcpServers` key.
Replace `/Users/you/dev/yourcodebase` with the absolute path to your project.
Replace `/opt/homebrew/bin/pyright-langserver` with the path to your language server.
Arguments after `--` are sent as arguments to your language server.
Env variables are passed on to the language server.
`DEBUG=1` is optional for detailed logs.

## Tools

## Available Tools

1. `read_definition` (Retrieves the complete source code definition of any symbol.)
2. `find_references` (Locates all usages and references of a symbol throughout the codebase.)
3. `get_diagnostics` (Provides diagnostic information for a specific file, including warnings and errors.)
4. `get_codelens` (Retrieves code lens hints for additional context and actions on your code.)
5. `execute_codelens` (Runs a code lens action.)
6. `apply_text_edit` (Allows making multiple text edits to a file programmatically.)
