~/ai_assets_directory_
MCP Server verified · tested by us published by the official vendor 618 stars
redis-mcp-server.mcp

Redis MCP Server

Redis's official MCP server, letting an agent run natural-language data operations across strings, hashes, lists, sets, sorted sets, streams, pub/sub and JSON, plus manage vector indexes for search.

Overview

Redis MCP Server is Redis's own natural-language interface to a Redis instance. It covers the full range of Redis data structures, not just basic get/set, so an agent can build on things like streams and pub/sub without writing raw Redis commands.

How it works

  1. It exposes typed tools per data structure: strings with expiration, hashes (including vector embeddings), lists, sets, sorted sets for leaderboard-style ranking, streams with consumer groups, and JSON documents with path-based access.
  2. Pub/sub tools support stateful channel and pattern subscriptions, so an agent can subscribe once and keep reading queued messages across several calls rather than re-subscribing each time.
  3. A dedicated query engine manages vector indexes and runs vector search directly against Redis, useful for retrieval-augmented generation workflows that already store embeddings there.
  4. It supports EntraID (Azure Active Directory) authentication for Azure Managed Redis, with automatic token renewal, alongside standard username/password and TLS connections.
  5. A docs tool searches Redis's own documentation and best practices, so an agent can look up the right approach before running a command instead of guessing at Redis semantics.

Examples

"Cache the result of this API call in Redis with a 10 minute expiration,
keyed by the request parameters."

Installation

You need uv (recommended) or Python with pip, and a running Redis instance.

  1. Make sure you have a Redis instance reachable (local, Docker, or a managed Redis).
  2. Add the server to your MCP client's config, pointing --url at your Redis connection string (see the sidebar).
  3. Restart your client.
  4. Ask the agent to set and then read back a key to confirm the connection works.

Related assets