Redis

Query and update Redis keys, hashes, and lists.

Works with: Claude DesktopClaude CodeCursor

Community server · details last checked

Quick install
npx -y redis-mcp

How to install the Redis MCP server

Add this to your Claude Desktop MCP configuration:

{
  "mcpServers": {
    "redis": {
      "command": "npx",
      "args": [
        "-y",
        "redis-mcp"
      ]
    }
  }
}

Add this to your Claude Code MCP configuration:

npx -y redis-mcp

Add this to your Cursor MCP configuration:

{
  "mcpServers": {
    "redis": {
      "command": "npx",
      "args": [
        "-y",
        "redis-mcp"
      ]
    }
  }
}

Built by ContextBoltThis directory is built by ContextBolt: MCP-native memory and SEO tools that run alongside Redis in the same client.

Explore ContextBolt

The Redis MCP server lets an agent read and modify keys in a Redis instance. Cache debugging is a recurring, irritating task: something is stale, something is missing, and finding out which requires poking at keys whose naming convention you half remember. This makes that a conversation.

What it actually does

The server connects to a Redis instance and exposes key operations as tools. The agent can look up keys, read strings, hashes, lists and sets, check TTLs, and write or delete where permitted. The useful pattern is investigative: given a symptom in the application, find the key that should hold the relevant value and see what is actually there.

Practical patterns:

  • ‘What is cached under this user key, and when does it expire?’
  • ‘Find the keys matching this prefix and show me which ones have no TTL.’
  • ‘Compare what is in the cache against what the database returns for this record.‘

Why use it

Redis problems are almost always “the value is not what I expected”, and diagnosing them means translating an application-level symptom into a key name and then inspecting it. An agent that already has context on the application code can make that leap faster than you can, and it does not mind checking twenty keys to find the odd one out.

Gotchas

The serious one is key enumeration. KEYS on a large production instance blocks the server while it runs, and an agent asked to “find keys matching X” may reach for exactly that. Point it at a replica rather than your primary, and check whether the server implementation uses SCAN. Keys with no TTL are the other trap: an agent that deletes to “clean up” can evict something the application expects to persist. Read-only unless you have a reason.

Built by ContextBolt

This directory is built by ContextBolt

We build MCP-native tools that give your AI the context it cannot reach on its own. Bookmarks turns your saved posts into agent-queryable memory. SEO puts live keyword and ranking data inside Claude. Both run alongside Redis in the same client.

Explore the products →

Redis MCP server: FAQs

Is it safe against a production instance?

Be careful. A key scan on a large production Redis can block the server. Prefer a replica, and prefer SCAN-based tools over KEYS.

Can it delete keys?

If your connection permits writes, yes. Read-only credentials are sensible for anything you are only debugging.

Does it handle all Redis types?

Strings, hashes, lists and sets are the common ground. More exotic structures depend on the server implementation.

What is it actually good for?

Answering 'what is in the cache right now and why is it wrong', which is otherwise a redis-cli session and a lot of squinting.