# Nextjs Cache Handler MCP

> Nextjs Cache Handler MCP is an open-source MCP server. Inspect and operate Next.js Redis caches: health, tag state, SWR simulation, safe invalidation. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/leejpsd/nextjs-cache-handler/tree/HEAD/mcp
- **MCP Registry name:** io.github.leejpsd/nextjs-cache-handler-mcp
- **Listing updated:** 2026-11-18

## About

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

## Install

### Claude Code (Terminal)

```sh
claude mcp add nextjs-cache-handler-mcp --env REDIS_URL='<REDIS_URL>' -- npx -y @leejpsd/nextjs-cache-handler-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "nextjs-cache-handler-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@leejpsd/nextjs-cache-handler-mcp"
      ],
      "env": {
        "REDIS_URL": "<REDIS_URL>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "nextjs-cache-handler-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@leejpsd/nextjs-cache-handler-mcp"
      ],
      "env": {
        "REDIS_URL": "<REDIS_URL>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "nextjs-cache-handler-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@leejpsd/nextjs-cache-handler-mcp"
      ],
      "env": {
        "REDIS_URL": "<REDIS_URL>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "nextjs-cache-handler-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@leejpsd/nextjs-cache-handler-mcp"
      ],
      "env": {
        "REDIS_URL": "<REDIS_URL>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "nextjs-cache-handler-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@leejpsd/nextjs-cache-handler-mcp"
      ],
      "env": {
        "REDIS_URL": "<REDIS_URL>"
      }
    }
  }
}
```

## FAQ

### Is Nextjs Cache Handler MCP free?

Yes. Nextjs Cache Handler MCP is open source, so you can use and self-host it for free.

### How do I add Nextjs Cache Handler MCP to Claude Code?

Run this command in your terminal: claude mcp add nextjs-cache-handler-mcp --env REDIS_URL='<REDIS_URL>' -- npx -y @leejpsd/nextjs-cache-handler-mcp

## Where this comes from

- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.

---
Source: https://ai-powered.com/mcp/nextjs-cache-handler-mcp
