SuperAPI AI Directory

mcp-redis

Redis MCP Server is the official natural language interface from Redis, designed specifically for agent applications to efficiently manage and search data in Redis. Through seamless integration with MCP (Model Content Protocol) clients, it enables AI-driven workflows to interact with structured and unstructured data in Redis. Users can ask questions in natural language, such as "store the entire conversation in a stream," "cache this item," "store a session with an expiration time," "index and search this vector," and more. The server provides tools for various Redis data structures such as strings, hashes, lists, sets, sorted sets, pub/sub, streams, JSON, and more, as well as features such as document search, vector indexing and search, and server management. It supports stdio transport, with streamable-http support planned for the future. Installation methods include installation from PyPI (recommended), installation from GitHub, development installation, and deployment using Docker. Configuration can be done through command-line arguments, environment variables, or EntraID authentication (suitable for Azure Managed Redis). The server supports integrations such as OpenAI Agents SDK, Claude Desktop, VS Code with GitHub Copilot, Augment, and more, and is suitable for scenarios such as AI assistants, chatbots, data search and analysis, and event processing. The project uses the MIT license.

Open website

About this tool

Redis MCP Server is the official natural language interface provided by Redis, designed to enable agent applications to efficiently manage and search data in Redis. Through seamless integration with MCP (Model Content Protocol) clients, it enables AI-driven workflows to interact with structured and unstructured data in Redis.

Purpose

This server is mainly used to enable AI agents to operate the Redis database through natural language. Typical use cases include: storing entire conversations in streams, caching data items, storing sessions with expiration times, indexing and searching vectors, and more. It enables AI assistants, chatbots, and virtual agents to retrieve session data, manage queues, personalize responses, and perform real-time data search and analysis and event stream processing.

Main Capabilities

Redis MCP Server provides a series of tools to manage data stored in Redis:

  • String tools: Set and get strings with expiration times, suitable for storing simple configuration values, session data, or cached responses.
  • Hash tools: Store field-value pairs in a single key, can store vector embeddings, suitable for representing multi-attribute objects, user profiles, or product information.
  • List tools: Provide common operations for appending and popping elements, suitable for queues, message brokers, or maintaining a list of recent operations.
  • Set tools: Add, remove, and list set members, suitable for tracking unique values (such as user IDs or tags) and performing set operations such as intersection.
  • Sorted set tools: Manage data for leaderboards, priority queues, or time-based analysis, supporting score-based sorting.
  • Pub/Sub functionality: Publish messages, create stateful channels or pattern subscriptions, and read queue messages using the returned subscription handle, suitable for real-time notifications, chat applications, or distributing updates to multiple clients.
  • Stream tools: Add, read, and delete entries in data streams, create and destroy consumer groups, acknowledge processed entries, suitable for event sourcing, activity feeds, and worker-based event processing.
  • JSON tools: Store, retrieve, and manipulate JSON documents in Redis, suitable for complex nested data structures, document databases, or configuration management based on path access.
  • Additional tools: Documentation tools (search Redis documentation, tutorials, and best practices using natural language questions, supported by the MCP_DOCS_SEARCH_URL HTTP API), query engine tools (manage vector indexes and perform vector searchtools), server management tools (retrieving database information).

In addition, the server supports EntraID authentication (Azure Active Directory), suitable for Azure Managed Redis, providing OAuth-based authentication and automatic token management.

Usage

Redis MCP Server supports stdio transport, and support for streamable-http transport will be added in the future. Installation methods include:

  • Install from PyPI (recommended): Use the uvx command to dynamically download the server, create a temporary environment, and run it.
  • Install from GitHub: You can use uvx to run directly from the GitHub repository (branch or tagged version). Tagged versions are recommended because the main branch is under active development and may contain breaking changes.
  • Development installation: After cloning the repository and installing dependencies, you can run the main file directly, usually for development.
  • Using Docker: You can build your own image or use the official Redis MCP Docker image (mcp/redis).

There are two configuration methods: command-line arguments or environment variables, with priority order command-line arguments > environment variables > default values. Command-line options include --url, --host, --port, --db, --username, --password, --ssl and other SSL-related options, as well as --cluster-mode. Environment variables can be set via a .env file or shell export. Logging uses Python standard logging, and the level of detail can be adjusted via the MCP_REDIS_LOG_LEVEL environment variable.

In terms of integration, the server supports OpenAI Agents SDK, Claude Desktop, VS Code with GitHub Copilot, Augment, and others. For example, in Claude Desktop you can add configuration by editing claude_desktop_config.json; in VS Code you need to add configuration in mcp.json and enable agent mode tools, and you can prompt Copilot to use Redis MCP tools via #redis.

Applicable scenarios and limitations

Applicable scenarios include: AI assistants (enabling LLMs to retrieve, store, and process Redis data), chatbots and virtual agents (retrieving session data, managing queues, personalizing responses), data search and analysis (querying Redis for real-time insights and fast lookups), event processing (using Redis Streams to manage event streams).

In terms of limitations, currently only stdio transport is supported, and streamable-http transport has yet to be added. Other limitation information is not yet provided.

This project uses the MIT license. If you have questions or need support, you can contact us via GitHub Issues, or join the #redis-mcp-server channel on the Redis Discord server.