Install
openclaw plugins install clawhub:@filhocf/openclaw-mcp-memoryNative OpenClaw plugin for mcp-memory-service: thin HTTP client to persistent memory with hybrid search
openclaw plugins install clawhub:@filhocf/openclaw-mcp-memoryNative OpenClaw plugin that connects to mcp-memory-service for persistent memory. Acts as a thin HTTP client — zero native dependencies, no local SQLite or embeddings. All storage and search are handled server-side via JSON-RPC 2.0.
┌─────────────┐ ┌──────────────────────┐ ┌─────────────────────┐
│ OpenClaw │──────▶│ Plugin (thin client) │──────▶│ mcp-memory-service │
│ Gateway │◀──────│ JSON-RPC over HTTP │◀──────│ (port 3202) │
└─────────────┘ └──────────────────────┘ └─────────────────────┘
openclaw plugins install clawhub:@filhocf/openclaw-mcp-memory
http://127.0.0.1:3202/mcpIn your openclaw.json:
{
"plugins": {
"@filhocf/openclaw-mcp-memory": {
"serviceUrl": "http://127.0.0.1:3202/mcp",
"autoRecall": true,
"autoCapture": true,
"maxResults": 5,
"threshold": 0.7,
"captureMatcher": "*"
}
}
}
| Option | Default | Description |
|---|---|---|
serviceUrl | http://127.0.0.1:3202/mcp | mcp-memory-service endpoint |
autoRecall | true | Inject relevant memories before LLM reply |
autoCapture | true | Store tool results as memories automatically |
maxResults | 5 | Max memories returned per search |
threshold | 0.7 | Minimum similarity score (0–1) |
captureMatcher | * | Glob pattern for tools to capture |
before_prompt_build): Before each LLM reply, searches memories relevant to the user prompt and injects them as context.after_tool_call): After any tool execution (matching captureMatcher), stores meaningful results as new memories.session_end): Logs memory service stats on session close.When mcp-memory-service is offline:
~/.openclaw/workspace/MEMORY-FALLBACK.md (JSON-lines)npm install
npx vitest run # run tests
npx vitest run --coverage # with coverage
npx tsc --noEmit # type-check
npx eslint src/ # lint
MIT