lsp-index-mcp
v0.1.9
Published
LSP-to-MCP Bridge - Headless LSP Client exposing IDE capabilities to AI via MCP
Maintainers
Readme
lsp-index-mcp
LSP-to-MCP Bridge - Headless LSP Client exposing IDE capabilities to AI via the Model Context Protocol (MCP).
Installation
npm install -g lsp-index-mcpOr use with npx (no installation required):
npx -y lsp-index-mcp /path/to/your/projectUsage
As MCP Server in Claude Desktop
Add to your Claude Desktop config (claude_desktop_config.json):
{
"mcpServers": {
"lsp-index": {
"command": "npx",
"args": [
"-y",
"lsp-index-mcp",
"/path/to/your/project"
]
}
}
}With Environment Variable
{
"mcpServers": {
"lsp-index": {
"command": "npx",
"args": ["-y", "lsp-index-mcp"],
"env": {
"LSP_INDEX_WORKSPACE": "/path/to/your/project"
}
}
}
}Supported Languages
- Rust (rust-analyzer) -
Cargo.toml - Java (JDT LS) -
pom.xml,build.gradle,build.gradle.kts - Go (gopls) -
go.mod - TypeScript -
package.json
Features
lsp_goto_definition- Jump to symbol definitionlsp_find_references- Find all referenceslsp_hover- Get type info and documentationlsp_workspace_symbols- Search symbols across workspacelsp_get_diagnostics- Get lint/type errorslsp_hybrid_search- Combined symbol + text search
Manual Binary Download
If npm install fails, download manually from GitHub Releases.
License
MIT
