Clawmem
MCP server by yoloshii Verified · npm:clawmem
ClawMem is an on-device memory layer for Claude Code, OpenClaw, and Hermes agents. It combines hooks, an MCP server, and hybrid search over a local SQLite vault. It suits developers who want persistent project memory without API keys or cloud services.
Install Clawmem
Built from the published package, never by AI.
claude mcp add clawmem -- npx -y clawmemRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"clawmem": {
"args": [
"-y",
"clawmem"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"clawmem": {
"args": [
"-y",
"clawmem"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"clawmem": {
"args": [
"-y",
"clawmem"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add clawmem -- npx -y clawmem{
"mcpServers": {
"clawmem": {
"args": [
"-y",
"clawmem"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add clawmem npx -y clawmemGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the clawmem block.
About
ClawMem turns markdown notes, project docs, and session transcripts into persistent memory for AI coding agents. It runs fully local with no API keys and no cloud services. Retrieval combines BM25, vector search, reciprocal rank fusion, query expansion, and cross-encoder reranking. It also uses composite scoring based on recency, confidence, and content type, plus multi-graph traversal across semantic, temporal, and causal links.
ClawMem integrates through Claude Code hooks, an MCP server that works with any MCP-compatible client, a native OpenClaw plugin, or a Hermes Agent MemoryProvider plugin. All paths write to the same local SQLite vault, so a decision captured in one runtime can appear in another. It is written in TypeScript on Bun and released under the MIT License. It is aimed at developers who use AI coding agents across projects.
Written from the project's README and checked against it.
Tools it gives your assistant
memory_retrieveClassifies the query intent and routes it to the best search backend.timelineShows chronological context around a document, from search results to full content.
What you need
- Bun v1.0 or later
- Linux, macOS, or Windows through WSL2
- SQLite with FTS5, included with Bun
- Claude Code, OpenClaw, or Hermes Agent for native integration (optional)
- llama.cpp for dedicated GPU inference (optional)
Try asking
- Use memory_retrieve to find what we decided about the database schema.
- Show the timeline around the last deployment note.
- What did we decide in the last session about the API design?
Good to know
- Native Windows is not recommended. Use WSL2 instead.
- The contradiction judge is disabled unless CLAWMEM_JUDGE_* is configured.
- The heavy maintenance lane is off by default and needs CLAWMEM_HEAVY_LANE=true.
- Beads issue sync requires the bd CLI.
Security check
C- Asks for administrator rights (sudo)In
README.md:sudo - Downloads a script from the internet and runs it (a well-known installer)In
README.md:curl -fsSL https://bun.sh/install | bash
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Clawmem
All alternatives →Connects Supabase projects to AI assistants such as Cursor, Claude and Windsurf over the Model Context Protocol. It lets assistants manage tables, fetch config and query data in a Supabase project.
ArcadeDB MCP Server is the built-in Model Context Protocol server of the ArcadeDB multi-model database. It lets AI assistants and LLMs work with ArcadeDB's graph, document, time-series, vector and other data models. It suits people who already run ArcadeDB and want assistant access to it.
Connects MCP clients such as Claude Desktop, Cursor and VS Code to PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, ClickHouse and SQLite. It exposes two tools by default, with read-only mode and query timeouts available as guardrails.
MCP Toolbox for Databases is an open source MCP server that connects AI agents, IDEs and applications to enterprise databases. It provides prebuilt tools for exploring schemas and running queries, plus a framework for custom tools. It is aimed at developers building agents that need database access.
Connects AI agents, IDEs and applications to enterprise databases through the Model Context Protocol. Offers prebuilt database tools for MCP clients and a framework for building custom tools for production agents.
MongoDB MCP Server lets AI assistants interact with MongoDB databases and MongoDB Atlas. It is an official server from mongodb-js, run locally with npx or Docker. It works with self-managed deployments and Atlas clusters.
Compare with Supabase, ArcadeDB MCP Server or DBHub
Clawmem: common questions
Does ClawMem need an API key?
No. The source says it runs fully local with no API keys and no cloud services.
Which agents can use ClawMem?
It works with Claude Code through hooks and MCP tools, with OpenClaw as a native plugin, and with Hermes Agent as a MemoryProvider plugin. Any MCP-compatible client can use its MCP server.
Do memories carry over between agents?
Yes. All integration paths share the same local SQLite vault, so a decision captured in Claude Code can show up for an OpenClaw or Hermes agent on the same project.
How do I install Clawmem?
In Claude Code run claude mcp add clawmem -- npx -y clawmem. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Clawmem the official server?
Clawmem is published by npm:clawmem from its verified domain in the official MCP Registry.
Is Clawmem free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Clawmem safe to use?
It scores 81 of 100. Grades: maintenance A, licence A, quality B. Security check: grade C (asks for administrator rights (sudo)). Review the code before you install. How grades work.
What are alternatives to Clawmem?
Similar MCP servers: Supabase, ArcadeDB MCP Server, DBHub, MCP Toolbox for Databases.
Does Clawmem work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
