modelbrain-mcp
OfficialA local-first shared memory MCP server that lets assistants save, search, list, expand, and forget memories, manage partitions, and inspect health/usage when ModelBrain is running.
Check liveness/health:
ping,diagnostics, andusagefor status, store health, connector state, and local tool-call summaries.Save memories:
rememberfacts/preferences/decisions with tags, speaker, object type, partition, supersedes, relations, and inferred-memory flags.Search/recall memories:
recallby query with filters for tags, object type, dates, scope, partition, branch, relevance, plus optional reasoning/verification.Browse/list memories:
list_memorieswithout a query, with pagination, scope, partition, date, tag, and object-type filters.Fetch full memory details:
expandby key, including chunks, provenance, edges, and supersedes history.Delete memories:
forgetby key with revert, chain, or object modes.Manage partitions: list, create, bind/use, rename, archive, and restore memory namespaces.
Missing-app behavior: if ModelBrain is not installed, the launcher still answers the MCP handshake but tool calls return an install message and store/recall nothing;
--require-apprestores exit-on-missing behavior.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@modelbrain-mcp remember that I prefer TypeScript for new projects"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
modelbrain-mcp
ModelBrain is a local-first memory layer that gives Claude, ChatGPT and Cursor one shared memory, kept on your own computer. Free for one person, no account.
This package is a thin MCP stdio client for it. If you sync your memory to your other computers or share it with a team, the copy ModelBrain stores is encrypted on your computer first, and ModelBrain does not hold the key.
This package does not install or bundle ModelBrain. It connects to the ModelBrain desktop app already running on your machine.
If ModelBrain is not installed
The launcher still starts and answers the MCP handshake, so your client shows the server and its tools instead of a start-up failure. Every tool call then returns one plain result: ModelBrain is not installed, and where to get it. Nothing is stored or recalled in this state. The same message is printed to standard error.
The tool list it shows comes from bin/tools.json, a copy of what the real server reports. Maintainers refresh it with npm run snapshot-tools on a machine that has ModelBrain installed.
To get the old behaviour, where the launcher exits with status 1 when the app is missing, pass --require-app or set MODELBRAIN_MCP_REQUIRE_APP=1.
Related MCP server: mnemosis-mcp
Why a separate package
ModelBrain's own installed app already ships a binary, mcp_server, that speaks MCP over stdio and talks to the local ModelBrain daemon. This package finds that binary on the current machine and runs it. It exists so ModelBrain can be registered with the MCP Registry and the directories that list from it, with a reviewable package as the distribution target, while the actual engine stays out of this repository.
Requirements
macOS (Apple Silicon), Windows (x64 or arm64) or Linux (x86_64 or aarch64, glibc 2.28 or newer)
ModelBrain installed
Use
In ModelBrain's Allow or Block prompt this client shows up as your assistant's name with node as the program (mcp_server.exe on Windows). If you turn on Require client tokens in ModelBrain, mint a token for your assistant with modelbrain_admin setup tokens --mint NAME and put it in your client's env block as MODELBRAIN_CLIENT_TOKEN; the launcher passes it through.
Most MCP clients run a server with npx. Point your client's MCP config at:
{
"mcpServers": {
"modelbrain": {
"command": "npx",
"args": ["-y", "modelbrain-mcp"]
}
}
}Claude Desktop, Claude Code and Cursor users do not need this: ModelBrain's own app registers itself with those clients directly. See modelbrain.net/docs for the full tool surface (14 tools: remember, recall, list_memories, expand, forget, six partition tools, diagnostics, usage, ping) and the connect guides for other clients.
License
MIT, for this wrapper package. ModelBrain itself is separate, proprietary software; see modelbrain.net for its own terms.
Security
See SECURITY.md.
Available Tools
14 toolsdiagnosticsReport server healthARead-onlyIdempotentInspect
Report health: version, store location, live_count, search mode, uptime, connector sync state and degraded status. live_breakdown explains why list_memories may show fewer than live_count. Check connectors[].failures for files that did not index and degraded for skipped corrupt records. Not needed for normal use.
Inputs: no named parameters.
expandFetch one memory in fullARead-onlyIdempotentInspect
Fetch one memory by key: full text, tags and provenance. A split memory comes back whole whichever piece you ask for (chunk_keys lists the pieces; piece_only: true returns just the one). truncated: true means the text was cut at 64 KB. Unlike recall, this reaches pending, superseded and deleted objects. Cite source_uri for a "connector" source. edges: true adds links; history: true walks the supersedes chain.
Inputs: key (required), edges, history, piece_only.
forgetDelete a memoryADestructiveIdempotentInspect
Forget a remembered object by key. mode defaults to "revert": on a chain head created with supersedes it tombstones the head and restores the predecessor; otherwise it tombstones the target. "chain" tombstones every version of the chain. "object" tombstones only this object. On a synced chunk mode is ignored: the whole source is forgotten and never re-ingested (sync_source_id names it).
Inputs: key (required), mode.
list_memoriesList memoriesARead-onlyIdempotentInspect
List memories by scope without a query, newest first. Use scope: "user" for what the user told you, or scope: "connector:<id>" for a synced source. Filters work as in recall. count is the total match count; pass next_cursor as after_key for the next page. Hides pending and superseded memories by default. Unknown arguments are listed in ignored_params.
Inputs: tags, limit, scope, after_key, +6 more.
partition_archiveArchive a partitionAIdempotentInspect
Archive a partition by id. Its memories stay reachable with partition_scope: "id:<ulid>". Refused for the default partition. Idempotent.
Inputs: id (required).
partition_createCreate a partitionAInspect
Create a partition by name. The name may not be "current", "all", "all_active", "none", start with "id:", or match an active partition. Call partition_use to save into it.
Inputs: display_name (required).
partition_listList partitionsARead-onlyIdempotentInspect
List partitions, the namespaces that keep memories apart (for example one per client). Every store has a default "unsorted" partition. include_archived: true also lists archived ones.
Inputs: include_archived.
partition_renameRename a partitionAIdempotentInspect
Rename a partition by id. Refused for the default partition and for reserved or taken names.
Inputs: id (required), display_name (required).
partition_restoreRestore an archived partitionAIdempotentInspect
Restore an archived partition by id. Refused if an active partition now has its name. Idempotent.
Inputs: id (required).
partition_useChoose the partition for this sessionAIdempotentInspect
Bind this connection to one partition (an unbound connection searches every active partition): later remember calls without partition land there, and recall/list_memories without partition_scope search only there. Not persisted across connections. Accepts a name or "id:"; "all" is invalid. Returns the bound partition.
Inputs: partition (required).
pingCheck the server is aliveARead-onlyIdempotentInspect
Liveness check that never touches the store. Use diagnostics for anything more.
Inputs: no named parameters.
recallSearch memoriesARead-onlyIdempotentInspect
Find the memories nearest a query, best first. Required: query. Check this before saying you don't know something about the user; it is not consulted automatically. Hits carry key, text, relevance, created_at, source_date, partition, source, tags. Read dates from source_date (when the content happened), not created_at (when it was indexed): resolve relative dates against it and prefer the later one when two hits disagree on a fact. For a "connector" hit cite source_uri, not key. Unbound connections search every active partition; partition_scope narrows ("all" adds archived). Use scope: "user" for what the user told you. Pending and superseded memories are hidden by default. Filters: tags, object_type, created_after, created_before, scope. Use list_memories to browse without a query.
Inputs: query (required), k, tags, as_of, +13 more.
rememberSave a memoryAInspect
Save a fact, preference or decision so a later conversation can recall it. Use it when the user asks you to remember something, and whenever the user states a fact, preference or decision worth keeping. Required: text. Optional: tags, speaker, object_type, partition, supersedes, relations, inferred, similar_min_relevance. Returns key. Separate from Claude's built-in memory. partition_use sets the session's default partition. Set speaker: "user" when the text is the user's own words. Correct an earlier memory with supersedes: <key>; forget on the new key reverts. similar lists up to 3 close existing memories; suggested_forget names a near-exact duplicate you may forget. inferred: true saves your own inference, hidden from default results until reviewed. object_type is a free-text label. Long text is split into pieces; key still works for expand/forget. Never store secrets.
Inputs: text (required), tags, speaker, inferred, +5 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 14 tools
Each tool has a clearly distinct role: recall searches by query, list_memories browses without one, expand fetches a specific key, and the partition tools form a separate namespace-management group. Ping versus diagnostics and diagnostics versus usage are explicitly differentiated by their descriptions.
The naming mixes several conventions: bare verbs for core memory tools (recall, remember, expand, forget), a verb_noun form for list_memories, noun_verb forms for partition_list/partition_create/etc., and plain nouns for diagnostics/usage. It remains readable, but there is no single predictable pattern across the set.
Fourteen tools is well within a reasonable range for a memory server with partition management and diagnostics. The six core memory operations, six partition operations, and two operational tools each have a clear purpose and earn their place.
The surface covers the core memory lifecycle well: create, search, browse, fetch details, correct via supersedes, and forget, plus full partition lifecycle support. Minor gaps remain, such as no dedicated update tool and no clearly described way to list pending inferred memories without already knowing their keys.
Maintenance
Related MCP Connectors
Persistent memory, knowledge graph, task management and more for AI agents via MCP.
Persistent, portable memory for AI assistants — your private memory graph, from any MCP client.
Hosted memory for AI agents over MCP. One memory shared by all your agents.
Shared memory for your AI tools: tasks, notes and context every tool can read and write over MCP.
Related MCP Servers
AlicenseNot gradedqualityBmaintenanceEnables persistent memory storage and retrieval for MCP clients, allowing AI assistants to remember facts and context across conversations.MIT- AlicenseCqualityAmaintenanceProvides AI agents with a human-inspired memory layer via MCP, enabling episodic and semantic memory recall, forgetting curves, consolidation, and contradiction detection. It integrates with MCP clients to offer local-first, dependency-free memory management.981MIT
- AlicenseNot gradedqualityBmaintenanceProvides a self-hosted shared memory service that lets AI agents capture and recall durable facts, decisions, and context across multiple tools and MCP-capable clients.3MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to store, retrieve, and manage persistent memories locally via an MCP server with hybrid vector and keyword search, plus tools for memory CRUD, search, backup, and import.MIT