MCP LSP
MCP server for Language Server Protocol integration.
What is MCP LSP?
MCP LSP is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mcp server for language server protocol integration.
MCP server for Language Server Protocol integration.
This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- MCP server for Language Server Protocol integration.
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx mcp-lspConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use MCP LSP
MCP LSP bridges the Language Server Protocol (LSP) and the Model Context Protocol, giving AI agents access to 39 language intelligence tools powered by the same language servers that editors like VS Code rely on. Through a single JSON configuration file you can connect any LSP-compatible language server (TypeScript, Python, Rust, Go, etc.) and then ask Claude to fetch hover information, find all references, jump to definitions, get diagnostics, trigger completions, and rename symbols across your entire project. Developers use it to give AI coding assistants the same deep code understanding that powers professional IDEs.
Prerequisites
- Node.js 18 or later installed
- One or more LSP-compatible language servers installed (e.g., 'npm install -g typescript-language-server' for TypeScript)
- An MCP-compatible client such as Claude Desktop
- An LSP configuration JSON file (lsp.json) describing which language servers to use
Install MCP LSP via npx
The server can be run directly with npx — no global install required.
npx -y @axivo/mcp-lspInstall a language server
Install the language server for the language you want to analyze. For example, to use TypeScript LSP:
npm install -g typescript-language-server typescript
# For Python:
# pip install python-lsp-server
# For Rust (if rustup is installed):
# rustup component add rust-analyzerCreate your LSP configuration file
Create a JSON file (e.g., /home/user/.config/lsp.json) that describes the language servers and their settings. This file is referenced by the LSP_FILE_PATH environment variable.
{
"languageServers": [
{
"name": "typescript",
"command": "typescript-language-server",
"args": ["--stdio"],
"filetypes": ["typescript", "javascript"],
"workspace": "/path/to/your/project"
}
],
"maxConcurrentFileReads": 10,
"preloadFiles": true
}Add the server to your MCP client configuration
Add mcp-lsp to claude_desktop_config.json, setting the LSP_FILE_PATH environment variable to your configuration file.
{
"mcpServers": {
"language-server": {
"command": "npx",
"args": ["-y", "@axivo/mcp-lsp"],
"env": {
"LSP_FILE_PATH": "/absolute/path/to/lsp.json"
}
}
}
}Restart Claude Desktop and test
Restart Claude Desktop and ask it to start the language server and retrieve diagnostics for a file. Use get_server_status to confirm the LSP server is running.
MCP LSP Examples
Client configuration
claude_desktop_config.json entry for MCP LSP pointing to a TypeScript language server config.
{
"mcpServers": {
"language-server": {
"command": "npx",
"args": ["-y", "@axivo/mcp-lsp"],
"env": {
"LSP_FILE_PATH": "/Users/you/.config/lsp.json"
}
}
}
}Prompts to try
Example prompts leveraging the 39 LSP-backed tools.
- "Start the TypeScript language server for my project at /Users/me/myapp and show me all current diagnostics."
- "Find all references to the 'UserService' class in my codebase."
- "Get the type definition for the variable at line 42 in src/auth.ts."
- "Rename the function 'processPayment' to 'handlePayment' throughout the entire project."
- "Show me the full call hierarchy for the 'main' function in src/index.ts."Troubleshooting MCP LSP
Language server fails to start with 'command not found'
Ensure the language server binary is installed globally and accessible in your PATH. Verify with 'which typescript-language-server'. If not found, run 'npm install -g typescript-language-server typescript'.
LSP_FILE_PATH environment variable is not being read
Use an absolute path, not a relative path or one starting with '~'. The tilde is not expanded in MCP env configs. Find the absolute path with 'echo $HOME/.config/lsp.json'.
Diagnostics return empty results for a project
Set 'preloadFiles: true' in your lsp.json config to allow the server to index files before querying. Also ensure the 'workspace' field points to the correct project root directory.
Frequently Asked Questions about MCP LSP
What is MCP LSP?
MCP LSP is a Model Context Protocol (MCP) server that mcp server for language server protocol integration. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install MCP LSP?
Follow the installation instructions on the MCP LSP GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with MCP LSP?
MCP LSP works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is MCP LSP free to use?
Yes, MCP LSP is open source and available under the BSD-3-Clause license. You can use it freely in both personal and commercial projects.
MCP LSP Alternatives — Similar Developer Tools Servers
Looking for alternatives to MCP LSP? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
Browse More Developer Tools MCP Servers
Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up MCP LSP in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use MCP LSP?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.