The agentic database · MCP memory server

MADB: Local Causal Memory for AI Agents

Give Claude Code, Codex, and MCP-compatible agents durable memory with a traceable record of why they acted. Install in one command. No account. No hosted service. Your agent memory stays on your machine.

REASONING CORTEXTHINKING
agentic flow · observe → recall → reason → decide → act, each step caused_by the last
grounded in contextno hallucinated historyno token burn
What MADB is

Persistent, causal memory that installs in one command.

MADB (Meta-AgentsDB) is a local MCP memory server. It gives Claude Code, Codex, the Anthropic SDK, and any MCP-compatible agent durable memory across sessions, composite-scored recall, and a traceable record of why each decision was made.

Durable memory

Agents stop starting blank. Every action is stored and recalled across sessions, so they build on their own history instead of forgetting it.

persistent memory for AI agents

Causal lineage

Every memory links to what caused it. Walk any decision back to its root with trace_cause — the audit trail behind what an agent did.

agent decision lineage

Local & yours

Runs on your own machine. Memory never leaves your device; anonymous counts-only telemetry, opt out anytime.

local AI agent memory
Install

One line. No account. No hosted service.

MADB registers as an MCP server, so it works with any MCP-compatible agent.

Claude Code
claude mcp add madb -- uvx madb-mcp-server
pip / uvx (zero-install)
uvx madb-mcp-server
Anthropic SDK shim
pip install madb-anthropic
Why it matters

Auditable AI agents are a precondition for production.

Most agent projects stall before production — not because models can’t act, but because no one can answer for what they did. MADB turns an agent’s decisions into an agent audit trail you can replay on demand.

How is MADB different from a vector DB or chat history?

Vector search finds similar text. Chat history is a transcript. MADB stores why — causal edges between decisions — and recalls on more than similarity alone.

Compare MADB →
Keep reading