MCP server for AgentDB — give any AI agent persistent memory and observability
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agentdb_mcp-0.1.0.tar.gz.
File metadata
- Download URL: agentdb_mcp-0.1.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f844f5c8adb83772bc89a760d5ee127961175569399025f7d00e8eef2851ea10
|
|
| MD5 |
a20ea47678e84cd2db8676b5bf706b50
|
|
| BLAKE2b-256 |
8fdca22e55d09ea14738bef33d5361c762513313a887f9c292d7b09d9193fef7
|
File details
Details for the file agentdb_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: agentdb_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7dfeac9f9cfec28d8cc2acb9636234446a78ac38b5b3607aa4e67903b737b81
|
|
| MD5 |
bee9156759b2e52a364eb7a1e326a600
|
|
| BLAKE2b-256 |
c5e55084403b7e9a905f5c25cd47c0fdf88ce0c5c27aedc7df2d321db671a8f6
|