Event ·Single source

CodeGraph 开源 MCP 服务器:减少 Claude Code 94% 工具调用

CodeGraph 是一个开源的 MCP 服务器,通过预索引代码库为本地知识图谱,让 AI 代理直接查询图谱而非扫描文件,从而大幅减少工具调用。在六个真实项目测试中,平均减少 92% 工具调用,探索速度提升 71%,在 TypeScript 和 Java 代码库上分别减少 94% 和 96% 的调用。它基于 Tree-sitter 解析语法树,使用 SQLite 存储符号和调用关系,支持 19 种以上语言,完全本地运行,无需 API 密钥。只需一条 npx 命令即可设置,文件监视器可保持图谱实时更新。

Current read

对于频繁使用 Claude Code 进行代码库探索的开发者,CodeGraph 能显著降低 token 消耗和等待时间,实测效果惊人,值得立即尝试。

2 sources73° AI heatLast updated 2026/5/14 16:39:45

Evidence

2 sources

Conflict check

Dedup data only shows that these sources discuss the same event, not that they agree. There is no structured supporting or refuting evidence yet, so no conflict is inferred automatically.