Mnemos: an MCP server for persistent Claude Code memory

✍️ OpenClawRadar📅 Published: May 8, 2026🔗 Source
Mnemos: an MCP server for persistent Claude Code memory
Ad

Claude Code forgets everything between sessions, forcing you to re-explain conventions, corrections, and context every time. Mnemos (GitHub) is an MCP server that fixes that by storing and replaying persistent memory across sessions.

How it works

  • On session start, it pushes a ranked context block (conventions, corrections, skills, hot files, recent session summaries) into Claude's prompt.
  • Records corrections as tried / wrong_because / fix. Three corrections on the same topic auto-promote into a reusable skill with When this applies / Avoid / Do sections — deterministic pattern mining, no LLM in the loop.
  • Bi-temporal store: facts carry valid/invalid timestamps, so "we used to use X, now Y" works without stale context.
  • Compaction recovery: one tool call restores the goal and key decisions after Claude Code compacts mid-session.
  • Prompt-injection scanner at write boundary (instruction overrides, zero-width unicode, MCP spoofing).
  • Retrospective replay: regenerate any past session as markdown with everything learned since layered in, paste it back to Claude, ask "what would I do differently now."
Ad

Stack & install

  • Single static Go binary, 15 MB. No Python, no Docker, no vector DB, no CGO.
  • SQLite + FTS5 retrieval, optional cosine similarity if Ollama is running.
  • Install (MIT, free, no paid tier):
curl -fsSL https://raw.githubusercontent.com/polyxmedia/mnemos/main/scripts/install.sh | bash
mnemos init
  • mnemos init auto-wires Claude Code, Claude Desktop, Cursor, Windsurf, and Codex CLI. Restart your agent and mnemos_* tools show up.

Who it's for

Developers using Claude Code who are tired of re-teaching conventions every session and want reproducible, token-free memory.

📖 Read the full source: r/ClaudeAI

Ad

👀 See Also

Obsidian Integration for Persistent Memory in OpenClaw and Claude Code
Tools

Obsidian Integration for Persistent Memory in OpenClaw and Claude Code

A Reddit user demonstrates how connecting OpenClaw and Claude Code to an Obsidian vault creates persistent long-term memory across sessions. The setup automatically links memories, context, project files, and notes, with all instances able to access shared memory when needed.

OpenClawRadar
Claude Code Plugin for D&D Campaigns Using Markdown State Tracking
Tools

Claude Code Plugin for D&D Campaigns Using Markdown State Tracking

A Claude Code plugin uses markdown files to track campaign state and lets Claude act as Dungeon Master for solo D&D sessions. The system is free and open-source, requiring installation as a plugin followed by the /claude-dnd:new-campaign command to start.

OpenClawRadar
certctl: Self-hosted certificate lifecycle platform with 78 API endpoints for AI agent automation
Tools

certctl: Self-hosted certificate lifecycle platform with 78 API endpoints for AI agent automation

certctl is a self-hosted certificate lifecycle platform built with Go and TypeScript that exposes 78 REST API endpoints for certificate management. The platform is issuer-agnostic and target-agnostic, with an MCP server planned to expose all functionality as native MCP tools.

OpenClawRadar
Equibles: Self-Hosted MCP Server for U.S. Financial Data – SEC Filings, 13F, Insider Trades, FRED
Tools

Equibles: Self-Hosted MCP Server for U.S. Financial Data – SEC Filings, 13F, Insider Trades, FRED

Equibles is an open-source MCP server that scrapes public U.S. financial data (SEC filings, 13F, insider/congressional trades, short data, FRED) and exposes it as MCP tools for any local LLM agent.

OpenClawRadar