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.
Comments