Skip to main content
Glama

stash

Big outputs stay out of Claude's context. Claude pulls back only what it needs. Install in 1 minute.

An MCP server, packaged as a Claude Code plugin. Works on macOS, Linux and Windows.

Install (1 minute)

  1. Run:

    claude plugin marketplace add NourEldinShobier/stash
    claude plugin install stash@stash
  2. Restart Claude Code.

Done. Claude sees six new stash_* tools.

Related MCP server: claude-memory

You need

What

Required?

Get it

Bun

Yes

curl -fsSL https://bun.sh/install | bash (Windows: powershell -c "irm bun.sh/install.ps1 | iex")

What it does

  1. Claude runs a command, a code snippet or a file through stash.

  2. stash stores the full output in a local SQLite search index and returns a short preview.

  3. Claude searches that output and gets back only the matching parts.

Tools

Tool

Does

stash_run

Runs shell commands, stores the output, returns previews and search hits

stash_code

Runs a TypeScript, JavaScript, Python or shell snippet; returns only what it prints

stash_index

Stores a file or a piece of text

stash_search

Finds passages in anything stored (SQLite full-text search, BM25 ranking)

stash_get

Returns one stored chunk or source in full, page by page

stash_stats

Bytes stored vs bytes returned

Results

Test

Stored

Returned

git log -p --stat -30 plus one search

91 KB

9.7 KB (89% less)

Where data lives

Variable

Default

Does

STASH_DIR

~/.cache/stash

Location of the SQLite index

  • Each project gets its own index, keyed by the folder Claude Code runs in.

  • Sources older than 7 days are pruned.

  • Nothing leaves your machine: no API keys, no network calls.

Remove it

claude plugin uninstall stash@stash

Develop

bun install
bun test
bun run typecheck

Part of claude-tuning

stash is one piece of claude-tuning, a full token-saving setup for Claude Code. Install stash alone if that's all you want.

Licence

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables Claude to search, recall, and remember its own past conversations by indexing them into a local SQLite vault, providing direct access to the full context of previous sessions.
      11
      19
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides persistent, searchable memory for Claude Code using local SQLite, semantic embeddings, and full-text search, enabling Claude to recall and retrieve context across sessions and projects without external services.
      15 npm
      4
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides local-first, cross-session memory for Claude Code, enabling semantic search across past sessions to retrieve procedures, decisions, or answers without exposing secrets.
      Apache 2.0
    • A
      license
      A
      quality
      B
      maintenance
      Indexes git history, shell commands with exit codes, project docs, and opt-in assistant transcripts into a local SQLite database, then serves ranked, token-budgeted context back over MCP. Uniquely links a failed shell command to the commit that fixed it, so agents can recall what was already tried and what worked.
      6
      124 npm
      15
      MIT