mem-mcp

v1.9.2
mem-mcp Checked 33 minutes ago Published 4 days ago

Memory for AI agents that survives reboots.

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

store

Store a memory (free). First call returns a write_token and recovery_code — save both! All future operations require the write_token. Re-storing with the same key updates in place (upsert). Supports base:true for small (2KB) contextual memories.

ParameterTypeDescription
agentId *stringYour agent identifier
key *stringMemory key (max 256 chars)
value *stringMemory value (max 10KB)
basebooleanMark as base memory (max 2KB). Excluded from normal search unless includeBase=true.
metadataobjectOptional metadata (max 2KB)
sessionIdstringOptional session ID to scope memories
writeTokenstringWrite token from first store (omit on first call)

subscribe

Subscribe to a memory plan (x402). Starter: $2/500 credits. Pro: $9/mo unlimited. Enterprise: $20/mo unlimited+priority.

ParameterTypeDescription
agentId *stringYour agent identifier
plan *stringPlan to subscribe to
writeToken *stringWrite token (required)

health

Check Memory01 service health (free). Returns service status, free tier info, plans.

stats

Get global memory statistics (free). Returns total agents, entries, searches.

sample

Get a free sample: store a demo memory and search it. Shows the shape of responses without paying.

bootstrap

Initialize conventional base memories (credentials-location, user-preferences, user-details, code-style) if missing. Idempotent. Free.

ParameterTypeDescription
agentId *stringYour agent identifier
writeToken *stringWrite token (required)
keysarrayOptional list of base keys to create (defaults to all conventional)

get

Retrieve a single memory by key (free). Useful for sensitive base memories like credentials-location.

ParameterTypeDescription
agentId *stringYour agent identifier
key *stringMemory key to retrieve
writeToken *stringWrite token (required)

init

Initialize Memory01 for this agent in one call: creates a write_token (first store), saves token+recovery_code to standard files (~/.memory01_token, ~/.memory01_recovery, chmod 600), generates and registers an Ed25519 key (~/.memory01_key, chmod 600) so the token works from any IP, bootstraps conventional base memories, and stores a credentials-location pointer. Returns full guide. Call once per agent; idempotent-ish (if token exists, pass writeToken).

ParameterTypeDescription
agentId *stringYour agent identifier (required)
keystringOptional first memory key (default: 'init')
valuestringOptional first memory value
writeTokenstringExisting write token (omit on first run)

register_key

Bind an Ed25519 key pair to this agent so its write_token works from any IP (no more IP-bound failures). Generates ~/.memory01_key (chmod 600) and registers the public key. Must be called once from the IP that owns the token. Free.

ParameterTypeDescription
agentId *stringYour agent identifier
writeTokenstringExisting write token (defaults to ~/.memory01_token)

dream

Optional dreaming = ideate ONLY (not consolidate). Produces a NEW idea from your memories; does NOT reorganize memory. Saves in `dreams` slot `dream:<id>` (mem01-dream@1) with dream_date/context/origins/category; recall via search; forget dream:*; category e.g. bad-dream. LLM optional (local or free OpenRouter); default lightweight local then free model; no secrets.

ParameterTypeDescription
agentId *stringYour agent identifier
writeToken *stringWrite token
contextstringOptional context to focus the dream
dreamstring
nnumberMax memories to consider (default 40, max 60)
sincestringOptional ISO date; only use memories recorded after

store_code

CODE-MEMORY (.mem01): store a code cell (linted embedded). Upsert by repo+path+symbol. Preserves original; `linted_code` if provided else `code`; `lint_status`. No secrets.

ParameterTypeDescription
agentId *string
code *string
path *string
writeToken *string
depsarray
docstring
git_shastring
kindstringfn|class|method|import|block
languagestring
lint_errorsarray
lint_statusstring
linted_codestring
repostring
symbolstring
testsarray

search_code

CODE-MEMORY semantic/hybrid code search. Returns .mem01 cells.

ParameterTypeDescription
agentId *string
query *string
writeToken *string
languagestring
repostring
topKnumber

get_symbol

CODE-MEMORY get one symbol cell.

ParameterTypeDescription
agentId *string
path *string
symbol *string
writeToken *string
repostring

list_repo

CODE-MEMORY list repo-map (cells) for a repo.

ParameterTypeDescription
agentId *string
writeToken *string
repostring

forget_code

CODE-MEMORY forget a code cell.

ParameterTypeDescription
agentId *string
path *string
writeToken *string
repostring
symbolstring

find_references

CODE-MEMORY find references to a symbol across repo.

ParameterTypeDescription
agentId *string
symbol *string
writeToken *string
repostring

similar_code

CODE-MEMORY find similar code cells (hybrid).

ParameterTypeDescription
agentId *string
writeToken *string
codestring
querystring
repostring
topKnumber

repo_map

CODE-MEMORY repo-map tree (symbols per file).

ParameterTypeDescription
agentId *string
writeToken *string
repostring

rename_symbol

CODE-MEMORY rename a symbol (update cell + refs).

ParameterTypeDescription
agentId *string
from *string
path *string
to *string
writeToken *string
repostring

guide

Get a concise guide on how to use Memory01: init flow, base memories, recovery, upsert, limits. Call this first if unsure. Full guide: https://memory.node01.org/agents.md

recover

Recover a write_token on a new IP using a recovery code (free). Use when your host's IP changed.

ParameterTypeDescription
agentId *stringYour agent identifier
recoveryCode *stringRecovery code (rc_...) issued at first store

regenerate_recovery

Issue a new recovery code (invalidates the old one). Requires the original write_token from the original IP. Free.

ParameterTypeDescription
writeToken *stringWrite token from the original IP (required)