Language Server Protocol Bridge
Bridges Claude Code to Language Server Protocol (LSP) servers to enable semantic code intelligence features like navigation, refactoring, and real-time diagnostics. It supports multiple languages including TypeScript, Python, and Rust with multi-root
What is Language Server Protocol Bridge?
Language Server Protocol Bridge is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to bridges claude code to language server protocol (lsp) servers to enable semantic code intelligence features like navigation, refactoring, and real-time diagnostics. it supports multiple languages incl...
Bridges Claude Code to Language Server Protocol (LSP) servers to enable semantic code intelligence features like navigation, refactoring, and real-time diagnostics. It supports multiple languages including TypeScript, Python, and Rust with multi-root
This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- Bridges Claude Code to Language Server Protocol (LSP) server
Use Cases
Maintainer
Works with
Installation
NPM
npx -y lspManual Installation
npx -y lspConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Language Server Protocol Bridge
lsp-mcp-server is a TypeScript MCP server that bridges Claude Code to Language Server Protocol (LSP) servers, unlocking semantic code intelligence features including go-to-definition, find-references, hover documentation, code completion, diagnostics, symbol search, safe rename, call hierarchy, type hierarchy, and code actions — across 10 languages out of the box. It exposes 29 MCP tools, manages language server processes automatically (starting on demand, restarting on crash), and supports multi-root monorepo workspaces with per-workspace server instances. Development teams use it to give Claude Code the same deep code understanding that IDE users take for granted.
Prerequisites
- Node.js 18.0.0 or higher
- Language servers installed for your target languages (e.g., typescript-language-server for TypeScript, python-lsp-server for Python, rust-analyzer for Rust)
- Claude Code CLI or another MCP-compatible client
- Git to clone the repository (no npm package published yet — build from source)
Install required language servers
Install the LSP server(s) for the languages you work with. TypeScript and Python are shown here as examples.
# TypeScript / JavaScript
npm install -g typescript-language-server typescript
# Python
pip install python-lsp-server
# Rust
rustup component add rust-analyzer
# Go
go install golang.org/x/tools/gopls@latestClone and build lsp-mcp-server
Clone the repository, install dependencies, and build the TypeScript source.
git clone https://github.com/ProfessioneIT/lsp-mcp-server.git
cd lsp-mcp-server
npm install
npm run buildVerify the build
Confirm the server binary is working before wiring it into your MCP client.
node dist/index.js --helpAdd lsp-mcp-server to your MCP configuration
Edit ~/.mcp.json (user-level) or .mcp.json in your project root to register the server. Use the absolute path to the built dist/index.js file.
Restart Claude Code and verify
Restart Claude Code, then ask it to run lsp_server_status to confirm the server is registered and available language servers are listed.
Add CLAUDE.md instructions to enforce LSP tool usage
Add a section to your global ~/.claude/CLAUDE.md instructing Claude Code to always check lsp_server_status before navigating code and to prefer LSP tools over Grep for find-references and go-to-definition tasks.
Language Server Protocol Bridge Examples
Client configuration
Register lsp-mcp-server in the MCP config file using the absolute path to the built binary. Set LSP_LOG_LEVEL to debug during initial setup.
{
"mcpServers": {
"lsp": {
"command": "node",
"args": ["/absolute/path/to/lsp-mcp-server/dist/index.js"],
"env": {
"LSP_LOG_LEVEL": "info"
}
}
}
}Prompts to try
Example prompts that exercise the 29 LSP MCP tools available through Claude Code.
- "Use lsp_server_status to show me which language servers are currently running"
- "Go to the definition of the UserService class in src/services/user.ts"
- "Find all references to the processOrder function across the entire codebase"
- "Show me the type information and documentation for the authenticate method on line 42 of auth.ts"
- "Safely rename the variable oldApiUrl to apiBaseUrl across all files and show me a dry-run preview first"
- "List all diagnostics (errors and warnings) in src/index.ts"Troubleshooting Language Server Protocol Bridge
lsp_server_status shows no language servers available
The server starts language servers on demand when you first request a file in that language. Open a file and ask for hover info or diagnostics on a specific symbol to trigger the server startup. Check LSP_LOG_LEVEL=debug output for startup errors.
Go-to-definition returns no results for TypeScript files
Ensure typescript-language-server and typescript are both installed globally (`npm install -g typescript-language-server typescript`) and that a tsconfig.json exists in your project root. The LSP server needs a valid TypeScript project configuration to resolve types.
Server crashes after a few minutes of use
lsp-mcp-server automatically restarts crashed language servers. If crashes are frequent, increase available memory or reduce workspace size. Set LSP_LOG_LEVEL=debug to capture the language server's stderr output and identify the underlying crash cause.
Frequently Asked Questions about Language Server Protocol Bridge
What is Language Server Protocol Bridge?
Language Server Protocol Bridge is a Model Context Protocol (MCP) server that bridges claude code to language server protocol (lsp) servers to enable semantic code intelligence features like navigation, refactoring, and real-time diagnostics. it supports multiple languages including typescript, python, and rust with multi-root It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Language Server Protocol Bridge?
Install via npm with the command: npx -y lsp. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).
Which AI clients work with Language Server Protocol Bridge?
Language Server Protocol Bridge works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Language Server Protocol Bridge free to use?
Yes, Language Server Protocol Bridge is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.
Language Server Protocol Bridge Alternatives — Similar Developer Tools Servers
Looking for alternatives to Language Server Protocol Bridge? 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 Language Server Protocol Bridge 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 Language Server Protocol Bridge?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.