Inspect and operate Next.js Redis caches: health, tag state, SWR simulation, safe invalidation.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add nextjs-cache-handler --env REDIS_URL='<REDIS_URL>' -- npx -y @leejpsd/nextjs-cache-handler-mcp~/.codex/config.toml
[mcp_servers.nextjs-cache-handler]
command = "npx"
args = ["-y", "@leejpsd/nextjs-cache-handler-mcp"]
env = { REDIS_URL = "<REDIS_URL>" }
# codex mcp add nextjs-cache-handler --env REDIS_URL='<REDIS_URL>' -- npx -y @leejpsd/nextjs-cache-handler-mcp~/.cursor/mcp.json
{
"mcpServers": {
"nextjs-cache-handler": {
"command": "npx",
"args": [
"-y",
"@leejpsd/nextjs-cache-handler-mcp"
],
"env": {
"REDIS_URL": "<REDIS_URL>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"nextjs-cache-handler": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@leejpsd/nextjs-cache-handler-mcp"
],
"env": {
"REDIS_URL": "<REDIS_URL>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"nextjs-cache-handler": {
"command": "npx",
"args": [
"-y",
"@leejpsd/nextjs-cache-handler-mcp"
],
"env": {
"REDIS_URL": "<REDIS_URL>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"nextjs-cache-handler": {
"command": "npx",
"args": [
"-y",
"@leejpsd/nextjs-cache-handler-mcp"
],
"env": {
"REDIS_URL": "<REDIS_URL>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"nextjs-cache-handler": {
"command": "npx",
"args": [
"-y",
"@leejpsd/nextjs-cache-handler-mcp"
],
"env": {
"REDIS_URL": "<REDIS_URL>"
}
}
}
}Environment variables
REDIS_URL
Replace the placeholders with your own credentials and keep them out of version control.