LSP MCP Bridge logo

LSP MCP Bridge

Universal MCP bridge to LSP servers. One binary, 6 languages, config-driven.

Install LSP MCP Bridge

Run the project’s own setup commands, in order.

Setup steps from the project

LSP-MCP Bridge installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    cargo build --release
    

Overview

Tools6

What LSP MCP Bridge lets your agent do. Expand a tool for its parameters.

Self-reported~49 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

17/20 checks healthy over the last 112d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
Last commit11mo agoMost recent push to the default branch.
Tools exposed6Callable tools this server registers over MCP.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

From the project README

lsp-mcp-rs

MCP server that bridges to any LSP. One binary, multiple language servers.

Build

Code
cargo build --release

Binary: target/release/lsp-mcp-rs.exe

Configure

Create config.toml next to the binary:

toml
[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):

config.json
{

  "mcpServers": {

    "lsp": {

      "command": "X:\\path\\to\\lsp-mcp-rs.exe",

      "args": []

    }

  }

}

Tools

ToolDescription
lsp_hoverGet docs/type at position
lsp_definitionGo to definition
lsp_referencesFind all references
lsp_symbolsList symbols in file
lsp_diagnosticsGet errors/warnings
lsp_serversList configured servers

All position arguments are 0-indexed.

How it works

  1. MCP request comes in with a file path
  2. File extension maps to configured LSP server
  3. LSP spawns on first use, stays running
  4. Request forwarded to LSP, response returned via MCP

License

MIT

Authors

DC, KALIC, Stryk9190

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about LSP MCP Bridge

LSP-MCP Bridge is an MCP server that connects MCP clients to configured Language Server Protocol (LSP) servers through one binary. It selects a server by file extension, starts it on first use, keeps it running, and returns language features such as hover information, definitions, references, symbols, and diagnostics through MCP tools.

Configure language servers in a config.toml file next to the binary. Define each server under [servers.name] with its command, arguments, and file extensions, such as .rs for rust-analyzer or .py for pyright-langserver.

Add the compiled lsp-mcp-rs executable to Claude Desktop’s claude_desktop_config.json under mcpServers. Set its command to the executable path and use an empty args array unless your setup requires arguments.

LSP-MCP Bridge provides lsp_hover, lsp_definition, lsp_references, lsp_symbols, lsp_diagnostics, and lsp_servers. These tools retrieve documentation or types, definitions, references, file symbols, diagnostics, and the list of configured servers; position arguments are 0-indexed.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewLSP MCP Bridge AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/lsp-mcp-bridge?style=directory)](https://allmcps.com/mcp/lsp-mcp-bridge)
HTML Embed
<a href="https://allmcps.com/mcp/lsp-mcp-bridge"><img src="https://allmcps.com/api/badge/lsp-mcp-bridge?style=directory" alt="LSP MCP Bridge on AllMCPs" /></a>