# Ainative Zerodb MCP Server

> Ainative Zerodb MCP Server is an MCP server for databases. Full ZeroDB access for agents: vectors, Postgres, NoSQL tables, files and memory. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** CLI, API
- **Repository:** https://github.com/ainative-studio/ainative-zerodb-mcp-server
- **MCP Registry name:** io.github.urbantech/ainative-zerodb-mcp-server
- **Categories:** [databases](https://ai-powered.com/categories/databases), [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory)
- **Listing updated:** 2026-11-23

## About

Where its sibling memory server stays small, this one exposes the whole ZeroDB platform. The README counts 97 tools, with 71 documented across ten groups: memory, vector operations, quantum compression, NoSQL tables, file storage, events with pub/sub, project management, RLHF feedback collection, admin and health checks, and PostgreSQL operations covering SQL queries, schema, backups and statistics. A further 26 Knowledge Graph tools are not yet documented in the README.

Vector search supports embeddings of 384, 768, 1024 and 1536 dimensions, and the README says BAAI BGE embeddings can be generated without OpenAI costs. Authentication uses a ZeroDB API key, and projects isolate tenants. The README also lists SQL injection prevention and JWT with automatic renewal.

Setup needs a ZeroDB account and a project ID, which you can create through the API docs page at api.ainative.studio. Run it with npx from Node 18 or newer, adding the server to the Claude Desktop configuration with ZERODB_API_URL, ZERODB_PROJECT_ID and ZERODB_API_KEY. Context window size and retention days are set through MCP_CONTEXT_WINDOW and MCP_RETENTION_DAYS.

## Features

- **Vector search:** Semantic similarity search over embeddings of 384 to 1536 dimensions.
- **Free embeddings:** Generates embeddings with BAAI BGE models, without OpenAI costs.
- **PostgreSQL operations:** Runs SQL queries, manages schemas, takes backups and reports statistics.
- **NoSQL tables:** Creates and queries flexible tables for structured data.
- **File storage:** Uploads, downloads and manages files.
- **Agent memory:** Stores and searches persistent memories with context windows sized to a token limit.
- **Events and projects:** Pub/sub events and multi-tenant project isolation.
- **Knowledge graph tools:** A newer set of zerodb_graph_* tools, not yet documented in the README.

## Good for

- Give an agent a vector store without running a separate database
- Query and back up a Postgres database through an assistant
- Persist an agent's memories between sessions
- Store files and structured records for an agent project
- Collect human feedback data for RLHF

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add ainative-zerodb-mcp-server --env ZERODB_API_KEY='<ZERODB_API_KEY>' -- npx -y ainative-zerodb-mcp-server
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "ainative-zerodb-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "ainative-zerodb-mcp-server"
      ],
      "env": {
        "ZERODB_API_KEY": "<ZERODB_API_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "ainative-zerodb-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "ainative-zerodb-mcp-server"
      ],
      "env": {
        "ZERODB_API_KEY": "<ZERODB_API_KEY>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "ainative-zerodb-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "ainative-zerodb-mcp-server"
      ],
      "env": {
        "ZERODB_API_KEY": "<ZERODB_API_KEY>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "ainative-zerodb-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "ainative-zerodb-mcp-server"
      ],
      "env": {
        "ZERODB_API_KEY": "<ZERODB_API_KEY>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add ainative-zerodb-mcp-server --env ZERODB_API_KEY='<ZERODB_API_KEY>' -- npx -y ainative-zerodb-mcp-server
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.ainative-zerodb-mcp-server]
command = "npx"
args = ["-y", "ainative-zerodb-mcp-server"]
env = { ZERODB_API_KEY = "<ZERODB_API_KEY>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "ainative-zerodb-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "ainative-zerodb-mcp-server"
      ],
      "env": {
        "ZERODB_API_KEY": "<ZERODB_API_KEY>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e ZERODB_API_KEY='<ZERODB_API_KEY>' ainative-zerodb-mcp-server npx -- -y ainative-zerodb-mcp-server

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "ainative-zerodb-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "ainative-zerodb-mcp-server"
      ],
      "env": {
        "ZERODB_API_KEY": "<ZERODB_API_KEY>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "ainative-zerodb-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "ainative-zerodb-mcp-server"
      ],
      "env": {
        "ZERODB_API_KEY": "<ZERODB_API_KEY>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "ainative-zerodb-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "ainative-zerodb-mcp-server"
      ],
      "env": {
        "ZERODB_API_KEY": "<ZERODB_API_KEY>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "ainative-zerodb-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "ainative-zerodb-mcp-server"
      ],
      "env": {
        "ZERODB_API_KEY": "<ZERODB_API_KEY>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "ainative-zerodb-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "ainative-zerodb-mcp-server"
      ],
      "env": {
        "ZERODB_API_KEY": "<ZERODB_API_KEY>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "ainative-zerodb-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "ainative-zerodb-mcp-server"
      ],
      "env": {
        "ZERODB_API_KEY": "<ZERODB_API_KEY>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "ainative-zerodb-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "ainative-zerodb-mcp-server"
      ],
      "env": {
        "ZERODB_API_KEY": "<ZERODB_API_KEY>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "ainative-zerodb-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "ainative-zerodb-mcp-server"
      ],
      "env": {
        "ZERODB_API_KEY": "<ZERODB_API_KEY>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 2 of 3 tools read data; 1 name doesn't say. From the server's own tool labels and tool names; not verified by us.

- `zerodb_store_memory`: Stores agent memory for persistent context across sessions.
- `zerodb_search_memory` (name suggests: reads): Searches agent memory by semantic similarity.
- `zerodb_get_context` (name suggests: reads): Returns the session's context window within a token limit.

## FAQ

### How many tools does Ainative Zerodb MCP Server expose?

97 in total, of which 71 are documented in the README; the 26 Knowledge Graph tools are not yet documented.

### What do I need before using Ainative Zerodb MCP Server?

A ZeroDB account, a project ID and an API key, plus Node.js 18 or newer.

### Which embedding sizes are supported?

384, 768, 1024 and 1536 dimensions.

### How do I set Ainative Zerodb MCP Server up in Claude Desktop?

Add an npx entry for ainative-zerodb-mcp-server with ZERODB_API_URL, ZERODB_PROJECT_ID and ZERODB_API_KEY in env.

### How do I add Ainative Zerodb MCP Server to Claude Code?

Run this command in your terminal: claude mcp add ainative-zerodb-mcp-server --env ZERODB_API_KEY='<ZERODB_API_KEY>' -- npx -y ainative-zerodb-mcp-server

### What are the best alternatives to Ainative Zerodb MCP Server?

The closest alternatives to Ainative Zerodb MCP Server are Codebase Memory, XERJ, Claude Code Ultimate Guide, Nautilus Compass Memory and Myco: Agent-First Cognitive Substrate.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Nautilus Compass Memory](https://ai-powered.com/mcp/nautilus-compass-memory): Nautilus Compass Memory is an open-source MCP server for knowledge and memory.
- [Myco: Agent-First Cognitive Substrate](https://ai-powered.com/mcp/myco-agent-first-cognitive-substrate): Myco: Agent-First Cognitive Substrate is an open-source MCP server for knowledge and memory.
- [Source Library](https://ai-powered.com/mcp/source-library): Source Library is an open-source MCP server for knowledge and memory.
- [keepplain-plugin](https://ai-powered.com/mcp/keepplain-plugin): keepplain-plugin is a freemium MCP server for knowledge and memory.
- [Second Brain](https://ai-powered.com/mcp/second-brain-2): Second Brain is a freemium MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/ainative-zerodb-mcp-server
