mnemo — persistent local memory for AI coding agents via MCP

mnemo — persistent local memory for AI coding agents via MCP

mnemo•byjmeiracorbal

mnemo is a memory service for AI coding agents that exposes MCP tools and keeps durable, project-scoped project memory in a local SQLite database.

License: Apache 2.0•Runtime: Awaiting documentation review•Category: ai agents-models

WHAT IT DOES

  • •Exposes MCP memory tools such as mem_save, mem_search, mem_context and mem_doctor to agents.
  • •Stores structured observations, tags, topic keys and session summaries in local SQLite with FTS5.
  • •Scopes activation per project through a .mnemo marker so global integrations stay inert elsewhere.
  • •Provides diagnostics and repair via mnemo doctor and mnemo doctor --fix.

BEST FOR

  • •Coding agent sessions that need decisions remembered across sessions.
  • •Teams using multiple coding agents who want one project-scoped source of truth.
  • •Users who require memory to stay local on their own machine.

ABOUT MNEMO

mnemo — persistent local memory for AI coding agents via MCP is cataloged as an MCP server attributed to jmeiracorbal. mnemo is a memory service for AI coding agents that exposes MCP tools and keeps durable, project-scoped project memory in a local SQLite database. It is categorized under ai agents-models. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Apache 2.0. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for mnemo — persistent local memory for AI coding agents via MCP are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Where is memory stored?

Memories are kept locally in SQLite with FTS5 on the user's machine.

Can mnemo be limited to specific projects?

Yes; activation is opt-in per project, and global hooks stay inert without a valid .mnemo.

上游原版 README

在 GitHub 查看同一版本原文

README.md · ecd475cf9cb2 · 采集于 2026-11-13 13:44:50 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

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.1). 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 (Git-trackable)
├── AGENTS.md   # shared memory authority
├── CLAUDE.md   # Claude rules when selected
├── .cursor/    # Cursor rules when selected
└── .pi/        # Pi prompt extensions when selected

Git tracking is opt-in: mnemo init no longer adds .mnemo to .gitignore and does not change Git tracking. To share an existing project ID across clones, run mnemo track inside the repository. This explicit command removes legacy .mnemo ignore rules and stages only .mnemo without changing its ID. Review and commit the resulting changes; mnemo never commits or pushes them. Existing installations: after updating mnemo, run mnemo track in each repository you want to migrate; updating alone will not change Git state. The marker currently contains the project ID and activated agent names, not stored memories or credentials. A project ID is not an authorization token: a future cloud service must enforce user/organization access on every operation (OWASP API1:2023, Broken Object Level Authorization).

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.

Internal components

The agent adapters and durable event controller are maintained inside Mnemo (internal/adapters and internal/events). The CLI and MCP server use these packages directly.

Installation options

PathCommand
Pinned stable (v1.0.1)curl -sSf https://raw.githubusercontent.com/jmeiracorbal/mnemo/main/install.sh | MNEMO_VERSION=v1.0.1 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.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for mnemo — persistent local memory for AI coding agents via MCP from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mnemo)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related ai agents-models MCP Servers

Alternative and complementary servers in the same category

View all in ai agents-models →
Knowledge Graph Memory
@modelcontextprotocol/server-memory•Model Context Protocol

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

create_entitiescreate_relationsadd_observations+6 more
92K
AI & Multi-Agent
Sequential Thinking
@modelcontextprotocol/server-sequential-thinking•Model Context Protocol

Organize problem solving into revisable, branching thought steps through an MCP tool.

sequential_thinking
92K
AI & Multi-Agent

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.

146
AI & Multi-Agent