
The MCP Language Server exposes language server protocol (LSP) capabilities to LLM clients, enabling semantic code navigation tools such as go-to-definition, find-references, rename, and diagnostics for multiple programming languages. It bridges LSP-compliant language servers (like gopls for Go and rust-analyzer for Rust) with MCP clients, allowing LLMs to understand and interact with codebases more effectively. This solves the problem of LLMs lacking access to precise, language-aware code analysis that IDE language servers provide.
Public tool metadata for what this MCP can expose to an agent.
definitionRetrieves the complete source code definition of any symbol (function, type, constant, etc.) from your codebase.Retrieves the complete source code definition of any symbol (function, type, constant, etc.) from your codebase.
No parameter schema in public metadata yet.
referencesLocates all usages and references of a symbol throughout the codebase.Locates all usages and references of a symbol throughout the codebase.
No parameter schema in public metadata yet.
diagnosticsProvides diagnostic information for a specific file, including warnings and errors.Provides diagnostic information for a specific file, including warnings and errors.
No parameter schema in public metadata yet.
hoverDisplay documentation, type hints, or other hover information for a given location.Display documentation, type hints, or other hover information for a given location.
No parameter schema in public metadata yet.
rename_symbolRename a symbol across a project.Rename a symbol across a project.
No parameter schema in public metadata yet.
edit_fileAllows making multiple text edits to a file based on line numbers. Provides a more reliable and context-economical way to edit files compared to search and replace based edit tools.Allows making multiple text edits to a file based on line numbers. Provides a more reliable and context-economical way to edit files compared to search and replace based edit tools.
No parameter schema in public metadata yet.
Sponsors
This is an MCP server that runs and exposes a language server to LLMs. Not a language server for MCP, whatever that would be.
mcp-language-server helps MCP enabled clients navigate codebases more easily by giving them access semantic tools like get definition, references, rename, and diagnostics.
Demo