MCP Catalogs
首页

mcp-server-codegraph vs filesystem

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

mcp-server-codegraph
by CartographAI
filesystem
by modelcontextprotocol
Stars★ 20★ 85,748
30天用量
综合分3777
官方
分类
开发者工具知识库 / RAGAI / LLM 工具
本地文件系统开发者工具效率工具
实现语言JavaScriptTypeScript
最近提交8 个月前本月

mcp-server-codegraph · 概述

MCP server 将代码库转换为交互式知识图谱,支持实体跟踪和关系映射。

filesystem · 概述

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

mcp-server-codegraph · 使用场景

  • 大型项目的代码库探索和理解
  • 重构和现代化的依赖分析
  • 基于代码结构的文档生成

filesystem · 使用场景

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

mcp-server-codegraph · 安装

使用 npm 安装 server:

npx @cartographai/mcp-server-codegraph /path/to/directory

对于 Claude Desktop,添加到你的 claude_desktop_config.json

{
  "mcpServers": {
    "codegraph": {
      "command": "npx",
      "args": [
        "-y",
        "@cartographai/mcp-server-codegraph",
        "/path/to/directory"
      ]
    }
  }
}

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 公开数据自动生成,定期更新。