This server gives Claude five tools for debugging and optimizing web caching. It can analyze HTTP cache headers and grade them A+ through F with specific fixes, generate deterministic cache keys for Redis or Memcached with URL normalization and body hashing, simulate LRU/LFU/FIFO/TTL eviction policies side by side with hit rates, detect which CDN is serving a resource and whether it was a cache hit, and analyze what a browser would cache from a page with bandwidth savings estimates. Reach for it when you're diagnosing cache misses, comparing eviction strategies, or need to explain why a CDN configuration isn't working as expected.
MCP Server #30 — Caching and memoization tools for AI agents.
Analyze, generate, simulate, and optimize caching strategies across HTTP, CDN, and browser layers.
analyze_cache_headersAnalyze HTTP cache headers (Cache-Control, ETag, Last-Modified, Expires, Vary). Grades the overall caching strategy A+ through F and provides actionable improvement suggestions with context-aware advice for static assets, API responses, HTML pages, and media.
generate_cache_keyGenerate deterministic cache keys from various inputs:
Supports namespacing, versioning, TTL, and outputs ready-to-use Redis/Memcached commands.
simulate_cacheSimulate cache behavior for a sequence of requests. Compare eviction strategies side-by-side:
Outputs hit rate, miss rate, eviction count, and step-by-step timeline.
check_cdn_headersDetect which CDN is serving a resource from response headers. Identifies Cloudflare, Fastly, Akamai, CloudFront, Vercel, Netlify, Google Cloud CDN, Azure CDN, KeyCDN, and Bunny CDN. Reports cache status (HIT/MISS/STALE/BYPASS), edge server, and POP location.
analyze_browser_cacheAnalyze what resources a page would cache in the browser. Determines cache type (strong, heuristic, conditional, none), duration, revalidation strategy, and estimates bandwidth/time savings on repeat visits. Groups results by resource type with optimization suggestions.
npm install
npm run build
{
"mcpServers": {
"mcp-cache-tools": {
"command": "node",
"args": ["D:/products/mcp-servers/mcp-cache-tools/dist/index.js"]
}
}
}
MIT