nextjs-cache-handler-mcp
v0.1.2Inspect and operate Next.js Redis caches: health, tag state, SWR simulation, safe invalidation.
Values you need
| Variable | What it is | |
|---|---|---|
REDIS_URL | required secret | Redis connection string the cache handler uses |
DEPLOYMENT_VERSION | optional | Deploy namespace (recommended) |
HASH_TAG | optional | Set 'true' when handlers use hashTag: true (Redis Cluster) |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add nextjs-cache-handler-mcp -e 'REDIS_URL=<REDIS_URL>' -- npx -y @leejpsd/nextjs-cache-handler-mcp@0.1.2Add to
claude_desktop_config.json{
"mcpServers": {
"nextjs-cache-handler-mcp": {
"args": [
"-y",
"@leejpsd/nextjs-cache-handler-mcp@0.1.2"
],
"command": "npx",
"env": {
"REDIS_URL": "<REDIS_URL>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"nextjs-cache-handler-mcp": {
"args": [
"-y",
"@leejpsd/nextjs-cache-handler-mcp@0.1.2"
],
"command": "npx",
"env": {
"REDIS_URL": "<REDIS_URL>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "REDIS_URL",
"id": "redis-url",
"password": true,
"type": "promptString"
}
],
"servers": {
"nextjs-cache-handler-mcp": {
"args": [
"-y",
"@leejpsd/nextjs-cache-handler-mcp@0.1.2"
],
"command": "npx",
"env": {
"REDIS_URL": "${input:redis-url}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.nextjs-cache-handler-mcp]
command = "npx"
args = ["-y", "@leejpsd/nextjs-cache-handler-mcp@0.1.2"]
env = { "REDIS_URL" = "<REDIS_URL>" }For AI agents
- Ask the user for: REDIS_URL. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: cache_health, cache_search, cache_inspect, tag_state, explain_key, simulate_swr, invalidate_tag.
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json