MCP Language Server helps MCP enabled clients navigate codebases more easily by giving them access to semantic tools like get definition, references, rename, and diagnostics.
Documentation
MCP Language Server
This is an MCP server that runs and exposes a language server to LLMs. Not a language server for MCP, whatever that would be.
Demo
mcp-language-server helps MCP enabled clients navigate codebases more easily by giving them access semantic tools like get definition, references, rename, and diagnostics.
Setup
Install Go: Follow instructions at
Install or update this server: go install github.com/isaacphi/mcp-language-server@latest
Install a language server: follow one of the guides below
Configure your MCP client: follow one of the guides below
Go (gopls)
Install gopls: go install golang.org/x/tools/gopls@latest
Install clangd: Download prebuilt binaries from the official LLVM releases page or install via your system's package manager.
Tools
definition: Retrieves the complete source code definition of any symbol from your codebase.
references: Locates all usages and references of a symbol throughout the codebase.
diagnostics: Provides diagnostic information for a specific file, including warnings and errors.
hover: Display documentation, type hints, or other hover information for a given location.
rename_symbol: Rename a symbol across a project.
edit_file: Allows making multiple text edits to a file based on line numbers.
About
This codebase makes use of edited code from gopls to handle LSP communication. Everything here is covered by a permissive BSD style license. This is beta software.