
codebase-synapse
io.github.iwiels由 GitHub 账号 iwiels 发布v0.1.13更新于 Oct 25, 2026
Indexes codebase into a local knowledge graph with 40+ AI tools and codebase-guard.
发布方自己的服务:Codebase
概览
一个本地 MCP 服务器,读取预先构建的代码库 SQLite 知识图谱,让助手搜索代码、追踪调用链并分析改动影响。
- 可以做什么
- 搜索与发现代码:语义搜索、全文搜索、符号搜索、混合搜索,以及结构相似度和跨项目符号定位。浏览知识图谱:调用者与被调用者、导入与依赖方、最短路径、死代码、PageRank 和类 Cypher 图查询。查看架构:项目概览、文件结构、路由映射、模块边界与聚类。分析 git 历史:文件考古、热点、变更耦合和近期语义变更。维护记忆与上下文:持久和会话笔记、为编辑准备的预算上下文、工作集以及架构决策记录。
- 适用场景
- 当助手需要针对大型代码库给出有结构依据的答案而非猜测时适用,例如调用链、编辑前的依赖影响、架构热点或某个文件的历史。适合已在本机代码库上使用支持 MCP 的编程客户端的开发者。
- 运行要求
- 通过 npx 以 stdio 在本地运行(npm 包,附带 Windows、macOS 和 Linux 预编译二进制)。需先用独立的 CLI 命令为代码库建立索引,索引写入用户主目录下的本地 SQLite 数据库。无需 Docker、云服务、API 密钥或账号,嵌入模型在本地运行。
安装
在 SourceWeft 中
- 打开 控制台中的 codebase-synapse,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
🧠 Codebase Synapse
Give your AI agent a deep understanding of your entire codebase.
An MCP server that indexes your codebase into a local knowledge graph with 52 AI tools — semantic search, call-graph traversal, git archaeology, blast-radius analysis, and more.
[Codebase Synapse — Knowledge graph visualization]
Works with Claude Code · Cursor · Windsurf · Zed · Any MCP client
The Problem
AI coding agents (Claude, Cursor, etc.) are powerful — but they work with limited context. They can only see the files you open or feed them. Ask about call chains, architectural patterns, or blast-radius impact, and they guess.
Codebase Synapse fixes this. It indexes your entire repo into a local knowledge graph stored in SQLite, giving your AI agent real answers backed by structural analysis — not hallucinations.
How it works
⚡ Quick Start
1. Index your project (CLI, Zoekt-style)
Indexing runs as a separate CLI command and writes into ~/.codebase-synapse/codebase.db. The first index is the slow one; re-running it only re-indexes changed files. The MCP server never indexes — it only reads the pre-built index.
2. Start the MCP server
That's it. No Docker. No database setup. No cloud. The server starts via stdio and serves the pre-built index to your MCP client.
Configure your client
Claude Code / Claude Desktop
Add to your claude_desktop_config.json or mcp_servers.json:
Cursor
Add to your .cursor/mcp.json:
Other MCP clients
Any MCP client that supports stdio transport works. Just point it at:
✨ What It Does
🔍 Search & Discovery
🕸️ Knowledge Graph
🏗️ Architecture
🔬 Git Archaeology
🧠 Memory & Context
🛡️ Codebase Guard
Included as a bonus: codebase-guard is a PreToolUse hook for Claude Code that blocks writes to high-impact files until the agent runs impact_analysis first.
It uses PageRank scores and blast-radius data from the knowledge graph to identify architectural hubs. No more accidental edits to core files.
🔧 Technical Details
Supported Languages
Rust · Python · TypeScript · JavaScript · Go · Java · C# · PHP · C · C++
Architecture
🤝 Contributing
Contributions are welcome! The project uses standard Rust tooling:
📄 License
来源:README.md,提交 41a965b
工具
0版本历史
1- v0.1.13最新Sep 16, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。
其他 Codebase 集成
Codebase
design.codebase官方发布者
让 AI 助手构建、预览和更新 Web 应用,下载源代码,并在用户允许时发布。
Reactable Codebase Readiness Assessments
由 GitHub 账号 reactable-io 发布
远程 MCP 服务器,在 AI 代理中按 12 个维度为代码库打分,并给出问题发现、修复提示与重新评估。

Codebase Doctor
由 GitHub 账号 subhajitlucky 发布
只读的代码库审计工具,让编程助手扫描仓库中的密钥、依赖漂移、RLS 与鉴权问题,并给出带覆盖范围说明的审查结论。

Dsh Codebase Chat
由 GitHub 账号 shinzarou-eng 发布
一个本地优先的 MCP 服务器,可针对代码库给出带引用的回答,并生成审计与报告。

Codebase Chat
由 GitHub 账号 shinzarou-eng 发布
本地优先的代码库智能 MCP 服务器,让助手基于整个仓库进行问答、搜索、审计并安全修改代码,答案附带文件与行号引用。