MCP Gateway Protocol

Persistent memory for your AI coding agents.

A self-hosted MCP server and project wiki that preserves decisions, context, and task state across agent sessions.

Launch WorkspaceExplore Live Demo
$agy add mcp cerebro http://localhost:3000/api/mcp
Supported agents:
Claude Code Codex Cursor Windsurf Antigravity
Active Workspacecerebro
Claude Code19:14:02

Indexed schema & route auth

Antigravity18:42:19

Implemented MCP stdio bridge

Telemetry
Wiki pages:18
Handoffs:54
Active tokens:3
session_get(id="85e3b8ad")

Handoff: Authentication Flow & Route Protection

Ready for continuation
Agent Summary: "Configured bearer token validation in lib/auth.ts and verified rate limits on /api/mcp. The incoming agent should run the integration test suite and register the new tool endpoints."
Touched Files
  • lib/auth.ts
  • app/api/mcp/route.ts
  • tests/mcp-auth.test.ts
Next Action Items
  • Verify session restore via stdio MCP bridge
  • Add memory sub-page for export API contracts

Built for agent continuity and developer control.

Everything your multi-agent workflow needs to stop losing context mid-sprint.

Persistent Knowledge WikiKarpathy Pattern

Curated project memory that compounds over time.

Unlike raw conversation history, Cerebro structures project rules, API decisions, and architectural contracts into an interlinked markdown wiki with backlink resolution and frontmatter queries.

project-memory / auth-rules.md2 backlinks

# Authentication Guardrails
- Bearer tokens expire in 90 days.
- References: [[api-gateway]], [[deployment-vps]]

Cryptographic Tokens

Scoped token security.

Issue dedicated API keys per agent or IDE. Revoke access instantly without disturbing existing workspaces.

claude-cli-tokenactive
codex-agent-keyactive
Graph Explorer

Visual knowledge graph.

Obsidian-style 2D and 3D force-directed graphs rendered client-side directly from your wiki pages.

Task Hub & Agent Instructions

Separate human notes from AI execution prompts.

Cerebro to-dos feature dual-channel fields: human notes for your reference, and dedicated agent instructions that MCP tools ingest automatically during execution.

Human Notes:

"Implement token rotation logic for session recovery."

Agent Instructions:

"Call auth:rotateToken internal mutation and assert expiration timestamp updates in tests."

The four-stage handoff lifecycle.

How context seamlessly bridges across separate LLM sessions without human copy-pasting.

01

Capture

Active agent saves finished work, touched files, and pending decisions directly to the MCP session ledger.

02

Index

Convex updates the project wiki catalog and cross-references task state with persistent storage.

03

Retrieve

Incoming agent connects via MCP and pulls relevant wiki context and active tasks in a single tool call.

04

Resume

Execution continues immediately from the saved plan without wasting tokens re-explaining the codebase.

Get Started Now

Give your AI agents permanent memory today.

Spin up a self-hosted Cerebro instance in minutes. Transfer context across Claude, Codex, Cursor, and Antigravity with zero friction.