Token导航 LogoToken导航

MCP Server · AI代理

MCP Language Server

MCP语言服务器是一个为LLM提供语言服务器协议支持的服务器,帮助客户端更轻松地导航代码库,提供定义、引用、重命名和诊断等语义工具。

未说明官方级别未说明来源级核验工具 0
代码导航GoClaude开发工具Claude Desktop

快速开始

公开资料没有提供安装命令,按仓库或官方文档接入。
作者 / 组织
isaacphi
提供方
isaacphi

工具数量

0

来源目录标注

资源数量

0

来源目录标注

提示词数量

0

来源目录标注

GitHub Star

1,526

仓库热度

收录来源

2 个

MCP World

选型结论

MCP Language Server 属于AI代理类 MCP Server,公开资料标注 0 个工具,通过传输方式未标注接入,适配 Claude Desktop、Claude,没有现成的安装命令;接入前先确认权限范围。

分类

AI代理

传输方式

未说明

认证方式

无需认证

部署方式

公开资料未说明

安装与配置

公开目录没有给出安装命令,需要按仓库 README安装;下面按同类条目的通用流程说明。

公开命令不是通用的启动方式,拼不出可靠配置示例;请在客户端 MCP 配置里按官方文档填写 command 和 args。

上手步骤

  1. 1

    先确认运行方式

    公开资料没有标注传输方式,先看仓库 README,确认是本地进程还是远程地址。

  2. 2

    获取服务

    公开目录没有给出安装命令,按仓库 README里的步骤安装或获取服务。

  3. 3

    写入客户端配置

    在客户端的 MCP 配置里填启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4

    验证是否可用

    连接成功后客户端会列出 0 个工具,随便调一个只读工具确认能返回结果。

接入前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

公开资料仍需确认:安装命令

详细介绍

MCP语言服务器

演示

mcp-language-server 通过为启用MCP的客户端提供获取定义、引用、重命名和诊断等语义工具,帮助他们更轻松地浏览代码库。

设置

  1. 安装Go:遵循以下说明
  2. 安装或更新此服务器: go install github.com/isaacphi/mcp-language-server@latest
  3. 安装语言服务器: _遵循以下指南之一_
  4. 配置您的MCP客户端: _遵循以下指南之一_

Go (gopls)

Install gopls: go install golang.org/x/tools/gopls@latest

Configure your MCP client: This will be different but similar for each client. For Claude Desktop, add the following to ~/Library/Application\ Support/Claude/claude_desktop_config.json

{ "mcpServers": { "language-server": { "command": "mcp-language-server", "args": ["--workspace", "/Users/you/dev/yourproject/", "--lsp", "gopls"], "env": { "PATH": "/opt/homebrew/bin:/Users/you/go/bin", "GOPATH": "/users/you/go", "GOCACHE": "/users/you/Library/Caches/go-build", "GOMODCACHE": "/Users/you/go/pkg/mod" } } } }

Note: Not all clients will need these environment variables. For Claude Desktop you will need to update the environment variables above based on your machine and username:

PATH needs to contain the path to go and to gopls. Get this with echo $(which go):$(which gopls)

GOPATH, GOCACHE, and GOMODCACHE may be different on your machine. These are the defaults.

Rust (rust-analyzer)

Install rust-analyzer: rustup component add rust-analyzer

Configure your MCP client: This will be different but similar for each client. For Claude Desktop, add the following to ~/Library/Application\ Support/Claude/claude_desktop_config.json

{ "mcpServers": { "language-server": { "command": "mcp-language-server", "args": [ "--workspace", "/Users/you/dev/yourproject/", "--lsp", "rust-analyzer" ] } } }

Python (pyright)

Install pyright: npm install -g pyright

Configure your MCP client: This will be different but similar for each client. For Claude Desktop, add the following to ~/Library/Application\ Support/Claude/claude_desktop_config.json

{ "mcpServers": { "language-server": { "command": "mcp-language-server", "args": [ "--workspace", "/Users/you/dev/yourproject/", "--lsp", "pyright-langserver", "--", "--stdio" ] } } }

Typescript (typescript-language-server)

Install typescript-language-server: npm install -g typescript typescript-language-server

Configure your MCP client: This will be different but similar for each client. For Claude Desktop, add the following to ~/Library/Application\ Support/Claude/claude_desktop_config.json

{ "mcpServers": { "language-server": { "command": "mcp-language-server", "args": [ "--workspace", "/Users/you/dev/yourproject/", "--lsp", "typescript-language-server", "--", "--stdio" ] } } }

C/C++ (clangd)

Install clangd: Download prebuilt binaries from the official LLVM releases page or install via your system's package manager (e.g., apt install clangd, brew install clangd).

Configure your MCP client: This will be different but similar for each client. For Claude Desktop, add the following to ~/Library/Application\\ Support/Claude/claude_desktop_config.json

{ "mcpServers": { "language-server": { "command": "mcp-language-server", "args": [ "--workspace", "/Users/you/dev/yourproject/", "--lsp", "/path/to/your/clangd_binary", "--", "--compile-commands-dir=/path/to/yourproject/build_or_compile_commands_dir" ] } } }


Note:

  
Replace /path/to/your/clangd_binary with the actual path to your clangd executable.

  
--compile-commands-dir should point to the directory containing your compile_commands.json file (e.g., ./build, ./cmake-build-debug).

  
Ensure compile_commands.json is generated for your project for clangd to work effectively.

Other

I have only tested this repo with the servers above but it should be compatible with many more. Note:

The language server must communicate over stdio.

Any aruments after -- are sent as arguments to the language server.

Any env variables are passed on to the language server.

工具

  • definition:从代码库中检索任何符号(函数、类型、常量等)的完整源代码定义。
  • references:在整个代码库中查找符号的所有用法和引用。
  • diagnostics:提供特定文件的诊断信息,包括警告和错误。
  • hover:显示给定位置的文档、键入提示或其他悬停信息。
  • rename_symbol:重命名项目中的符号。
  • edit_file:允许根据行号对文件进行多次文本编辑。与基于搜索和替换的编辑工具相比,提供了一种更可靠、更经济的编辑文件的方法。

关于

此代码库使用来自的编辑代码 gopls 以处理LSP通信。详细信息请参见属性。这里的所有内容都包含在宽松的BSD风格许可证中。

mcp走 用于MCP通信。谢谢你的服务。

这是测试版软件。如果您遇到任何问题或有任何建议,请通过创建问题告诉我。

贡献

对于任何实质性的问题,请先保持PR的小规模和开放性。只要经过测试,通过检查,气味不太难闻,人工智能就可以。

设置

克隆仓库:

git clone https://github.com/isaacphi/mcp-language-server.git
cd mcp-language-server

A. justfile 为方便起见,包括:

just -l
Available recipes:
    build    # Build
    check    # Run code audit checks
    fmt      # Format code
    generate # Generate LSP types and methods
    help     # Help
    install  # Install locally
    snapshot # Update snapshot tests
    test     # Run tests

配置您的Claude Desktop(或类似设备)以使用本地二进制文件:

{
  "mcpServers": {
    "language-server": {
      "command": "/full/path/to/your/clone/mcp-language-server/mcp-language-server",
      "args": [
        "--workspace",
        "/path/to/workspace",
        "--lsp",
        "language-server-executable"
      ],
      "env": {
        "LOG_LEVEL": "DEBUG"
      }
    }
  }
}

更改后重建。

日志记录

设置 LOG_LEVEL DEBUG的环境变量允许将所有组件的详细日志记录到stderr,包括往返于语言服务器的消息和语言服务器的日志。

LSP交互

  • internal/lsp/methods.go 包含用于调用连接的语言服务器的生成代码。
  • internal/protocol/tsprotocol.go 包含LSP类型的生成代码。这是我借的 gopls的源代码。谢谢你的服务。
  • LSP允许语言服务器为相同的方法返回不同的类型。Go不喜欢这样,所以有一些丑陋的解决方法 internal/protocol/interfaces.go.

本地开发和快照测试

有一个快照测试套件,可以更容易地尝试对工具进行更改。这些程序在模拟工作区上运行实际的语言服务器,并捕获输出和日志。

您需要在本地安装语言服务器才能运行它们。有go、rust、python和typescript的测试。

integrationtests/
├── tests/        # Tests are in this folder
├── snapshots/    # Snapshots of tool outputs
├── test-output/  # Gitignored folder showing the final state of each workspace and logs after each test run
└── workspaces/   # Mock workspaces that the tools run on

要更新快照,请运行 UPDATE_SNAPSHOTS=true go test ./integrationtests/...

工具与能力

工具数量

0

资源数量

0

提示词数量

0

能力标签

语言服务器Go本地部署代码导航语义分析开发工具LLM集成

支持客户端

Claude DesktopClaude

数量来自来源目录的标注,具体工具清单以官方文档为准。

典型使用场景

多步任务编排

把拆解、检索、执行串成一条链,模型按步骤调用工具。

长期上下文

把会话、笔记和知识放到外部存储,换个会话还能接着做。

接自有流程

把内部系统和模型连起来,让助手调用已有的工作流。

选择建议

值得选的地方

  • 只提供 0 个工具,职责集中,接入后不容易误操作。
  • 已经适配 Claude Desktop、Claude,换客户端不用重新研究配置。
  • 公开说明写得比较完整,接入前能看清能力边界。

先想清楚的地方

  • 公开资料没有可直接复制的安装命令,第一次接入要自己找入口。
  • 第三方目录整理,版本更新和行为细节以官方仓库为准。

更适合

  • 需要在AI代理场景里让模型直接调用外部能力的人。
  • 已经在用 Claude Desktop 的用户,接入路径最短。
  • 愿意照着官方文档一步步配环境的人。

不太适合

  • 希望一条命令就装好、不想看文档的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

5 个同类
MCP Server工具数传输方式安装命令收录来源最后核验
MCP Language Server

MCP World · 本页

0未说明未标注2 个2026-05-17
Everything Claude Code

MCP World

0stdio有1 个2026-05-17
Filesystem 560c4363

MCP World

13未说明未标注2 个2026-05-17
Time 7365cb6d

MCP.so

2SSE有2 个2026-05-17
Server Everything (everything)

MCP World

11stdio有1 个2026-05-17

按同分类和工具数量挑出最接近的几条,字段以各自详情页为准。

常见问题

5 条

MCP Language Server 怎么安装?

公开目录没有给出可以直接复制的安装命令,需要按仓库 README里的步骤安装;装好后写进客户端的 MCP 配置再重启。

MCP Language Server 怎么在 Claude Desktop、Cursor 里配置?

它是传输方式未标注,客户端配置里要写启动命令和参数,运行环境是 未标注;保存后完全退出客户端再打开,配置才会生效。

MCP Language Server 收费吗?

本站只整理公开资料,不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

MCP Language Server 需要 API Key 吗?

公开资料标注为无需认证,装好就能连;如果实际调用时报鉴权错误,按官方文档补上凭据。

MCP Language Server 支持哪些客户端?

公开资料标注支持 Claude Desktop、Claude;其他客户端只要能配置 MCP Server,也能用同样的命令或地址接入。

来源信息

继续浏览同类 MCP