ZenBrain Memory
MCP server by zensation-ai Verified · zensation.ai
Gives AI assistants memory that lasts across sessions, organised in layers inspired by human memory research. Built for developers using Claude Code, Claude Desktop or Cursor, with local SQLite storage and no account.
Install ZenBrain Memory
Built from the published package, never by AI.
claude mcp add zenbrain-memory -- npx -y @zensation/mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"zenbrain-memory": {
"args": [
"-y",
"@zensation/mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"zenbrain-memory": {
"args": [
"-y",
"@zensation/mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"zenbrain-memory": {
"args": [
"-y",
"@zensation/mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add zenbrain-memory -- npx -y @zensation/mcp{
"mcpServers": {
"zenbrain-memory": {
"args": [
"-y",
"@zensation/mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add zenbrain-memory npx -y @zensation/mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the zenbrain-memory block.
About
ZenBrain is a memory system for AI agents that keeps information across sessions. It splits memory into seven layers, from working memory to long-term facts and procedures. The project also ships 20 algorithm modules for mechanisms from memory research, such as spaced repetition, Hebbian strengthening, sleep replay and emotional tagging. The library is pure TypeScript, with no third-party dependencies in its algorithms and core.
The MCP server, @zensation/mcp, runs in Claude Code, Claude Desktop and Cursor. It stores memory in a local SQLite file, and PostgreSQL is also supported. The library makes no network calls of its own, and an embedding model or LLM is optional. It is aimed at developers building agents or assistants that need memory to persist between sessions. The project is pre-1.0, so the public API can still change.
Written from the project's README and checked against it.
What you need
- Node.js 22 or newer for the @zensation/algorithms library
- npm or npx to run the MCP server
- Claude Code, Claude Desktop or Cursor as the assistant client
| Setting | Needed | What it is |
|---|---|---|
ZENBRAIN_Environment variable | Optional | Path to the SQLite file that holds the memory. A leading ~/ means your home directory; a relative path depends on where the client starts the server (some start it in /), so give an absolute or ~/ path. Use ':memory:' for a store that is di Default: ./zenbrain.db |
ZENBRAIN_Environment variable | Optional | Comma-separated context domains, passed to the cross-context layer. No tool uses that layer yet, so the value currently has no effect. Default: personal,work,learning,creative |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- Remember that the staging deploy needs the --dry-run flag first.
- What did I note about the database setup in my last session?
- Store this decision as a procedure so you can reuse it later.
Good to know
- The project is pre-1.0, and the public API can still change before 1.0.
- Recall is lexical until you add an embedding provider.
- Six PMA components described in the paper are proprietary and not included in these packages.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
What you can do with it
- Keeping notes across Claude Code sessions
- Giving AI agents long-term memory
- Testing memory algorithms in TypeScript
Alternatives to ZenBrain Memory
All alternatives →Connects a Zotero research library to AI assistants such as Claude and ChatGPT through the Model Context Protocol. It lets the assistant search, read, annotate and add papers, in local mode or through the web API. Built for researchers who want their references available in chat.
AgentDB is a vector memory database for AI agents. It stores embeddings, indexes and learning state in one file and exposes 41 MCP tools to clients such as Claude Code, Cursor and Cline.
Genkitx MCP is listed as a Genkit plugin for Model Context Protocol interoperability. The source is the main Genkit framework README and does not describe this plugin, so its features cannot be confirmed.
QMD is an on-device search engine for markdown notes, meeting transcripts and documentation. It combines BM25 keyword search, vector search and LLM reranking, and exposes an MCP server for AI assistants.
RuVector is a Rust native vector database that gives AI agents persistent memory and local semantic retrieval. Its npm package includes an MCP server for MCP compatible clients, and it suits developers building agent memory in Node.js, Python, or Rust.
Gives AI coding agents persistent memory, so each new session starts where the last one left off. Works with Claude Code, Codex, Cursor, OpenCode and 11 more agents.
Compare with Zotero MCP, Agentdb or Genkitx MCP
ZenBrain Memory: common questions
Does ZenBrain need an account or API key?
The source says there is no account needed. An embedding model or LLM is optional and chosen by the user.
Where is the memory stored?
Memory lives in SQLite or PostgreSQL that the user operates. The library makes no network calls of its own.
Is ZenBrain tested?
The source reports 948 tests green in CI as of v0.6.1, run on Node 22, 24 and 26, with 12 more against PostgreSQL with pgvector.
How do I install ZenBrain Memory?
In Claude Code run claude mcp add zenbrain-memory -- npx -y @zensation/mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is ZenBrain Memory the official server?
ZenBrain Memory is published by zensation.ai from its verified domain in the official MCP Registry.
Is ZenBrain Memory free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is ZenBrain Memory safe to use?
It scores 85 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to ZenBrain Memory?
Similar MCP servers: Zotero MCP, Agentdb, Genkitx MCP, Qmd.
Does ZenBrain Memory work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
