Back to MCP Directory
Redis
Model Context Protocol moderate risk

Redis

The Redis MCP Server provides a natural language interface for AI agents to manage and search data within a Redis database, supporting various data structures.

Connections & Capabilities

Connects To

GitHubRedisDiscordDockerAzure

Capabilities

readwriteexecadmin

Quickstart

Install

pip install redis-mcp-server

Config

{
    "mcpServers": {
        "redis": {
            "command": "<full_path_uv_command>",
            "args": [
                "--directory",
                "<your_mcp_server_directory>",
                "run",
                "src/main.py"
            ],
            "env": {
                "REDIS_HOST": "<your_redis_database_hostname>",
                "REDIS_PORT": "<your_redis_database_port>",
                "REDIS_PWD": "<your_redis_database_password>",
                "REDIS_SSL": True|False,
                "REDIS_SSL_CA_PATH": "<your_redis_ca_path>",
                "REDIS_CLUSTER_MODE": True|False
            }
        }
    }
}

Exposed MCP Tools (11)

moderate
string

Sets and retrieves strings with optional expiration, useful for caching and session management.

Allows writing and expiring data.

moderate
hash

Stores and retrieves field-value pairs within a single key, suitable for representing objects.

Allows writing and potentially overwriting data.

moderate
list

Appends and pops items from lists, useful for queues and message brokers.

Allows modifying list contents.

moderate
set

Adds, removes, and lists set members, useful for tracking unique values.

Allows modifying set contents.

moderate
sorted set

Manages data with score-based ordering, suitable for leaderboards and priority queues.

Allows modifying sorted set contents.

moderate
pub/sub

Publishes messages to channels and subscribes to receive them, enabling real-time notifications.

Allows publishing messages.

moderate
streams

Adds, reads, and deletes from data streams, useful for event sourcing and activity feeds.

Allows modifying stream contents.

moderate
JSON

Stores, retrieves, and manipulates JSON documents in Redis, useful for complex data structures.

Allows modifying JSON documents.

safe
docs

Searches Redis documentation using natural language queries.

Read-only access to documentation.

moderate
query engine

Manages vector indexes and performs vector search.

Allows creating and querying vector indexes.

safe
server management

Retrieves information about the Redis database server.

Read-only access to server information.

Safety Assessment

The Redis MCP Server's safety depends on the configuration of Redis ACL and the appropriate use of tools. When ACL is properly configured and only safe tools are used, it can be considered relatively safe. However, if destructive tools are enabled without proper access controls, it poses a significant risk.

  • Supports Redis ACL for access control.
  • Can be configured with SSL for secure connections.
  • Provides tools with varying danger levels, allowing for controlled access.
  • Supports EntraID authentication for Azure Managed Redis.
  • Direct access to Redis database, potentially allowing for unintended data modification or deletion.
  • Improperly configured ACL can lead to unauthorized access.
  • Exposure of Redis credentials if environment variables are not properly secured.
  • Lack of sandboxing could allow for unintended side effects from certain tools.