
danyqe/codebase-mcp 是从 https://github.com/danyqe/codebase-mcp. 导入的一个 MCP 服务器候选
概览
danyqe/codebase-mcp 是从 https://github.com/danyqe/codebase-mcp. 导入的一个 MCP 服务器候选
概述(AI 翻译)
通过MCP提供隐私优先的AI开发助手 |将Claude变成你的个人编码助手 |语义代码搜索 • AI辅助编辑 • 质量检查生成 • 持久内存 |免费开源的Cursor和付费AI编码工具替代品 |Python、React、TypeScript、FastAPI
开源**
代码库MCP是一个开源的AI驱动开发助手,通过模型上下文协议将Claude Desktop(或任何兼容MCP的LLM)连接到你的代码库。别再为单独的编码助手付费了——如果你已经有Claude订阅,那就足够了。
📖 阅读完整文档 |🏗️架构🤝贡献
🌟 为什么选择代码库MCP?
问题
现代AI编码助手如Cursor、Windsurf等,在现有LLM订阅基础上收费为每月20-40美元+。如果你已经付费使用Claude,为什么还要再为编码助理付费呢?
解决方案
代码库MCP将你现有的Claude订阅变成强大的编码助手:
- ✅ 一个订阅 - 使用您现有的Claude Pro/Team套餐
- ✅ 隐私优先 - 本地嵌入和处理(编辑操作除外)
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Codebase MCP
Privacy-first AI development assistant via MCP | Turn Claude into your personal coding assistant | Semantic code search • AI-assisted editing • Quality-checked generation • Persistent memory | Free open-source alternative to Cursor & paid AI coding tools | Python, React, TypeScript, FastAPI
Open Source**
Codebase MCP is an open-source AI-powered development assistant that connects Claude Desktop (or any MCP-compatible LLM) to your codebase through the Model Context Protocol. Stop paying for separate coding assistants - if you already have a Claude subscription, that’s all you need.
📖 Read Full Documentation | 🏗️ Architecture | 🤝 Contributing
🌟 Why Codebase MCP?
The Problem
Modern AI coding assistants like Cursor, Windsurf, and others charge $20-40+/month on top of your existing LLM subscription. If you already pay for Claude, why pay again for a coding assistant?
The Solution
Codebase MCP turns your existing Claude subscription into a powerful coding assistant:
- ✅ One subscription - Use your existing Claude Pro/Team plan
- ✅ Privacy-first - Local embeddings and processing (except edit operations)
- ✅ Open source - Apache 2.0 license, community-driven
- ✅ Extensible - Works with any MCP-compatible LLM via Model Context Protocol
- ✅ Lightweight - ~100MB memory footprint for medium projects
- ✅ Fast - Sub-second semantic search with local FAISS indexing
⚡ Quick Start
Prerequisites
- Python 3.11+
- Claude Desktop (or any MCP-compatible client)
- Git installed
- uv package manager (recommended)
Installation
1. Clone the repository:
git clone https://github.com/danyQe/codebase-mcp.git
cd codebase-mcp
2. Install globally (recommended):
# Install uv if you haven't
pip install uv
# Create virtual environment and install dependencies
uv venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
uv pip install -r requirements.txt
# Install formatters globally (required for code formatting)
pip install black ruff
3. Configure Gemini API (for edit tool):
# Create .env file
cp .env.example .env
# Get free API key from: https://aistudio.google.com/app/apikey
# Add to .env:
GEMINI_API_KEY=your_api_key_here
4. Configure Claude Desktop:
Add to your claude_desktop_config.json:
{
"mcpServers": {
"codebase-manager": {
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"codebase-manager": {
"command": "/path/to/your/.venv/bin/python",
"args": [
"/path/to/codebase-mcp/mcp_server.py"
]
}
}
}