# Monomem

> Monomem is an open-source MCP server for knowledge and memory. Local SQLite memory shared by coding agents, with writer tracking and held risky writes. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, self-hosted, macOS, Windows, Linux
- **Repository:** https://github.com/calasdan-sketch/monomem
- **MCP Registry name:** io.github.calasdan-sketch/monomem
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory), [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-11-14

## About

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.

## Features

- **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

## Install

### Claude Code (Terminal)

```sh
claude mcp add monomem -- npx -y monomem
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "monomem": {
      "command": "npx",
      "args": [
        "-y",
        "monomem"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "monomem": {
      "command": "npx",
      "args": [
        "-y",
        "monomem"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "monomem": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "monomem"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "monomem": {
      "command": "npx",
      "args": [
        "-y",
        "monomem"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "monomem": {
      "command": "npx",
      "args": [
        "-y",
        "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.

## Alternatives

- [Mnemodb](https://ai-powered.com/mcp/mnemodb): Mnemodb is an open-source MCP server for knowledge and memory.
- [OriMem](https://ai-powered.com/mcp/orimem): OriMem is an open-source MCP server for knowledge and memory.
- [Mnemosyne OS](https://ai-powered.com/mcp/mnemosyne-os): Mnemosyne OS is a freemium MCP server for knowledge and memory.
- [Memdrive MCP](https://ai-powered.com/mcp/memdrive-mcp): Memdrive MCP is an open-source MCP server for knowledge and memory.
- [Monet](https://ai-powered.com/mcp/monet): Monet is an open-source MCP server for knowledge and memory.
- [open-memex](https://ai-powered.com/mcp/open-memex): open-memex is an open-source MCP server for knowledge and memory.
- [Mnemolith](https://ai-powered.com/mcp/mnemolith): Mnemolith is an open-source MCP server for knowledge and memory.
- [memgit](https://ai-powered.com/mcp/memgit): memgit is a freemium MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/monomem
