Monomem
Local SQLite memory shared by coding agents, with writer tracking and held risky writes
- Pricing
- Open source
- Platforms
- CLI, self-hosted, macOS
- Runs
- Locally
- Version
- 1.6.0
- Listing updated
- 4 days ago
Similar MCP servers
About Monomem
Monomem is an open-source MCP server for knowledge and memory. It runs locally on your machine and is started by your AI client.
Monomem keeps one SQLite file on your own machine that Claude Code, Cursor, Codex, Gemini CLI and other agents can all read, so a fact told to one is available to the others. There is no cloud, no API key and no hidden model calls. Every note records who wrote it; for local apps this is a label from the app's config, which separates apps but is not proof of identity.
Its distinctive feature is a hold queue. Writes that match known prompt-injection patterns wait for your approval and are kept out of other agents' search until then, and an approve-first mode makes every agent write wait. The README is frank that this is pattern matching, that an agent able to run shell commands can bypass it, and that anything able to open the database directly can edit notes.
npx monomem setup finds installed clients, shows the exact edits, backs up each file and writes only after confirmation. The drill command replays 23 known poisoning attacks against a copy of your store, and import commands bring in notes from CLAUDE.md, claude-mem, mem0, basic-memory and the official memory server. It needs Node 22.16 or newer, or Docker.
Install
Run in a terminal
claude mcp add monomem -- npx -y monomemAdd to claude_desktop_config.json
{
"mcpServers": {
"monomem": {
"command": "npx",
"args": [
"-y",
"monomem"
]
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"monomem": {
"command": "npx",
"args": [
"-y",
"monomem"
]
}
}
}Add to .vscode/mcp.json
{
"servers": {
"monomem": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"monomem"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"monomem": {
"command": "npx",
"args": [
"-y",
"monomem"
]
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"monomem": {
"command": "npx",
"args": [
"-y",
"monomem"
]
}
}
}Using several servers? Build one config file with the MCP config generator.
Configuration
MONOMEM_CLIENTApp name stamped on this server's writes (written_by becomes stdio:<name>). 1-40 characters a-z 0-9 . _ -. Self-declared, not authenticated.MONOMEM_HOMEData directory (database, tokens). Default: ~/.monomem (Windows: the .monomem folder in your user profile); an existing ~/.onememory store is kept in place, as is a checkout's ./data/state.db.MONOMEM_DB_PATHSQLite file path, overriding the data directory for the database only. Default: <data dir>/state.db.
What it does
- Shared local memory
- One SQLite file read by several coding assistants, kept in ~/.monomem.
- Writer provenance
- Each note records which app or token wrote it.
- Held suspicious writes
- Notes matching attack patterns wait for approval before others can see them.
- Guided setup
- setup finds clients, shows the edits, backs up files and supports undo.
- Attack drill
- Replays 23 known poisoning attacks on a copy of your store.
- Import from other tools
- Brings in notes from CLAUDE.md, claude-mem, mem0, basic-memory and the MCP memory server.
- Dashboard and REST
- monomem start serves a dashboard, REST API and MCP over HTTP on localhost.
Good for
- Share project facts between Claude Code and Cursor
- Review agent memory writes that look like planted instructions
- Audit which assistant wrote a given note
- Move memory over from another memory tool
Pricing
Open source
Free; runs locally
Monomem FAQ
Where is my data stored?
In ~/.monomem on your machine by default, in a SQLite file; MONOMEM_HOME and MONOMEM_DB_PATH change this.
Does it work with claude.ai or the mobile app?
Not yet. Those connectors use OAuth and Monomem only accepts a bearer token.
What Node version is needed?
Node 22.16 or newer; Docker is the alternative.
Does the suspicious-write check catch everything?
No. It is pattern matching, and a reworded attack can get through.
Is Monomem free?
Yes. Monomem is open source, so you can use and self-host it for free.
How do I add Monomem to Claude Code?
Run this command in your terminal: claude mcp add monomem -- npx -y monomem
What are the best alternatives to Monomem?
The closest alternatives to Monomem are Mnemodb, OriMem, Mnemosyne OS, Memdrive MCP and Monet.
Where this comes from
- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.