ModelBrain

v0.1.6
net.modelbrain/mcp Checked 1 day ago Published 10 days ago

One memory for Claude, ChatGPT and Cursor, on your computer.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

ping Check the server is alive

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

recall Search memories

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 a…

ParameterTypeDescription
query *stringThe search query.
as_ofstring | nullOptional date the question is asked on, YYYY-MM-DD; today when omitted.
branch_scopestringWhich git branch's synced chunks to search: "current" (default), "all", or a branch name.
collapse_sourcesboolean | nullMerge the chunks of one synced file into its best chunk. Default true; pass false to see every chunk.
created_afterstring | nullKeep only memories written at or after this UTC date (YYYY-MM-DD) or RFC 3339 timestamp.
created_beforestring | nullKeep only memories written before this UTC date (YYYY-MM-DD) or RFC 3339 timestamp.
dedupe_identicalboolean | nullReturn a passage found word for word in several synced files once, listing the others in `also_in` (default true).
folderstring | nullKeep only notes under this folder of a connector.
kintegerMaximum number of results to return.
min_relevancenumber | nullDrop hits below this `relevance`; off by default.
object_typeKeep only memories of this type: a string or a list of strings.
partition_scopestringWhich partition(s) to search.
reasoningbooleanAlso ask the local reasoning model for a cited answer drawn from the hits (default false).
scopestringRestrict results to a subset of the store before ranking.
tagsarrayKeep only results carrying at least one of these tags (case-sensitive, exact match).
verifybooleanWith `reasoning`, run two independent passes and keep only answers both agree on.
widenbooleanWith `reasoning`, also reason over reworded queries and linked memories.

remember Save a memory

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. `si…

ParameterTypeDescription
text *stringThe text to remember.
inferredbooleanTrue for your own inference rather than something the user stated; hidden until reviewed.
object_typestring | nullOptional free-text label for what kind of memory.
partitionstring | nullPartition to save into; see `partition_list`.
relationsarrayOptional edges from this new memory to existing ones.
similar_min_relevancenumber | nullOptional cutoff on `similar[].relevance`.
speakerstring | null`user` for the user's own words, `assistant` for yours.
supersedesstring | nullOptional: the key of an existing memory this one corrects or replaces.
tagsarrayOptional tags to attach to this memory.

expand Fetch one memory in full

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.

ParameterTypeDescription
key *stringThe key to look up, as returned by `remember` or `recall`.
edgesbooleanInclude this object's edges (both directions) in the response.
historybooleanInclude the `supersedes` chain, oldest last.
piece_onlybooleanWhen true and the key is one piece of a long memory, return only that piece.

forget Delete a memory

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).

ParameterTypeDescription
key *stringThe key to forget, as returned by `remember`.
modestring | null`"revert"` (default), `"chain"`, or `"object"`.

list_memories List memories

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`.

ParameterTypeDescription
after_keystring | nullContinue after this key: pass the previous page's `next_cursor`.
branch_scopestringSame syntax as `recall`'s `branch_scope` - default `"current"`.
created_afterstring | nullUTC date (YYYY-MM-DD) or RFC 3339 time; keep memories at or after it.
created_beforestring | nullUTC date (YYYY-MM-DD) or RFC 3339 time; keep memories before it.
limitintegerMaximum number of results.
newest_firstboolean`true` (default) lists newest-written first; `false` lists oldest-written first.
object_typeKeep only memories of this type: a string or a list of strings.
partition_scopestringWhich partition(s) to list.
scopestringSame syntax as `recall`'s `scope` - default `"all"`.
tagsarraySame as `recall`'s `tags` - keep only memories carrying at least one of these.

partition_list List partitions

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.

ParameterTypeDescription
include_archivedboolean`false` (default) lists only active partitions; `true` also includes archived ones.

partition_create Create a partition

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.

ParameterTypeDescription
display_name *stringThe name for the new partition.

partition_use Choose the partition for this session

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:<ulid>"; "all" is invalid. Returns the bound partition.

ParameterTypeDescription
partition *stringPartition name or "id:<ulid>"; "all" and "all_active" are invalid.

partition_rename Rename a partition

Rename a partition by id. Refused for the default partition and for reserved or taken names.

ParameterTypeDescription
display_name *stringThe new name.
id *stringThe partition's id, as returned by `partition_list`/`partition_create`.

partition_archive Archive a partition

Archive a partition by id. Its memories stay reachable with `partition_scope: "id:<ulid>"`. Refused for the default partition. Idempotent.

ParameterTypeDescription
id *stringThe partition's id, as returned by `partition_list`/`partition_create`.

partition_restore Restore an archived partition

Restore an archived partition by id. Refused if an active partition now has its name. Idempotent.

ParameterTypeDescription
id *stringThe partition's id, as returned by `partition_list`/`partition_create`.

diagnostics Report server health

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.

usage Summarize tool usage

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.

ParameterTypeDescription
daysintegerSummarize the last this-many days (1-90; default 7; the log keeps 90).
sessionsintegerHow many of the most recently active sessions to break down by tool (0-50).