
Context MCP
by maplenk
Token-efficient, structural code retrieval for AI agents using hybrid ranked search and graph analysis.
What it does
Context MCP is a local-first server that replaces inefficient grep-style codebase searches with a structural graph analysis. It parses code into an AST, stores it in SQLite, and uses a combination of PageRank, BM25, and semantic similarity to find the most relevant code symbols.
Tools
context: Hybrid ranked search for discovery based on lexical and semantic signals.search_code: High-performance regex search across the indexed codebase.explore: Symbol discovery with integrated dependency analysis.read_symbol: Bounded, token-efficient inspection of specific code symbols.impact: Blast radius analysis to determine the risk of changes to a symbol.trace_call_path: Traces the execution flow between two specific symbols.understand: Deep analysis of a symbol including callers, callees, and centrality.get_architecture_summary: Extracts community clusters and entry points of the project.
Installation
Build from source:
go build -tags "fts5" -o context-mcp ./cmd/context-mcp
Add to claude_desktop_config.json:
{
"mcpServers": {
"context-mcp": {
"command": "/absolute/path/to/context-mcp",
"args": ["-repo", "/absolute/path/to/your/project"]
}
}
}
Supported hosts
- claude
- codex
Quick install
go build -tags "fts5" -o context-mcp ./cmd/context-mcpInformation
- Pricing
- free
- Published






