
Cache
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.
- tools
- 5
- transport
- STDIO
- last updated
- Mar 22, 2026
Tools
5 toolsPublic tool metadata for what this MCP can expose to an agent.
analyze_cache_headersAnalyze HTTP cache headers (Cache-Control, ETag, Last-Modified, Expires, Vary) and grade the overall caching strategy A+ through F with improvement suggestions.
Analyze HTTP cache headers (Cache-Control, ETag, Last-Modified, Expires, Vary) and grade the overall caching strategy A+ through F with improvement suggestions.
No parameter schema in public metadata yet.
generate_cache_keyGenerate deterministic cache keys from URLs, request bodies, or composite inputs, with namespacing, versioning, TTL, and ready-to-use Redis/Memcached commands.
Generate deterministic cache keys from URLs, request bodies, or composite inputs, with namespacing, versioning, TTL, and ready-to-use Redis/Memcached commands.
No parameter schema in public metadata yet.
simulate_cacheSimulate cache behavior for a sequence of requests and compare LRU, LFU, FIFO, and TTL eviction strategies, reporting hit rate, miss rate, and eviction count.
Simulate cache behavior for a sequence of requests and compare LRU, LFU, FIFO, and TTL eviction strategies, reporting hit rate, miss rate, and eviction count.
No parameter schema in public metadata yet.
check_cdn_headersDetect which CDN is serving a resource from response headers and report cache status, edge server, and POP location.
Detect which CDN is serving a resource from response headers and report cache status, edge server, and POP location.
No parameter schema in public metadata yet.
analyze_browser_cacheAnalyze what resources a page would cache in the browser, including cache type, duration, revalidation strategy, and estimated savings on repeat visits.
Analyze what resources a page would cache in the browser, including cache type, duration, revalidation strategy, and estimated savings on repeat visits.
No parameter schema in public metadata yet.
Sponsors
Readme
@rog0x/mcp-cache-tools
MCP Server #30 — Caching and memoization tools for AI agents.
Analyze, generate, simulate, and optimize caching strategies across HTTP, CDN, and browser layers.
Tools
1. analyze_cache_headers
Analyze 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.
2. generate_cache_key
Generate deterministic cache keys from various inputs:
- URL mode — normalizes URL, sorts query params, filters include/exclude params
- Body mode — hashes request body with JSON key sorting for consistency
- Composite mode — combines multiple key parts into a single deterministic hash
Supports namespacing, versioning, TTL, and outputs ready-to-use Redis/Memcached commands.
3. simulate_cache
Simulate cache behavior for a sequence of requests. Compare eviction strategies side-by-side:
- LRU — Least Recently Used
- LFU — Least Frequently Used
- FIFO — First In, First Out
- TTL — Time-To-Live based expiration
Details
- Repository
- github.com/rog0x/mcp-cache-tools
- Package
@rog0x/mcp-cache-tools- Transport
- STDIO
- Registry
- MCP registry, active