Skip to content

MCP tools reference ​

Derived from mcp_server/main.py.

Eight tools. Six are reads and are always registered. The two that mutate appear only when SODAMEM_MCP_ALLOW_WRITE=true — which sodamem install writes for you into the client config it generates.

toolkindalways on
search_memoryread✅
get_contextread✅
list_memoriesread✅
entity_timelineread✅
explore_memoryread✅
refine_searchread✅
add_memorieswriteneeds SODAMEM_MCP_ALLOW_WRITE=true
delete_memorywriteneeds SODAMEM_MCP_ALLOW_WRITE=true

user_id is optional on every tool: when the client config pins one, the tool resolves it and the model never sees the field. See Scoping.

Reads ​

search_memory ​

argumenttypedefaultbounds
querystring—required, non-empty
user_idstringfrom config
top_kint10clamped to 1–100

Ranked hits. Zero model calls.

get_context ​

argumenttypedefault
querystring—
user_idstringfrom config

Prompt-ready evidence block: pre-formatted text plus the citations behind it. This is the tool to reach for when the model is about to answer — it returns something you paste, not something you assemble.

list_memories ​

argumenttypedefaultbounds
user_idstringfrom config
limitint50clamped to 1–200
offsetint0

Paginate for large stores.

entity_timeline ​

argumenttype
entity_idstring, required
user_idstring, from config

One entity's history in order, each item still pointing at its source. Use it when the question is "what is this thing's history" rather than "what matches this query".

explore_memory ​

argumenttypedefaultbounds
user_idstringfrom config
limitint25clamped to 1–100

Walks the graph outward from a starting point instead of ranking against a query.

argumenttypedefaultbounds
querystring—required
user_idstringfrom config
top_kint10clamped to 1–100

Writes ​

add_memories ​

Ingests turns and extracts facts. Needs extraction credentials — see Environment variables · LLM. Registered only under SODAMEM_MCP_ALLOW_WRITE=true.

delete_memory ​

Archives a memory: it leaves search and context, the record and its provenance stay. Physical erasure is a separate, off-by-default server setting (SODAMEM_ALLOW_PURGE), not something this tool can reach.

Installing ​

bash
sodamem daemon ensure
sodamem install claude-code
sodamem clients             # what install supports

See Coding assistants for which clients also get hooks, and CLI for every flag.

Apache-2.0 licensed.