Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 85
  • 30 stars
  • 450 a week
  • Apache-2.0
  • Updated

Install ZenBrain Memory

Built from the published package, never by AI.

claude mcp add zenbrain-memory -- npx -y @zensation/mcp

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install ZenBrain Memory in Claude Code

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
SettingNeededWhat it is
ZENBRAIN_DBEnvironment variableOptionalPath 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_CONTEXTSEnvironment variableOptionalComma-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

A

No 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 →

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.

ZenBrain Memory Install

Add to stack

Loading.