Memoir
FreeMaintainedStructured session journals for AI agents. Persistent memory across sessions -- no more repeating dead ends.
About
Structured session journals for AI agents. Persistent memory across sessions -- no more repeating dead ends.
README
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
| Tool | Description |
|---|---|
log_attempt |
Record something that was tried and its outcome. |
log_blocker |
Flag something that's stuck and why. |
resolve_blocker |
Mark a blocker as resolved with what fixed it. |
log_decision |
Record a design or architecture choice and its rationale. |
end_session |
Close the current session with an optional summary. |
Read
| Tool | Description |
|---|---|
get_handoff |
Structured summary of the last session -- what was attempted, what's blocked, what was decided. |
get_history |
Query past sessions (default: last 3, max 20). |
get_blockers |
List unresolved (or resolved) blockers across all sessions. |
Storage
Single SQLite file at ~/.memoir/memoir.db. No API keys, no external services.
Configuration
All limits are configurable via environment variables:
| Variable | Default | Description |
|---|---|---|
MEMOIR_MAX_CONTENT |
500 | Max characters for content fields |
MEMOIR_MAX_OUTCOME |
300 | Max characters for outcome/resolution fields |
MEMOIR_MAX_ENTRIES |
50 | Max entries per session |
MEMOIR_MAX_SESSIONS |
20 | Max sessions per project (rolling) |
Example with custom limits:
claude mcp add memoir -s user -e MEMOIR_MAX_CONTENT=1000 -e MEMOIR_MAX_ENTRIES=100 -- npx -y memoir-mcp
Handoff output uses a compact format to keep context window usage low.
License
MIT
Install Memoir in Claude Desktop, Claude Code & Cursor
unyly install memoir-mcpInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add memoir-mcp -- npx -y memoir-mcpStep-by-step: how to install Memoir
FAQ
Is Memoir MCP free?
Yes, Memoir MCP is free — one-click install via Unyly at no cost.
Does Memoir need an API key?
No, Memoir runs without API keys or environment variables.
Is Memoir hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Memoir in Claude Desktop, Claude Code or Cursor?
Open Memoir on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Changes
Versions and requested access over time.
- New version published
- New version published
Related MCPs
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hzMCP-Agent
A simple, composable framework to build agents using Model Context Protocol by [LastMile AI](https://www.lastmileai.dev)
by lastmile-aiSpring AI MCP Client
Provides auto-configuration for MCP client functionality in Spring Boot applications.
mcp.natoma.ai
A Hosted MCP Platform to discover, install, manage and deploy MCP servers by [Natoma Labs](https://www.natoma.ai)
MCPHub
Website to list high quality MCP servers and reviews by real users. Also provide online chatbot for popular LLM models with MCP server support.
MCP Servers Rating and User Reviews
Website to rate MCP servers, write authentic user reviews, and [search engine for agent & mcp](http://www.deepnlp.org/search/agent)
mkinf
An Open Source registry of hosted MCP Servers to accelerate AI agent workflows.
Compare Memoir with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All ai MCPs
