Mmcp.market

Nextjs Cache Handler MCP server

by leejpsd·io.github.leejpsd/nextjs-cache-handler-mcp·v0.1.2

Inspect and operate Next.js Redis caches: health, tag state, SWR simulation, safe invalidation.

B83/100grade B
What users say
No reviews yet
Be the first
Safety scan
B83/100

full report

Adoption
Growing

6 stars23 downloads/wk

Reviews

Write one

Nobody has reviewed Nextjs Cache Handler yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

Nextjs Cache Handler tools (7)

write = sends, deletes, buys or posts

Read from the package source without running it. The installed server may list more.

  • cache_health

    Ping Redis and summarize cache key counts per layer/kind. First tool to run when debugging cache issues.

  • cache_inspect

    Decode a cache entry: kind, timestamps, tags, TTL, sizes, compression. Values are summarized, never dumped in full.

  • cache_search

    Scan cache keys by glob pattern (e.g. 'next-incremental:entry:*/blog*'). Returns up to `limit` keys.

  • explain_key

    Parse a Redis key into layer / kind / namespace / cache key.

  • invalidate_tag

    Invalidate a tag across both layers. DRY-RUN by default: shows exactly what would be written/deleted. Pass confirm=true to execute. mode 'soft' = stale-while-revalidate (revalidateTag(tag,'max') semantics); 'hard' = delete entries now.

  • simulate_swr

    Given entry timing values, classify freshness the way the handler does (fresh / stale / expired) and explain what a read would do.

  • tag_state

    Show invalidation state for a tag across BOTH cache layers: the ISR tag state (stale/expired timestamps) and the 'use cache' tag-expiration marker. Answers 'is this tag invalidated right now, and since when?'

Public scan report

scanner v0.1.9 · 2026-09-24 · same rubric, same numbers if you re-run it

no findings
  • Code scan2 source files scanned25/25
  • Live reliabilityno gateway calls yet and no remote to proben/a
  • Tool poisoningtools not inspected (local package is not executed); not countedn/a
  • Auth qualitystatic API keys via environment variables6/15
  • Maintenancelast push 29 days ago15/15
  • Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
Overall 83/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

What the publisher says

From the Nextjs Cache Handler repository's README, as published. We do not edit it. Read it on GitHub

@leejpsd/nextjs-cache-handler

v1.0.0 — install with

npm install @leejpsd/nextjs-cache-handler, or wire everything with

npx nextjs-cache-handler init --yes. Production-validated against

AWS ECS Fargate with multi-instance Redis (24h live-traffic soak and a

live Redis-reboot drill with zero 5xx — see

docs/staging-verification-2026-08-01.md),

and exercised end-to-end against Next.js 16.3 (both cache interfaces).

v0.4 adds: build-output cache seeding (first request after deploy is a

HIT), pub/sub tag propagation (~3ms cross-instance), Redis Cluster

e2e in CI, a CLI (init / doctor / seed), and agent-native assets

(skill, rules, MCP server).

1.0 freezes the public API under semver — the eight entry points, the

CacheHandlerOptions surface, the Redis key shapes and tag-marker format,

and the metric event names. Upgrading from 0.4.x needs no changes.

🤖 For AI agents

Working with Claude Code / Codex / Cursor? Give your agent this URL and it will install and wire everything (version detection, wrapper files, next.config patch, verification):

https://raw.githubusercontent.com/leejpsd/nextjs-cache-handler/main/setup-instructions/setup.md

An agent skill with decision tables, invalidation semantics, and a troubleshooting playbook ships in the package (AGENTS.md, skills/nextjs-redis-cache/SKILL.md) and via npx skills add leejpsd/nextjs-cache-handler.

For cache operations from your agent (health, tag state, safe invalidation), the companion MCP server is on the official registry as io.github.leejpsd/nextjs-cache-handler-mcp — or one command: npx nextjs-cache-handler init --yes wires handlers, rules, and .mcp.json together.

The Redis cache handler for Next.js 15/16 that ships both cacheHandler (ISR / Pages Router) and cacheHandlers ('use cache' directive, cacheComponents: true) — the area where @fortedigital/nextjs-cache-handler currently lists "Help needed".

// next.config.ts
const nextConfig = {
  cacheComponents: true,
  cacheHandler: require.resolve("./cache-incremental.cjs"),
  cacheHandlers: { default: require.resolve("./cache-components.cjs") },
};
// cache-components.cjs
const { createCacheComponentsHandler } = require("@leejpsd/nextjs-cache-handler/cache-components");
module.exports = createCacheComponentsHandler({
  client: { type: "redis", url: process.env.REDIS_URL },
  buildNamespace: process.env.DEPLOYMENT_VERSION, // auto-isolates deploys
});

That's it. 'use cache', revalidateTag, updateTag, cacheLife all work.

Why this exists

Next.js 16 split caching into two handler interfaces:

As of 2026-05, the leading OSS Redis handler @fortedigital/nextjs-cache-handler@3.2.0 declares peerDependencies.next: ">=16.1.5" but the README marks the new plural interface as ❌ "Not yet supported - Help needed":

Shortened. The full README is on GitHub.

Nothing above is checked by us. What we check is on the safety report.

Install directly

Runs npx -y @leejpsd/nextjs-cache-handler-mcp on your machine. Read the scan report first; the gateway never runs local packages.

claude mcp add nextjs-cache-handler-mcp -- npx -y @leejpsd/nextjs-cache-handler-mcp
Add to Cursor

Nextjs Cache Handler: common questions

Is Nextjs Cache Handler MCP server safe?
Mostly: it is graded B (83/100). Read the Nextjs Cache Handler safety report
How do I install Nextjs Cache Handler?
It runs on your machine. Copy the Claude Code, Claude Desktop or Cursor config from the install section.
Does Nextjs Cache Handler need an API key?
Yes. The registry entry asks for REDIS_URL.
Is Nextjs Cache Handler maintained?
The last commit was 29 days ago (2026-08-26). The latest release is v0.1.2.
What can I use instead of Nextjs Cache Handler?
Servers from other publishers that do the same job: Grain MCP server, MCP server and LINQ to DB MCP server. Compare all Nextjs Cache Handler alternatives.

Alternatives to Nextjs Cache Handler

Same job from other publishers: the closest match first, then the best rated.

All Nextjs Cache Handler alternatives →
  • Grain
    Run SQL queries and inspect database schemas through safe, visible MCP tools.
    B
  • MCP
    Real-time Kubernetes network traffic visibility and API analysis for HTTP, gRPC, Redis, Kafka, DNS.
    A
  • LINQ to DB
    Inspect database schemas and execute SQL queries across multiple database providers with LINQ to DB.
    A
  • PostgreSQL MCP Server
    PostgreSQL MCP server - query, schema introspection, explain, and health checks for AI assistants
    B
  • Redis MCP Server
    Natural language interface designed for agentic applications to manage and search data in Redis.
    A

More from leejpsd