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")

TYPESAFE_API_KEY

Optional

Jev reranks search results

JINA_API_KEY

Optional

Cleaner web pages in stash_index (free key)

What it does

  1. Claude runs a command, a code snippet, a file or a URL 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 web page

stash_search

Finds passages in anything stored (BM25, reranked by Jev)

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 except Jev reranking and Jina page loading, and only when those keys are set.

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

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    B
    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
    13
    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.
    13 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
    B
    quality
    D
    maintenance
    Persistent, searchable project memory for Claude Code. Each project has its own local DuckDB with vector embeddings, auto-loading context at session start.
    24
    33
    MIT