MCP.so
Sign In

LSP MCP

@jonrad

About LSP MCP

An Model Context Protocol (MCP) server that provides LLMs/AI Agents with the capabilities of a language server protocol (LSP) server. This gives the AI the ability to get language aware context from the codebase.

Basic information

Category

Other

License

MIT

Runtime

node

Transports

stdio

Publisher

jonrad

Config

Add this server to your MCP-compatible client using the configuration below.

{
  "mcpServers": {
    "lsp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/jonrad/lsp-mcp:0.3.1"
      ]
    }
  }
}

Tools

No tools detected

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is LSP MCP?

LSP MCP is a Model Context Protocol server that provides LLMs and AI agents with the capabilities of a Language Server Protocol (LSP) server, enabling language-aware context and analysis from a codebase. It supports multiple programming languages simultaneously and is intended for developers who want AI tools to understand code deeply.

How to use LSP MCP?

The server is typically deployed via Docker or npx. For Claude Desktop, add a configuration entry in claude_desktop_config.json with the Docker command docker run -i --rm jonrad/lsp-mcp:0.3.1 or the npx command npx -y --silent git+https://github.com/jonrad/lsp-mcp --lsp <language-server-command>. It can also be used with Cursor and MCP CLI Client.

Key features of LSP MCP

  • Multiple LSPs for multiple programming languages simultaneously.
  • Dynamically generates supported LSP methods from JSON Schema.
  • Provides language-aware code context to LLMs.
  • Supports Docker and npx deployment options.
  • Works with various MCP clients (Claude Desktop, Cursor, MCP CLI).

Use cases of LSP MCP

  • Analyze code for variable shadowing and scope issues.
  • Get type information and language-aware insights from a codebase.
  • Debug and understand execution flow with LSP diagnostics.
  • Explore code structure using document symbols and references.

FAQ from LSP MCP

How do I specify which language server to use?

Use the --lsp argument with the command to start the desired language server, for example: --lsp "npx -y --silent -p '[email protected]' -p '[email protected]' typescript-language-server --stdio".

Does it support multiple LSPs at the same time?

Yes, the server supports multiple LSPs simultaneously. However, when using Claude Desktop with npx, multiple LSPs are not yet supported.

What is the current state of the project?

The project is in a proof-of-concept (POC) state.

What are the runtime dependencies?

The server is built with Node and uses TypeScript, zod for config validation, and the low-level MCP SDK.

How can I share files with the Docker container?

Pass volume mount flags to Docker, for example: -v /local_dir:/remote_dir, then access files at /remote_dir/<filename>.

Comments

More Other MCP servers