Local-first MCP memory server that stores and retrieves project knowledge in SQLite across coding-agent sessions.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
One-click editor setup isnβt available for this listing yet β we donβt have a confirmed install command, and weβd rather show nothing than point your editor at the wrong package or host. Follow the projectβs own setup instructions, linked above.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Memento MCP.
A local-first MCP server that gives Claude Code, Codex, Cursor, and any stdio-MCP client durable project memory: facts, decisions, patterns, architecture notes, pitfalls, session summaries, and team-shared knowledge β while cutting thousands of tokens of repeated context out of every single session.
[!NOTE] AI coding agents are powerful, but they forget. They forget why a decision was made, which migration broke production, which convention your project follows, and which workaround saved you three hours last week.
memento-mcpfixes that β and stops your agent burning thousands of tokens re-reading the same context every session.
It stores structured memories locally in SQLite, retrieves the right context when your agent needs it, and can sync selected team memories through git. No hosted vector database. No mandatory cloud account. No mystery SaaS quietly eating your project history.
|
Getting started
|
Features |
Reference |
Published on npm as:
Install globally:
memento-mcp gives your AI coding tools a memory layer that survives across sessions, machines, and teammates.
It can remember:
| Architectural decisions | Project conventions |
| Known pitfalls | Implementation patterns |
| Debugging notes | User/team preferences |
| Session summaries | Reusable context from CLAUDE.md, AGENTS.md, Cursor rules, Copilot instructions, β¦ |
| Curated notes from an Obsidian vault |
Then it injects the relevant context back into your agent at the right time, without forcing you to paste the same project explanation into every new chat like a medieval scribe with npm installed.
Without persistent memory, every new session starts blind:
CLAUDE.md / AGENTS.md / .cursor/rules/ / Copilot instructions get re-pasted or stuffed into the system promptmemento-mcp imports that context once β from any of the major LLM instruction files β and serves back only the slice the current prompt needs, using progressive disclosure that prefers cheap index/summary layers over full bodies.
| Where the tokens go | Without memento | With memento | Saved |
|---|---|---|---|
CLAUDE.md / AGENTS.md / .cursorrules re-injected | ~1,500 t | imported once β 0 t | ~1,500 t |
| Architecture re-explained mid-chat | ~500 t | 1 retrieved decision (~80 t) | ~420 t |
| Pitfall re-discovered | ~300 t | 1 retrieved pitfall (~80 t) | ~220 t |
| "What were we doing?" recap | ~400 t | 1 session summary (~200 t) | ~200 t |
| Total prelude per session | ~2,700 t | ~360 t | ~2,340 t |
[!NOTE] Numbers are deliberately conservative. Real-world
CLAUDE.md/AGENTS.md/.cursor/rules/trees routinely reach 3-5k tokens (often more once a team accumulates files across multiple tools), and longer-running projects accumulate dozens of decisions and pitfalls. Savings scale with project age.
| Cadence | Sessions / month | Tokens saved (conservative) |
|---|---|---|
| Solo dev, ~4 sessions/day | ~80 | ~190,000 |
| 5-person team, same cadence | ~400 | ~940,000 |
Three things you get back, for free:
[!TIP] Compounding effect: when embeddings are enabled, write-time dedup keeps the memory store lean, and adaptive ranking surfaces only high-utility memories β so the retrieved tokens are higher-signal too.
Log decisions, pitfalls, patterns, and architecture notes as structured memories instead of burying them in old chats, random Markdown files, or the cursed archaeology layer known as βSlack searchβ.
Team-scoped memories are serialized into your repo under:
Commit them, push them, and teammates can pull the same operational knowledge.
The default setup uses:
[!TIP] Optional embeddings are available, but they are opt-in.
<private>...</private> regions are excluded from search indexes, injection, embeddings, LLM calls, and sync paths. Secret scrubbing is applied at write time for common credentials such as env-var values, JWTs, GitHub tokens, URL credentials, and authorization headers.
Run the local inspector:
Browse memories, sessions, projects, sync state, analytics, and drift without opening yet another SaaS dashboard pretending to be βsimpleβ.
1. Install from npm:
2. Wire it into your MCP client:
This configures supported local clients such as Claude Code, Codex, Cursor, or other stdio-MCP clients.
3. Verify the install:
4. Open the local web UI:
Store different kinds of project knowledge with different ranking weights and retrieval behavior:
fact Β Β·Β decision Β Β·Β preference Β Β·Β pattern Β Β·Β architecture Β Β·Β pitfall
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/lfrmonteiro99-memento-mcp)<a href="https://allmcps.com/mcp/lfrmonteiro99-memento-mcp"><img src="https://allmcps.com/api/badge/lfrmonteiro99-memento-mcp?style=directory" alt="Memento MCP on AllMCPs" /></a>