Skip to main content
MCP Server

Interact with Redis key-value stores

Share
780 stars TypeScript MIT Updated: 2025-04-22

Send to Your Agent

Copy this prompt and paste it into Claude, Cursor, or any MCP client to install instantly.

Install the Redis MCP server for me.

Server: Redis
Description: Interact with Redis key-value stores
Install command: npx -y @modelcontextprotocol/server-redis redis://localhost:6379

Environment variables needed:
- REDIS_URL: Redis connection URL (required)

GitHub: https://github.com/modelcontextprotocol/servers-archived/tree/main/src/redis

Please install this MCP server and confirm when ready.

Paste into any AI agent with MCP support — works with Claude Desktop, Cursor, Cline, and more.

Quick Install

Config file: ~/Library/Application Support/Claude/claude_desktop_config.json

  1. Open Claude Desktop app
  2. Go to Settings → Developer → Edit Config
  3. Paste the config below into the file
  4. Restart Claude Desktop
{
  "mcpServers": {
    "redis": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-redis",
        "redis://localhost:6379"
      ],
      "env": {
        "REDIS_URL": "redis://localhost:6379"
      }
    }
  }
}

Add this to your ~/Library/Application Support/Claude/claude_desktop_config.json

Installation Methods

npx Run directly with npx
npx -y @modelcontextprotocol/server-redis redis://localhost:6379

Tools (5)

get

Get the value of a key

set

Set the value of a key

delete

Delete a key

list_keys

List all keys matching a pattern

get_info

Get Redis server information

Environment Variables

REDIS_URL Required

Redis connection URL

Example: redis://localhost:6379

Compatibility

Claude Desktop
Cursor
Cline
VS Code
Devin (formerly Windsurf)

About

A Model Context Protocol server that provides access to Redis databases. This server enables LLMs to interact with Redis key-value stores through a set of standardized tools.

Key Features

  • Key-value operations — Get, set, and delete keys
  • Pattern matching — List keys using glob patterns
  • Server info — Retrieve Redis server statistics and configuration
  • Connection flexibility — Works with local and remote Redis instances

Use Cases

  • Cache inspection — "What's currently in the cache?"
  • Session management — "List all active user sessions"
  • Rate limiting analysis — "Check how many requests this IP has made"
  • Queue monitoring — "Show me the length of all queues"
  • Configuration review — "What are the current Redis settings?"

Related Resources

Compare LLM Pricing

This server works with Claude, GPT-4o, and other models. Compare API costs side-by-side to find the cheapest option for your workflow.