Redis MCP Server

Redis MCP servers enable AI models to interact with Redis databases, providing capabilities for key-value operations, caching, pub/sub messaging, and high-performance data structures.

Install on VS Code using npx

{
  "mcpServers": {
    "redis": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "mcp/redis",
        "redis://host.docker.internal:6379"
      ]
    }
  }
}

Overview

The MCP Redis Server enables AI models to interact with Redis databases, providing a standardized interface for working with this popular in-memory data structure store. Redis is widely used for caching, real-time analytics, messaging, and as a NoSQL database, making it a versatile tool for AI applications.1

With the Redis MCP Server, language models can:

  • Store and retrieve data using key-value operations
  • Work with various Redis data structures (strings, lists, sets, hashes, sorted sets)
  • Implement caching mechanisms for improved performance
  • Use pub/sub messaging for real-time communication
  • Leverage Redis for session management and rate limiting

Tools

The Redis MCP Server provides the following tools for interacting with Redis databases:

Sources

Footnotes

  1. https://github.com/modelcontextprotocol/servers/tree/main/src/redis