# ClawMem

> Local persistent memory for AI agents.

- **URL**: https://followmcp.com/en/servers/clawmem
- **Category**: Database
- **Origin**: Community
- **Stars**: 212
- **FMRS Score**: 59/100 (Grade C)
- **Source**: https://github.com/yoloshii/ClawMem
- **Transports**: stdio (local process)
- **Runtimes**: Bun 1.3.14+
- **Auth**: No credential needed

## Overview
ClawMem is a local memory system that stores notes, project documents, research, and session information in a SQLite vault, with hybrid retrieval, lifecycle management, and MCP tools. It connects to compatible clients through a stdio MCP server and also offers Claude Code hooks, an OpenClaw plugin, and a Hermes Agent MemoryProvider integration. The README describes local operation without API keys or cloud services, except when optional cloud embedding services are configured.

## Best for
- Individuals or teams who want agent memory stored in a local SQLite vault.
- Users of Claude Code, OpenClaw, Hermes Agent, or other MCP-compatible clients.
- Users prepared to install Bun and select, index, and maintain a local document collection.

## Not for
- Users who need a hosted cloud memory service or a setup with no local installation.
- Users seeking native Windows support; the README recommends WSL2 for Windows.
- Users who only need basic file search without an indexed memory store.

## Required permissions
- Needs access to the notes, project documents, or other configured collections that it indexes and searches.
- Needs local read and write access to the SQLite vault and related configuration; some integrations install client hooks or plugins.
- Optional features may run local models or use a configured cloud embedding service; a cloud service receives the content it processes.

## Risks
- MCP tools can read, index, and manage vault content; forget, pin, snooze, reindex, and lifecycle tools change memory state.
- The README describes prompt-injection defenses, but retrieved content still enters the agent context; review source material and surfaced results.
- Cloud embedding or judge services can be configured; the README says a cloud judge receives new decisions and retrieved candidate snippets.
- Local models and background indexing can use CPU, GPU, disk space, and time.

## Client config (JSON)
```json
{"mcpServers":{"clawmem":{"command":"/absolute/path/to/clawmem/bin/clawmem","args":["mcp"]}}}
```

## Tools (33)
- `__IMPORTANT`: Workflow guide: start with memory_retrieve, choose tools by query type, and use multi_get for full content.
- `memory_retrieve`: Classifies query intent and routes to a suitable retrieval backend.
- `search`: Performs BM25 keyword search for exact terms, filenames, and error codes.
- `vsearch`: Performs vector semantic search for conceptual or fuzzy queries.
- `query`: Runs hybrid retrieval with BM25, vector search, and reranking.
- `get`: Retrieves one document by path or document ID.
- `multi_get`: Retrieves multiple documents by glob or comma-separated list.
- `find_similar`: Finds vector-similar documents for a reference document.
- `intent_search`: Classifies WHY, WHEN, ENTITY, or WHAT intent and searches related graph connections.
- `query_plan`: Splits a complex multi-topic question into retrieval clauses and merges the results.
- `build_graphs`: Builds temporal and semantic graphs from the document corpus.
- `find_causal_links`: Traverses causal relations between documents to find decision chains.
- `kg_query`: Queries subject-predicate-object knowledge graph triples with validity windows.
- `memory_evolution_status`: Shows the A-MEM metadata evolution history for a document.
- `timeline`: Shows a document's temporal neighborhood and related session information.
- `beads_sync`: Syncs issues from a Beads issue tracker into the memory vault.
- `list_vaults`: Lists configured vault names and paths.
- `vault_sync`: Indexes Markdown content from a directory into a named vault.
- `diary_write`: Writes a searchable diary memory entry.
- `diary_read`: Reads recent diary entries, optionally filtered by agent name.
- `memory_forget`: Finds and deactivates the closest matching memory; ambiguous matches return candidates for disambiguation.
- `memory_pin`: Pins a memory for lifecycle retention and priority among similarly relevant results.
- `memory_snooze`: Temporarily hides a memory until a specified date.
- `status`: Shows index health and content type distribution.
- `reindex`: Triggers a vault rescan.
- `index_stats`: Shows index statistics such as types, staleness, access counts, and sessions.
- `memory_stats`: Shows lifecycle and ranking-metadata aggregates for memories.
- `memory_rank`: Shows retrieval ranking diagnostics; read-only.
- `session_log`: Shows recent session history, handoffs, and file changes.
- `profile`: Shows the static and dynamic user profile.
- `lifecycle_status`: Shows active, archived, forgotten, pinned, and snoozed counts and policy information.
- `lifecycle_sweep`: Runs lifecycle policies to archive stale documents; defaults to preview mode.
- `lifecycle_restore`: Restores documents archived by lifecycle policies.
