Skip to main content

agentdb-mcp

MCP server for AgentDB. Gives any MCP-compatible AI agent persistent memory, semantic search, causal debugging, and time travel — no SDK, no code changes.

Works with Claude Desktop, Cursor, Windsurf, Zed, LangChain MCP, CrewAI, AutoGen, and any framework that supports the Model Context Protocol.

Install

pip install agentdb-mcp

Or run directly with uvx (no install needed):

uvx agentdb-mcp

Quickstart

Get an API key at agentdb.zizka.ai, then add AgentDB to your MCP config.

Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "agentdb": {
      "command": "uvx",
      "args": ["agentdb-mcp"],
      "env": {
        "AGENTDB_API_KEY": "agdb_live_xxxx"
      }
    }
  }
}

Restart Claude Desktop. You'll see AgentDB tools appear in the tool list.

Cursor

Edit your MCP config at ~/.cursor/mcp.json:

{
  "mcpServers": {
    "agentdb": {
      "command": "uvx",
      "args": ["agentdb-mcp"],
      "env": {
        "AGENTDB_API_KEY": "agdb_live_xxxx"
      }
    }
  }
}

Self-hosted AgentDB

{
  "mcpServers": {
    "agentdb": {
      "command": "uvx",
      "args": ["agentdb-mcp"],
      "env": {
        "AGENTDB_HOST": "http://localhost:8000",
        "AGENTDB_API_KEY": ""
      }
    }
  }
}

Available Tools

Tool What it does
log_event Log an agent action (tool call, decision, message) with optional causal link
search_memory Semantically search past events by meaning
get_context Get a formatted memory block ready to paste into a system prompt
why Trace the causal chain that led to any event
query_events List recent events for an agent, optionally filtered by type
time_travel Replay exact agent state at any past timestamp
memory_diff Summarise what happened in a session
forget GDPR erasure — delete all events matching a filter

Example: Claude with persistent memory

Once configured, Claude can call AgentDB tools in any conversation:

"Remember that the user prefers short replies" → Claude calls log_event("assistant", "preference", {"note": "user prefers short replies", "user_id": "u_123"})

"What do I know about this user?" → Claude calls search_memory("user preferences and history", agent="assistant")

"What did you tell this user last week?" → Claude calls time_travel("assistant", "2026-05-03T00:00:00Z")

Environment Variables

Variable Default Description
AGENTDB_HOST https://agentdb.zizka.ai API base URL (change for self-hosted)
AGENTDB_API_KEY (empty) Your API key from the dashboard

License

MIT

Metadata

Release files for agentdb-mcp 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for agentdb-mcp 0.1.1
File Interpreter ABI Platform
agentdb_mcp-0.1.1-py3-none-any.whl Python 3 none any Details

Release files / agentdb_mcp-0.1.1-py3-none-any.whl

Download URL agentdb_mcp-0.1.1-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8df7a345408ebdb6512fb07dc9b28c9666cf4e64c4fd9ab12c4b06d33435a6ce
BLAKE2b-256 checksum
How to use checksums
ed67684664678684308929de9dcc5db12f77b03acf1900d45d75bd83500e5109
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page