Git
Read, search and manipulate Git repositories: status, diff, log, commit, branch and more
MOmodelcontextprotocol/servers92k近 7 天新增 200 个 star
Universal MCP to LSP bridge exposing language server code intelligence as MCP tools
Give your AI coding agent a compiler's understanding of your code.
mcpls is a bridge between the Model Context Protocol (MCP) and the Language Server Protocol (LSP). It runs the language servers for your project (rust-analyzer, pyright, gopls, and others) and exposes their type information, references, diagnostics and refactoring as 31 MCP tools, so an AI client reasons about code the way an IDE does.
flowchart LR
C["AI client"] <-->|MCP| M["mcpls"] <-->|LSP| S["rust-analyzer / pyright / gopls / ..."]
The full documentation is the mcpls book: https://bug-ops.github.io/mcpls/
| Topic | Chapter |
|---|---|
| Upgrade from 0.10 | Upgrading to 0.11 |
| Install and first run | Installation |
| Connect Claude Code or another client | Connect an AI Client |
| Configure language servers | Configuration |
| All 31 tools | Tools Overview |
| Something does not work | Troubleshooting |
| HTTP transport and allowlists | Transports |
| Security model and untrusted workspaces | Security and Trust |
| Every flag and config key | Reference |
Linux and macOS:
curl -fsSL https://raw.githubusercontent.com/bug-ops/mcpls/main/scripts/install.sh | sh
Windows (PowerShell):
irm https://raw.githubusercontent.com/bug-ops/mcpls/main/scripts/install.ps1 | iex
Or with Cargo:
cargo install mcpls
Prebuilt archives for Linux, macOS and Windows (x86_64 and aarch64) with SHA256 checksums and build-provenance attestations are on GitHub Releases.
mcpls is also listed in the official MCP Registry as io.github.bug-ops/mcpls (cargo package, stdio transport), so registry-aware clients can discover it there. The listing installs the same crate as cargo install mcpls.
Starting with 0.11.0, releases also publish a multi-arch container image, ghcr.io/bug-ops/mcpls (linux/amd64 and linux/arm64). It contains no language servers; see Docker.
You also need at least one language server, for example rustup component add rust-analyzer. See Installation for other methods and servers.
Register mcpls with Claude Code:
claude mcp add --scope user mcpls -- mcpls
Then ask about your code:
You: What is the return type of process_request?
Claude: [get_hover] It returns Result<Response, ApiError>.
You: Find everywhere ApiError::Timeout is handled.
Claude: [get_references] Found 4 matches: src/handlers/api.rs:89, ...
Something not answering? Run mcpls doctor in the project to see which language servers start and what they support.
Rust projects need no configuration. Other languages and clients are covered in the book.
context: "symbol_source") next to each reference, definition or implementationmcpls doctor checks your language servers without an MCP clientunsafe code; release archives carry build-provenance attestationsLanguage servers run code that comes with the workspace, and mcpls does not sandbox them. Read SECURITY.md and the Security and Trust chapter before pointing mcpls at code you did not write.
skills/mcpls is a packaged Agent Skill that teaches an AI coding agent to install, configure and run mcpls. It is separate from the tool-usage skill the running server serves itself.
cargo build
cargo nextest run --workspace --all-features
Requires Rust 1.100 or later (edition 2024). Builds from a checkout fail on any compiler or lint warning (.cargo/config.toml); while work is in progress, pass --config 'build.warnings="warn"' to cargo. The book lives in book/ and is built with mdBook. See CONTRIBUTING.md.
Participation is governed by the Code of Conduct. Accessibility of the output and documentation is described in ACCESSIBILITY.md.
Dual-licensed under Apache 2.0 or MIT at your option.
Read, search and manipulate Git repositories: status, diff, log, commit, branch and more
MOmodelcontextprotocol/servers92k近 7 天新增 200 个 star
Compile code with thousands of compilers, inspect the assembly, and share godbolt.org links
COcompiler-explorer/compiler-explorer19k近 7 天新增 7 个 star