原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。使用 Google 登录即可撰写评价。原型 · 每 30 分钟更新
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Code-Graph-RAG

作者:vitali87版本 0.6.30i★ 5,354i在你的电脑上运行
注册名称io.github.vitali87/code-graph-rag

安装方法

What it does

Knowledge-graph RAG for multi-language codebases: index, query and edit code in natural language.

  • Connects 在你的电脑上运行
  • Account or key Needs ORCHESTRATOR_API_KEY, CYPHER_API_KEY
  • Category 搜索与 AI 记忆

安装

选择你使用的 AI 应用,然后复制设置。

通过 3/3 项检查 · 在你的电脑上运行 · ✓ 命令已检查 2026年11月14日

第一步:你用哪个 AI?

选择你用的应用,步骤会显示在下方。

可连接 Claude,但需要先准备

需要 Code-Graph-RAG 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用

让 AI 帮你安装

把这段话复制到 Claude 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。

请在这台电脑上为 Claude 安装 MCP server Code-Graph-RAG,按顺序:1) 用 uv --version 检查是否有 uv。没有的话,请让我从 https://docs.astral.sh/uv/getting-started/installation/ 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "code-graph-rag": { "command": "uvx", "args": [ "code-graph-rag", "mcp-server" ], "env": { "ORCHESTRATOR_API_KEY": "your-value", "CYPHER_API_KEY": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) ORCHESTRATOR_API_KEY, CYPHER_API_KEY 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Code-Graph-RAG 的工具真的出现了。

这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。

  1. 安装 uv(如果还没有)

    已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter

    uv --version
    • 显示版本号(例如 uv …)= 已安装,可跳过这一步
    • 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
    怎么打开终端

    Mac:按 ⌘ + Space,输入 Terminal 后按 Enter

    Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”

    还没安装: uv 没有点选式安装程序。从 uv 官方页面复制适合你系统(macOS 或 Windows)的一行命令,粘贴到终端 · 不需要单独安装 Python,uv 会在需要时自动下载

    打开 uv 下载页 ↗

    装好后关掉终端再打开,重新运行同一条命令,应显示版本号: uv --version

    安装一次,所有需要 uv 的工具都能用

  2. 注册并创建 Code-Graph-RAG 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 Code-Graph-RAG 网站 ↗

  3. 打开电脑版 Claude 应用的设置文件

    SettingsDeveloperEdit Config

  4. 粘贴这些设置并保存文件

    {
      "mcpServers": {
        "code-graph-rag": {
          "command": "uvx",
          "args": [
            "code-graph-rag",
            "mcp-server"
          ],
          "env": {
            "ORCHESTRATOR_API_KEY": "your-value",
            "CYPHER_API_KEY": "your-value"
          }
        }
      }
    }

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  5. 退出 Claude 再重新打开

  6. 试一试

    用 Code-Graph-RAG 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude 说正在使用 Code-Graph-RAG,或回答中出现 Code-Graph-RAG 的工具名称,就表示连接成功

7 项可选设置(不填也能用)

上面的命令不填这些也能用。想调整时再按开发者的说明添加。

  • ORCHESTRATOR_PROVIDER orchestrator 智能体的 LLM 提供商(openai、anthropic、google、azure、cohere、ollama)
    查看英文原文LLM provider for the orchestrator agent (openai, anthropic, google, azure, cohere, ollama)
    · 默认值 ollama
  • ORCHESTRATOR_MODEL orchestrator 智能体的模型名称
    查看英文原文Model name for the orchestrator agent
    · 默认值 llama3.2
  • CYPHER_PROVIDER Cypher 查询生成的 LLM 提供商(openai、anthropic、google、azure、cohere、ollama)
    查看英文原文LLM provider for Cypher query generation (openai, anthropic, google, azure, cohere, ollama)
    · 默认值 ollama
  • CYPHER_MODEL 用于生成 Cypher 查询的模型名称
    查看英文原文Model name for Cypher query generation
    · 默认值 llama3.2
  • MEMGRAPH_HOST Memgraph 数据库的主机名
    查看英文原文Hostname of the Memgraph database
    · 默认值 localhost
  • MEMGRAPH_PORT Memgraph 数据库的端口
    查看英文原文Port of the Memgraph database
    · 默认值 7687
  • TARGET_REPO_PATH 要分析的代码仓库路径(若未设置,则从工作目录自动检测)
    查看英文原文Path to the repository to analyze (auto-detected from working directory if not set)

说明为自动翻译,变量名保持原样;不确定时请查看原文。

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

ChatGPT 暂时无法连接 Code-Graph-RAG

Code-Graph-RAG 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器

你可以改用这些方式

A · 使用能连接 Code-Graph-RAG 的应用

  • 需要 Code-Graph-RAG 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
  • 需要 Code-Graph-RAG 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次)
  • 需要 Code-Graph-RAG 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次)
  • 需要 Code-Graph-RAG 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次)

B · 搜索与 AI 记忆 类中能连接 ChatGPT 的其他服务器

从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的

可连接 Claude Code,但需要先准备

需要 Code-Graph-RAG 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次)

让 AI 帮你安装

把这段话复制到 Claude Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。

请在这台电脑上为 Claude Code 安装 MCP server Code-Graph-RAG,按顺序:1) 用 uv --version 检查是否有 uv。没有的话,请让我从 https://docs.astral.sh/uv/getting-started/installation/ 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):claude mcp add --scope user code-graph-rag --env ORCHESTRATOR_API_KEY=your-value --env CYPHER_API_KEY=your-value -- uvx code-graph-rag mcp-server 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) ORCHESTRATOR_API_KEY, CYPHER_API_KEY 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Code-Graph-RAG 的工具真的出现了。

这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。

  1. 安装 uv(如果还没有)

    已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter

    uv --version
    • 显示版本号(例如 uv …)= 已安装,可跳过这一步
    • 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
    怎么打开终端

    Mac:按 ⌘ + Space,输入 Terminal 后按 Enter

    Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”

    还没安装: uv 没有点选式安装程序。从 uv 官方页面复制适合你系统(macOS 或 Windows)的一行命令,粘贴到终端 · 不需要单独安装 Python,uv 会在需要时自动下载

    打开 uv 下载页 ↗

    装好后关掉终端再打开,重新运行同一条命令,应显示版本号: uv --version

    安装一次,所有需要 uv 的工具都能用

  2. 注册并创建 Code-Graph-RAG 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 Code-Graph-RAG 网站 ↗

  3. 打开终端

    Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell

  4. 粘贴这条命令并按 Enter

    claude mcp add --scope user code-graph-rag --env ORCHESTRATOR_API_KEY=your-value --env CYPHER_API_KEY=your-value -- uvx code-graph-rag mcp-server

    按 Enter 前,把“your-value”改成你的密钥

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  5. 在 Claude Code 中输入 /mcp

    应能看到 Code-Graph-RAG 在列表中并显示已连接

  6. 试一试

    用 Code-Graph-RAG 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude Code 说正在使用 Code-Graph-RAG,或回答中出现 Code-Graph-RAG 的工具名称,就表示连接成功

7 项可选设置(不填也能用)

上面的命令不填这些也能用。想调整时再按开发者的说明添加。

  • ORCHESTRATOR_PROVIDER orchestrator 智能体的 LLM 提供商(openai、anthropic、google、azure、cohere、ollama)
    查看英文原文LLM provider for the orchestrator agent (openai, anthropic, google, azure, cohere, ollama)
    · 默认值 ollama
  • ORCHESTRATOR_MODEL orchestrator 智能体的模型名称
    查看英文原文Model name for the orchestrator agent
    · 默认值 llama3.2
  • CYPHER_PROVIDER Cypher 查询生成的 LLM 提供商(openai、anthropic、google、azure、cohere、ollama)
    查看英文原文LLM provider for Cypher query generation (openai, anthropic, google, azure, cohere, ollama)
    · 默认值 ollama
  • CYPHER_MODEL 用于生成 Cypher 查询的模型名称
    查看英文原文Model name for Cypher query generation
    · 默认值 llama3.2
  • MEMGRAPH_HOST Memgraph 数据库的主机名
    查看英文原文Hostname of the Memgraph database
    · 默认值 localhost
  • MEMGRAPH_PORT Memgraph 数据库的端口
    查看英文原文Port of the Memgraph database
    · 默认值 7687
  • TARGET_REPO_PATH 要分析的代码仓库路径(若未设置,则从工作目录自动检测)
    查看英文原文Path to the repository to analyze (auto-detected from working directory if not set)

说明为自动翻译,变量名保持原样;不确定时请查看原文。

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

可连接 Cursor,但需要先准备

需要 Code-Graph-RAG 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次)

让 AI 帮你安装

把这段话复制到 Cursor 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。

请在这台电脑上为 Cursor 安装 MCP server Code-Graph-RAG,按顺序:1) 用 uv --version 检查是否有 uv。没有的话,请让我从 https://docs.astral.sh/uv/getting-started/installation/ 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "code-graph-rag": { "command": "uvx", "args": [ "code-graph-rag", "mcp-server" ], "env": { "ORCHESTRATOR_API_KEY": "your-value", "CYPHER_API_KEY": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) ORCHESTRATOR_API_KEY, CYPHER_API_KEY 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Code-Graph-RAG 的工具真的出现了。

这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。

  1. 安装 uv(如果还没有)

    已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter

    uv --version
    • 显示版本号(例如 uv …)= 已安装,可跳过这一步
    • 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
    怎么打开终端

    Mac:按 ⌘ + Space,输入 Terminal 后按 Enter

    Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”

    还没安装: uv 没有点选式安装程序。从 uv 官方页面复制适合你系统(macOS 或 Windows)的一行命令,粘贴到终端 · 不需要单独安装 Python,uv 会在需要时自动下载

    打开 uv 下载页 ↗

    装好后关掉终端再打开,重新运行同一条命令,应显示版本号: uv --version

    安装一次,所有需要 uv 的工具都能用

  2. 注册并创建 Code-Graph-RAG 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 Code-Graph-RAG 网站 ↗

  3. 点击这个按钮打开 Cursor

    在 Cursor 中打开

    Cursor 会请你确认安装,点击 Install

  4. 填写你的密钥

    在 Code-Graph-RAG 的设置中,ORCHESTRATOR_API_KEY, CYPHER_API_KEY 还是空的,填入你的密钥并保存

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  5. 在 Cursor 中以 Agent 模式打开 AI 聊天

  6. 试一试

    用 Code-Graph-RAG 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Cursor 说正在使用 Code-Graph-RAG,或回答中出现 Code-Graph-RAG 的工具名称,就表示连接成功

7 项可选设置(不填也能用)

上面的命令不填这些也能用。想调整时再按开发者的说明添加。

  • ORCHESTRATOR_PROVIDER orchestrator 智能体的 LLM 提供商(openai、anthropic、google、azure、cohere、ollama)
    查看英文原文LLM provider for the orchestrator agent (openai, anthropic, google, azure, cohere, ollama)
    · 默认值 ollama
  • ORCHESTRATOR_MODEL orchestrator 智能体的模型名称
    查看英文原文Model name for the orchestrator agent
    · 默认值 llama3.2
  • CYPHER_PROVIDER Cypher 查询生成的 LLM 提供商(openai、anthropic、google、azure、cohere、ollama)
    查看英文原文LLM provider for Cypher query generation (openai, anthropic, google, azure, cohere, ollama)
    · 默认值 ollama
  • CYPHER_MODEL 用于生成 Cypher 查询的模型名称
    查看英文原文Model name for Cypher query generation
    · 默认值 llama3.2
  • MEMGRAPH_HOST Memgraph 数据库的主机名
    查看英文原文Hostname of the Memgraph database
    · 默认值 localhost
  • MEMGRAPH_PORT Memgraph 数据库的端口
    查看英文原文Port of the Memgraph database
    · 默认值 7687
  • TARGET_REPO_PATH 要分析的代码仓库路径(若未设置,则从工作目录自动检测)
    查看英文原文Path to the repository to analyze (auto-detected from working directory if not set)

说明为自动翻译,变量名保持原样;不确定时请查看原文。

菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同

可连接 VS Code,但需要先准备

需要 Code-Graph-RAG 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次)

让 AI 帮你安装

把这段话复制到 VS Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。

请在这台电脑上为 VS Code 安装 MCP server Code-Graph-RAG,按顺序:1) 用 uv --version 检查是否有 uv。没有的话,请让我从 https://docs.astral.sh/uv/getting-started/installation/ 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "servers": { "code-graph-rag": { "type": "stdio", "command": "uvx", "args": [ "code-graph-rag", "mcp-server" ], "env": { "ORCHESTRATOR_API_KEY": "your-value", "CYPHER_API_KEY": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) ORCHESTRATOR_API_KEY, CYPHER_API_KEY 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Code-Graph-RAG 的工具真的出现了。

这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。

  1. 安装 uv(如果还没有)

    已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter

    uv --version
    • 显示版本号(例如 uv …)= 已安装,可跳过这一步
    • 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
    怎么打开终端

    Mac:按 ⌘ + Space,输入 Terminal 后按 Enter

    Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”

    还没安装: uv 没有点选式安装程序。从 uv 官方页面复制适合你系统(macOS 或 Windows)的一行命令,粘贴到终端 · 不需要单独安装 Python,uv 会在需要时自动下载

    打开 uv 下载页 ↗

    装好后关掉终端再打开,重新运行同一条命令,应显示版本号: uv --version

    安装一次,所有需要 uv 的工具都能用

  2. 注册并创建 Code-Graph-RAG 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 Code-Graph-RAG 网站 ↗

  3. 点击这个按钮打开 VS Code

    在 VS Code 中打开

    VS Code 会请你确认安装,点击 Install

  4. 填写你的密钥

    在 Code-Graph-RAG 的设置中,ORCHESTRATOR_API_KEY, CYPHER_API_KEY 还是空的,填入你的密钥并保存

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  5. 在 VS Code 中以 Agent 模式打开 AI 聊天

  6. 试一试

    用 Code-Graph-RAG 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 VS Code 说正在使用 Code-Graph-RAG,或回答中出现 Code-Graph-RAG 的工具名称,就表示连接成功

7 项可选设置(不填也能用)

上面的命令不填这些也能用。想调整时再按开发者的说明添加。

  • ORCHESTRATOR_PROVIDER orchestrator 智能体的 LLM 提供商(openai、anthropic、google、azure、cohere、ollama)
    查看英文原文LLM provider for the orchestrator agent (openai, anthropic, google, azure, cohere, ollama)
    · 默认值 ollama
  • ORCHESTRATOR_MODEL orchestrator 智能体的模型名称
    查看英文原文Model name for the orchestrator agent
    · 默认值 llama3.2
  • CYPHER_PROVIDER Cypher 查询生成的 LLM 提供商(openai、anthropic、google、azure、cohere、ollama)
    查看英文原文LLM provider for Cypher query generation (openai, anthropic, google, azure, cohere, ollama)
    · 默认值 ollama
  • CYPHER_MODEL 用于生成 Cypher 查询的模型名称
    查看英文原文Model name for Cypher query generation
    · 默认值 llama3.2
  • MEMGRAPH_HOST Memgraph 数据库的主机名
    查看英文原文Hostname of the Memgraph database
    · 默认值 localhost
  • MEMGRAPH_PORT Memgraph 数据库的端口
    查看英文原文Port of the Memgraph database
    · 默认值 7687
  • TARGET_REPO_PATH 要分析的代码仓库路径(若未设置,则从工作目录自动检测)
    查看英文原文Path to the repository to analyze (auto-detected from working directory if not set)

说明为自动翻译,变量名保持原样;不确定时请查看原文。

菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同

其他支持 MCP 的应用(如 Windsurf、Zed、Gemini CLI)添加方式各不相同,请在应用列表中查看

查看所有支持 MCP 的应用 →

JSON 设置在下方“开发者专用”中

卡住了?问问正在用 Code-Graph-RAG 的人💬 讨论 →
开发者专用:终端命令和 JSON 设置

安装在电脑上

Claude Code

claude mcp add --scope user code-graph-rag --env ORCHESTRATOR_API_KEY=your-value --env CYPHER_API_KEY=your-value -- uvx code-graph-rag mcp-server

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "code-graph-rag": {
      "command": "uvx",
      "args": [
        "code-graph-rag",
        "mcp-server"
      ],
      "env": {
        "ORCHESTRATOR_API_KEY": "your-value",
        "CYPHER_API_KEY": "your-value"
      }
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "code-graph-rag": {
      "command": "uvx",
      "args": [
        "code-graph-rag",
        "mcp-server"
      ],
      "env": {
        "ORCHESTRATOR_API_KEY": "your-value",
        "CYPHER_API_KEY": "your-value"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "code-graph-rag": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "code-graph-rag",
        "mcp-server"
      ],
      "env": {
        "ORCHESTRATOR_API_KEY": "your-value",
        "CYPHER_API_KEY": "your-value"
      }
    }
  }
}

需要你填写的值

  • ORCHESTRATOR_PROVIDER env
    orchestrator 智能体的 LLM 提供商(openai、anthropic、google、azure、cohere、ollama)
    查看英文原文LLM provider for the orchestrator agent (openai, anthropic, google, azure, cohere, ollama)
  • ORCHESTRATOR_MODEL env
    orchestrator 智能体的模型名称
    查看英文原文Model name for the orchestrator agent
  • ORCHESTRATOR_API_KEY 机密 必填 env
    orchestrator 所用 LLM 提供商的 API 密钥(默认的本地 ollama 提供商不需要)
    查看英文原文API key for the orchestrator LLM provider (not needed for the default local ollama provider)
  • CYPHER_PROVIDER env
    Cypher 查询生成的 LLM 提供商(openai、anthropic、google、azure、cohere、ollama)
    查看英文原文LLM provider for Cypher query generation (openai, anthropic, google, azure, cohere, ollama)
  • CYPHER_MODEL env
    用于生成 Cypher 查询的模型名称
    查看英文原文Model name for Cypher query generation
  • CYPHER_API_KEY 机密 必填 env
    Cypher 所用 LLM 提供商的 API 密钥(默认的本地 ollama 提供商不需要)
    查看英文原文API key for the Cypher LLM provider (not needed for the default local ollama provider)
  • MEMGRAPH_HOST env
    Memgraph 数据库的主机名
    查看英文原文Hostname of the Memgraph database
  • MEMGRAPH_PORT env
    Memgraph 数据库的端口
    查看英文原文Port of the Memgraph database
  • TARGET_REPO_PATH env
    要分析的代码仓库路径(若未设置,则从工作目录自动检测)
    查看英文原文Path to the repository to analyze (auto-detected from working directory if not set)

说明为自动翻译,变量名保持原样;不确定时请查看原文。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

一览

每周下载量i
869/周
连接方式
在你的电脑上运行
最新版本i
0.6.30
发布到注册中心i
2026年11月10日
代码最后更新i
2026年11月13日
作者
vitali87
软件包
pypi: code-graph-rag
注册状态
活跃

哪些应用可以使用它

依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。

在你的电脑上运行,适用于

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

全部应用及其优缺点 →

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月15日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 vitali87 验证,该账户拥有此仓库

  • ✓ 通过

    仍在维护

    代码最后更新于前天

  • ✓ 通过

    有许可证

    使用 MIT

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

已公开的漏洞(OSV.dev)

OSV.dev 中没有 code-graph-rag@0.6.30 的记录

只检查这个版本的包本身,不包括所有依赖 · 检查于 2026年11月15日

我们检查什么 → · JSON

作者:申请重新检查或报告信息错误

讨论

提问、分享技巧或报告无法使用。按“有帮助”数量排序。

还没有帖子,欢迎第一个提问或分享。

此处内容由用户撰写,不代表 PopNx 团队。

使用 Google 登录后发帖

用户评价

还没有评价

用 Google 登录后写评价

与“搜索与 AI 记忆”中的其他服务器比较i

  • 星标数多于此分类中其他 6137 个服务器的 99%
  • 发布到注册中心的时间比此分类中其他 6137 个服务器的 88% 更新
  • 基础检查结果等于或优于此分类中其他 6137 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Code-Graph-RAG 安全吗?

它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:ORCHESTRATOR_API_KEY, CYPHER_API_KEY

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于前天,最新版本(0.6.30)于5天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。

有什么可以替代它?

同一分类中有:OpenSEO, Exa, Mockserver, Microsoft Learn MCP, Docs

功能相近的其他选择

同一分类、其他作者、命令已通过检查。官方的排在前面,再按星标排序。

如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

OpenSEO

Keyword research, site audits, rank tracking and AI visibility for your AI agent.

作者:every-app广泛使用★ 2.8万昨天更新

在云端运行✓ everyapp.com

Exa

Connect AI agents to Exa for web search, content fetching, and multi-step research.

作者:exa-labs广泛使用★ 52322个月前更新

在云端运行✓ 服务方 · exa.aiPopNx 团队已实际试用

Mockserver

Mock, record/replay, verify and chaos-test any HTTP, REST, gRPC or LLM dependency over MCP.

作者:mock-server正在增长★ 501019天前更新

在你的电脑上运行✓ 服务方 · mock-server.com

Microsoft Learn MCP

Official Microsoft Learn MCP Server – real-time, trusted docs & code samples for AI and LLMs.

作者:MicrosoftDocs广泛使用★ 199012个月前更新

在云端运行✓ 服务方 · microsoft.comPopNx 团队已实际试用

Docs

Search and read Empryo's documentation. Read-only, no auth, no local access.

作者:proxysoul正在增长★ 16062个月前更新

在云端运行✓ empryo.com
  • OpenSEO — 在云端运行,无需安装 · 不需要密钥
  • Exa — 在云端运行,无需安装 · 不需要密钥 · 在 Claude 的目录中
  • Mockserver — 需要安装在电脑上 · 不需要密钥
  • Microsoft Learn MCP — 在云端运行,无需安装 · 不需要密钥 · 在 Claude 的目录中
  • Docs — 在云端运行,无需安装 · 不需要密钥

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

Code-Graph-RAG

Code-Graph-RAG parses a multi-language codebase with Tree-sitter, sharpened by compiler-grade frontends and runtime traces where available, builds a knowledge graph of its structure in an embedded graph database that needs no server, and lets you query, edit, and optimise that code in plain English. It works across a monorepo of mixed languages under one unified graph schema.

  1. Index: cgr start --update-graph parses a repository into a knowledge graph (sped up)
  1. Ask: cgr start answers questions and edits code, grounded in that graph

Latest News 🔥

  • Type Handling: Improved handling of type context managers, walrus operators, and match binding targets in both Python and TypeScript.
  • Rename Refinement: Prevented Go renames from unexporting names used by other packages.
  • Profile Naming: Corrected the naming of pprof profiles to avoid "malformed" errors when no samples are present.
  • Output Budget: Increased the Anthropic output budget to improve the default thinking experience.
  • Module Resolution: Resolved issues with module resolution in various scenarios, including ES module default imports and bare name bindings.
  • Dead Code Elimination: Removed dead code roots associated with IPython rich-display methods.
  • Incremental Refresh: Improved incremental refresh to ensure callers are updated when dispatch targets change.

See NEWS.md for the full history.

What It Does

Point Code-Graph-RAG at a repository and it reads every source file, extracts functions, classes, methods, modules, and the relationships between them, and stores the result as an interconnected graph. Once the graph exists you can:

  • Ask questions about the codebase in natural language and get answers grounded in the real structure.
  • Retrieve the actual source of any function, class, or method by name or by intent.
  • Edit code through the agent with AST-based surgical patching and a diff preview before anything changes.
  • Optimise code against language best practices or your own coding standards.
  • Find dead code by walking call and reference edges from entry points.
  • Search and rewrite structurally by AST pattern with ast-grep.
  • Overlay runtime behaviour: trace a test run (or pull production eBPF profiles) with cgr trace and merge the calls that actually happened into the graph, exposing dispatch that static analysis cannot see.

How It Works

The system has two components:

  1. Multi-language parser. A Tree-sitter based parser reads the codebase and ingests functions, classes, methods, modules, and their relationships into the graph under a single language-agnostic schema. Where a toolchain is available, compiler-grade frontends layer exact facts on top (libclang for C/C++, go/types for Go, and opt-in Roslyn, javac and Jedi for C#, Java and Python), and dynamic tracing merges calls observed at runtime. Tree-sitter stays the backbone: a trace only sees code that ran, and a compiler frontend only covers what its toolchain can build.
  2. RAG system (codebase_rag/). An interactive CLI that turns natural language into Cypher queries, retrieves matching code, and drives AI-powered editing and optimisation.
Source Code -> Tree-sitter Parser -> AST Analysis -> Knowledge Graph

| User Query -> AI Model (Cypher Gen) -> Cypher Query -> Graph Results -> Response

The graph is stored in an embedded SQLite file by default. Memgraph and Neo4j are opt-in backends that run the same Cypher; Graph Backends compares them.

See the Architecture Overview and Graph Schema for the full picture.

Supported Languages

Python, TypeScript, TSX, JavaScript, Rust, Go, Java, C, C++, C#, PHP, Lua, Dart, and Julia are fully supported. Scala is in development, and Ruby, Kotlin, Swift, Elixir, Haskell, Solidity, Bash, and Nix have structural support (modules, functions, classes where the language has them, and imports) through the pluggable ast-grep tier. See the Language Support matrix for per-language capabilities.

Installation

cgr is published to PyPI. Install it system-wide with the treesitter-full (tree-sitter grammars), ast-grep (Ruby, Kotlin, Swift, Elixir, Haskell, Solidity, Bash, Nix) and semantic (vector search) extras:

# with uv (recommended)

uv tool install "code-graph-rag[treesitter-full,ast-grep,semantic]"

or with pipx

pipx install "code-graph-rag[treesitter-full,ast-grep,semantic]"

Which version am I getting?

Three version lines exist and they intentionally differ:

wherewhat it tracks
git tagsevery version, one per merge
GitHub Releases (binaries, signatures)every 50th version, plus any security fix, breaking change or merge labelled release now
PyPIevery 50th version, plus any security fix, breaking change or merge labelled release now

So the newest tag on main usually runs ahead of the newest release, often by tens of patch versions; they coincide only just after a release. Nothing is stuck, the cadences differ by design. A security fix, a breaking change or a merge a maintainer labels release now does NOT wait for the cadence: each ships a release and a PyPI upload immediately.

uv tool install and pipx install give you the newest PyPI version, which is the newest RELEASE, not the newest tag. Interim tags exist so every merge is addressable; binaries and PyPI uploads follow the cadence above.

To run code newer than the latest release, install from git:

uv tool install "code-graph-rag[treesitter-full,ast-grep,semantic] @ git+https://github.com/vitali87/code-graph-rag@main"

To upgrade an existing install, run uv tool upgrade code-graph-rag (with pipx, pipx upgrade code-graph-rag, or pipx reinstall code-graph-rag for a git install). Upgrade covers the other install methods.

You also need Python 3.12+ and ripgrep. The graph lives in an embedded SQLite file by default, so there is no database server to run: no Docker and no cmake. Memgraph and Neo4j remain available as opt-in backends (Graph Backends). Full prerequisites, source installs, and environment setup are in the Installation guide.

[!NOTE]

cgr requires its native extension, cgr-graph-rs, which ships for CPython 3.12 or newer on Linux (x86_64, aarch64), macOS and Windows x64, so it installs on those platforms only. Older system interpreters (Debian Bookworm ships 3.11) need the interpreter pinned explicitly; see Installation for the commands.

Quick Start

# Parse a repository into the graph, then query it

cgr start --repo-path /path/to/repo --update-graph cgr start --repo-path /path/to/repo

The graph is written to ~/.cgr/graph.sqlite (set SQLITE_GRAPH_PATH to move it). To use Memgraph instead, install the driver with the memgraph extra, set GRAPH_BACKEND=memgraph, and start the packaged Memgraph + Qdrant stack with cgr daemon up.

Repeat the first command for each repository you want indexed; the graph is shared, and syncing one project leaves the others alone. To start over from an empty graph, add --clean — it deletes every project in the shared graph, not just this one, and asks for confirmation first when other projects would be destroyed.

A default index leaves out the opt-in capture groups; add them with --capture or CGR_CAPTURE.

The Quick Start guide walks through parsing, querying, and exporting in five minutes.

MCP Server

Code-Graph-RAG runs as an MCP server so Claude Code and other MCP clients can query and edit your codebase directly. See the MCP Server guide for setup.

Documentation

Getting Started

User Guide

Architecture

Python SDK

  • [Overview](docs/sdk/overview.md

只显示了开头部分;其余内容请在仓库中阅读