Skip to content
MCP server

Stashpad

Local Markdown memory for AI coding agents with a review queue and search

Runs locallyActively maintained

The repository was last updated 4 days ago and is published under MIT.

Stashpad is an open-source MCP server for files and documents. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI
Runs
Locally
GitHub stars
2
Last commit
Language
JavaScript

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add stashpad --env STASHPAD_PASSPHRASE='<STASHPAD_PASSPHRASE>' -- npx -y stashpad

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": {
    "stashpad": {
      "command": "npx",
      "args": [
        "-y",
        "stashpad"
      ],
      "env": {
        "STASHPAD_PASSPHRASE": "<STASHPAD_PASSPHRASE>"
      }
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "stashpad": {
      "command": "npx",
      "args": [
        "-y",
        "stashpad"
      ],
      "env": {
        "STASHPAD_PASSPHRASE": "<STASHPAD_PASSPHRASE>"
      }
    }
  }
}

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

Claude Desktop setup guide

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "stashpad": {
      "command": "npx",
      "args": [
        "-y",
        "stashpad"
      ],
      "env": {
        "STASHPAD_PASSPHRASE": "<STASHPAD_PASSPHRASE>"
      }
    }
  }
}

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

Cursor setup guide

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

{
  "mcpServers": {
    "stashpad": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "stashpad"
      ],
      "env": {
        "STASHPAD_PASSPHRASE": "<STASHPAD_PASSPHRASE>"
      }
    }
  }
}

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 stashpad --env STASHPAD_PASSPHRASE='<STASHPAD_PASSPHRASE>' -- npx -y stashpad

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.stashpad]
command = "npx"
args = ["-y", "stashpad"]
env = { STASHPAD_PASSPHRASE = "<STASHPAD_PASSPHRASE>" }

Codex setup guide

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

{
  "mcpServers": {
    "stashpad": {
      "command": "npx",
      "args": [
        "-y",
        "stashpad"
      ],
      "env": {
        "STASHPAD_PASSPHRASE": "<STASHPAD_PASSPHRASE>"
      }
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "stashpad": {
          "command": "npx",
          "args": [
            "-y",
            "stashpad"
          ],
          "env": {
            "STASHPAD_PASSPHRASE": "<STASHPAD_PASSPHRASE>"
          }
        }
      }
    }

    Or run: gemini mcp add -s user -e STASHPAD_PASSPHRASE='<STASHPAD_PASSPHRASE>' stashpad npx -- -y stashpad

    Antigravity

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

    {
      "mcpServers": {
        "stashpad": {
          "command": "npx",
          "args": [
            "-y",
            "stashpad"
          ],
          "env": {
            "STASHPAD_PASSPHRASE": "<STASHPAD_PASSPHRASE>"
          }
        }
      }
    }

    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": {
        "stashpad": {
          "command": "npx",
          "args": [
            "-y",
            "stashpad"
          ],
          "env": {
            "STASHPAD_PASSPHRASE": "<STASHPAD_PASSPHRASE>"
          }
        }
      }
    }

    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": {
        "stashpad": {
          "command": "npx",
          "args": [
            "-y",
            "stashpad"
          ],
          "env": {
            "STASHPAD_PASSPHRASE": "<STASHPAD_PASSPHRASE>"
          }
        }
      }
    }

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

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "stashpad": {
          "command": "npx",
          "args": [
            "-y",
            "stashpad"
          ],
          "env": {
            "STASHPAD_PASSPHRASE": "<STASHPAD_PASSPHRASE>"
          }
        }
      }
    }

    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": {
        "stashpad": {
          "command": "npx",
          "args": [
            "-y",
            "stashpad"
          ],
          "env": {
            "STASHPAD_PASSPHRASE": "<STASHPAD_PASSPHRASE>"
          }
        }
      }
    }

    The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

    Junie

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

    {
      "mcpServers": {
        "stashpad": {
          "command": "npx",
          "args": [
            "-y",
            "stashpad"
          ],
          "env": {
            "STASHPAD_PASSPHRASE": "<STASHPAD_PASSPHRASE>"
          }
        }
      }
    }

    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": {
        "stashpad": {
          "command": "npx",
          "args": [
            "-y",
            "stashpad"
          ],
          "env": {
            "STASHPAD_PASSPHRASE": "<STASHPAD_PASSPHRASE>"
          }
        }
      }
    }

    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

  • STASHPAD_DIRFolder where the memories live (default: ./.stashpad/memories in the working folder)
  • STASHPAD_PASSPHRASEOnly for a store encrypted with 'stashpad encrypt'

About Stashpad

Stashpad keeps an agent's memory as plain Markdown files in your project, each with a source and dates, so a person can read, fix and commit them. Writes from agents, tools or the web wait in a review queue until accepted, and near-duplicates, secrets and hidden text are refused.

It runs as an MCP server and a CLI, with no model, cloud or network calls and no dependencies beyond Node 20. The README compares it with mem0, the reference MCP memory server and hand-written CLAUDE.md files, and it is frank about limits: search is BM25 with synonyms, finding about two of three reworded questions in its own evaluation, and there is no sync between machines or shared team server.

Features include pinned rules that return after compaction, decisions that record why and what lost, memories anchored to files that flag when code changes, and an automatic handoff note between sessions via a Claude Code plugin with hooks. The README says doctor expects an 8-tool server.

What it does

Markdown memories
One file per memory with source and dates, git-friendly.
Review queue
Agent-written notes wait for a person to accept.
Pinned rules and handoffs
Rules and the latest handoff return at session start and after compaction.
File anchors
Flags memories whose anchored files changed or moved.
Decision records
Keeps the reason and rejected alternatives.
Optional encryption
Encrypt a store with a passphrase.

Good for

  • Stop a coding agent forgetting rules after context compaction
  • Record decisions with their reasoning
  • Hand work over between sessions
  • Audit what memory the agent was shown

Pricing

Open source

MIT licence, no cost

Stashpad FAQ

Does Stashpad send data anywhere?

No. The README says no network calls and no telemetry.

Does Stashpad do semantic search?

No. It uses word search with synonyms; the README says it misses some rewordings.

Which clients work?

Claude Code, Codex, Cursor, VS Code, Gemini CLI and any MCP client.

What licence?

MIT.

Is Stashpad free?

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

How do I add Stashpad to Claude Code?

Run this command in your terminal: claude mcp add stashpad --env STASHPAD_PASSPHRASE='<STASHPAD_PASSPHRASE>' -- npx -y stashpad

What are the best alternatives to Stashpad?

The closest alternatives to Stashpad are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

Where this comes from

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

How AIPoweredBot checks servers