
Code Context Engine
by elara-labs
Index your codebase to save up to 94% on AI coding tokens. AI searches a local index instead of reading full files.
What it does
Code Context Engine (CCE) is a local MCP server that indexes your codebase using tree-sitter AST parsing and vector embeddings. Instead of AI agents reading entire files—which consumes massive amounts of input tokens—CCE allows agents to search for specific, relevant code chunks, significantly reducing costs and improving response latency.
Tools
context_search: Hybrid vector + BM25 search with graph expansion to find relevant code.expand_chunk: Retrieves the full source for a compressed result.related_context: Finds related code via graph edges (calls, imports).session_recall: Recalls decisions and context from previous sessions.record_decision: Saves a key architectural or coding decision for future sessions.record_code_area: Tracks specific files and areas worked in during a session.index_status: Checks the current freshness of the codebase index.reindex: Forces a re-index of a specific file or the entire project.set_output_compression: Adjusts the verbosity of the AI's responses.
Installation
Run the following command to install, index, and configure your project in one shot:
uvx --from "code-context-engine[local]" cce init
For Claude Desktop, add the following to claude_desktop_config.json:
{
"mcpServers": {
"code-context-engine": {
"command": "uvx",
"args": ["--from", "code-context-engine[local]", "cce"
}
}
}
Supported hosts
Confirmed for Claude Code, Cursor, VS Code Copilot, Gemini CLI, and Codex.
Quick install
uvx --from "code-context-engine[local]" cce initInformation
- Pricing
- free
- Published
- 7/2/2026
- stars
- 0
Categories
Choose your AI client and follow the steps below.
Codex
Run 'cce init' to configure ~/.codex/config.tomlCursor
Run 'cce init' to automatically configure .cursor/mcp.jsonGemini CLI
Run 'cce init' to configure .gemini/settings.jsonClaude Desktop
Add to claude_desktop_config.json using uvx --from 'code-context-engine[local]' cceVS Code Copilot
Run 'cce init' to configure .vscode/mcp.json





