Self-hosted AI Agent Memory + Code Intelligence Platform — one MCP endpoint for persistent memory, AST-aware code search, shared knowledge, and quality enforcement across all your AI coding agents.
<p align="center">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="docs/assets/logo.png">
<img src="docs/assets/logo.png" alt="Cortex Hub" width="120" />
</picture>
</p>
<h1 align="center">Cortex Hub</h1>
<p align="center">
<strong>Self-hosted AI Agent Memory + Code Intelligence Platform</strong><br/>
<em>One MCP endpoint for every AI agent — persistent memory, AST-aware code search, quality enforcement.</em>
</p>
<p align="center">
<a href="#why-cortex">Why</a> ·
<a href="#features">Features</a> ·
<a href="#benchmarks">Benchmarks</a> ·
<a href="#quick-start">Quick Start</a> ·
<a href="#mcp-tools">MCP Tools</a> ·
<a href="#docs">Docs</a>
</p>
<p align="center">
<img src="https://img.shields.io/badge/MCP-compliant-8A2BE2?style=flat-square" alt="MCP" />
<img src="https://img.shields.io/badge/node-%E2%89%A522-43853d?style=flat-square&logo=node.js&logoColor=white" alt="Node" />
<img src="https://img.shields.io/badge/pnpm-9.x-F69220?style=flat-square&logo=pnpm&logoColor=white" alt="pnpm" />
<img src="https://img.shields.io/badge/docker-24%2B-2496ED?style=flat-square&logo=docker&logoColor=white" alt="Docker" />
<img src="https://img.shields.io/badge/license-MIT-green?style=flat-square" alt="License" />
</p>
---
## Why Cortex?
Every AI coding agent works in **isolation**. Switch IDE, switch machine, switch project — the agent starts from zero. Your team's hard-won decisions, bug fixes, and architectural patterns live and die inside individual chat sessions.
**Cortex Hub** is a self-hosted backend that gives **every agent on your team persistent memory, shared knowledge, and cross-project intelligence** via a single [MCP](https://modelcontextprotocol.io/) endpoint:
```
Claude Code Cursor Antigravity Codex Cursor
│ │ │ │ │
└──────────┴────────────┴───────────┴─────────┘
│
Agent that generates comprehensive documentation, API references, architecture diagrams, and developer onboarding guides from existing code.
Agent configuration for systematic bug investigation that traces issues from error logs through the codebase to root cause with suggested fixes.
Agent for integrating third-party APIs including SDK setup, type generation, error handling, retry logic, and rate limit management.
Cursor's built-in autonomous coding agent that can make multi-file edits, run terminal commands, search the codebase, and iteratively build features with minimal human intervention.
Cloud-based autonomous coding agent that runs in the background on remote sandboxed environments, handling complex multi-step tasks while you continue working.
Cursor's multi-file editing agent within Composer mode that can create, edit, and delete files across your entire project in a single conversation.