
codebase-context
by PatrickSys·★ 44·Score 45
An MCP server that maps codebase conventions and provides semantic search for AI agents to understand architecture and patterns.
Overview
Codebase-context generates a map of your codebase to help AI agents understand your architecture, coding conventions, and patterns before they start searching. It provides bounded conventions mapping, pattern detection, semantic search with quality indicators, and team memory functionality. The server supports both stdio and HTTP modes, works with multiple AI clients, and offers multi-project support with different languages.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Teams wanting to help AI assistants understand their specific codebase conventions and architecture before making changes, reducing the need for broad searches.
When NOT to choose this
You need write access capabilities (this tool is primarily read-only), or if you're working with very small codebases where the indexing overhead isn't justified.
Tools this server exposes
10 tools extracted from the READMEsearch_codebaseHybrid search + decision card when intent='edit'
get_team_patternsPattern frequencies, golden files, conflict detection
get_symbol_referencesConcrete references to a symbol (count + snippets)
rememberRecord a convention, decision, gotcha, or failure
get_memoryQuery team memory with confidence decay scoring
get_codebase_metadataProject structure, frameworks, dependencies
get_style_guideStyle guide rules for the current project
detect_circular_dependenciesImport cycles between files
refresh_indexFull or incremental re-index + git memory extraction
get_indexing_statusProgress and stats for the current index
Comparable tools
Installation
Install via npm: npm install -g codebase-context
Add to Claude Desktop:
{
"mcpServers": {
"codebase-context": {
"command": "npx",
"args": ["-y", "codebase-context"]
}
}
}For HTTP mode, configure with --http flag and set port to 3100.
FAQ
- How does codebase-context differ from code search tools?
- It starts with a bounded conventions map showing architecture layers and patterns before searching, rather than dumping raw search results. It also provides pattern trend analysis and quality indicators.
- What languages are supported?
- Full symbol extraction for 10 languages (TS, JS, Python, Java, Kotlin, C, C++, C#, Go, Rust) and indexing coverage for 30+ languages including PHP, Ruby, Swift, and Shell.
Compare codebase-context with
Last updated · Auto-generated from public README + GitHub signals.