/ Directory / Playground / Stash
● Community alash3al ⚡ Instant

Stash

by alash3al · alash3al/stash

A tiny Go memory service for agents — episodes (events over time) and facts (durable knowledge), exposed via MCP.

Stash gives agents two storage modalities: episodes (time-ordered events) and facts (key-value durable knowledge). Lightweight, single-binary, easy to run on a Raspberry Pi.

Why use it

Key features

Live Demo

What it looks like in practice

ready

Install

Pick your client

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "stash-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-p",
        "9000:9000",
        "ghcr.io/alash3al/stash:latest"
      ]
    }
  }
}

Open Claude Desktop → Settings → Developer → Edit Config. Restart after saving.

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "stash-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-p",
        "9000:9000",
        "ghcr.io/alash3al/stash:latest"
      ]
    }
  }
}

Cursor uses the same mcpServers schema as Claude Desktop. Project config wins over global.

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "stash-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-p",
        "9000:9000",
        "ghcr.io/alash3al/stash:latest"
      ]
    }
  }
}

Click the MCP Servers icon in the Cline sidebar, then "Edit Configuration".

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "stash-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-p",
        "9000:9000",
        "ghcr.io/alash3al/stash:latest"
      ]
    }
  }
}

Same shape as Claude Desktop. Restart Windsurf to pick up changes.

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "stash-mcp",
      "command": "docker",
      "args": [
        "run",
        "-p",
        "9000:9000",
        "ghcr.io/alash3al/stash:latest"
      ]
    }
  ]
}

Continue uses an array of server objects rather than a map.

~/.config/zed/settings.json
{
  "context_servers": {
    "stash-mcp": {
      "command": {
        "path": "docker",
        "args": [
          "run",
          "-p",
          "9000:9000",
          "ghcr.io/alash3al/stash:latest"
        ]
      }
    }
  }
}

Add to context_servers. Zed hot-reloads on save.

claude mcp add stash-mcp -- docker run -p 9000:9000 ghcr.io/alash3al/stash:latest

One-liner. Verify with claude mcp list. Remove with claude mcp remove.

Use Cases

Real-world ways to use Stash

Keep agent memory across sessions

👤 Developers ⏱ ~15 min intermediate

When to use: You want Claude to remember preferences and recent context.

Flow
  1. Run stash
    docker run alash3al/stash✓ Copied
    → Service up
  2. Wire MCP
    Add stash as MCP in Claude config.✓ Copied
    → Tools visible
  3. Use
    remember "user prefers TypeScript over JS"; recall later.✓ Copied
    → Memory recalled

Outcome: Continuity without paying for a full memory SaaS.

Combinations

Pair with other MCPs for X10 leverage

stash-mcp + filesystem

Periodically dump memory to disk for backup

Combine stash-mcp with filesystem: Periodically dump memory to disk for backup✓ Copied

Tools

What this MCP exposes

ToolInputsWhen to callCost
remember_episode (see docs) Append a timeline event 1 call
remember_fact (see docs) Store a durable fact 1 call
search (see docs) Search both stores 1 call

Cost & Limits

What this costs to run

API quota
Local
Tokens per call
Small
Monetary
Free OSS
Tip
Snapshot the data dir regularly

Security

Permissions, secrets, blast radius

Credential storage: On-disk DB
Data egress: None by default

Troubleshooting

Common errors and fixes

Embedding endpoint missing

Set EMBEDDING_URL or run in keyword-only mode

Alternatives

Stash vs others

AlternativeWhen to use it insteadTradeoff
memsearchYou want Milvus-backed scaleHeavier setup

More

Resources

📖 Read the official README on GitHub

🐙 Browse open issues

🔍 Browse all 400+ MCP servers and Skills