{
  "markdown": "\n# @rog0x/mcp-cache-tools\n\n**MCP Server #30** — Caching and memoization tools for AI agents.\n\nAnalyze, generate, simulate, and optimize caching strategies across HTTP, CDN, and browser layers.\n\n## Tools\n\n### 1. `analyze_cache_headers`\nAnalyze 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.\n\n### 2. `generate_cache_key`\nGenerate deterministic cache keys from various inputs:\n- **URL mode** — normalizes URL, sorts query params, filters include/exclude params\n- **Body mode** — hashes request body with JSON key sorting for consistency\n- **Composite mode** — combines multiple key parts into a single deterministic hash\n\nSupports namespacing, versioning, TTL, and outputs ready-to-use Redis/Memcached commands.\n\n### 3. `simulate_cache`\nSimulate cache behavior for a sequence of requests. Compare eviction strategies side-by-side:\n- **LRU** — Least Recently Used\n- **LFU** — Least Frequently Used\n- **FIFO** — First In, First Out\n- **TTL** — Time-To-Live based expiration\n\nOutputs hit rate, miss rate, eviction count, and step-by-step timeline.\n\n### 4. `check_cdn_headers`\nDetect 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.\n\n### 5. `analyze_browser_cache`\nAnalyze 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.\n\n## Setup\n\n```bash\nnpm install\nnpm run build\n```\n\n## MCP Configuration\n\n```json\n{\n  \"mcpServers\": {\n    \"mcp-cache-tools\": {\n      \"command\": \"node\",\n      \"args\": [\"D:/products/mcp-servers/mcp-cache-tools/dist/index.js\"]\n    }\n  }\n}\n```\n\n## License\n\nMIT\n",
  "bytes": 2092,
  "sha": "1f81ccbf561ff8a3aeb8ac30ab21b979deab3461aa99e93de15c0628c51f50ff",
  "repo_slug": "rog0x/mcp-cache-tools",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_rog0x_cache_9273c9db/readme"
}