Lsp MCP
MCP server giving AI assistants LSP code navigation and edits across 13 languages
- Pricing
- Open source
- Platforms
- CLI, vscode, Linux
- Runs
- Locally
- Version
- 0.1.6
- Listing updated
- today
Similar MCP servers
About Lsp MCP
Lsp MCP is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.
The README describes this as a bridge between language models and Language Server Protocol servers, so a model can ask a running language server for definitions, references, symbols, diagnostics and refactorings instead of guessing from raw text. It detects the language from project marker files such as package.json, Cargo.toml or go.mod and starts the matching server, running several servers side by side in one polyglot workspace.
Tools are exposed through a single language-independent interface, with each response carrying a readable text field plus the raw LSP payload. Read tools cover go-to-definition, references, type definitions, implementations, document and workspace symbols, and diagnostics; write tools cover rename, code actions, and document or range formatting.
The README says the server must run on the same machine as the source code, since the language servers need direct filesystem access. It is aimed at developers who use MCP-capable editors or agents on local or remote workspaces and want code intelligence without per-language setup.
Install
Run in a terminal
claude mcp add lsp-mcp -- npx -y @theupsider/lsp-mcpAdd to claude_desktop_config.json
{
"mcpServers": {
"lsp-mcp": {
"command": "npx",
"args": [
"-y",
"@theupsider/lsp-mcp"
]
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"lsp-mcp": {
"command": "npx",
"args": [
"-y",
"@theupsider/lsp-mcp"
]
}
}
}Add to .vscode/mcp.json
{
"servers": {
"lsp-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@theupsider/lsp-mcp"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"lsp-mcp": {
"command": "npx",
"args": [
"-y",
"@theupsider/lsp-mcp"
]
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"lsp-mcp": {
"command": "npx",
"args": [
"-y",
"@theupsider/lsp-mcp"
]
}
}
}Using several servers? Build one config file with the MCP config generator.
What it does
- Automatic language detection
- Scans the project root for language markers and selects matching language servers without manual configuration.
- Read-side code intelligence
- Provides definition, reference, symbol, diagnostic and implementation lookups through LSP.
- Write operations
- Offers rename, code actions and formatting tools that modify code through the language server.
- Workspace persistence
- Remembers initialized workspaces and ready languages across server restarts.
- Polyglot workspaces
- Runs multiple language servers at the same time within one project.
- Hybrid responses
- Returns a human-readable text field alongside the raw LSP data.
Good for
- Letting an AI agent jump to definitions and find references across a multi-language repository
- Applying automated renames or code actions through the language server rather than text search
- Pulling workspace diagnostics into an assistant's context before proposing fixes
- Searching symbols across a codebase from an MCP client
Pricing
Open source
Apache-2.0 licensed and free to install from npm.
Lsp MCP FAQ
How do I install it?
The README gives npm and bun global install commands for @theupsider/lsp-mcp, and a VS Code workspace .vscode/mcp.json example that runs it through npx.
Which languages are supported?
The README lists 13 languages with their language servers, including Python, TypeScript, JavaScript, C#, Java, Go, Rust, C/C++, Ruby, PHP, Kotlin and Swift.
Does it need to run on the same machine as my code?
Yes. The README says the language servers need direct filesystem access, so they cannot work over a remote connection or on a different machine than the source files.
Is Lsp MCP free?
Yes. Lsp MCP is open source, so you can use and self-host it for free.
How do I add Lsp MCP to Claude Code?
Run this command in your terminal: claude mcp add lsp-mcp -- npx -y @theupsider/lsp-mcp
What are the best alternatives to Lsp MCP?
The closest alternatives to Lsp MCP are Lens MCP, Gopls MCP, Codelens MCP, Llmmcp and LingoHub MCP by usefulapi.
Where this comes from
- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.