Skip to main content

MCP Server Integration

ZeroDB ships as MCP (Model Context Protocol) servers that let AI agents access memory, vectors, files, and more directly from their tools.

Two Servers

ServerToolsInstallBest For
zerodb-memory-mcp6npm i ainative-zerodb-memory-mcpAgent memory only
zerodb-mcp-server69+pip install zerodb-mcpFull database access

Quick Setup

The fastest way to get started:

npx zerodb-cli init

This auto-detects your editor (Claude Code, Cursor, VS Code, Windsurf) and configures the MCP server.

Manual Setup — Claude Code

Add to your Claude Code MCP config:

{
"mcpServers": {
"zerodb-memory": {
"command": "npx",
"args": ["-y", "ainative-zerodb-memory-mcp"],
"env": {
"ZERODB_API_KEY": "your-api-key",
"ZERODB_PROJECT_ID": "your-project-id"
}
}
}
}

Manual Setup — Cursor

Add to .cursor/mcp.json:

{
"mcpServers": {
"zerodb-memory": {
"command": "npx",
"args": ["-y", "ainative-zerodb-memory-mcp"],
"env": {
"ZERODB_API_KEY": "your-api-key",
"ZERODB_PROJECT_ID": "your-project-id"
}
}
}
}

Memory MCP Tools (6 tools)

ToolDescription
zerodb_store_memoryStore a memory with content and metadata
zerodb_search_memorySearch memories by keyword or metadata
zerodb_semantic_searchSemantic similarity search across memories
zerodb_get_contextGet agent context window for current session
zerodb_embed_textGenerate embeddings for text
zerodb_clear_sessionClear session-scoped memories

Full MCP Server (69+ tools)

The full server includes everything in the memory server plus:

  • Vector operations — upsert, search, list, delete, stats
  • Table operations — create, insert, query, update, delete
  • File operations — upload, download, list, presigned URLs
  • Event operations — create, list events
  • PostgreSQL — provision, query, manage dedicated instances
  • Graph operations — traverse, GraphRAG search, entity management

Install:

pip install zerodb-mcp

Remote MCP (Hosted)

Don't want to run locally? Use the hosted remote MCP server — no local install needed. Configure in your editor settings with the remote URL.

Next Steps