经 AI Skill Hub 精选评估,开源MCP工具 获评「推荐使用」。这款MCP工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 7.5 分,适合有一定技术背景的用户使用。
本项目提供了一个开源的MCP工具,用于构建本地认知基础设施,支持AI编码代理的语义记忆和仓库管理。它可以帮助开发者更好地组织和管理代码,提高开发效率。
开源MCP工具 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
本项目提供了一个开源的MCP工具,用于构建本地认知基础设施,支持AI编码代理的语义记忆和仓库管理。它可以帮助开发者更好地组织和管理代码,提高开发效率。
开源MCP工具 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/ashlesh-t/cognirepo
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"--mcp--": {
"command": "npx",
"args": ["-y", "cognirepo"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 开源MCP工具 执行以下任务... Claude: [自动调用 开源MCP工具 MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"__mcp__": {
"command": "npx",
"args": ["-y", "cognirepo"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
- Python 3.11+ - API key (optional — only needed for cognirepo ask): ANTHROPIC_API_KEY, GEMINI_API_KEY, OPENAI_API_KEY, or GROK_API_KEY. Indexing, memory, summarization, and all MCP tools work fully offline.
Indexed 4 real repos, measured with cognirepo index-repo + context_pack queries. CPU-only, no GPU.
| Repo | Files | Index time | Lookup latency | precision@3 |
|---|---|---|---|---|
| flask | 83 | 12s | 0.011 ms | **100%** |
| fastapi | 1,122 | 34s | 0.005 ms | **89%** |
| celery | 416 | 44s | 0.025 ms | **100%** |
| ansible | 1,813 | 145s | 0.018 ms | **80%** |
All repos: symbol hit rate 5/5, lookup latency < 0.1ms. All quality gates pass. Full numbers: docs/METRICS.md.
Run cognirepo benchmark on your own codebase to reproduce. See docs/METRICS.md.
---
pipx install cognirepo
That's it. cognirepo setup handles the rest — it installs optional extras (languages, security, providers) via pipx inject automatically when you enable them in the wizard.
Why pipx? It creates an isolated venv for cognirepo automatically sofastembedand all deps install cleanly. Thecognirepocommand is then globally available in every directory — no per-repo venv needed. Arch Linux / Debian 12+ / Ubuntu 24.04+: Do NOTpip installinto system Python. These distros enforce PEP 668 and block system-wide pip installs. Use pipx.
```bash
#### Development install (from source)
bash pipx install -e '.[dev,security,languages]'
```
Note: CPU-only embeddings are the default (fastembed/ONNX, no PyTorch/CUDA required). For GPU: pipx inject cognirepo 'cognirepo[gpu]' then install torch separately.
cp .env.example .env # add your API keys
docker compose up mcp # MCP stdio server
---
cognirepo init # scaffold + configure; auto-indexes + auto-summarizes cognirepo setup-env # interactive API key wizard cognirepo test-connection # test API key connectivity cognirepo migrate-config # migrate deprecated config keys
{
"depth_preference": "detailed",
"top_question_type": "how",
"question_type_distribution": {"how": 12, "why": 8, "fix": 5},
"top_terminology": ["auth", "token", "session", "middleware", "validate"],
"code_focus_percent": 73,
"framing_hints": "prefers detailed responses; often asks 'how' questions; domain vocabulary: auth, token, session",
"total_queries_tracked": 47
}
Claude receives framing_hints at session start and adjusts response length, code density, and terminology accordingly. The profile accumulates over time — more accurate the more you use it.
---
All 34 tools are available to Claude, Cursor, and any MCP-compatible client.
```bash
cognirepo setup
本项目提供了一个开源的MCP工具,具有很好的组织和管理代码的能力,适合用于AI编码代理的开发。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
AI Skill Hub 点评:开源MCP工具 的核心功能完整,质量良好。对于Claude Desktop / Claude Code 用户来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | cognirepo |
| Topics | aiai-agents-automationai-agents-cliai-agents-mcpmcppython |
| GitHub | https://github.com/ashlesh-t/cognirepo |
| License | MIT |
| 语言 | Python |
收录时间:2026-06-14 · 更新时间:2026-06-14 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端