Transport
Your MCP client launches r3 as a child process and speaks the Model Context Protocol over stdio. Message framing is handled by the MCP SDK. You do not send requests to an HTTP URL. The client manages process lifecycle, initialization, and message boundaries.Call format
A tool call uses thetools/call method. Always include arguments, even when the tool has no parameters. Handlers require arguments to be present and will return an error if it is missing.
Namespaces
MEM0_USER_ID sets the default user namespace for all tool calls. You can override it per call with the user_id argument. Keep your namespace consistent so memories remain retrievable across sessions.
Modes change the tool list
extract_entities, get_knowledge_graph, and find_connections appear only when INTELLIGENCE_MODE=enhanced (the default). In basic mode, these tools are not registered and will not be discovered by the client.
Response shape
Responses use MCPcontent blocks with plain text. Some tools embed serialized JSON inside a text block. Always check isError before parsing the text. If isError is true, the text contains an error message rather than the expected result.
For the full tool reference, see Memory Tools, Cache Tools, and Knowledge Graph.