OpenSEO
Keyword research, site audits, rank tracking and AI visibility for your AI agent.
Knowledge-graph RAG for multi-language codebases: index, query and edit code in natural language.
选择你使用的 AI 应用,然后复制设置。
通过 3/3 项检查 · 在你的电脑上运行 · ✓ 命令已检查 2026年11月14日
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
可连接 Claude,但需要先准备
需要 Code-Graph-RAG 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
把这段话复制到 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 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
uv --versionMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: uv 没有点选式安装程序。从 uv 官方页面复制适合你系统(macOS 或 Windows)的一行命令,粘贴到终端 · 不需要单独安装 Python,uv 会在需要时自动下载
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: uv --version
安装一次,所有需要 uv 的工具都能用
SettingsDeveloperEdit Config
{
"mcpServers": {
"code-graph-rag": {
"command": "uvx",
"args": [
"code-graph-rag",
"mcp-server"
],
"env": {
"ORCHESTRATOR_API_KEY": "your-value",
"CYPHER_API_KEY": "your-value"
}
}
}
}只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
用 Code-Graph-RAG 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude 说正在使用 Code-Graph-RAG,或回答中出现 Code-Graph-RAG 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
ORCHESTRATOR_PROVIDER orchestrator 智能体的 LLM 提供商(openai、anthropic、google、azure、cohere、ollama) ORCHESTRATOR_MODEL orchestrator 智能体的模型名称 CYPHER_PROVIDER Cypher 查询生成的 LLM 提供商(openai、anthropic、google、azure、cohere、ollama) CYPHER_MODEL 用于生成 Cypher 查询的模型名称 MEMGRAPH_HOST Memgraph 数据库的主机名 MEMGRAPH_PORT Memgraph 数据库的端口 TARGET_REPO_PATH 要分析的代码仓库路径(若未设置,则从工作目录自动检测) 说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 Code-Graph-RAG
Code-Graph-RAG 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器
A · 使用能连接 Code-Graph-RAG 的应用
可连接 Claude Code,但需要先准备
需要 Code-Graph-RAG 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次)
把这段话复制到 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 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
uv --versionMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: uv 没有点选式安装程序。从 uv 官方页面复制适合你系统(macOS 或 Windows)的一行命令,粘贴到终端 · 不需要单独安装 Python,uv 会在需要时自动下载
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: uv --version
安装一次,所有需要 uv 的工具都能用
Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell
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”改成你的密钥
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
应能看到 Code-Graph-RAG 在列表中并显示已连接
用 Code-Graph-RAG 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude Code 说正在使用 Code-Graph-RAG,或回答中出现 Code-Graph-RAG 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
ORCHESTRATOR_PROVIDER orchestrator 智能体的 LLM 提供商(openai、anthropic、google、azure、cohere、ollama) ORCHESTRATOR_MODEL orchestrator 智能体的模型名称 CYPHER_PROVIDER Cypher 查询生成的 LLM 提供商(openai、anthropic、google、azure、cohere、ollama) CYPHER_MODEL 用于生成 Cypher 查询的模型名称 MEMGRAPH_HOST Memgraph 数据库的主机名 MEMGRAPH_PORT Memgraph 数据库的端口 TARGET_REPO_PATH 要分析的代码仓库路径(若未设置,则从工作目录自动检测) 说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
可连接 Cursor,但需要先准备
需要 Code-Graph-RAG 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次)
把这段话复制到 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 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
uv --versionMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: uv 没有点选式安装程序。从 uv 官方页面复制适合你系统(macOS 或 Windows)的一行命令,粘贴到终端 · 不需要单独安装 Python,uv 会在需要时自动下载
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: uv --version
安装一次,所有需要 uv 的工具都能用
在 Code-Graph-RAG 的设置中,ORCHESTRATOR_API_KEY, CYPHER_API_KEY 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
用 Code-Graph-RAG 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Cursor 说正在使用 Code-Graph-RAG,或回答中出现 Code-Graph-RAG 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
ORCHESTRATOR_PROVIDER orchestrator 智能体的 LLM 提供商(openai、anthropic、google、azure、cohere、ollama) ORCHESTRATOR_MODEL orchestrator 智能体的模型名称 CYPHER_PROVIDER Cypher 查询生成的 LLM 提供商(openai、anthropic、google、azure、cohere、ollama) CYPHER_MODEL 用于生成 Cypher 查询的模型名称 MEMGRAPH_HOST Memgraph 数据库的主机名 MEMGRAPH_PORT Memgraph 数据库的端口 TARGET_REPO_PATH 要分析的代码仓库路径(若未设置,则从工作目录自动检测) 说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同
可连接 VS Code,但需要先准备
需要 Code-Graph-RAG 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次)
把这段话复制到 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 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
uv --versionMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: uv 没有点选式安装程序。从 uv 官方页面复制适合你系统(macOS 或 Windows)的一行命令,粘贴到终端 · 不需要单独安装 Python,uv 会在需要时自动下载
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: uv --version
安装一次,所有需要 uv 的工具都能用
在 Code-Graph-RAG 的设置中,ORCHESTRATOR_API_KEY, CYPHER_API_KEY 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
用 Code-Graph-RAG 告诉我你能帮我做什么,然后做一件给我看✓ 如果 VS Code 说正在使用 Code-Graph-RAG,或回答中出现 Code-Graph-RAG 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
ORCHESTRATOR_PROVIDER orchestrator 智能体的 LLM 提供商(openai、anthropic、google、azure、cohere、ollama) ORCHESTRATOR_MODEL orchestrator 智能体的模型名称 CYPHER_PROVIDER Cypher 查询生成的 LLM 提供商(openai、anthropic、google、azure、cohere、ollama) CYPHER_MODEL 用于生成 Cypher 查询的模型名称 MEMGRAPH_HOST Memgraph 数据库的主机名 MEMGRAPH_PORT Memgraph 数据库的端口 TARGET_REPO_PATH 要分析的代码仓库路径(若未设置,则从工作目录自动检测) 说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同
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-serverClaude 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 envORCHESTRATOR_MODEL envORCHESTRATOR_API_KEY 机密 必填 envCYPHER_PROVIDER envCYPHER_MODEL envCYPHER_API_KEY 机密 必填 envMEMGRAPH_HOST envMEMGRAPH_PORT envTARGET_REPO_PATH env说明为自动翻译,变量名保持原样;不确定时请查看原文。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月15日
注册名称已通过 GitHub 账户 vitali87 验证,该账户拥有此仓库
代码最后更新于前天
使用 MIT
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
OSV.dev 中没有 code-graph-rag@0.6.30 的记录
只检查这个版本的包本身,不包括所有依赖 · 检查于 2026年11月15日
提问、分享技巧或报告无法使用。按“有帮助”数量排序。
还没有评价
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 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
Keyword research, site audits, rank tracking and AI visibility for your AI agent.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
Mock, record/replay, verify and chaos-test any HTTP, REST, gRPC or LLM dependency over MCP.
Official Microsoft Learn MCP Server – real-time, trusted docs & code samples for AI and LLMs.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
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.
See NEWS.md for the full history.
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:
cgr trace and merge the calls that actually happened into the graph, exposing dispatch that static analysis cannot see.The system has two components:
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.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.
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.
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]"
pipx install "code-graph-rag[treesitter-full,ast-grep,semantic]"
Three version lines exist and they intentionally differ:
| where | what it tracks |
|---|---|
| git tags | every version, one per merge |
| GitHub Releases (binaries, signatures) | every 50th version, plus any security fix, breaking change or merge labelled release now |
| PyPI | every 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.
# 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.
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.
Getting Started
User Guide
Architecture
Python SDK