Context intelligence for AI coding agents: navigation, impact, memory, guarded edits.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
💡 Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Map the repository · resolve symbols · retrieve task-specific evidence · estimate impact · edit with guardrails
⭐ Star CodeCortex · ❤️ Support Project · Documentation · Latest Release · Contribute
A coding agent can read code. The harder problem is deciding what matters, what is connected, what can break, and how much context is actually worth sending to the model.
CodeCortex turns a repository into a query-specific evidence system for coding agents:
Core rule: retrieve evidence before generating confidence.
Requires Python 3.11–3.13.
Then ask the repository useful questions:
Or expose the repository to an MCP-capable coding agent:
CodeCortex includes merge-safe project configuration for Claude Code, Codex, Cursor, Gemini CLI, and OpenCode.
The configurator only manages CodeCortex-owned MCP entries and keeps user-owned configuration intact.
The repository ships a deterministic demo project and demo runner:
The demo indexes the fixture repository, analyzes the blast radius of AuthService, routes an evidence request, and reports measured context/trace data. It does not fabricate benchmark values.
These are committed hardening measurements, not generalized performance promises:
| Evidence | Recorded result |
|---|---|
| Hardening test suite | 711 passed, 28 skipped, 0 failed |
| Coverage in hardening report | 91.74% |
| Warm exact definition lookup | 0.19–0.23 ms median |
| Freshness scan across 600 documents | 4.25 ms median |
See HARDENING_REPORT.md and benchmarks/ for scope, methodology, limitations, and reproducibility notes.
❤️ Support CodeCortex — If CodeCortex saves you time, consider supporting its continued open-source development. Crypto support →
CodeCortex turns a software repository into a query-specific evidence system for AI coding agents.
It sits between an agent and a codebase. It builds durable intelligence about repository structure, symbols, relationships, Git history, ownership, architecture, team decisions, impact, and validation. For each task, it tries to return the smallest useful evidence package instead of forcing the model to reopen broad parts of the repository and reconstruct the same facts again.
CodeCortex is not another general chat UI. It is not a model provider. It does not claim that an agent becomes infallible. It is context infrastructure: a layer that improves what the agent gets to reason with.
Core rule: retrieve evidence before generating confidence.
A strong coding model can read code. The harder engineering problem is deciding what deserves attention, what is connected to it, what changed, what is ambiguous, who owns the area, and what can break after a change.
Without a context engine, the work often looks like this:
search filenames → open broad files → rediscover architecture → guess symbol ownership → infer references → inspect Git manually → guess blast radius → consume a large context window → edit → discover a hidden dependency later
CodeCortex changes the stream:
task → classify intent → gather repository evidence → rank evidence for this task → preserve provenance and uncertainty → fit evidence into a context budget → expose one agent-facing surface → validate the proposed change
The goal is not more context.
The goal is higher-value evidence per token.
The repository remains the source of executable truth. Graphs, memory, semantic retrieval, architecture inference, and summaries help interpretation. They do not replace current source, configuration, and tests.
No reviews yet — be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/codecortex-context-engine)<a href="https://allmcps.com/mcp/codecortex-context-engine"><img src="https://allmcps.com/api/badge/codecortex-context-engine?style=directory" alt="CodeCortex Context Engine on AllMCPs" /></a>