mnemo

mnemo

A local-first memory server for AI tools that provides cross-tool, consent-gated, and auditable memory management via MCP.

Category
Visit Server

README

Mnemo

Your memory. Your rules. A user-owned memory layer that every AI tool can share โ€” local-first, consent-gated, and fully auditable.

Stop re-explaining yourself to every assistant. Mnemo gives you one memory that Claude, Cursor, and any MCP-speaking tool can draw from โ€” while you decide exactly what each tool may read or write, and see everything it did.


The problem

Every AI tool builds its own siloed memory of you. Claude doesn't know what you told ChatGPT. Cursor doesn't know your stack. That memory is locked inside each vendor โ€” you can't see it, export it, or control it. Your context is your most valuable data, scattered across companies that own it instead of you.

What Mnemo does

Mnemo is a small local daemon that holds your memories in a single SQLite file and exposes them over the Model Context Protocol. Any AI tool connects to the same vault โ€” but nothing is shared by default.

Four guarantees, true from day one:

๐Ÿ—„๏ธ You own it One local SQLite file. Full JSON export anytime. No vendor lock-in.
๐Ÿ”Œ Cross-tool One memory, exposed via MCP to Claude Desktop, Cursor, and any MCP client.
๐Ÿ›‚ Consent-gated Default-deny. Each tool gets per-scope read/write grants (e.g. Cursor: read tech, never health).
๐Ÿ“œ Auditable Every access โ€” allowed or denied โ€” is recorded: who, when, which scope.

This is the difference from framework memory (mem0, Letta) and vendor memory: Mnemo's wedge is ownership + cross-tool + consent/audit, not features.


Quickstart

Requires Node โ‰ฅ 22 (Mnemo uses the built-in node:sqlite โ€” no native build, no external services).

git clone https://github.com/fozankhana/mnemo && cd mnemo
pnpm install
pnpm build

# launch your private dashboard
node packages/cli/dist/index.js
# โ†’ http://127.0.0.1:4319

Add a memory and search it, all locally:

node packages/cli/dist/index.js add "I prefer TypeScript and pnpm" --scope tech
node packages/cli/dist/index.js search "language preferences"

(Once published to npm, the same commands become npx mnemo โ€ฆ.)

Connect an AI tool

Generate a config block:

node packages/cli/dist/index.js config --client claude-desktop

Paste it into your tool:

  • Claude Desktop โ†’ claude_desktop_config.json (Settings โ†’ Developer โ†’ Edit Config)
  • Cursor โ†’ ~/.cursor/mcp.json
{
  "mcpServers": {
    "mnemo": {
      "command": "npx",
      "args": ["-y", "mnemo", "mcp", "--client", "claude-desktop", "--label", "Claude Desktop"]
    }
  }
}

The tool now appears in your dashboard under Clients & Consent as pending. Grant it a scope and it can start remembering โ€” within the limits you set. Try asking your assistant to "remember that I prefer dark mode," then ask a fresh chat (or a different tool) "what theme do I prefer?"


How it works

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     MCP (stdio)      โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  AI tools       โ”‚ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ถ โ”‚  mnemo mcp           โ”‚
โ”‚  Claude/Cursor  โ”‚  search/write/scopes โ”‚   โ†’ ClientSession    โ”‚  consent-gated
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                      โ”‚      โ†“ enforce + log โ”‚  + audited
                                         โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
   Browser โ”€โ”€โ”€โ”€ localhost dashboard โ”€โ”€โ”€โ–ถ โ”‚  AdminApi (owner)    โ”‚  full control
                                         โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                                    โ–ผ
                                       SQLite (memories ยท scopes ยท
                                       grants ยท audit) + embeddings

Two API surfaces over one vault:

  • ClientSession โ€” what AI tools get. Every write/search/listScopes is checked against the consent engine and written to the audit log first. Out-of-scope memories are never even returned.
  • AdminApi โ€” what you get (dashboard + CLI). Full access to manage memories, grants, and review the audit trail.

Search is semantic: memories are embedded into vectors and ranked by cosine similarity. The default embedder is local and dependency-free (so npx works everywhere); a fastembed (ONNX) provider plugs into the same interface for higher-quality semantic recall.


CLI reference

mnemo [dashboard]                 Start the local dashboard (default)
mnemo mcp --client <id> [--label] Run the MCP server over stdio (for AI tools)
mnemo config [--client <id>]      Print an MCP config snippet
mnemo grant <client> <scope>      Grant access (--read --write; default both; scope "*" = all)
mnemo revoke <client> <scope>     Revoke a grant
mnemo add <text...> [--scope s]   Add a memory as the owner
mnemo delete <memory-id>          Delete a memory by id
mnemo search <query...>           Semantic search across all scopes
mnemo clients | scopes            List clients / scopes
mnemo audit [--limit n]           Show recent audit entries
mnemo export [--out file.json]    Export the whole vault as JSON

Environment: MNEMO_HOME (vault dir, default ~/.mnemo) ยท MNEMO_PORT (default 4319) ยท MNEMO_EMBEDDINGS (lexical | fastembed).

MCP tools exposed

  • memory_search(query, k?, scope?) โ€” recall relevant memories the tool may read.
  • memory_write(content, scope?, metadata?) โ€” persist a durable fact (if granted).
  • memory_list_scopes() โ€” list scopes the tool is allowed to read.

Consent denials are returned to the model as a friendly tool error, so it can ask you to approve access โ€” it never crashes.


Privacy & data

Everything lives in one file: ~/.mnemo/mnemo.db. The dashboard binds to 127.0.0.1 only. Nothing leaves your machine. Export or delete the file at any time โ€” that's the whole point.

Roadmap (open-core)

The local core is, and stays, free and open. Planned layers:

  • fastembed provider โ€” high-quality local semantic embeddings.
  • End-to-end-encrypted sync โ€” your vault across devices, zero-knowledge.
  • Team / shared vaults โ€” scoped, audited memory for collaborators.
  • Policy templates & SSO โ€” for organizations.

The storage layer already writes records as self-contained envelopes so the sync layer slots in without a data-model rewrite.

Development

pnpm build          # compile all packages
pnpm test           # core unit tests
pnpm test:all       # core + MCP integration tests

Monorepo layout: packages/core (vault, embeddings, consent, audit) ยท packages/mcp (MCP server) ยท packages/cli (mnemo + dashboard).

License

AGPL-3.0 โ€” see LICENSE. The local core is free and open; commercial use in a hosted/SaaS context requires open-sourcing modifications.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured