LSP MCP Server Integration
Unlock advanced code intelligence in FlowHunt with the LSP MCP Server—enabling AI-powered code navigation, diagnostics, completions, and integrated developer workflows.

What does “LSP” MCP Server do?
The LSP MCP (Model Context Protocol) Server acts as a bridge between Language Server Protocol (LSP) servers and AI assistants. By connecting to an LSP server, it enables LLMs and other AI clients to interact with codebases through standardized LSP features. This allows AI tools to perform advanced code analysis, fetch hover documentation, receive code completion suggestions, access diagnostics, and even apply code actions directly inside an editor or development workflow. The LSP MCP Server enhances developer productivity by facilitating seamless AI-driven interactions with source code, making tasks like code navigation, error resolution, and intelligent code completion more accessible and automated.
List of Prompts
No explicit prompt templates are listed in the repository or documentation.
List of Resources
lsp-diagnostics://
Access real-time diagnostic messages (errors, warnings, etc.) from open files, supporting live updates via subscriptions.lsp-hover://
Retrieve hover information at specific file locations, enabling context-aware code explanations.lsp-completions://
Get code completion suggestions for a given position within a file, supporting enhanced coding assistance.
List of Tools
get_info_on_location
Fetch hover (documentation) information at a specific location in a file.get_completions
Provide code completion suggestions at a specified position in a file.get_code_actions
Retrieve available code actions (e.g., quick fixes) for a given range in a file.open_document
Open a file in the LSP server for analysis and interaction.close_document
Close an open file in the LSP server context.get_diagnostics
Get diagnostic messages (errors and warnings) for currently open files.start_lsp
Start the underlying LSP server with a specified root directory.restart_lsp_server
Restart the LSP server instance without restarting the MCP server.set_log_level
Dynamically change the logging verbosity of the server at runtime.
Use Cases of this MCP Server
- Codebase Exploration
Developers and AI agents can query hover information and code completions, making it easier to understand and navigate large codebases. - Automated Code Review & Error Detection
By accessing diagnostics and code actions, AI tools can highlight errors and suggest fixes during code review or continuous integration. - Intelligent Code Completion
LLMs can leverage real LSP completions to provide accurate, context-aware suggestions while writing or refactoring code. - Interactive Learning & Documentation
AI assistants can fetch hover details and documentation on-demand, enhancing learning and onboarding for new developers. - Editor and IDE Integration
The server can be integrated into editors to provide real-time AI-powered features, such as suggesting code fixes or explaining code sections.
How to set it up
Windsurf
- Ensure you have Node.js (v16+) and npm installed.
- Locate your Windsurf configuration file.
- Add the LSP MCP Server in the
mcpServers
section:{ "mcpServers": { "lsp-mcp": { "type": "stdio", "command": "npx", "args": [ "tritlo/lsp-mcp", "<language-id>", "<path-to-lsp>", "<lsp-args>" ] } } }
- Save the configuration and restart Windsurf.
- Verify integration by running a test LSP command.
Claude
- Install Node.js (v16+) and npm.
- Find the Claude configuration file.
- Insert the LSP MCP Server in the
mcpServers
section:{ "mcpServers": { "lsp-mcp": { "type": "stdio", "command": "npx", "args": [ "tritlo/lsp-mcp", "<language-id>", "<path-to-lsp>", "<lsp-args>" ] } } }
- Save changes, restart Claude, and verify by running
claude --mcp-debug
for logs. - Ensure the server starts successfully and processes LSP commands.
Cursor
- Confirm Node.js (v16+) and npm are installed.
- Open Cursor’s configuration file.
- Add the LSP MCP Server:
{ "mcpServers": { "lsp-mcp": { "type": "stdio", "command": "npx", "args": [ "tritlo/lsp-mcp", "<language-id>", "<path-to-lsp>", "<lsp-args>" ] } } }
- Save and restart Cursor.
- Test by opening a project and checking for LSP responses.
Cline
- Install Node.js (v16+) and npm.
- Edit the Cline configuration file.
- Add the following:
{ "mcpServers": { "lsp-mcp": { "type": "stdio", "command": "npx", "args": [ "tritlo/lsp-mcp", "<language-id>", "<path-to-lsp>", "<lsp-args>" ] } } }
- Save and restart Cline.
- Validate setup by running LSP-related commands in the interface.
Securing API Keys
If the LSP server or MCP setup requires API keys, use environment variables for security:
{
"mcpServers": {
"lsp-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"tritlo/lsp-mcp",
"<language-id>",
"<path-to-lsp>",
"<lsp-args>"
],
"env": {
"API_KEY": "${LSP_API_KEY}"
},
"inputs": {
"api_key": "${LSP_API_KEY}"
}
}
}
}
How to use this MCP inside flows
Using MCP in FlowHunt
To integrate MCP servers into your FlowHunt workflow, start by adding the MCP component to your flow and connecting it to your AI agent:

Click on the MCP component to open the configuration panel. In the system MCP configuration section, insert your MCP server details using this JSON format:
{
"lsp-mcp": {
"transport": "streamable_http",
"url": "https://yourmcpserver.example/pathtothemcp/url"
}
}
Once configured, the AI agent is now able to use this MCP as a tool with access to all its functions and capabilities. Remember to change “lsp-mcp” to whatever the actual name of your MCP server is and replace the URL with your own MCP server URL.
Overview
Section | Availability | Details/Notes |
---|---|---|
Overview | ✅ | Overview present in README.md |
List of Prompts | ⛔ | No prompt templates mentioned |
List of Resources | ✅ | Diagnostics, hover, completions resources documented |
List of Tools | ✅ | 8 tools: get_info_on_location, get_completions, etc. |
Securing API Keys | ✅ | Example for env vars present |
Sampling Support (less important in evaluation) | ⛔ | No mention of sampling support |
Our opinion
The LSP MCP Server provides comprehensive documentation, a range of tools and resources for LSP interaction, and good setup instructions. However, it lacks explicit support for prompt templates and makes no mention of sampling or roots support. Overall, it’s solid for codebase and LSP integration but might benefit from more advanced MCP features.
Rating: 7/10
MCP Score
Has a LICENSE | ✅ (MIT) |
---|---|
Has at least one tool | ✅ |
Number of Forks | 4 |
Number of Stars | 42 |
Frequently asked questions
- What does the LSP MCP Server do?
The LSP MCP (Model Context Protocol) Server bridges AI assistants and Language Server Protocol servers, allowing AI tools to interact with codebases using standardized LSP features. This enables code analysis, completion, diagnostics, and code actions directly in editors and workflows.
- Which code intelligence features does the LSP MCP Server unlock?
It enables code navigation, real-time diagnostics (errors/warnings), code completion, hover documentation, and automated code actions, making developer workflows more productive and AI-driven.
- How do I integrate the LSP MCP Server with FlowHunt?
Add the MCP component to your FlowHunt flow and configure it with your LSP MCP server details. This makes the server's tools available as part of your AI agent's capabilities.
- Is the LSP MCP Server open source?
Yes, it is MIT-licensed and available for integration in your projects.
- Does it support securing API keys?
Yes, you can configure sensitive values like API keys using environment variables in the MCP server configuration.
Supercharge Your Coding with LSP MCP Server
Integrate the LSP MCP Server into FlowHunt to enable AI-driven code exploration, error detection, and smart code completions directly in your workflows.