Cache

io.github.rog0xPublished by GitHub account rog0xv1.0.2Updated Oct 24, 2026

Cache headers, CDN, LRU simulation for AI agents

VerifiedSTDIODesktop onlyCloud & InfrastructureDeveloper Tools

Overview

AI-generated overview

Lets an assistant analyze HTTP cache headers, generate deterministic cache keys, simulate eviction strategies, and inspect CDN and browser caching.

What you can do
The server exposes five caching tools: analyze_cache_headers grades HTTP cache headers (Cache-Control, ETag, Last-Modified, Expires, Vary) from A+ to F with improvement suggestions; generate_cache_key builds deterministic keys from URLs, bodies, or composite parts and can output Redis or Memcached commands; simulate_cache replays a request sequence and compares LRU, LFU, FIFO, and TTL eviction with hit rates and a timeline; check_cdn_headers identifies the CDN from response headers and reports cache status, edge server, and POP; analyze_browser_cache estimates what a page would cache and the repeat-visit savings.
When to use it
Useful when tuning web performance or debugging caching behavior: auditing response headers, choosing an eviction policy, designing cache keys for a proxy or API, or checking why a CDN or browser is not caching a resource as expected.
Requirements
Runs locally over stdio as an npm package (@rog0x/mcp-cache-tools) and needs Node.js; the README shows a build step (npm install, npm run build) and a configuration pointing at the built dist/index.js. No accounts, API keys, or environment variables are declared.
Before you install
The tools are described as analysis, generation, and simulation, so they appear read-only and do not modify live caches or infrastructure. Header and URL inputs are processed locally by the local process; no third-party services or credentials are declared.

Installation

In SourceWeft

  1. Open Cache in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

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

Outputs hit rate, miss rate, eviction count, and step-by-step timeline.

4. check_cdn_headers

Detect 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.

5. analyze_browser_cache

Analyze 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.

Setup

bash
npm installnpm run build

MCP Configuration

json
{  "mcpServers": {    "mcp-cache-tools": {      "command": "node",      "args": ["D:/products/mcp-servers/mcp-cache-tools/dist/index.js"]    }  }}

License

MIT

Source: README.md at commit 791ad8f

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v1.0.2LatestSep 16, 2026

Score

40% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts

    Declare a license in the repository or the registry entry.