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.
This project is a Model Context Protocol (MCP) server designed to enhance Large Language Model (LLM) interactions with codebases by leveraging language server capabilities. It aims to provide a seamless experience, similar to Claude desktop with the filesystem server, but for larger projects with complex imports and dependencies.
The server offers tools like read_definition
, find_references
, get_diagnostics
, get_codelens
, execute_codelens
, and apply_text_edit
to enable LLMs to understand code structure, find symbol usages, identify issues, and apply automated code modifications. It supports multiple language servers, including pyright (Python), tsserver (TypeScript), gopls (Go), and rust-analyzer (Rust).
To use, install the server and a language server for your desired language. Configure your MCP-enabled client (like Claude Desktop) with the server's command and arguments, specifying the workspace path and language server executable. The server utilizes edited code from gopls for LSP communication and mcp-golang for MCP.
isaacphi/mcp-language-server
December 30, 2024
March 28, 2025
Go