MCP Catalogs
首页

filesystem vs codeTree

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

filesystem
by modelcontextprotocol
codeTree
by ThinkyMiner
Stars★ 85,748★ 25
30天用量
综合分7746
官方
分类
本地文件系统开发者工具效率工具
开发者工具AI / LLM 工具知识库 / RAG
实现语言TypeScriptPython
最近提交本月1 个月前

filesystem · 概述

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

codeTree · 概述

MCP 服务器,通过 tree-sitter 提供 10 种语言的 23 个结构化代码理解工具。

filesystem · 使用场景

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

codeTree · 使用场景

  • 代码分析和重构辅助
  • 文档生成建议
  • 变更前的代码影响分析

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 中安装。

codeTree · 安装

安装

**先决条件:** 如果没有 [uv](https://docs.astral.sh/uv/getting-started/installation/),请安装它(curl -LsSf https://astral.sh/uv/install.sh | sh)。

然后进入任何项目目录并运行:

claude mcp add codetree -- uvx --from mcp-server-codetree codetree --root .

Claude Desktop

添加到 ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) 或 %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "codetree": {
      "command": "uvx",
      "args": ["--from", "mcp-server-codetree", "codetree", "--root", "/path/to/your/project"]
    }
  }
}
对比内容由 README + GitHub 公开数据自动生成,定期更新。