MCP.so
ログイン

LSP MCP

@jonrad

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.

基本情報

カテゴリ

その他

ライセンス

MIT

ランタイム

node

トランスポート

stdio

公開者

jonrad

設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

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

ツール

ツールは検出されませんでした

ツールは 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.

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

コメント

「その他」の他のコンテンツ