l

lsp-mcp-rs

@Stryk91/lsp-mcp-rs
0 Stars 8 次浏览 Stryk91 更新于 2026-08-23

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

MCP 服务配置

复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用

{
  "mcpServers": {
    "https://github.com/Stryk91/lsp-mcp-rs/releases/download/v0.1.0/lsp-mcp-rs.exe": {
      "args": [],
      "command": ""
    }
  }
}

可用工具 (5 个)

该服务在 MCP 协议中暴露的工具,AI 可按需调用

tavily_search 14 个参数 需填 1 项

Search the web for current information on any topic. Use for news, facts, or data beyond your knowledge cutoff. Returns snippets and source URLs.

必填参数:query

tavily_extract 6 个参数 需填 1 项

Extract content from URLs. Returns raw page content in markdown or text format.

必填参数:urls

tavily_crawl 11 个参数 需填 1 项

Crawl a website starting from a URL. Extracts content from pages with configurable depth and breadth.

必填参数:url

tavily_map 8 个参数 需填 1 项

Map a website's structure. Returns a list of URLs found starting from the base URL.

必填参数:url

tavily_research 2 个参数 需填 1 项

Perform comprehensive research on a given topic or question. Use this tool when you need to gather information from multiple sources to answer a question or complete a task. Returns a detailed response based on the research findings.

必填参数:input

服务介绍

lsp-mcp-rs

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

# Build

cargo build - -release

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

# Configure

Create config.toml next to the binary:

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

{
  "mcpServers": {
    "lsp": {
      "command": "X:\\path\\to\\lsp-mcp-rs.exe",
      "args": []
    }
  }
}

# Tools

| Tool | Description |
|- -- -- -|- -- -- -- -- -- --|
| lsp_hover | Get docs/type at position |
| lsp_definition | Go to definition |
| lsp_references | Find all references |
| lsp_symbols | List symbols in file |
| lsp_diagnostics | Get errors/warnings |
| lsp_servers | List 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

相关 MCP 服务