MCP Catalogs
首页

mcp-language-server vs filesystem

并排对比,帮你在这两个 MCP server 之间做选择。

mcp-language-server
by isaacphi
filesystem
by modelcontextprotocol
Stars★ 1,527★ 85,748
30天用量
综合分5577
官方
分类
开发者工具AI / LLM 工具效率工具
本地文件系统开发者工具效率工具
实现语言GoTypeScript
最近提交3 个月前本月

mcp-language-server · 概述

MCP 语言服务器将 LSP 工具连接到 MCP 客户端,实现代码导航、定义、引用和诊断功能。

filesystem · 概述

功能丰富的文件系统操作 MCP 服务器,具有动态目录访问控制功能。

mcp-language-server · 使用场景

  • AI 助手对不熟悉代码的代码库导航
  • 大型项目中的自动代码重构和重命名
  • 智能代码分析和问题检测

filesystem · 使用场景

  • 使 AI 模型能够读取和写入项目文件进行开发
  • 允许 Claude 或其他 MCP 客户端浏览和分析代码库
  • 为内容生成提供对特定目录的安全沙盒访问

mcp-language-server · 安装

安装

  1. 安装 Go: 请访问 https://golang.org/doc/install 获取说明
  2. 安装服务器: go install github.com/isaacphi/mcp-language-server@latest
  3. 安装您选择的语言服务器 (gopls, rust-analyzer, pyright 等)

配置

添加到 Claude Desktop 配置 (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "language-server": {
      "command": "mcp-language-server",
      "args": ["--workspace", "/your/project/path", "--lsp", "gopls"]
    }
  }
}

filesystem · 安装

安装

使用 NPX

{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "/path/to/allowed/directory"
      ]
    }
  }
}

使用 Docker

{
  "mcpServers": {
    "filesystem": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "--mount", "type=bind,src=/path/to/allowed/dir,dst=/projects/allowed/dir",
        "mcp/filesystem",
        "/projects"
      ]
    }
  }
}

VS Code 扩展

点击 README 中的安装按钮直接在 VS Code 中安装。

对比内容由 README + GitHub 公开数据自动生成,定期更新。