Back
Marketplace/Redis

TL;DR

Redis is a Databases MCP server that lets Claude Code, Cursor, Windsurf and any MCP-compatible AI agent manage Redis Cloud with natural language. Install in 1 minute with mcpizy install redis.

🔴

Redis

Verified 6 tools

Databases

Last updated May 30, 2026 · By MCPizy team

Manage Redis Cloud with natural language

Official homepage

Install Redis

Via MCPizy CLI (recommended):
mcpizy install redis
Or run directly:
npx -y @redis/mcp-server
View on GitHub

Tools exposed

6 tools available
get

Get the value of a key

Inputs

  • keystringrequired
set

Set a key to a value with optional TTL

Inputs

  • keystringrequired
  • valuestringrequired
  • exnumberoptional
delete

Delete one or more keys

Inputs

  • keysstring[]required
list_keys

Match keys by pattern (uses SCAN)

Inputs

  • patternstringoptional
hgetall

Get all fields of a hash

Inputs

  • keystringrequired
info

Get Redis server info and stats

Configuration

Works identically across clients. Only the config file path differs.

Claude Code~/.claude.json
{
  "mcpServers": {
    "redis": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-redis",
        "redis://localhost:6379"
      ]
    }
  }
}
Cursor.cursor/mcp.json
{
  "mcpServers": {
    "redis": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-redis",
        "redis://localhost:6379"
      ]
    }
  }
}
Windsurf~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "redis": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-redis",
        "redis://localhost:6379"
      ]
    }
  }
}

Authentication setup

  1. 1

    Use a Redis connection URL (rediss:// for TLS)

    Get it REDIS_URL

What you can do with Redis MCP

Paste any of these prompts into Claude Code, Cursor or another MCP-compatible client.

“Get the value of `session:user:42`”

Uses: get

“Set `rate_limit:api:127.0.0.1` to 100 with a 60s TTL”

Uses: set

“List all keys matching `cache:*` and count them”

Uses: list_keys

“Show me Redis memory and hit/miss stats”

Uses: info

Why Redis MCP matters

Redis MCP exposes core Redis commands as agent tools: `get`, `set`, `del`, `keys`, `scan`, `hget`, `hset`, `lpush`, `zrange`, `info`. Authentication is a connection string with optional ACL credentials. The MCP is intentionally close to the Redis CLI surface — the agent can do anything you can do in `redis-cli` plus a few convenience wrappers.

We use Redis MCP for two main workflows. First, cache debugging: a user reports stale data, the agent runs `get` against the expected cache key, finds the cached value, and either deletes (forcing refresh) or inspects the TTL. Second, rate-limit triage: many apps store rate-limit counters in Redis with predictable keys (`ratelimit:user:123`); the agent walks them, identifies abusers, and resets counters for false positives. Token cost is the lowest of any DB MCP — most operations return scalars or short lists, ~100-300 tokens per call.

Compared to Postgres MCP for application state, Redis wins for ephemeral data (sessions, caches, rate limits) and loses for anything you'd want to query relationally. Compared to KV stores like Cloudflare KV or AWS DynamoDB, Redis wins on raw speed (sub-millisecond) and richer data types (sorted sets, hashes); the cloud KVs win on managed-service simplicity. The honest trade-off: `KEYS` is O(N) and dangerous on production Redis; the MCP exposes it, but agents that habitually run `KEYS *` on a 10M-key DB will freeze the server. Prefer `SCAN` in cursored loops.

Common pitfalls

`KEYS *` is the most common foot-gun. On production with millions of keys, `KEYS` blocks Redis until it completes — potentially seconds to minutes — and locks out every other client. Have the system prompt explicitly forbid `KEYS` and prefer `SCAN`.

Redis Cluster (multi-shard) does not support multi-key commands across shards. `MGET key1 key2 key3` will fail with `CROSSSLOT` if the keys are on different shards. The agent has to either pin keys to the same hash slot (`{user:123}:field`) or call `GET` per key.

TTLs are not preserved across `SET` operations unless you pass `KEEPTTL`. Agents often overwrite values with a fresh `SET` and accidentally remove the expiration, turning a cache into a permanent store. Pin this.

`info` returns a large multi-section text blob. The agent will sometimes try to parse it all when asked about a single metric; better to filter with `info <section>` (e.g. `info memory`).

How Redis MCP compares

Honest pros/cons against the closest databases MCP servers.

ServerStrengthsTrade-offs
Memcached MCP (community)Simpler, lighter — pure key/value cachingNo data structures beyond strings, no persistence
Cloudflare KV MCPManaged, globally replicated, no infraHigher latency (~50ms), no sorted sets / hashes
DynamoDB MCP (community)Full managed AWS, durableHigher latency, different mental model (item-based)

Works with

Claude Code
Claude Desktop
Cursor
Windsurf
VS Code + Copilot
Any MCP Client

More Databases MCPs

⚡

DynamoDB

AWS DynamoDB NoSQL database operations

🐬

MariaDB

MariaDB relational database server

🪳

CockroachDB

Distributed SQL database for cloud apps

🗃️

SQLite

Local SQLite database access and management

Alternatives to Redis

If Redis doesn't fit your stack, these Databases MCP servers solve similar problems.

🔵

Neo4j

Graph database queries

🔍

Elasticsearch

Full-text search and analytics engine

🎯

Qdrant

Vector similarity search engine

Key Takeaways

  • Redis exposes 6 tools for databases workflows in Claude Code, Cursor and Windsurf.
  • Authentication: 1 step (REDIS_URL).
  • Install in 1 command: mcpizy install redis — config written to your client automatically.
  • Free and open source (GitHub source linked above) — verified compatible with every MCP client (Claude Code, Claude Desktop, Cursor, Windsurf, VS Code + Copilot).
  • Best use case: "Get the value of `session:user:42`".

Frequently asked questions

What is the Redis MCP server?

The Redis MCP server is an Databases Model Context Protocol server that lets Claude Code, Cursor, Windsurf, VS Code with Copilot, and other MCP-compatible AI agents manage Redis Cloud with natural language. It exposes Redis's capabilities as tools the AI can call directly from your editor or CLI.

How do I install Redis MCP with Claude Code?

The fastest way is the MCPizy CLI: run `mcpizy install redis` and MCPizy will add the server to your `.claude.json` automatically. You can also install it manually by adding an entry under `mcpServers` in `.claude.json` with the command `npx -y @redis/mcp-server` and restarting Claude Code.

Is Redis MCP free?

Yes. The Redis MCP server is free and open source (see the GitHub repository linked on this page). You may still need a Redis account or API key to connect the server to the underlying service, but the MCP layer itself has no MCPizy subscription cost.

Does Redis MCP work with Cursor and Windsurf?

Yes. Any MCP-compatible client works — including Claude Code, Claude Desktop, Cursor (via `.cursor/mcp.json`), Windsurf, VS Code with Copilot Chat, and custom agents built on the MCP SDK. The same install command targets all of them; only the config file path differs.

What can I do with Redis MCP?

Once installed, your AI agent can manage Redis Cloud with natural language directly inside your conversation. Typical use cases include asking Claude Code or Cursor to run Redis operations, inspect results, chain Redis with other MCP servers (see our Workflow Recipes), and automate repetitive databases tasks without leaving your editor.

Manage all your MCPs in one place

Monitor usage, track costs, and discover new MCPs.

Get Started Free