lsp-mcp-rs
Provides language server protocol integration for Lua, enabling hover, definition, references, symbols, and diagnostics via configured LSP servers.
Provides language server protocol integration for Python, enabling hover, definition, references, symbols, and diagnostics via configured LSP servers.
Provides language server protocol integration for Rust, enabling hover, definition, references, symbols, and diagnostics via configured LSP servers.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@lsp-mcp-rsget hover info for line 42 in app.js"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
lsp-mcp-rs
MCP server that bridges to any LSP. One binary, multiple language servers.
Build
cargo build --releaseBinary: target/release/lsp-mcp-rs.exe
Related MCP server: VSCode LSP MCP Server
Configure
Create config.toml next to the binary:
[servers.lua]
command = "C:/path/to/lua-language-server.exe"
args = ["--stdio"]
extensions = [".lua"]
[servers.rust]
command = "rust-analyzer"
args = []
extensions = [".rs"]
[servers.python]
command = "pyright-langserver"
args = ["--stdio"]
extensions = [".py"]Add to Claude Desktop config (claude_desktop_config.json):
{
"mcpServers": {
"lsp": {
"command": "X:\\path\\to\\lsp-mcp-rs.exe",
"args": []
}
}
}Tools
Tool | Description |
| Get docs/type at position |
| Go to definition |
| Find all references |
| List symbols in file |
| Get errors/warnings |
| List configured servers |
All position arguments are 0-indexed.
How it works
MCP request comes in with a file path
File extension maps to configured LSP server
LSP spawns on first use, stays running
Request forwarded to LSP, response returned via MCP
License
MIT
Authors
DC, KALIC, Stryk9190
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Stryk91/lsp-mcp-rs'
If you have feedback or need assistance with the MCP directory API, please join our Discord server