← Back to directory
C

ClawMem

Community
Local persistent memory for AI agents.
Category
Database #16 of 86
Stars
★ 212 Very popular
Transport
stdio (local process)
Runtime
Bun 1.3.14+
Credentials
No credential needed
License
MIT
Last commit
Tools
33
59FMRS · C

The README describes a local SQLite memory vault, hybrid retrieval, an MCP stdio server, and Claude Code, OpenClaw, and Hermes integrations. The manifest was not provided, so the tool list is compiled from the README's tool table; the README does not establish that the server is maintained by the MCP protocol owner or the related product owners.

Strongest · Documentation 15/20 Weakest · Reliability 10/20

Reliability
10/20
Security and permissions
12/20
Maintenance
10/20
Documentation
15/20
Setup experience
12/20
Why each score
Reliability 10/20
The README describes stdio startup, tool listings, dependencies, and several failure safeguards, but provides no verifiable CI workflow or tests covering key server paths. It also gives inconsistent tool counts (33 and 31). The static material cannot verify the initialization handshake, actual tool behavior, or error handling, so the score reflects a plausible but unverified implementation.
Security and permissions 12/20
The README claims local-by-default operation, token authentication and cross-origin rejection for the REST API, plus path restrictions and prompt-injection defenses. It also says that configuring a cloud judge sends decisions and retrieved snippets. MCP tools include side-effecting operations such as forgetting, syncing, and indexing, but the material does not establish their confirmation flow or full permission boundaries. No explicit red-line evidence appears, but limited data-flow and permission details warrant deductions.
Maintenance 10/20
The material identifies an MIT license, an npm update path, multiple version references, and upgrade notes, indicating a maintenance and release path. It provides no verifiable commit history, maintainer response record, security reporting channel, or dependency update evidence, so maintenance continuity and governance cannot be established.
Documentation 15/20
The README provides layered setup steps, client configuration examples, tool descriptions, authentication details, platform limitations, inference configuration, and upgrade guidance. Deductions reflect the inconsistent tool counts, limited independently verifiable evidence for some capabilities, and gaps in cost and troubleshooting evidence. This review relies only on the supplied README.
Setup experience 12/20
The README gives npm installation, a bootstrap command, and a Claude Code MCP configuration example, and explains support for Linux, macOS, and WSL2 as well as the native Windows limitation. Setup still involves several choices around Bun, optional models and inference services, and hook configuration. With no verifiable execution evidence, the score does not assume a proven one-command connection.

Static review · not runReviewed 2026-11-29

Read the FMRS scoring method →

Fit and risk

What it can accessReads local filesWrites / deletes local filesUses the networkConnects to a database

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 and side effects

  • 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.

Setup

Before you start

Runtime:Bun 1.3.14+

CLAWMEM_API_TOKEN optionalsecret Optional REST API bearer token; set your own value or use clawmem serve-token to print the token in use.
Other optional settings (11)
CLAWMEM_BIN optional Path to the clawmem binary used by the Hermes plugin, or ensure it is on PATH.
CLAWMEM_SERVE_PORT optional REST API port used by the Hermes plugin; defaults to 7438.
CLAWMEM_SERVE_MODE optional Hermes plugin service mode: external means you run clawmem serve; managed means the plugin manages it.
CLAWMEM_PROFILE optional Hermes plugin profile: speed, balanced, or deep.
OPENCLAW_STATE_DIR optional OpenClaw profile state directory; set it to use a custom profile directory.
CLAWMEM_VAULTS optional JSON mapping of named vaults to their paths.
CLAWMEM_NO_LOCAL_MODELS optional Set to true to fail fast when local models are unavailable instead of silently falling back to CPU.
CLAWMEM_HEAVY_LANE optional Set to true to enable the optional heavy background maintenance lane.
CLAWMEM_CONTRADICTION_POLICY optional Selects the policy used when contradiction detection blocks a merge.
CLAWMEM_CONTRADICTION_MIN_CONFIDENCE optional Sets the minimum confidence for contradiction handling.
CLAWMEM_CONTRADICTION_INVALIDATE optional Controls whether contradiction invalidation is enabled; it is off by default.

Install Bun, then install with npm install -g clawmem or Bun's global package install. Initialize and index content with clawmem bootstrap ~/notes --name notes. For an MCP client, configure the command as /absolute/path/to/clawmem/bin/clawmem with args ["mcp"]; Claude Code can register it with clawmem setup mcp. The stdio MCP server does not need a network port. The README specifies Bun v1.3.14 or later.

.mcp.json
{"mcpServers":{"clawmem":{"command":"/absolute/path/to/clawmem/bin/clawmem","args":["mcp"]}}}

Shown for Claude Code. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.

.vscode/mcp.json
{
  "servers": {
    "clawmem": {
      "command": "/absolute/path/to/clawmem/bin/clawmem",
      "args": [
        "mcp"
      ]
    }
  }
}

Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).

~/.codex/config.toml
[mcp_servers.clawmem]
command = "/absolute/path/to/clawmem/bin/clawmem"
args = ["mcp"]

Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).

Terminal
claude mcp add clawmem -- /absolute/path/to/clawmem/bin/clawmem mcp

Run it in a terminal; replace any <…> placeholders with your own values first.

Check that it works

Check that the MCP client's tool list includes ClawMem tools such as memory_retrieve, search, and timeline. You can also ask it to search the vault to confirm the connection.

Troubleshooting

  1. Run clawmem doctor to check installation and services, or clawmem status to inspect index statistics.
  2. Check that Bun meets the stated version requirement and that the configured MCP command path is correct and executable.
  3. Confirm that a collection has been added and indexed; vector retrieval also requires embeddings.
  4. For dedicated inference services, check endpoint and model configuration; the README recommends clawmem rerank-health for reranker checks.

Things to try

Once connected, you can ask your AI assistant things like:

  • Find memories about authentication decisions.
  • Summarize what happened in the last session.
  • Find memories similar to this one and show its timeline.
  • List the configured vaults.

Tools 33

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

Use cases

Share project notes and decisions across sessions and supported agent runtimes.
Search local documents using keyword, semantic, hybrid, and intent-based retrieval.
Explore document timelines, session history, similar documents, and causal links.
Manage memory pinning, snoozing, archival, and restoration.

Supported clients

Claude Code
Claude Desktop
OpenClaw
Hermes AgentPartial support

Listed from the project's documentation, not tested by this site.

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.

Similar servers

Source revision 3c23948c306f Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/clawmem.svg)](https://followmcp.com/en/servers/clawmem)