io.github.bighippoman/memoir

Official registry AI and agents

Structured session journals for AI agents. Persistent memory across sessions.

Install

Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).

NPM package memoir-mcp
Claude Code
claude mcp add memoir -e 'MEMOIR_MAX_CONTENT=<MEMOIR_MAX_CONTENT>' -e 'MEMOIR_MAX_OUTCOME=<MEMOIR_MAX_OUTCOME>' -e 'MEMOIR_MAX_ENTRIES=<MEMOIR_MAX_ENTRIES>' -e 'MEMOIR_MAX_SESSIONS=<MEMOIR_MAX_SESSIONS>' -- npx -y memoir-mcp@1.0.3
JSON configuration (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "memoir": {
            "command": "npx",
            "args": [
                "-y",
                "memoir-mcp@1.0.3"
            ],
            "env": {
                "MEMOIR_MAX_CONTENT": "<MEMOIR_MAX_CONTENT>",
                "MEMOIR_MAX_OUTCOME": "<MEMOIR_MAX_OUTCOME>",
                "MEMOIR_MAX_ENTRIES": "<MEMOIR_MAX_ENTRIES>",
                "MEMOIR_MAX_SESSIONS": "<MEMOIR_MAX_SESSIONS>"
            }
        }
    }
}

Environment variables

  • MEMOIR_MAX_CONTENT Max characters for content fields
  • MEMOIR_MAX_OUTCOME Max characters for outcome/resolution fields
  • MEMOIR_MAX_ENTRIES Max entries per session
  • MEMOIR_MAX_SESSIONS Max sessions per project (rolling)

Documentation

From the project's README on GitHub, refreshed weekly. Links open on GitHub.

Contents
  1. memoir-mcp
  2. Install
  3. How it works
  4. Tools
  5. Storage
  6. Configuration
  7. License

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
ToolDescription
log_attemptRecord something that was tried and its outcome.
log_blockerFlag something that's stuck and why.
resolve_blockerMark a blocker as resolved with what fixed it.
log_decisionRecord a design or architecture choice and its rationale.
end_sessionClose the current session with an optional summary.
Read
ToolDescription
get_handoffStructured summary of the last session -- what was attempted, what's blocked, what was decided.
get_historyQuery past sessions (default: last 3, max 20).
get_blockersList 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:

VariableDefaultDescription
MEMOIR_MAX_CONTENT500Max characters for content fields
MEMOIR_MAX_OUTCOME300Max characters for outcome/resolution fields
MEMOIR_MAX_ENTRIES50Max entries per session
MEMOIR_MAX_SESSIONS20Max 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

Frequently asked questions

What is io.github.bighippoman/memoir?

Structured session journals for AI agents. Persistent memory across sessions.

How do I install io.github.bighippoman/memoir?

It runs on your machine. In Claude Code: claude mcp add memoir -e 'MEMOIR_MAX_CONTENT=<MEMOIR_MAX_CONTENT>' -e 'MEMOIR_MAX_OUTCOME=<MEMOIR_MAX_OUTCOME>' -e 'MEMOIR_MAX_ENTRIES=<MEMOIR_MAX_ENTRIES>' -e 'MEMOIR_MAX_SESSIONS=<MEMOIR_MAX_SESSIONS>' -- npx -y memoir-mcp@1.0.3. For other clients, paste the JSON configuration from this page into their MCP settings.

Does io.github.bighippoman/memoir need an API key?

Its registry entry lists no required key or secret. Some features may still need an account with the service it connects to.

Is io.github.bighippoman/memoir open source?

Yes. Its code is on GitHub under the MIT license.

Who maintains io.github.bighippoman/memoir?

It is published by bighippoman. AI.tn lists it but does not maintain or endorse it.

From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.