# ainative-zerodb-memory-mcp [Health: Active]

**Category:** 💬 Communication  
**Repository:** https://github.com/AINative-Studio/ainative-zerodb-memory-mcp  
**GitHub Stars:** 1  
**npm Downloads (last month):** 1497  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/ainative-zerodb-memory-mcp

## Description
ZeroDB agent-memory MCP — 18 tools: memory + write-back to Slack, Gmail, Calendar, GitHub.

## Tools
Capabilities this server exposes over MCP:

- **zerodb_store_memory** — Store conversation context in agent memory with automatic importance scoring and embedding. Supports multi-session tracking and memory decay.
- **zerodb_search_memory** — Search agent memory semantically using natural language queries. Supports cross-session search and filtering by tags, user, or time range.
- **zerodb_get_context** — Get full conversation context window for a session with smart pruning. Automatically manages token limits, applies memory decay, and prioritizes important/recent memories.
- **zerodb_embed_text** — Generate vector embeddings for text using BAAI BGE models. Useful for manual vector operations or custom similarity calculations.
- **zerodb_semantic_search** — Search memory by semantic similarity without needing a text query. Directly search using vector embeddings or similar memories.
- **zerodb_clear_session** — Clear all memories for a session. Use with caution - this permanently deletes conversation history.
- **zerodb_synthesize_context** — Retrieve and LLM-synthesize relevant memories into a coherent context string. Searches memory for the query, retrieves top results, then uses Claude Haiku to synthesize a narrative, bullet list, or structured summary. Returns a ready-to-use context string for grounding AI responses.
- **zerodb_configure_auto_context** — Configure ambient memory injection. When enabled, ZeroDB automatically retrieves relevant memories before each tool call and prepends them as context — agents get memory without calling recall() explicitly.
- **zerodb_get_auto_context_config** — Get the current auto-context configuration for an agent.
- **zerodb_slack_send** — Send a Slack message using your stored Slack OAuth connection. No API key required — uses the token from your connected Slack account in ZeroDB.
- **zerodb_gmail_reply** — Reply to a Gmail thread using your stored Google OAuth connection. Sends from your connected Gmail account.
- **zerodb_calendar_create** — Create a Google Calendar event using your stored Google OAuth connection.
- **zerodb_github_create_issue** — Create a GitHub issue using your stored GitHub OAuth connection.
- **zerodb_notion_create_page** — Create a Notion page using your stored Notion OAuth connection.
- **zerodb_plan_create** — Create a persistent plan, PRD, or task artifact in ZeroDB. Returns an artifact ID you can pass to zerodb_plan_get/update/history in future sessions.
- **zerodb_plan_get** — Retrieve a plan artifact by ID. Use this at session start to restore a plan from a previous session.
- **zerodb_plan_update** — Update a plan artifact. Content changes are diffed and stored in version history automatically.
- **zerodb_plan_history** — Get version history for a plan artifact. Returns list of diffs showing how the plan evolved.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "ainative-zerodb-memory-mcp": {
    "command": "npx",
    "args": ["-y","ainative-zerodb-memory-mcp"],
    "env": {
      "ZERODB_API_KEY": "",
      "ZERODB_USERNAME": "",
      "ZERODB_PASSWORD": "",
      "ZERODB_API_URL": "",
      "ZERODB_PROJECT_ID": ""
    }
  }
}
```

**Requires environment variables:** `ZERODB_API_KEY`, `ZERODB_USERNAME`, `ZERODB_PASSWORD`, `ZERODB_API_URL`, `ZERODB_PROJECT_ID` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What ainative-zerodb-memory-mcp does

ainative-zerodb-memory-mcp provides an MCP interface to ZeroDB for agent memory management. Its 18 tools cover persistent conversation memory, context synthesis, automatic context middleware, and write-back actions involving Slack, Gmail, Calendar, and GitHub.

The memory layer supports storing conversation content with roles, sessions, tags, and user identifiers. Stored items receive an importance score and embeddings automatically, allowing later retrieval by meaning rather than exact wording. Agent-scoped searches can preserve context across sessions while still supporting session-level filtering.

## How it works

The server connects to either ZeroLocal at `localhost:8000` or ZeroDB Cloud at `api.ainative.studio`. It can detect an available endpoint, and the same Node.js process can be configured as separate local and cloud MCP entries.

Memory operations include these capabilities:

- `zerodb_store_memory` saves content, metadata, tags, session information, and user associations.
- `zerodb_search_memory` retrieves semantically related memories and can filter by importance, tags, user, or scope.
- `zerodb_get_context` returns conversation context while pruning it to a requested token limit and retaining important or recent items.
- `zerodb_embed_text` creates embeddings using BAAI BGE model sizes of 384, 768, or 1024 dimensions.
- `zerodb_semantic_search` performs vector-similarity searches using text or a supplied vector.
- `zerodb_clear_session` removes session memories, with confirmation and an option to preserve important items.

Context synthesis retrieves relevant memories and produces narrative, bullet, or structured output. It is scoped by `agent_id`, reports source and confidence information, and falls back to concatenated snippets if synthesis fails. Auto-context configuration can prepend relevant memories to later tool responses for an agent, with controls for result count, synthesis style, and tracing.

## Setup and configuration

Install Node.js 18 or newer and npm 9 or newer. Clone the repository, install dependencies with `npm install`, copy `.env.example` to `.env`, add credentials, and start the process with `npm start`.

API-key authentication uses `ZERODB_API_KEY` and is the recommended credential method. Username/password authentication is also supported through `ZERODB_USERNAME` and `ZERODB_PASSWORD`. Both modes use `ZERODB_API_URL` to select the local or cloud endpoint and `ZERODB_PROJECT_ID` to select the ZeroDB project.

A Claude Desktop configuration can launch the server with Node.js and the path to `index.js`, passing the same variables in its `env` object. Separate MCP entries can point to local and cloud ZeroDB projects.

## Tools and capabilities

- Store memories with automatic importance scoring and embedding generation.
- Search memory semantically or through direct vector similarity.
- Retrieve bounded conversation context with pruning statistics.
- Generate normalized text embeddings.
- Synthesize relevant memories as narrative, bullet, or structured context.
- Configure automatic context injection for an agent.
- Write back to Slack, Gmail, Calendar, and GitHub through the broader tool set.

## Limitations and notes

The server depends on access to ZeroLocal or ZeroDB Cloud and requires a project identifier. API-key authentication avoids token-expiry issues associated with username/password login. Automatic context and synthesis are scoped using `agent_id`, so callers should provide consistent agent identifiers when they need per-user memory isolation.

_Full upstream README: https://allmcps.com/mcp/ainative-zerodb-memory-mcp/readme_

