Cavemem
MCP server by JuliusBrussee Verified · npm:cavemem
Cavemem gives coding assistants persistent memory across sessions. Hooks capture session events, compress them, and store them in local SQLite that agents can query through MCP tools.
Install Cavemem
Built from the published package, never by AI.
claude mcp add cavemem -- npx -y cavememRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"cavemem": {
"args": [
"-y",
"cavemem"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"cavemem": {
"args": [
"-y",
"cavemem"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"cavemem": {
"args": [
"-y",
"cavemem"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add cavemem -- npx -y cavemem{
"mcpServers": {
"cavemem": {
"args": [
"-y",
"cavemem"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add cavemem npx -y cavememGemini 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 cavemem block.
About
Cavemem is cross-agent persistent memory for coding assistants. Hooks fire at session boundaries, compress observations with the caveman grammar, and write them to a local SQLite database with FTS5 full-text search. Code blocks, URLs, paths, and identifiers are kept as written. Agents query their history through MCP tools that return compact results first and fetch full observation bodies on demand. Search combines keyword matching with a local vector index. The source says there are no network calls by default, and web enrichment is opt-in. Cavemem supports Claude Code, OpenCode, Codex, GitHub Copilot, and Augment Code for capture and query. Cursor, Gemini CLI, Antigravity, and IBM Bob are query-only. The project is aimed at developers who want their assistants to remember earlier work. The source also marks the project as frozen as of August 2026.
Written from the project's README and checked against it.
Tools it gives your assistant
searchSearches stored memory with BM25 keyword ranking and optional cosine re-ranking.timelineLists observations in a session, optionally around a given observation id.get_observationsFetches full observation bodies by id, expanded by default.list_sessionsLists past sessions with their IDE, working directory, and start and end times.enrichOpt-in web search that stores compressed extracts as observations with source URLs.
What you need
- npm to install the cavemem package
- Claude Code, OpenCode, Codex, GitHub Copilot, Augment Code, Cursor, Gemini CLI, Antigravity, or IBM Bob
- Git for Windows with its bin folder on the user Path, on Windows
Try asking
- Search my cavemem memory for how we handled the auth token refresh.
- Show the timeline of observations from my last session.
- List my recent sessions and summarize what I worked on.
Good to know
- The project is frozen as of August 2026 and gets no new features or fixes.
- Cursor, Gemini CLI, Antigravity, and IBM Bob can query memory but do not capture it.
- Codex and GitHub Copilot have no SessionEnd event, and Augment Code has no UserPromptSubmit event.
- The enrich tool is off by default and makes no network calls unless enabled.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Cavemem
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
Cavemem: common questions
Does cavemem send my data to the cloud?
The source says cavemem makes no network calls and stores data locally in SQLite. Optional remote embedding providers can be set in config, and web enrichment is opt-in.
How does cavemem keep secrets out of memory?
Content inside private tags is stripped before writing. Path globs can exclude files, and secret-shaped substrings such as API keys and tokens are redacted by default.
Which assistants can write new memories?
Claude Code, OpenCode, Codex, GitHub Copilot, and Augment Code can capture new observations. Cursor, Gemini CLI, Antigravity, and IBM Bob can only query memory captured elsewhere.
How do I install Cavemem?
In Claude Code run claude mcp add cavemem -- npx -y cavemem. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Cavemem the official server?
Cavemem is published by npm:cavemem from its verified domain in the official MCP Registry.
Is Cavemem free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Cavemem safe to use?
It scores 86 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Cavemem?
Similar MCP servers: Supabase, ArcadeDB MCP Server, DBHub, MCP Toolbox for Databases.
Does Cavemem 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.
