Skip to content
MCP server

madeleine

Agent memory that resurfaces when a place, time, sound or sensor reading matches

Runs locally

madeleine is an open-source MCP server for knowledge and memory. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, Self-hosted, macOS
Runs
Locally
What it can do
Can change data (1 tool)
Version
0.2.0

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add madeleine -- uvx madeleine-mcp

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "madeleine": {
      "command": "uvx",
      "args": [
        "madeleine-mcp"
      ]
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "madeleine": {
      "command": "uvx",
      "args": [
        "madeleine-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "madeleine": {
      "command": "uvx",
      "args": [
        "madeleine-mcp"
      ]
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "madeleine": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "madeleine-mcp"
      ]
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add madeleine -- uvx madeleine-mcp

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.madeleine]
command = "uvx"
args = ["madeleine-mcp"]

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "madeleine": {
      "command": "uvx",
      "args": [
        "madeleine-mcp"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "madeleine": {
          "command": "uvx",
          "args": [
            "madeleine-mcp"
          ]
        }
      }
    }

    Or run: gemini mcp add -s user madeleine uvx -- madeleine-mcp

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "madeleine": {
          "command": "uvx",
          "args": [
            "madeleine-mcp"
          ]
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "madeleine": {
          "command": "uvx",
          "args": [
            "madeleine-mcp"
          ]
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "madeleine": {
          "command": "uvx",
          "args": [
            "madeleine-mcp"
          ]
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "madeleine": {
          "command": "uvx",
          "args": [
            "madeleine-mcp"
          ]
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "madeleine": {
          "command": "uvx",
          "args": [
            "madeleine-mcp"
          ]
        }
      }
    }

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "madeleine": {
          "command": "uvx",
          "args": [
            "madeleine-mcp"
          ]
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "madeleine": {
          "command": "uvx",
          "args": [
            "madeleine-mcp"
          ]
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • MADELEINE_DBSQLite database path (default ~/.madeleine/madeleine.db)
  • MADELEINE_TEXT_BACKENDauto | sentence-transformers | hash (offline lexical)

About madeleine

madeleine adds a second memory pathway for agents. Most memory is voluntary: the agent searches and gets results. Here each memory is stored with the sensory fingerprint present when it was recorded, such as place, time of day, text, image, sound or biometrics, and incoming cues are matched against those fingerprints continuously.

When enough channels line up and a threshold is cleared, the memory is queued as an involuntary recollection and delivered with the agent's next prompt. A refractory period of six hours by default stops the same memory firing repeatedly, and context such as time alone can strengthen a match but never cause one.

Cues can arrive through MCP, an HTTP API, Home Assistant, iOS Shortcuts or wearables. Everything lives in a local SQLite file with no telemetry, raw media is discarded after embedding, and the HTTP server binds to 127.0.0.1. Text matching uses a lexical hash by default, with optional sentence-transformer, image and audio extras.

Tools this server provides (7)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 1 of 7 tools changes data; 5 names don't say.

From the server's own tool labels and tool names; not verified by us.

remember
Store a memory with its sensory fingerprint
recall
Search stored memories
sense
Send a cue that may trigger recollections
pending_recollections
Fetch queued involuntary recollections
get_memoryName suggests: reads
Read one memory
update_memoryName suggests: changes
Edit a memory
forget
Delete a memory

What it does

Cue matching
Matches place, time, text, image, audio and biometric cues to stored memories.
Push delivery
Queued recollections reach each Claude Code prompt through a hook.
Habituation
A refractory period keeps repeats quiet.
Local SQLite store
No cloud and no telemetry.
Integrations
Home Assistant, iOS Shortcuts and plain HTTP cues.
Demo mode
uvx madeleine-mcp demo runs the full loop offline.

Good for

  • Recall a memory when you arrive at a place
  • Connect a smart home or wearable to agent memory
  • Give an assistant time-of-day aware recall
  • Experiment with sensory memory research

Pricing

Open source

Open-source Python package; local-first

madeleine FAQ

How do I try madeleine?

Run uvx madeleine-mcp demo; it works offline and downloads nothing.

Where is data kept?

In a local SQLite file at ~/.madeleine/madeleine.db with owner-only permissions.

Does madeleine work outside Claude Code?

Yes, but other clients get recollections by calling pending_recollections.

Is raw audio or image data stored?

No, not unless you ask; bytes are embedded and discarded.

Is madeleine free?

Yes. madeleine is open source, so you can use and self-host it for free.

How do I add madeleine to Claude Code?

Run this command in your terminal: claude mcp add madeleine -- uvx madeleine-mcp

What are the best alternatives to madeleine?

The closest alternatives to madeleine are Codebase Memory, XERJ, Claude Code Ultimate Guide, Nautilus Compass Memory and Myco: Agent-First Cognitive Substrate.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers