MCP server by TheAllenChou
lsp-mcp
VS Code extension that exposes language server features as MCP tools. It hooks into whatever language servers VS Code already has running — no configuration needed.
Install
git clone https://github.com/TheAllenChou/lsp-mcp.git
cd lsp-mcp
npm install
npm run package
code --install-extension lsp-mcp-1.0.0.vsix
After restarting VS Code, the extension registers as an MCP server definition provider, making its tools available to any MCP client connected to VS Code — including GitHub Copilot and Claude Code.
Available Tools
| Tool | Description |
|-------------------------|----------------------------------------------------------|
| lsp_definition | Go to the definition of a symbol at a given position. |
| lsp_references | Find all references to a symbol at a given position. |
| lsp_type_definition | Go to the type definition of a symbol. |
| lsp_hover | Get hover/type information for a symbol. |
| lsp_document_symbols | List all symbols in a file. |
| lsp_workspace_symbols | Search for symbols across the workspace. |
| lsp_diagnostics | Get errors and warnings for a file. |
| lsp_completions | Get completion suggestions at a position. |
| lsp_implementations | Find implementations of an interface or abstract symbol. |
All position-based tools use zero-based line and character numbers.