
Memoir
Gives Claude a local SQLite journal to remember what happened across sessions. It automatically detects your project via git root and logs attempts, blockers, decisions, and their outcomes. When you start a fresh conversation, call get_handoff to pull a structured summary of what the last session tried, what's stuck, and why. You can query past sessions with get_history or filter for unresolved blockers. Everything lives in a single database file at ~/.memoir/memoir.db with rolling retention that keeps your last 20 sessions per project. Useful when you're iterating on something tricky and don't want to re-explain context or repeat failed approaches every time you open a new chat.
- tools
- 8
- transport
- STDIO
- env vars
- 4
- last updated
- Mar 6, 2026
Tools
8 toolsPublic tool metadata for what this MCP can expose to an agent.
log_attemptRecord something that was tried and its outcome.
Record something that was tried and its outcome.
No parameter schema in public metadata yet.
log_blockerFlag something that's stuck and why.
Flag something that's stuck and why.
No parameter schema in public metadata yet.
resolve_blockerMark a blocker as resolved with what fixed it.
Mark a blocker as resolved with what fixed it.
No parameter schema in public metadata yet.
log_decisionRecord a design or architecture choice and its rationale.
Record a design or architecture choice and its rationale.
No parameter schema in public metadata yet.
end_sessionClose the current session with an optional summary.
Close the current session with an optional summary.
No parameter schema in public metadata yet.
get_handoffStructured summary of the last session -- what was attempted, what's blocked, what was decided.
Structured summary of the last session -- what was attempted, what's blocked, what was decided.
No parameter schema in public metadata yet.
get_historyQuery past sessions (default: last 3, max 20).
Query past sessions (default: last 3, max 20).
No parameter schema in public metadata yet.
get_blockersList unresolved (or resolved) blockers across all sessions.
List unresolved (or resolved) blockers across all sessions.
No parameter schema in public metadata yet.
Sponsors
Configuration
MEMOIR_MAX_CONTENTMax characters for content fields
MEMOIR_MAX_OUTCOMEMax characters for outcome/resolution fields
MEMOIR_MAX_ENTRIESMax entries per session
MEMOIR_MAX_SESSIONSMax sessions per project (rolling)
Readme
memoir-mcp
Structured session journals for AI agents. Persistent memory across sessions -- no more repeating dead ends.
When a session ends, all reasoning is lost -- what was tried, what failed, what's blocked. The next session starts from scratch and repeats the same mistakes. memoir logs it all and hands it off so the next session picks up where the last one left off.
Works with any MCP client: Claude Code, Cursor, Codex, Windsurf, and more.
Install
Claude Code
claude mcp add memoir -s user -- npx -y memoir-mcp
Other MCP clients
npx -y memoir-mcp
How it works
- Automatic project detection -- identifies the project by its git root, so logs stay scoped without any configuration.
- Implicit sessions -- a session is created automatically on first log. No setup step.
- Rolling retention -- keeps the last 20 sessions per project (configurable). Old sessions are pruned automatically.
Tools
Write
Details
- Repository
- github.com/bighippoman/memoir-mcp
- Category
- AI & LLM Tools
- Package
memoir-mcp- Transport
- STDIO
- Registry
- MCP registry, active