Context7
Up-to-date docs for AI agents
Descripción del creador (original en inglés)
MCP server caching expensive LLM responses: HTTP-style freshness plus semantic recall.
Estos tres nunca se combinan en una sola puntuación: las opiniones, las mediciones y la popularidad son cosas distintas.
Todavía no escribimos un resumen sencillo para este. Abajo están los datos que leímos del registro.
Elige la app de IA que usas y copia la configuración.
Necesitas
¿Qué app usas?
Elige tu app arriba. La recordamos, así que la próxima vez el botón dirá “Instalar en …”.
Abre Claude Desktop → Settings → Developer → Edit Config y pega esto en claude_desktop_config.json
{
"mcpServers": {
"echocache": {
"command": "npx",
"args": [
"-y",
"echocache"
]
}
}
}Ejecuta esto en tu terminal
claude mcp add echocache -- npx -y echocachePégalo en .cursor/mcp.json de tu proyecto, o en ~/.cursor/mcp.json
{
"mcpServers": {
"echocache": {
"command": "npx",
"args": [
"-y",
"echocache"
]
}
}
}Tu navegador te pide permiso para abrir la app; luego la app muestra la configuración y te pide confirmar. Los valores de las claves quedan vacíos para que los completes tú.
Pégalo en .vscode/mcp.json de tu proyecto
{
"servers": {
"echocache": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"echocache"
]
}
}
}Tu navegador te pide permiso para abrir la app; luego la app muestra la configuración y te pide confirmar. Los valores de las claves quedan vacíos para que los completes tú.
Este se ejecuta en tu computadora, y ChatGPT solo puede conectarse a servidores en internet. Elige otra app.
Tu elección se guarda en una cookie en este dispositivo; no necesitas cuenta.
Esta configuración se genera a partir de la ficha del creador en el registro. Si el README dice otra cosa, sigue el README.
Se ejecuta en tu computadora; la lista de herramientas aparece en tu app de IA después de instalarlo.
Revisamos información que cualquiera puede ver; no hemos leído el código. Las revisiones que no aplican no se cuentan. · Revisado el 7 nov 2026
El nombre en el registro se verificó con la cuenta de GitHub kskurtveit, dueña del repo
Todavía no hemos leído este repo en GitHub
Todavía no hemos leído este repo en GitHub
Este se ejecuta en tu computadora; no hay endpoint en internet
Se ejecuta en tu computadora y usa ajustes locales en su lugar
Se ejecuta en tu computadora; solo podemos leer listas de herramientas de endpoints en internet
Comparado con todos los servidores activos de esta categoría en el registro. Las estrellas solo cuentan cuando quien lo publica es dueño del repo.
Superó 1 de 1 revisiones básicas aplicables. No hemos leído el código. Antes de agregar una clave o un token, revisa qué acceso pide el servidor y usa una clave que tenga solo los permisos que necesitas.
El registro no indica ninguna clave obligatoria, aunque algunos servidores te piden iniciar sesión la primera vez que los usas.
Se ejecuta en tu computadora. Tu app de IA lo inicia cuando hace falta, y los datos no pasan por los servidores del creador (a menos que el propio servidor llame a un servicio en línea).
El repo de GitHub cambió por última vez –, y la última versión (0.1.3) llegó al registro hace 2 meses.
Las apps compatibles con MCP, como Claude Desktop, Claude Code, Cursor y VS Code. También necesitas Node.js en tu computadora.
En la misma categoría: Context7, Codebase Memory, Exa
Servidores de la misma categoría hechos por otros creadores, ordenados por estrellas.
Cómo leer una tarjeta:★ Estrellas de GitHubiTres pilares: reseñas · revisiones · usoiActualizado = fecha en que se publicó la última versión en el registroi
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
Copiado tal cual del repo del creador. PopNx MCP no lo ha revisado ni lo respalda. Se quitaron HTML, imágenes y scripts. Los enlaces llevan fuera de este sitio.
An MCP server for a cached LLM response — the way an HTTP cache caches an expensive server response, not the way a browser caches a static asset. Ask a question you already answered once, and the answer echoes back instead of being re-derived.
Two lookup paths, inspired by two different kinds of caching:
cache_get / cache_set key on (model, prompt, params), with ttl_seconds and stale_while_revalidate_seconds behaving like Cache-Control: fresh, stale, or expired.cache_query finds related entries by meaning, not just exact key; cache_related walks graph edges (auto-linked "similar" entries, or explicit "derived-from" parents) to surface everything already known before an agent redoes work from scratch. cache_invalidate can cascade through those derived-from edges when a source changes.Runs as a standard stdio MCP server, so it works with Claude Code, Claude Desktop, Cursor, VS Code + Copilot, or any other MCP-capable host — see Install below, and AGENTS.md for the tool-use protocol any connected agent should follow.
Cache what an agent concluded, never what it read. This is the whole design, and it is worth stating plainly because the intuitive use is the wrong one: serving a cached file read costs the reader exactly the tokens that reading the file cost, since the content still has to enter the context. So caching file reads saves nothing at any hit rate, and if the agent re-emits the file to store it, that's output-rate tokens paid for zero benefit. A cache only pays when a hit stands in for *regenerating* something.
Where it pays, and where measurement said it does not:
express/lib — six files, 62KB — re-reading the source costs 15,504 tokens against 549 to serve the cached orientation, about 28× fewer. That holds when the later session genuinely needs broad understanding; if it only needs one specific answer, it will grep and read a slice for ~900 tokens, and the cache isn't competitive.offset/limit, so they were already taking slices rather than whole files. Substituting a shared derivation for those slices measured 27% worse than what they actually did: grep is already a cheap, precise pointer, and a cached map competes with it on its own ground and loses.The rule all three point at: cache what grep cannot reconstruct. A conclusion, a judgement, the reason something is the way it is, a cross-file synthesis no single search reveals, a research finding, the fact that something is *absent*. Never a location — grep finds those for less than the cache costs to consult — and never a file.
When a cached entry does carry file paths or line numbers, that is to point a reader at exact detail, not to replace reading it. And reach for cache_query rather than cache_get when looking for a match: a later session, or another agent, will not phrase the question the way the writer did.
What this is not: a way to avoid reading files, a source of truth, or a substitute for prompt caching *within* one conversation, which is cheaper and needs no server. echocache is for results that must outlive the context that produced them.
If your only host is Claude Code, its own persistent memory already does the core of this: write a conclusion to a memory file instead of the files it came from, and a later session reads it back before redoing the work. That's the same rule this project converged on, running for free, with no server to register. This project's own findings and measurements from building it are stored there, not in echocache itself — worth noticing, since it means the tool wasn't used to cache the very research that produced it.
What's actually different, in order of how much it matters:
cache_query finds a match by meaning, independent of how it was phrased or which file it's filed under. Memory is retrieved by an always-loaded index plus the agent's own judgment about what to open — no vector search.derived_from invalidation catch a source going stale automatically. Memory has neither; staleness is caught only if an agent happens to notice.For a single user on a single host in one project, memory already captures most of the value here for free. What's left as echocache's actual case is narrower than "a cache for LLM responses": it's specifically sharing a derivation across projects or hosts that don't already share a memory store — and that narrower case is unproven, not just untested, until it's been measured the way everything else in this document has.
No clone or build needed — register it straight from npm.
Claude Code
claude mcp add echocache -- npx -y echocache
Claude Desktop / Cursor / VS Code — add a stdio entry to the host's MCP config (claude_desktop_config.json, .cursor/mcp.json, .vscode/mcp.json):
{
"mcpServers": { "echocache": { "command": "npx", "args": ["-y", "echocache"] } } }
OpenCode — add an entry to opencode.jsonc (global: ~/.config/opencode/opencode.jsonc, or project-level in the repo root):
{
"$schema": "https://opencode.ai/config.json", "mcp": { "echocache": { "type": "local", "command": ["npx", "-y", "echocache"], "enabled": true } } }
Any other MCP-capable host takes the same launch command; only the config file differs. Then point your agent at AGENTS.md so it knows *when* to reach for the cache — the protocol matters more than the wiring, since caching the wrong things costs tokens rather than saving them.
The usage protocol also ships as skills (echocache-cache, echocache-gain), plus a codebase-orienter subagent for Claude Code. Inside a clone of this repo they are discovered automatically from .claude/skills/ and .opencode/skills/. The npm package carries them too, but a host only discovers skills in its own skills directory, so install them once after npm install -g echocache:
# Claude Code
mkdir -p ~/.claude/skills ~/.claude/agents cp -r "$(npm root -g)"/echocache/.claude/skills/echocache-* ~/.claude/skills/ cp "$(npm root -g)"/echocache/.claude/agents/codebase-orienter.md ~/.claude/agents/
mkdir -p ~/.config/opencode/skills cp -r "$(npm root -g)"/echocache/.opencode/skills/echocache-* ~/.config/opencode/skills/
Every setting is an environment variable, all optional:
| Variable | Default | Meaning |
|---|---|---|
ECHOCACHE_DB_PATH | ~/.echocache/cache.db | SQLite file location |
ECHOCACHE_MAX_ENTRIES | 10000 | LRU ceiling on retained entries |
ECHOCACHE_MAX_BYTES | 268435456 (256MB) | LRU ceiling on retained response bytes |
ECHOCACHE_DEFAULT_TTL_SECONDS | unset (never expires) | Freshness lifetime when a caller omits one; entries are still bounded by the LRU ceilings |
ECHOCACHE_SIMILARITY_THRESHOLD | 0.25 | Similarity floor for auto-linking entries |
ECHOCACHE_LINK_CANDIDATE_POOL | 500 | Recent entries a new write is compared against |
ECHOCACHE_ENCRYPTION_KEY | unset | 64 hex chars (32 bytes); enables AES-256-GCM at rest |
The database directory is created 0700 and its files 0600. Set an encryption key to also encrypt entry contents at rest:
export ECHOCACHE_ENCRYPTION_KEY=$(node -e "console.log(require('crypto').randomBytes(32).toString('hex'))")
Turning encryption on or off requires a fresh database — there is no in-place migration, and a key/database mismatch is refused at startup rather than failing on some later read.
| Tool | Purpose |
|---|---|
cache_get | Exact-match lookup with fresh / stale / expired freshness |
cache_set | Store a result; auto-links it into the similarity graph |
cache_query | Semantic search across all cached entries |
cache_related | Graph traversal from one entry to entries linked to it |
cache_invalidate | Delete an entry, optionally cascading to its dependents |
cache_stats | Exact-match hit rate, queryHits/queryMisses, and tokens served |
One SQLite file backs all of them, shared across every project that registers the server — a conclusion reached in one repo is queryable from another. Concurrent readers and writers from separate processes are the expected case, not an edge case.
git clone https://github.com/kskurtveit/echocache && cd echocache
npm install npm run check # typecheck + tests npm start # or: npm run dev
See CLAUDE.md for architecture and the module reference.
MIT