# Stashpad

> Stashpad is an open-source MCP server for files and documents. Local Markdown memory for AI coding agents with a review queue and search. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI
- **Repository:** https://github.com/laaielichter/stashpad
- **GitHub stars:** 2
- **License:** MIT
- **MCP Registry name:** io.github.laaielichter/stashpad
- **Categories:** [files and documents](https://ai-powered.com/categories/files-and-documents), [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
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.

### Claude Code: Or share it with your project (.mcp.json)

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

### Claude Desktop (claude_desktop_config.json)

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

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

### Cursor (~/.cursor/mcp.json)

```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.

### VS Code (~/.copilot/mcp-config.json)

```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.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add stashpad --env STASHPAD_PASSPHRASE='<STASHPAD_PASSPHRASE>' -- npx -y stashpad
```

### Codex: Or add to config.toml (~/.codex/config.toml)

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

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```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

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```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.

### Devin Desktop (~/.config/devin/mcp_config.json)

```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.

### Cline (cline_mcp_settings.json)

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

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

### Zed (Zed settings.json)

```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.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "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.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

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

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

### Kiro (~/.kiro/settings/mcp.json)

```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.

### Other clients (your client's MCP settings (most use this shape))

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

## 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.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/stashpad
