Echocache logo

Echocache

Caches LLM conclusions with exact freshness checks, semantic recall, graph traversal, invalidation, and usage statistics.

Install Echocache

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "echocache": {
      "command": "npx",
      "args": [
        "-y",
        "echocache"
      ],
      "env": {
        "ECHOCACHE_DB_PATH": "YOUR_VALUE_HERE",
        "ECHOCACHE_MAX_ENTRIES": "YOUR_VALUE_HERE",
        "ECHOCACHE_MAX_BYTES": "YOUR_VALUE_HERE",
        "ECHOCACHE_DEFAULT_TTL_SECONDS": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env ECHOCACHE_DB_PATH=YOUR_VALUE_HERE --env ECHOCACHE_MAX_ENTRIES=YOUR_VALUE_HERE --env ECHOCACHE_MAX_BYTES=YOUR_VALUE_HERE --env ECHOCACHE_DEFAULT_TTL_SECONDS=YOUR_VALUE_HERE --transport stdio echocache -- npx -y echocache

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y echocache

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The echocache MCP server stores completed LLM results in a local SQLite cache and provides exact-key and semantic lookup paths. It tracks fresh, stale, and expired entries, links related results in a similarity graph, and can invalidate dependent entries. Reach for it when an agent needs to reuse research, judgments, or cross-file conclusions across sessions or projects, rather than replace ordinary file reads.

Use cases

  • Reuse expensive research conclusions across sessions
  • Retrieve codebase orientation from a prior session
  • Search related design decisions by meaning
  • Invalidate derived answers when a source changes

Key features

  • Exact-match lookups with freshness states
  • Semantic search across cached results
  • Similarity and derived-from graph traversal
  • Cascading invalidation for dependent entries
  • SQLite persistence with LRU limits
  • Cache hit and token usage statistics

Tools6

What Echocache lets your agent do. Expand a tool for its parameters.

Self-reported~99 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

14/14 checks healthy over the last 65d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 6d ago via OSV.dev · echocache (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
npm downloads303Package downloads in the last 30 days.
Last commit1mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed6Callable tools this server registers over MCP.

How Echocache works

What echocache MCP server does

It gives agents two ways to recover prior results: an exact lookup based on the model, prompt, and parameters, and a semantic search that can find an answer even when a later request uses different wording.

Stored entries become nodes in a similarity graph. The server can also preserve explicit parent relationships for derived results. This makes it possible to find related conclusions, trace connected entries, and remove dependent results when an upstream source changes.

The intended candidates are research findings, design decisions, judgments, codebase orientation, cross-file syntheses, and conclusions about something being absent. File contents and simple file locations are poor candidates because grep or a targeted read may reconstruct them more cheaply.

How it works

cache_set stores a response and adds it to the similarity graph. cache_get performs an exact lookup and reports whether the result is fresh, stale, or expired. Callers can provide a time-to-live and a stale-while-revalidate period, following an HTTP-cache-style freshness model.

cache_query searches cached entries by meaning, while cache_related follows graph links from a selected entry. cache_invalidate removes an entry and can cascade through derived-from relationships. cache_stats reports exact-match hit rate, semantic query hits and misses, and tokens served.

The echocache MCP server runs over standard MCP stdio. Its data is held in one SQLite file, which allows multiple projects on the same machine to use the same cache. Semantic recall and cross-project access distinguish it from host-specific memory, but the repository notes that cross-project reuse remains unproven.

Setup and configuration

Install without cloning or building by registering the npm package with the host. For Claude Code, use:

Terminal
claude mcp add echocache -- npx -y echocache

Other stdio-capable hosts use npx -y echocache as the command with no arguments. Claude Desktop, Cursor, and VS Code place that command in their MCP configuration. OpenCode uses a local MCP entry with the command represented as ['npx', '-y', 'echocache'].

All documented settings are optional environment variables:

  • ECHOCACHE_DB_PATH selects the SQLite file; the default is ~/.echocache/cache.db.
  • ECHOCACHE_MAX_ENTRIES sets the LRU entry limit; the default is 10,000.
  • ECHOCACHE_MAX_BYTES sets the LRU response-size limit; the default is 256 MB.
  • ECHOCACHE_DEFAULT_TTL_SECONDS supplies a default freshness lifetime when a caller omits one. If unset, entries do not expire by time, although LRU limits still apply.

Tools and capabilities

  • cache_get: retrieve an exact match with freshness status.
  • cache_set: save a result and automatically link it to similar entries.
  • cache_query: search all cached entries semantically.
  • cache_related: traverse related or derived entries.
  • cache_invalidate: delete an entry, optionally cascading to dependents.
  • cache_stats: inspect hit rates, query results, and tokens served.

Limitations and notes

The echocache MCP server is not a replacement for reading files, a source of truth, or in-conversation prompt caching. Caching a file read generally does not reduce token use because the content still has to enter the context. A later agent should use cached paths or line numbers as pointers to source details, not as substitutes for validating those details.

For a single user working in one project with Claude Code, persistent memory may already provide similar value without a separate server. The documented advantage is broader sharing across projects and MCP hosts, plus semantic retrieval and explicit freshness handling. The repository also reports that cached derivations can lose to precise grep-and-read workflows for narrow questions or parallel file-reading tasks.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Echocache

echocache is an MCP server that connects agents to a local SQLite cache of previously generated LLM results. Its main tools store and retrieve exact matches, search semantically, traverse related entries, invalidate dependent results, and report cache statistics for reuse across sessions or projects.

Install it with `npx` and register the stdio command `npx -y echocache` in your MCP host. Claude Code uses `claude mcp add echocache -- npx -y echocache`; Claude Desktop, Cursor, and VS Code add the same command to their MCP configuration.

Yes, echocache works with Cursor through a standard stdio MCP configuration. Add an `echocache` server entry using `npx` as the command and `-y`, `echocache` as its arguments.

Cache conclusions that are expensive to regenerate, such as research findings, judgments, design decisions, cross-file syntheses, and codebase orientation. Avoid caching ordinary file reads or simple locations because grep and targeted reads can often recover those details for less cost.

It uses semantic search and a similarity graph. `cache_query` finds entries by meaning rather than exact wording, while `cache_related` follows automatically created similarity links or explicit derived-from relationships.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewEchocache AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/echocache?style=directory)](https://allmcps.com/mcp/echocache)
HTML Embed
<a href="https://allmcps.com/mcp/echocache"><img src="https://allmcps.com/api/badge/echocache?style=directory" alt="Echocache on AllMCPs" /></a>