DEV Community

curatedmcp for CuratedMCP

Posted on • Originally published at curatedmcp.com

Redis MCP: Give Your AI Agent Full Access to Redis — Strings, Lists, Hashes, Queues, and Real-Time Pub/Sub

Install guide and config at curatedmcp.com

Redis MCP: Give Your AI Agent Full Access to Redis — Strings, Lists, Hashes, Queues, and Real-Time Pub/Sub

What It Does

Redis MCP bridges AI agents and Redis, letting Claude, Cursor, and other AI tools read and write to your Redis instance using natural language. Instead of manually writing Redis commands, you can ask your AI agent to "get the user session for ID 42" or "add this job to the processing queue" — and it handles the Redis operations.

The server supports the full Redis API: strings with TTL, lists (perfect for queues), hashes for structured data, sets for unique collections, and sorted sets for leaderboards. You also get key inspection, transactions, Lua scripting, and pub/sub messaging. Works with Redis, Redis Cluster, Sentinel, and managed services like Upstash, AWS ElastiCache, and Azure Cache.

Why this matters: AI agents can now manage application state, handle rate limits, orchestrate job queues, and subscribe to real-time channels — all without you writing boilerplate code.

How to Install

uvx mcp-server-redis
Enter fullscreen mode Exit fullscreen mode

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "redis-mcp": {
      "command": "uvx mcp-server-redis",
      "env": {
        "REDIS_URL": "redis://localhost:6379"
      }
    }
  }
}
Enter fullscreen mode Exit fullscreen mode

Point REDIS_URL to your Redis instance. Restart Claude Desktop and you're live.

Real-World Use Cases

  • Session & Cache Debugging: Ask Claude to fetch and inspect cached user sessions, clear stale keys, or check TTL expiry — useful when troubleshooting auth or personalization bugs.
  • Queue Management: Have your AI agent monitor job queues (LPUSH/RPOP), move failed jobs to a retry list, or peek at pending tasks without touching production code.
  • Rate Limit Enforcement: Build dynamic rate limiters where the agent increments counters with TTL, checks thresholds, and reports back — all in one conversation.

Full install guides for Claude Desktop, Cursor, Windsurf, and more at CuratedMCP.

Top comments (0)