codebase-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@codebase-mcpsearch for how authentication works in the backend"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
codebase-mcp
Remote MCP server that indexes your repos and lets AI agents search them semantically.
Developers connect by adding a URL — no local install needed.
Quick Start
1. Configure repos
Edit config.yaml:
repos:
- name: my-backend
path: /path/to/local/repo
extensions: [".py", ".ts", ".java"]
- name: my-frontend
url: https://github.com/your-org/frontend.git
branch: main
extensions: [".ts", ".tsx"]2. Run
With Docker:
docker compose up --buildWithout Docker:
python -m venv .venv && source .venv/bin/activate
pip install mcp chromadb sentence-transformers tree-sitter tree-sitter-python tree-sitter-javascript tree-sitter-typescript tree-sitter-java pyyaml gitpython pydantic pydantic-settings structlog uvicorn
python -m src.serverFirst run downloads the embedding model (~80MB) and indexes all repos. Subsequent runs are incremental (only changed files).
3. Connect your IDE
Claude Desktop — edit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"codebase": {
"url": "http://localhost:8080/mcp"
}
}
}Cursor — edit .cursor/mcp.json:
{
"mcpServers": {
"codebase": {
"url": "http://localhost:8080/mcp"
}
}
}Claude Code — edit .mcp.json:
{
"mcpServers": {
"codebase": {
"url": "http://localhost:8080/mcp"
}
}
}Replace localhost:8080 with your server's actual address when hosting remotely.
Related MCP server: PAMPA
Tools
Tool | What it does |
| Natural language search: "how does auth work" |
| Exact lookup: "show me UserService" |
| File structure without bodies (saves tokens) |
| What's indexed |
| Trigger re-indexing |
All tools accept an optional repo_name parameter to filter by repo.
Architecture
IDE (Claude/Cursor) → Streamable HTTP → MCP Server → ChromaDB
↑
tree-sitter AST chunking
+ sentence-transformers embeddings
+ git clone/pull on scheduleChunking: tree-sitter parses code into functions, classes, methods (not character splits)
Embeddings: sentence-transformers (default
all-MiniLM-L6-v2, orjina-embeddings-v2-base-codefor better code search)Storage: ChromaDB with cosine similarity
Incremental: file MD5 hashes tracked, only changed files re-embedded
Scheduled: auto git pull + re-index every N minutes (configurable)
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceEnables semantic code search across multiple repositories using natural language queries. Provides intelligent code discovery, symbol lookups, and cross-repo dependency analysis for AI coding agents.Last updatedMIT
- Alicense-qualityCmaintenanceProvides semantic code search and retrieval capabilities for AI agents, enabling them to query codebases using natural language with automatic learning, hybrid search, and intelligent chunking of functions and classes.Last updated3929ISC
- Alicense-qualityDmaintenanceEnables AI agents to intelligently navigate and understand codebases by providing instant file descriptions, semantic search, and context-aware recommendations, eliminating the need to repeatedly scan files.Last updated18MIT
- Alicense-qualityDmaintenanceEnables AI agents to chat with codebases by indexing local directories or GitHub repositories into a vector database for semantic search and code retrieval.Last updated15MIT
Related MCP Connectors
Persistent memory and knowledge management for AI agents with semantic search and 50+ tools.
Shared knowledge base for AI agents. Semantic search across agents, no setup required — just a URL.
Give your AI agent a persistent map of your project's structure, dependencies, and bugs.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/theunreal/codebase-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server