Brain Memory
Provides persistent brain memory for GitHub Copilot CLI, enabling recall, memorization, pinning, and status checks from the agent.
Provides a memory connector for Google Antigravity (Gemini CLI's successor), allowing the agent to recall, memorize, pin, and check brain status.
Provides a native memory-engine integration for Hermes Agent, plugging the same brain into Hermes for persistent recall and memory management.
Provides a memory connector for NVIDIA NemoClaw via the OpenClaw integration, allowing NemoClaw agents to use the Brain memory engine after allowlisting the endpoint.
Provides persistent brain memory for OpenAI Codex CLI and ChatGPT, enabling recall, memorization, pinning, and status checks across sessions.
This server has a remotely hosted endpoint. Open its connector listing for connection details, authentication requirements, and setup instructions:
Brain Memory is a persistent memory system for AI agents. It stores memories as Markdown files in
~/.brain/ and provides a command-line tool, brain, that agents use to store, recall and
maintain them. The same memories are available to every supported agent on the machine.
Full documentation: brainmemory.ai/docs
Requirements
Node.js 18 or later.
One or more supported agents: Claude Code, OpenAI Codex CLI, OpenCode, GitHub Copilot CLI, Kilo or Google Antigravity.
Related MCP server: Ghostkeep
Installation
There are two ways to install Brain Memory. They can be used together.
Local installation
Memories are stored on your machine. No account is required.
npm install -g brain-memory
brainThe first command installs the package and the brain command. The second command starts the
setup program, which configures the agents you select.
To configure agents without the setup program:
brain --claude --global
brain --codex --global
brain --all --globalInstall with a system Node.js rather than a version manager such as nvm, so that brain remains
available to agents. See Installation
for details.
Hosted connector
Memories are stored in Brain Cloud and are available in any application that supports remote MCP servers, including Claude.ai and ChatGPT. An account is required. Sign in with Google or with email and password. If you have no account, signing in creates a free one with an empty brain.
The connector address is https://mcp.brainmemory.ai/mcp.
claude mcp add --transport http brain https://mcp.brainmemory.ai/mcp
codex mcp add brain --url https://mcp.brainmemory.ai/mcpFor other applications, add the address as a custom connector and sign in when asked. See
Claude apps,
ChatGPT, and
Connect other agents for Grok Build
(formerly Cursor), GitHub Copilot, Gemini CLI, Devin Desktop (formerly Windsurf), Zed, Cline and
more. Apps on OpenRouter or another OpenAI-compatible API can use
integrations/openrouter.
For the Claude apps there is also a plugin that adds a skill to the connector, so Claude knows when to recall and when to offer to save. The Claude apps page has the download.
If you also use the local installation, brain cloud login followed by brain cloud sync merges
~/.brain/ and the cloud copy in both directions.
Usage
After installation, agents recall relevant memories at the start of each session and offer to store new ones at the end. The following commands are also available in the agent:
Command | Purpose |
| Recall memories relevant to a query. |
| Store memories from the current session. |
| Show the state of the memory store. |
| Load a memory in every session. |
| Archive or erase memories. |
| Create initial memories from past agent sessions. |
| Review memories that are waiting for approval. |
| Synchronise memories between machines. |
| Manage stored procedures. |
| Run maintenance on the memory store. |
Some command-line commands are used directly:
Command | Purpose |
| Merge |
| List duplicates, likely replaced memories, faded memories and signature problems. Changes nothing. |
| Show this machine's signing key and manage trusted signers. |
| Ingest, search and read past Claude Code and Codex sessions. They stay on this machine. |
| Export memories to, or import them from, another memory system. |
Run brain help for the full list of command-line commands.
Data and privacy
Memories are plain Markdown files in
~/.brain/and can be read and edited directly.With the local installation, nothing leaves your machine unless you configure synchronisation, through Brain Cloud or a Git repository that you choose.
Content from outside sources, such as web pages or tool output, is held for your approval before agents can use it.
Memories are signed when written, so changes made outside Brain Memory can be detected.
Files under
~/.brain/.local/, including signing keys and session history, are never synchronised.
Updating and uninstalling
npm install -g brain-memory
brain updatebrain uninstall
npm uninstall -g brain-memoryUninstalling keeps ~/.brain/. Add --delete-data to brain uninstall to remove it.
Documentation
Integrations for OpenClaw, NVIDIA NemoClaw and Hermes Agent
Contributing
See CONTRIBUTING.md. Report security issues as described in SECURITY.md.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted agent memory: store, search, and recall facts across sessions from any MCP client.
Hosted memory for AI agents over MCP. One memory shared by all your agents.
Cross-session memory for AI agents with a Source Receipt for every memory, over MCP.
Persistent memory, knowledge graph, task management and more for AI agents via MCP.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceProvides persistent, searchable memory for MCP-compatible agents, enabling recall by meaning, automatic decay, trust scoring, and cross-agent handoffs.5MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to store, search, and resolve shared memories with full provenance, conflict detection, and an audit trail across MCP-compatible clients.MIT

heapdb-memory-mcpofficial
AlicenseNot gradedqualityBmaintenanceGives AI agents a persistent long-term memory store over MCP, letting them remember facts and preferences, recall ranked memories with a one-line explanation of why each scored, mark which recalled memories were used or ignored so retrieval learns over time, and forget or list memories per namespace.Apache 2.0- AlicenseNot gradedqualityCmaintenanceEnables any MCP-capable client to write, search, list, and forget long-term memories stored as human-readable markdown cards, with hybrid vector-plus-keyword retrieval and automatic relevance-based injection into context.MIT