MCP.so
登录

LSP MCP Server

@jonrad

基本信息

分类

其他

许可证

MIT

传输方式

stdio

作者

jonrad

关于 LSP MCP Server

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.

LSP MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

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

LSP MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

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.

常见问题

1

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 'typescript@5.7.3' -p 'typescript-language-server@4.3.3' typescript-language-server --stdio"`.

2

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.

3

What is the current state of the project?

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

4

What are the runtime dependencies?

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

5

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>`.

评论

其他 分类下的更多 MCP 服务器