Agentβ™₯︎Age
Catalog

io.github.kskurtveit/echocache

Official

by kskurtveit Β· TypeScript

MCP server caching expensive LLM responses: HTTP-style freshness plus semantic recall.

MCP Server: io.github.kskurtveit/echocache

echocache is an MCP server that caches expensive LLM responses. It returns previously generated answers by using HTTP-style freshness semantics and semantic recall. The goal is to echo back an earlier response rather than re-deriving it.

πŸ› οΈ Key Features

  • Caches LLM responses using an HTTP cache model
  • Exact-match (HTTP-style) via cache_get / cache_set
  • Cache keyed on (model, prompt, params)
  • Supports ttl_seconds and stale_while_revalidate_seconds (fresh, stale, expired)
  • Knowledge-graph recall: stored entries are treated as nodes for recall

πŸš€ Use Cases

  • Re-asking the same question with the same model/prompt/params
  • Reducing recomputation while allowing stale-while-revalidate behavior
  • Returning relevant prior answers through recall of stored entries

⚑ Developer Benefits

  • Deterministic caching for exact prompt/model/params matches
  • Configurable freshness windows via ttl_seconds and stale_while_revalidate_seconds
  • Reuse of prior responses to avoid repeated derivation

⚠️ Limitations

  • Exact-match caching depends on (model, prompt, params) equality
  • Semantic recall details are only partially described in the provided excerpt

Topics: ai-agents, cache, claude, llm, mcp, mcp-server, model-context-protocol, typescript.

Topics

ai-agentscacheclaudellmmcpmcp-servermodel-context-protocoltypescript