What Is Redis MCP Server?
Redis MCP Server connects Claude to a running Redis instance, enabling read and write operations on keys, inspection of data structures, and execution of Redis commands directly from a conversation. It is maintained by the Model Context Protocol team under the official modelcontextprotocol/servers repository.
Quick Facts
| Field | Value |
|---|---|
| Package | mcp-server-redis |
| Install | npx mcp-server-redis |
| Compatible with | Claude Code, Claude Desktop |
| Status | active |
| GitHub | https://github.com/modelcontextprotocol/servers/tree/main/src/redis |
What You Can Do With It
- Cache inspection: Browse keys by pattern and retrieve their values to audit what your application has cached at any point in time.
- Key-value operations: Read, write, and delete keys without switching to a Redis CLI or separate GUI tool.
- Data expiry analysis: Check TTLs on individual keys or across key sets to identify entries about to expire or missing expiration entirely.
- Pub/sub debugging: Inspect channel activity and message flow to troubleshoot publish/subscribe setups during development.
How to Set It Up
Prerequisites: Node.js 18+ and a reachable Redis instance (local or remote).
Step 1 — Verify the package runs:
npx mcp-server-redis --help
**Step 2 — Add to Claude Desktop** by editing `claude_desktop_config.json` (macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`):
```json
{
"mcpServers": {
"redis": {
"command": "npx",
"args": ["mcp-server-redis"],
"env": {
"REDIS_URL": "redis://localhost:6379"
}
}
}
}
Step 3 — Add to Claude Code by editing .claude/mcp.json in your project root:
{
"mcpServers": {
"redis": {
"command": "npx",
"args": ["mcp-server-redis"],
"env": {
"REDIS_URL": "redis://localhost:6379"
}
}
}
}
Replace redis://localhost:6379 with your actual Redis connection string. For instances requiring a password, use the format redis://:yourpassword@host:port.
Restart Claude after saving the config. The server spawns as a subprocess and communicates over stdio.
Works Best With
Redis MCP Server is documented as compatible with Claude Code and Claude Desktop. Claude Code is the natural fit for development workflows — you can inspect cache state while editing the code that populates it. Claude Desktop works well for ad-hoc exploration and operations tasks where you want conversational access to a Redis instance without opening a terminal.
Known Limitations
- Authentication: Redis instances with
requirepassset need the password embedded inREDIS_URL. There is no separate credential prompt; if the URL is wrong, the server will fail silently or return connection errors. - No persistent session state: Each conversation context reconnects fresh; long-running subscriptions or blocking commands are not suited to this interaction model.
- Command surface: Not every Redis command may be exposed. Destructive bulk operations (e.g.,
FLUSHALL) should be verified against the source before assuming they are available or restricted. - Network access: Claude cannot reach a Redis instance behind a firewall or VPN unless the machine running the MCP server has direct network access.
- No built-in rate limiting: The server does not throttle Redis commands, so large
KEYS *scans on production databases can cause latency spikes.
Community Resources
- GitHub repository and issue tracker — file bugs or check open issues here
- MCP Discord server —
#serverschannel for community questions - r/ClaudeAI on Reddit — search “Redis MCP” for user-reported configurations and workarounds



