Skip to main content
Glama
modelbrain-mcp

modelbrain-mcp

Official

modelbrain-mcp

Listed on mcpservers.org

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 tools
diagnosticsReport server healthA
Read-onlyIdempotent
Inspect

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 fullA
Read-onlyIdempotent
Inspect

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 memoryA
DestructiveIdempotent
Inspect

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 memoriesA
Read-onlyIdempotent
Inspect

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 partitionA
Idempotent
Inspect

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 partitionsA
Read-onlyIdempotent
Inspect

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 partitionA
Idempotent
Inspect

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 partitionA
Idempotent
Inspect

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 sessionA
Idempotent
Inspect

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 aliveA
Read-onlyIdempotent
Inspect

Liveness check that never touches the store. Use diagnostics for anything more.

Inputs: no named parameters.

recallSearch memoriesA
Read-onlyIdempotent
Inspect

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.

usageSummarize tool usageA
Read-onlyIdempotent
Inspect

Summarize this server's local tool-call log over the last days: calls per session by tool, empty recalls, saves per session and errors by code. The log holds no memory content. Not needed for normal use.

Inputs: days, sessions.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 14 tools

    Disambiguation5/5

    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.

    Naming Consistency3/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      C
      quality
      A
      maintenance
      Provides 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.
      98
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Provides 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.
      3
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables 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