| name | mflow-memory |
| description | Long-term memory engine for OpenClaw agents using M-flow knowledge graphs. Stores conversations as structured episodic memories and retrieves via graph-routed search. Use when the agent needs to remember past conversations, recall user preferences, or maintain context across sessions. Requires Docker. |
M-flow Memory
Gives your agent persistent long-term memory powered by M-flow's cognitive memory engine.
Setup
Run once:
bash ~/.openclaw/skills/mflow-memory/scripts/setup.sh
This starts the M-flow MCP server and registers it with OpenClaw.
Memory Strategy
Follow these rules for every conversation:
-
Before answering, silently call search with the user's question to check for relevant memories. If memories are found, use them as context.
-
At the end of a conversation that contained meaningful information (decisions, facts, preferences, plans โ not greetings or small talk), call save_interaction with the conversation content.
-
When the user explicitly asks you to remember something ("remember that I'm allergic to peanuts", "note that the deadline is Friday"), call save_interaction immediately โ do not wait until the end of the conversation.
-
When the user says "remember", "last time", "before", "previously", or references past events, always call search first.
-
Do not store trivial exchanges, repeated information, or content the user asks you to forget.
Available Tools (via MCP)
After setup, these tools are automatically available:
save_interaction โ Store a conversation as memory (preferred for dialogue)
search โ Search memories by natural language query
query โ Ask a question and get an answer grounded in memories
memorize โ Build knowledge graph from previously added data
ingest โ One-step store + memorize (for documents)
list_data โ List stored datasets
delete โ Remove specific memories
memorize_status โ Check if memorization is still processing
prune โ Reset all memory
Troubleshooting
bash ~/.openclaw/skills/mflow-memory/scripts/status.sh
docker restart mflow-memory
docker logs mflow-memory --tail 20
bash ~/.openclaw/skills/mflow-memory/scripts/teardown.sh