mcpField
M
mnemo

mnemo

Local
github.com/jmeiracorbalDatabases3Updated 6d ago

About mnemo

mnemo is a local persistent memory system for coding agents, storing decisions, bugs, conventions, and discoveries in SQLite for use across sessions and supported agents. It connects through MCP tools, hooks, and portable skills, with project-level activation and diagnostics.

Key features

  1. 01Local memory with SQLite and FTS5
  2. 02Project-scoped activation and shared source
  3. 03MCP tools, hooks, and portable skills
  4. 04Support for multiple coding agents
  5. 05Passive capture of session learnings
  6. 06Configuration diagnostics and repair

Use cases

  1. 01Retain project decisions between sessions
  2. 02Share memory across coding agents
  3. 03Search prior project discoveries and conventions
  4. 04Check and repair agent integration setup

MCP support

mnemo exposes memory save, search, context, and diagnostic functions to coding agents through MCP tools. It also supports hooks and native-tool integrations.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

mnemo — persistent memory for AI coding agents

Same source of truth across Claude Code, Codex, Cursor, OpenCode and Pi.

English · Español · 简体中文

License Release Stars Go Storage Platform

Claude Code Codex Cursor OpenCode Pi

Quick Start · Why mnemo? · How it works · Agents · Docs · Community · Roadmap

mnemo terminal demo


Why mnemo?

Agents forget. Markdown memory drifts. Hooks race. Setup fails silently.

Without mnemoWith mnemo
Decisions vanish between sessionsDurable project memory in local SQLite
MEMORY.md, editor memory and chat notes divergeOne project-scoped source of truth for every supported agent
Global hooks run everywhere, or nowhere usefulOpt-in via .mnemo; unmarked projects are ignored
Silent misconfigurationmnemo doctor explains exactly what is wired; mnemo doctor --fix repairs it

mnemo does not claim every harness. It ships a stable memory contract that any harness can implement and validate.

Quick Start

# 1. Install the latest stable release
curl -sSf https://raw.githubusercontent.com/jmeiracorbal/mnemo/main/install.sh | bash

# 2. Activate in a project
cd your-project
mnemo init --agent=all

# 3. Verify
mnemo doctor --agent=all --path=.

Then in your agent: mem_save a decision, close the session, open another — mem_search / mem_context finds it.

mnemo search "SQLite" --project "$(mnemo json id < .mnemo)"

The installer and mnemo update follow the latest published stable release (v1.0.0). Use mnemo update --prerelease only to opt into prereleases. See the Installation guide for updates and agent-specific setup.

How it works

agents → mnemo → local SQLite memory

  1. Agents talk to mnemo through MCP tools, hooks and portable Agent Skills.
  2. A local event controller is the sole normal SQLite writer — publishers never open the database.
  3. Memories stay on your machine: structured observations, tags, topic keys and session summaries in SQLite + FTS5.
project/
├── .mnemo      # project ID + activated agents (gitignored)
├── AGENTS.md   # shared memory authority
├── CLAUDE.md   # Claude rules when selected
├── .cursor/    # Cursor rules when selected
└── .pi/        # Pi prompt extensions when selected

See Durable Events for delivery and failure semantics.

Highlights

  • Project-scoped activation — global hooks stay inert without a valid .mnemo
  • MCP + native tools — mem_save, mem_search, mem_context, mem_doctor, and more
  • Durable event controller — JetStream per user; idempotent SQLite transactions
  • Controller-owned sessions — agent-native execution IDs bind to one canonical session
  • Portable skills — teach agents to use mnemo instead of falling back to native memory
  • Passive capture — extract learnings from agent-provided output
  • Provenance — SQL-queryable agent, tool, model and MCP client metadata
  • Diagnostics & repair — mnemo doctor / mnemo doctor --fix, project merge/rename, mnemo memories review
  • Safe migrations & self-update — schema upgrades on open; mnemo update for releases

Supported Agents

AgentMCPHooks / runtimeGlobal instructionsSkillStatus
Claude CodeYesSession hooksYesYesSupported
CodexYesSession hooksYesYesSupported
CursorYesPrompt hookYesYesSupported
OpenCodeYesPlugin eventsYesYesSupported
PiNative toolsNative extensionYesYesSupported

Codex requires an interactive hook trust review after install — details in Agent Integrations.

Claude Code uses CLAUDE_CONFIG_DIR for its config directory when set, and defaults to ~/.claude. Its MCP configuration .claude.json lives in that directory when CLAUDE_CONFIG_DIR is set, and in $HOME otherwise.

Associated modules

ModulePurpose
mnemo-adaptersAgent adapter interfaces and mappings for CLI, controller and MCP
mnemo-eventsDurable event and command contracts shared by publishers, controller and store

Installation options

PathCommand
Pinned stable (v1.0.0)curl -sSf https://raw.githubusercontent.com/jmeiracorbal/mnemo/main/install.sh | MNEMO_VERSION=v1.0.0 bash
Latest stablecurl -sSf https://raw.githubusercontent.com/jmeiracorbal/mnemo/main/install.sh | bash
One agentbash -s -- --agent=codex
All agentsbash -s -- --agent=all
From sourcego build -o ~/.local/bin/mnemo ./cmd/mnemo/

The installer configures every agent: instructions, MCP server, hooks and skills. mnemo ships no agent plugins. If you installed the mnemo Claude Code or Codex plugin from an earlier release, mnemo doctor reports it and mnemo doctor --fix removes it and restores the installer setup.

Full update flags and uninstall steps: Installation.

Documentation

GuideContents
Wiki homeUser documentation and navigation
InstallationBinary, controller, activation, updates
Agent integrationsNative IDs, hooks, tools, Codex trust
Durable eventsController architecture and failure behavior
CLI referenceCommands, MCP tools, search modes
TroubleshootingDiagnostics and controller recovery
StorageSQLite, migrations, sqlc
RoadmapPlanned product and maintenance work

Design principles

  • Local-first — memory stays on your machine in SQLite
  • Agent-neutral — one memory authority across supported coding agents
  • Opt-in by project — global integrations are inert without .mnemo
  • Diagnosable — every setup surface can be checked without mutation, and mnemo doctor --fix repairs it
  • Repairable — duplicate projects and memory conflicts are visible and fixable via CLI

Community

Star the repo if mnemo helps your agent workflow — it signals that local, agent-neutral memory is worth building.

License

Apache 2.0: use, modify and distribute freely; retain the copyright notice and include NOTICE in all distributions.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.