LSP MCP
@jonrad
About LSP MCP
An Model Context Protocol (MCP) server that provides LLMs/AI Agents with the capabilities of a language server protocol (LSP) server. This gives the AI the ability to get language aware context from the codebase.
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"lsp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"docker.io/jonrad/lsp-mcp:0.3.1"
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is LSP MCP?
LSP MCP is a Model Context Protocol server that provides LLMs and AI agents with the capabilities of a Language Server Protocol (LSP) server, enabling language-aware context and analysis from a codebase. It supports multiple programming languages simultaneously and is intended for developers who want AI tools to understand code deeply.
How to use LSP MCP?
The server is typically deployed via Docker or npx. For Claude Desktop, add a configuration entry in claude_desktop_config.json with the Docker command docker run -i --rm jonrad/lsp-mcp:0.3.1 or the npx command npx -y --silent git+https://github.com/jonrad/lsp-mcp --lsp <language-server-command>. It can also be used with Cursor and MCP CLI Client.
Key features of LSP MCP
- Multiple LSPs for multiple programming languages simultaneously.
- Dynamically generates supported LSP methods from JSON Schema.
- Provides language-aware code context to LLMs.
- Supports Docker and npx deployment options.
- Works with various MCP clients (Claude Desktop, Cursor, MCP CLI).
Use cases of LSP MCP
- Analyze code for variable shadowing and scope issues.
- Get type information and language-aware insights from a codebase.
- Debug and understand execution flow with LSP diagnostics.
- Explore code structure using document symbols and references.
FAQ from LSP MCP
How do I specify which language server to use?
Use the --lsp argument with the command to start the desired language server, for example: --lsp "npx -y --silent -p '[email protected]' -p '[email protected]' typescript-language-server --stdio".
Does it support multiple LSPs at the same time?
Yes, the server supports multiple LSPs simultaneously. However, when using Claude Desktop with npx, multiple LSPs are not yet supported.
What is the current state of the project?
The project is in a proof-of-concept (POC) state.
What are the runtime dependencies?
The server is built with Node and uses TypeScript, zod for config validation, and the low-level MCP SDK.
How can I share files with the Docker container?
Pass volume mount flags to Docker, for example: -v /local_dir:/remote_dir, then access files at /remote_dir/<filename>.
Frequently asked questions
How do I specify which language server to use?
Use the `--lsp` argument with the command to start the desired language server, for example: `--lsp "npx -y --silent -p '[email protected]' -p '[email protected]' typescript-language-server --stdio"`.
Does it support multiple LSPs at the same time?
Yes, the server supports multiple LSPs simultaneously. However, when using Claude Desktop with npx, multiple LSPs are not yet supported.
What is the current state of the project?
The project is in a proof-of-concept (POC) state.
What are the runtime dependencies?
The server is built with Node and uses TypeScript, zod for config validation, and the low-level MCP SDK.
How can I share files with the Docker container?
Pass volume mount flags to Docker, for example: `-v /local_dir:/remote_dir`, then access files at `/remote_dir/<filename>`.
Basic information
More Other MCP servers
MaxKB
1Panel-dev🔥 MaxKB is an open-source platform for building enterprise-grade agents. 强大易用的开源企业级智能体平台。
MCP Registry
modelcontextprotocolA community driven registry service for Model Context Protocol (MCP) servers.
Nginx UI
0xJackyYet another WebUI for Nginx
Inbox Zero AI MCP
elie222The world's best AI personal assistant for email. Open source app to help you reach inbox zero fast.
Reactive Resume
amruthpillaiA one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
Comments