Clawmem logo

Clawmem

Local hybrid-RAG memory for agents, with hooks, MCP access, session handoffs, and a shared SQLite vault.

Install Clawmem

Run the project’s own setup commands, in order.

Setup steps from the project

clawmem installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    npm install -g clawmem
    
  2. 2. Install
    git clone https://github.com/yoloshii/clawmem.git ~/clawmem
    
  3. 3. Install
    cd ~/clawmem && bun install
    
  4. 4. Install
    ln -sf ~/clawmem/bin/clawmem ~/.bun/bin/clawmem
    
  5. 5. Add to your MCP client
    ./bin/clawmem setup mcp   # Registers in ~/.claude.json
    
  6. 6. Start the server
    clawmem serve --port 7438 &
    

Overview

clawmem MCP server gives AI agents access to a local SQLite memory vault through hybrid retrieval and MCP tools. It combines BM25, vector search, graph traversal, query expansion, reranking, and recency-based scoring to surface relevant notes and relationships. Claude Code hooks, OpenClaw, Hermes, and MCP-compatible clients can share the same vault, while local models handle observation and optional synthesis. Reach for clawmem when agents need persistent project context, cross-session handoffs, searchable conversation history, or locally managed memory without cloud services.

Use cases

  • Surface relevant project context on each coding prompt
  • Carry decisions and handoffs between agent sessions
  • Import and search historical conversations locally
  • Traverse temporal and causal relationships between notes
  • Synchronize Beads issues into agent memory

Key features

  • Hybrid BM25 and vector retrieval with rank fusion
  • Shared local SQLite vault across agent runtimes
  • Claude Code hooks, MCP, OpenClaw, and Hermes integrations
  • Session handoffs, observation capture, and feedback-based scoring
  • Semantic, temporal, and causal memory-graph traversal
  • Local conversation mining with optional fact synthesis

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars212Stargazers on the source repository.
Last commit5d agoMost recent push to the default branch.

How Clawmem works

What clawmem does

clawmem turns Markdown notes, project documentation, research material, and imported conversations into searchable memory for AI agents. Its local vault is shared across Claude Code hooks, the MCP interface, the OpenClaw plugin, and the Hermes Agent MemoryProvider, allowing information captured in one runtime to be available in another.

The system supports session context, including user profiles, recent handoffs, decisions, stale notes, and relevant background facts. It can capture decisions, preferences, milestones, and problems from session transcripts, generate a handoff at the end of a session, and adjust memory importance through feedback from referenced notes. Conversation imports can come from Claude Code, ChatGPT, Claude.ai, Slack, or plain text. Optional synthesis extracts structured facts and links between them.

How it works

All access paths write to a local SQLite vault. Retrieval combines lexical BM25 matching, vector search, reciprocal-rank fusion, query expansion, and optional cross-encoder reranking. Composite scoring also considers recency, confidence, content type, document quality, revision history, and relationships between co-accessed documents.

Queries can be classified by intent, such as why, when, entity, or what, then routed to suitable search and graph operations. Semantic, temporal, and causal relationships support multi-graph traversal. Memory metadata can evolve as documents gain keywords, tags, and causal links, while contradiction handling and entity-aware merge checks help prevent conflicting or cross-entity observations from being combined.

Context-surfacing hooks package retrieved material as background facts and relationships, with prompt-injection safeguards. A session focus topic can influence snippet selection without changing retrieval order or the set of selected documents. Heavy maintenance is available as an optional quiet-window worker controlled by configuration.

Setup and configuration

clawmem runs locally as TypeScript on Bun and is designed to operate without API keys or cloud services. It can be connected through Claude Code hooks, the MCP server, a native OpenClaw plugin, or a Hermes Agent MemoryProvider. MCP-compatible clients can use the MCP path, while all supported runtimes continue to use the same vault.

A local GGUF observer model is used for transcript capture. Contradiction judging is optional and is enabled through the CLAWMEM_JUDGE_* configuration family. The heavier maintenance lane is disabled by default and can be enabled with CLAWMEM_HEAVY_LANE=true; it runs only within its configured quiet window and yields when interactive query activity is present.

Tools and capabilities

  • memory_retrieve automatically classifies a query and selects a retrieval backend.
  • timeline progressively exposes a document’s chronological neighborhood and then its full content.
  • clawmem mine imports supported conversation exports and text, with optional fact synthesis.
  • clawmem focus set assigns a session-scoped topic for snippet selection.
  • clawmem rerank-health reports the attested identity used for cached remote rerank scores.
  • Hooks surface context, capture observations, create handoffs, and record retrieval feedback.
  • Lifecycle controls support pinning, snoozing, archival sweeps, and restoration.
  • Beads issue trackers can be synchronized into searchable memory.

Limitations and notes

The memory store is local and SQLite-based, so shared data depends on runtimes using the same vault. Local operation avoids cloud dependencies but still relies on the configured local models for observation and optional synthesis. The contradiction judge is inactive unless configured. Focus topics affect presentation only; they do not alter search expansion, scoring, ranking, or document admission. Heavy maintenance is opt-in rather than part of the default interactive path.

Clawmem is released under the MIT License.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Clawmem

clawmem is an MCP server that connects AI agents to a shared local SQLite memory vault. Its main tools include `memory_retrieve` for intent-routed hybrid search and `timeline` for chronological context around documents. It also supports hooks, conversation mining, session handoffs, graph traversal, and local operation without API keys or cloud services.

Run clawmem as a local TypeScript-on-Bun application and connect its MCP interface to an MCP-compatible client. It is designed for local use without API keys or cloud services, and it can also be integrated through Claude Code hooks, the OpenClaw plugin, or the Hermes Agent `MemoryProvider`.

Yes, clawmem works with MCP-compatible clients, which includes clients that support standard MCP connections such as Cursor. The MCP interface uses the same local SQLite vault as its Claude Code, OpenClaw, and Hermes integrations.

Yes, `clawmem mine` can import conversation exports from ChatGPT, Claude Code, Claude.ai, Slack, and plain text. Optional synthesis uses a local model to extract structured decisions, preferences, milestones, problems, and links between extracted facts.

Both runtimes write to the same local SQLite vault, so information captured through Claude Code hooks can be retrieved by the OpenClaw plugin. The same shared-vault pattern also supports Hermes and the MCP interface.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewClawmem AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/clawmem?style=directory)](https://allmcps.com/mcp/clawmem)
HTML Embed
<a href="https://allmcps.com/mcp/clawmem"><img src="https://allmcps.com/api/badge/clawmem?style=directory" alt="Clawmem on AllMCPs" /></a>