MCP Server
Connect ZizkaDB to Claude Desktop, Cursor, or Windsurf in minutes — no SDK and no changes to your app code. The AI calls ZizkaDB tools directly during conversations.
~/.cursor/mcp.json, reload MCP, done.json{ "mcpServers": { "zizkadb": { "command": "uvx", "args": ["zizkadb-mcp"], "env": { "ZIZKADB_API_KEY": "zizkadb_live_xxxx" } } } }
Self-host: use the full block in Self-hosted API below (only ZIZKADB_HOST — dev key auto-injected). Requires uvx — install uv first.
No install — connect by URL
ZizkaDB Cloud also runs the MCP server for you at https://db.zizka.ai/mcp (Streamable HTTP). Use it from any client that takes a server URL. Send your API key as Authorization: Bearer zizkadb_live_xxxx or X-ZizkaDB-API-Key. Same tools as the package; pass the event_id that log_event returns as parent_id on the next event to keep the causal chain.
json{ "mcpServers": { "zizkadb": { "url": "https://db.zizka.ai/mcp", "headers": { "Authorization": "Bearer zizkadb_live_xxxx" } } } }
uvx (recommended) — comes with uv install. Or: pip install "zizkadb-mcp>=0.1.12"
bash# macOS / Linux curl -LsSf https://astral.sh/uv/install.sh | sh uvx --version
Sign up → Dashboard → Create agent → copy key. Use the same agent name when calling log_event.
Claude Desktop
Mac:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\\Claude\\claude_desktop_config.jsonAdd ZizkaDB (merge into existing mcpServers if you have other servers):
json{ "mcpServers": { "zizkadb": { "command": "uvx", "args": ["zizkadb-mcp"], "env": { "ZIZKADB_API_KEY": "zizkadb_live_xxxx" } } } }
Quit completely and reopen. ZizkaDB tools appear in the tool list (hammer icon). Claude can call them during any chat.
Cursor
Create or edit ~/.cursor/mcp.json (global) or .cursor/mcp.json in your project:
json{ "mcpServers": { "zizkadb": { "command": "uvx", "args": ["zizkadb-mcp"], "env": { "ZIZKADB_API_KEY": "zizkadb_live_xxxx" } } } }
Quit Cursor completely (Cmd+Q) and reopen, or use Command Palette → MCP: Reload servers. Open Cmd+Shift+J → Tools & MCP to confirm zizkadb is connected.
Windsurf & other MCP clients
Same JSON block — point your client's MCP config at uvx zizkadb-mcp with ZIZKADB_API_KEY in env.
Self-hosted API
After bash scripts/setup-local.sh, paste this (no API key needed on localhost):
json{ "mcpServers": { "zizkadb": { "command": "uvx", "args": ["zizkadb-mcp"], "env": { "ZIZKADB_HOST": "http://localhost:8000" } } } }
Using MCP in practice
Once connected, ask the AI naturally — it will call tools when needed:
→ log_event→ search_memory→ why→ time_travelAll MCP tools
log_eventLog action with optional causal parent_idsearch_memoryKeyword or hybrid search over agent historyverify_chainProve the agent's history is untouchedget_contextFormatted memory block for system promptswhyCausal chain for an event_idquery_eventsList/filter recent eventstime_travelLogged state at a past timestampmemory_diffSession summaryforgetGDPR delete by metadata filter