Mcp Redis MCP Server
The official Redis MCP Server is a natural language interface designed for agentic applications to manage and search data in Redis efficiently
Mcp Redis scores 47 (Fair), licensed MIT and written in Python. It installs as a local process. It does not declare tools yet. Filed under Databases. GitHub shows 649 stars. Install configs are generated for 12 clients. MCPpedia marks it official because the namespace or repository matches a known vendor.
Fair trust
47 of 100 from six public signals. Nobody can buy a point.
- Namespace or repository matches a known vendor.
- OSI-style license: mit.
License, quality and maintenance
Where the 47 comes from
8 + 6 + 9 + 10 + 7 + 7 = 47. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 8 of 30 points.How recently the repository saw a commit or release.
Maintenance: 6 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 9 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 7 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "redis-mcp-redis-2": { "command": "docker", "args": [ "run", "-i", "--rm", "mcp/redis" ] } }}
Environment variables
This server does not declare environment variables.
Tools
All capabilitiesTools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.
About
Redis MCP Server
Overview
The Redis MCP Server is a natural language interface designed for agentic applications to efficiently manage and search data in Redis. It integrates seamlessly with MCP (Model Content Protocol) clients, enabling AI-driven workflows to interact with structured and unstructured data in Redis. Using this MCP Server, you can ask questions like:
- "Store the entire conversation in a stream"
- "Cache this item"
- "Store the session with an expiration time"
- "Index and search this vector"
Table of Contents
- Overview
- Features
- Tools
- Installation
- Configuration
- Integrations
- Testing
- Example Use Cases
- Contributing
- License
- Badges
- Contact
Features
- Natural Language Queries: Enables AI agents to query and update Redis using natural language.
- Seamless MCP Integration: Works with any MCP client for smooth communication.
- Full Redis Support: Handles hashes, lists, sets, sorted sets, streams, and more.
- Search & Filtering: Supports efficient data retrieval and searching in Redis.
- Scalable & Lightweight: Designed for high-performance data operations.
- EntraID Authentication: Native support for Azure Active Directory authentication with Azure Managed Redis.
- The Redis MCP Server supports the
stdiotransport (the default) and thestreamable-httptransport for running it as a remote server (details).
Tools
This MCP Server provides tools to manage the data stored in Redis.
stringtools to set, get strings with expiration. Useful for storing simple configuration values, session data, or caching responses.hashtools to store field-value pairs within a single key. The hash can store vector embeddings. Useful for representing objects with multiple attributes, user profiles, or product information where fields can be accessed individually.listtools with common operations to append and pop items. Useful for queues, message brokers, or maintaining a list of most recent actions.settools to add, remove and list set members. Useful for tracking unique values like user IDs or tags, and for performing set operations like intersection.sorted settools to manage data for e.g. leaderboards, priority queues, or time-based analytics with score-based ordering.pub/subfunctionality to publish messages, create stateful channel or pattern subscriptions, and read queued messages using returned subscription handles. Useful for real-time notifications, chat applications, or distributing updates to multiple clients.streamstools to add, read, delete, list, create and destroy consumer groups, and acknowledge processed entries in data streams. Useful for event sourcing, activity feeds, and worker-based event processing with Redis Streams consumer groups.JSONtools to store, retrieve, and manipulate JSON documents in Redis. Useful for complex nested data structures, document databases, or configuration management with path-based access.
Additional tools.
docstool to search Redis documentation, tutorials, and best practices using natural language questions (backed by theMCP_DOCS_SEARCH_URLHTTP API).query enginetools to manage vector indexes and perform vector searchserver managementtool to retrieve information about the database
Installation
The Redis MCP Server is available as a PyPI package and as direct installation from the GitHub repository.
From PyPI (recommended)
Configuring the latest Redis MCP Server version from PyPI, as an example, can be done importing the following JSON configuration in the desired framework or tool.
The uvx command will download the server on the fly (if not cached already), create a temporary environment, and then run it.
{
"mcpServers": {
"RedisMCPServer": {
"command": "uvx",
"args": [
"--from",
"redis-mcp-server@latest",
"redis-mcp-server",
"--url",
"\"redis://localhost:6379/0\""
]
}
}
}
URL specification
The format to specify the --url argument follows the redis and rediss schemes:
redis://user:secret@localhost:6379/0?foo=bar&qux=baz
As an example, you can easily connect to a localhost server with:
redis://localhost:6379/0
Where 0 is the logical database you'd like to connect to.
For an encrypted connection to the database (e.g., connecting to a Redis Cloud database), you'd use the rediss scheme.
rediss://user:secret@localhost:6379/0?foo=bar&qux=baz
To verify the server's identity, specify ssl_ca_certs.
rediss://user:secret@hostname:port?ssl_cert_reqs=required&ssl_ca_certs=path_to_the_certificate
For an unverified connection, set ssl_cert_reqs to none
rediss://user:secret@hostname:port?ssl_cert_reqs=none
Configure your connection using the available options in the section "Available CLI Options".
Testing the PyPI package
You can install the package as follows:
pip install redis-mcp-server
And start it using uv the package in your environment.
uv python install 3.14
uv sync
uv run redis-mcp-server --url redis://localhost:6379/0
However, starting the MCP Server is most useful when delegate to the framework or tool where this MCP Server is configured.
From GitHub
You can configure the desired Redis MCP Server version with uvx, which allows you to run it directly from GitHub (from a branch, or use a tagged release).
It is recommended to use a tagged release, the
mainbranch is under active development and may contain breaking changes.
As an example, you can execute the following command to run the 0.2.0 release:
uvx --from git+https://github.com/redis/mcp-redis.git@0.2.0 redis-mcp-server --url redis://localhost:6379/0
Check the release notes for the latest version in the Releases section. Additional examples are provided below.
# Run with Redis URI
uvx --from git+https://github.com/redis/mcp-redis.git redis-mcp-server --url redis://localhost:6379/0
# Run with Redis URI and SSL
uvx --from git+https://github.com/redis/mcp-redis.git redis-mcp-server --url "rediss://<USERNAME>:<PASSWORD>@<HOST>:<PORT>?ssl_cert_reqs=required&ssl_ca_certs=<PATH_TO_CERT>"
# Run with individual parameters
uvx --from git+https://github.com/redis/mcp-redis.git redis-mcp-server --host localhost --port 6379 --password mypassword
# See all options
uvx --from git+https://github.com/redis/mcp-redis.git redis-mcp-server --help
Development Installation
For development or if you prefer to clone the repository:
# Clone the repository
git clone https://github.com/redis/mcp-redis.git
cd mcp-redis
# Install dependencies using uv
uv venv
source .venv/bin/activate
uv sync
# Run with CLI interface
uv run redis-mcp-server --help
# Or run the main file directly (uses environment variables)
uv run src/main.py
Once you cloned the repository, installed the dependencies and verified you can run the server, you can configure Claude Desktop or any other MCP Client to use this MCP Server running the main file directly (it uses environment variables). This is usually preferred for development. The following example is for Claude Desktop, but the same applies to any other MCP Client.
- Specify your Redis credentials and TLS configuration
- Retrieve your
uvcommand full path (e.g.which uv) - Edit the
claude_desktop_config.jsonconfiguration file- on a MacOS, at
~/Library/Application\ Support/Claude/
- on a MacOS, at
{
"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
}
}
}
}
You can troubleshoot problems by tailing the log file.
tail -f ~/Library/Logs/Claude/mcp-server-redis.log
With Docker
You can use a dockerized deployment of this server. You can either build your own image or use the official Redis MCP Docker image.
If you'd like to build your own image, the Redis MCP Server provides a Dockerfile. Build this server's image with:
docker build -t mcp-redis .
Finally, configure the client to create the container at start-up. An example for Claude Desktop is provided below. Edit the claude_desktop_config.json and add:
{
"mcpServers": {
"redis": {
"command": "docker",
"args": ["run",
"--rm",
"--name",
"redis-mcp-server",
"-i",
"-e", "REDIS_HOST=<redis_hostname>",
"-e", "REDIS_PORT=<redis_port>",
"-e", "REDIS_USERNAME=<redis_username>",
"-e", "REDIS_PWD=<redis_password>",
"mcp-redis"]
}
}
}
To use the official Redis MCP Docker image, just replace your image name (mcp-redis in the example above) with mcp/redis.
Configuration
The Redis MCP Server can be configured in two ways: via command line arguments or via environment variables. The precedence is: command line arguments > environment variables > default values.
Transports
By default the server speaks MCP over stdio: the MCP client starts it as a local process. Nothing changes unless you select another transport.
To run it as a standalone server that clients reach over the network, select the streamable-http transport:
uvx --from redis-mcp-server@latest redis-mcp-server \
--url redis://localhost:6379/0 \
--transport streamable-http
The server then listens on http://127.0.0.1:8000/mcp. Use --http-host and --http-port (or MCP_HTTP_HOST and MCP_HTTP_PORT) to change the address, for example --http-host 0.0.0.0 to accept connections from other machines or from outside a container.
Anyone who can reach the server can call every exposed tool with the Redis credentials it was started with, so on any address other than a loopback one (127.0.0.1, localhost or ::1) clients have to send a token, and the server does not start without one. Set it with MCP_HTTP_AUTH_TOKEN (or --http-auth-token), for example to the output of openssl rand -hex 32:
docker run --rm -p 8000:8000 \
-e MCP_TRANSPORT=streamable-http \
-e MCP_HTTP_HOST=0.0.0.0 \
-e MCP_HTTP_AUTH_TOKEN=<token> \
-e REDIS_HOST=<redis_hostname> \
-e REDIS_PWD=<redis_password> \
mcp-redis
A client configuration then points at the URL instead of a command and sends the token as a bearer token, for example in VS Code:
{
"servers": {
"redis": {
"type": "http",
"url": "http://localhost:8000/mcp",
"headers": {
"Authorization": "Bearer <token>"
}
}
}
}
Requests without the token are answered with 401. On a loopback address the token is optional, and checked when set.
[!WARNING] The token is one secret shared by every client: it does not tell callers apart, and the server speaks plain HTTP, so the token crosses the network unencrypted. Where the network between clients and the server is not trusted, put the server behind a proxy or gateway that terminates TLS. Consider restricting the exposed tools and a Redis ACL user with only the permissions the tools need.
While bound to a loopback address (127.0.0.1, localhost or ::1), the server only accepts requests whose Host header names a loopback address, which protects a locally running server from DNS rebinding. Bound to any other address it accepts requests under whatever name it is reached by.
Redis ACL
You can configure Redis ACL to restrict the access to the Redis database. For example, to create a read-only user:
127.0.0.1:6379> ACL SETUSER readonlyuser on >mypassword ~* +@read -@write
Configure the user via command line arguments or environment variables.
Redis ACL restricts what the server may execute. It does not change which tools the server offers — a rejected command still comes back as a tool error after the agent has already decided to call it. To control the offered tools, see Restricting the exposed tools, which also has an example of a user that can update hashes but not delete from them.
Restricting the exposed tools
By default the server exposes every tool. Set MCP_REDIS_ALLOWED_TOOLS to a
comma-separated list of tool names to expose only those:
MCP_REDIS_ALLOWED_TOOLS="get,set,hget,hgetall,dbsize" redis-mcp-server --url redis://localhost:6379/0
Tools left out of the list are not registered at all, so they never appear in
tools/list. This matters for agents: a tool that is visible can be planned
around even when every call to it would be refused.
Because the list is an allowlist, a tool added in a future release stays unavailable until you name it. Every name must match an existing tool — an unknown name aborts startup rather than being ignored, since silently dropping it would expose fewer tools than configured while looking like a working setup. For the same reason a variable that is set but names no tool (empty, blank or only commas) aborts startup too; unset it to expose every tool.
In your MCP client configuration:
{
"mcpServers": {
"redis": {
"command": "uvx",
"args": ["--from", "redis-mcp-server@latest", "redis-mcp-server", "--url", "redis://localhost:6379/0"],
"env": {
"MCP_REDIS_ALLOWED_TOOLS": "get,set,hget,hgetall,dbsize"
}
}
}
}
The allowlist controls which tools are offered. It is not a data-protection
boundary: a guarantee such as "existing hash fields can never be removed" can be
broken by several tools (delete, rename, expire, set, or hset with
expire_seconds), and the allowlist cannot switch off a tool parameter. Enforce
such guarantees with a Redis ACL user, and use the allowlist
alongside it so the agent is only offered tools that can succeed.
For example, a user that can read and update hashes under obj:* but cannot
remove fields or keys:
127.0.0.1:6379> ACL SETUSER agent on >mypassword ~obj:* +hset +hget +hgetall +hexists +type +ttl +scan
MCP_REDIS_ALLOWED_TOOLS="hset,hget,hgetall,hexists,type,scan_keys,scan_all_keys" \
redis-mcp-server --url redis://agent:mypassword@localhost:6379/0
+type, +ttl and +scan are only needed for the type, scan_keys and
scan_all_keys tools.
Configuration via command line arguments
When using the CLI interface, you can configure the server with command line arguments:
# Basic Redis connection
uvx --from redis-mcp-server@latest redis-mcp-server \
--host localhost \
--port 6379 \
--password mypassword
# Using Redis URI (simpler)
uvx --from redis-mcp-server@latest redis-mcp-server \
--url redis://user:pass@localhost:6379/0
# SSL connection
uvx --from redis-mcp-server@latest redis-mcp-server \
--url rediss://user:pass@redis.example.com:6379/0
# See all available options
uvx --from redis-mcp-server@latest redis-mcp-server --help
Available CLI Options:
--url- Redis connection URI (redis://user:pass@host:port/db)--host- Redis hostname (default: 127.0.0.1)--port- Redis port (default: 6379)--db- Redis database number (default: 0)--username- Redis username--password- Redis password--ssl- Enable SSL connection--ssl-ca-path- Path to CA certificate file--ssl-keyfile- Path to SSL key file--ssl-certfile- Path to SSL certificate file--ssl-cert-reqs- SSL certificate requirements (default: required)--ssl-ca-certs- Path to CA certificates file--cluster-mode- Enable Redis cluster mode--transport- MCP transport,stdioorstreamable-http(default: stdio)--http-host- Host thestreamable-httptransport listens on (default: 127.0.0.1)--http-port- Port thestreamable-httptransport listens on (default: 8000)--http-auth-token- Bearer token clients of thestreamable-httptransport must send, required unless--http-hostis a loopback address
Configuration via Environment Variables
If desired, you can use environment variables. Defaults are provided for all variables.
| Name | Description | Default Value |
|---|---|---|
REDIS_HOST | Redis IP or hostname | "127.0.0.1" |
REDIS_PORT | Redis port | 6379 |
REDIS_DB | Database | 0 |
REDIS_USERNAME | Default database username | "default" |
REDIS_PWD | Default database password | "" |
REDIS_SSL | Enables or disables SSL/TLS | False |
REDIS_SSL_CA_PATH | CA certificate for verifying server | None |
REDIS_SSL_KEYFILE | Client's private key file for client authentication | None |
REDIS_SSL_CERTFILE | Client's certificate file for client authentication | None |
REDIS_SSL_CERT_REQS | Whether the client should verify the server's certificate | "required" |
REDIS_SSL_CA_CERTS | Path to the trusted CA certificates file | None |
REDIS_CLUSTER_MODE | Enable Redis Cluster mode | False |
MCP_REDIS_ALLOWED_TOOLS | Comma-separated names of the only tools to expose (details) | All tools |
MCP_TRANSPORT | MCP transport, stdio or streamable-http (details) | "stdio" |
MCP_HTTP_HOST | Host the streamable-http transport listens on | "127.0.0.1" |
MCP_HTTP_PORT | Port the streamable-http transport listens on | 8000 |
MCP_HTTP_AUTH_TOKEN | Bearer token clients of the streamable-http transport must send, required unless MCP_HTTP_HOST is a loopback address | None |
EntraID Authentication for Azure Managed Redis
The Redis MCP Server supports EntraID (Azure Active Directory) authentication for Azure Managed Redis, enabling OAuth-based authentication with automatic token management.
Authentication Providers
Service Principal Authentication - Application-based authentication using client credentials:
export REDIS_ENTRAID_AUTH_FLOW=service_principal
export REDIS_ENTRAID_CLIENT_ID=your-client-id
export REDIS_ENTRAID_CLIENT_SECRET=your-client-secret
export REDIS_ENTRAID_TENANT_ID=your-tenant-id
Managed Identity Authentication - For Azure-hosted applications:
# System-assigned managed identity
export REDIS_ENTRAID_AUTH_FLOW=managed_identity
export REDIS_ENTRAID_IDENTITY_TYPE=system_assigned
# User-assigned managed identity
export REDIS_ENTRAID_AUTH_FLOW=managed_identity
export REDIS_ENTRAID_IDENTITY_TYPE=user_assigned
export REDIS_ENTRAID_USER_ASSIGNED_CLIENT_ID=your-identity-client-id
Default Azure Credential - Automatic credential discovery (recommended for development):
export REDIS_ENTRAID_AUTH_FLOW=default_credential
export REDIS_ENTRAID_SCOPES=https://redis.azure.com/.default
EntraID Configuration Variables
| Name | Description | Default Value |
|---|---|---|
REDIS_ENTRAID_AUTH_FLOW | Authentication flow type | None (EntraID disabled) |
REDIS_ENTRAID_CLIENT_ID | Service Principal client ID | None |
REDIS_ENTRAID_CLIENT_SECRET | Service Principal client secret | None |
REDIS_ENTRAID_TENANT_ID | Azure tenant ID | None |
REDIS_ENTRAID_IDENTITY_TYPE | Managed identity type | "system_assigned" |
REDIS_ENTRAID_USER_ASSIGNED_CLIENT_ID | User-assigned managed identity client ID | None |
REDIS_ENTRAID_SCOPES | OAuth scopes for Default Azure Credential | "https://redis.azure.com/.default" |
REDIS_ENTRAID_RESOURCE | Azure Redis resource identifier | "https://redis.azure.com/" |
Key Features
- Automatic token renewal - Background token refresh with no manual intervention
- Graceful fallback - Falls back to standard Redis authentication when EntraID not configured
- Multiple auth flows - Supports Service Principal, Managed Identity, and Default Azure Credential
- Enterprise ready - Designed for Azure Managed Redis with centralized identity management
Example Configuration
For local development with Azure CLI:
# Login with Azure CLI
az login
# Configure MCP server
export REDIS_ENTRAID_AUTH_FLOW=default_credential
export REDIS_URL=redis://your-azure-redis.redis.cache.windows.net:6379
For production with Service Principal:
export REDIS_ENTRAID_AUTH_FLOW=service_principal
export REDIS_ENTRAID_CLIENT_ID=your-app-client-id
export REDIS_ENTRAID_CLIENT_SECRET=your-app-secret
export REDIS_ENTRAID_TENANT_ID=your-tenant-id
export REDIS_URL=redis://your-azure-redis.redis.cache.windows.net:6379
For Azure-hosted applications with Managed Identity:
export REDIS_ENTRAID_AUTH_FLOW=managed_identity
export REDIS_ENTRAID_IDENTITY_TYPE=system_assigned
export REDIS_URL=redis://your-azure-redis.redis.cache.windows.net:6379
There are several ways to set environment variables:
- Using a
.envFile: Place a.envfile in your project directory with key-value pairs for each environment variable. Tools likepython-dotenv,pipenv, anduvcan automatically load these variables when running your application. This is a convenient and secure way to manage configuration, as it keeps sensitive data out of your shell history and version control (if.envis in.gitignore). For example, create a.envfile with the following content from the.env.examplefile provided in the repository:
cp .env.example .env
Then edit the .env file to set your Redis configuration:
OR,
- Setting Variables in the Shell: You can export environment variables directly in your shell before running your application. For example:
export REDIS_HOST=your_redis_host
export REDIS_PORT=6379
# Other variables will be set similarly...
This method is useful for temporary overrides or quick testing.
Logging
The server uses Python's standard logging and is configured at startup. By default it logs at WARNING and above. You can change verbosity with the MCP_REDIS_LOG_LEVEL environment variable.
- Accepted values (case-insensitive):
DEBUG,INFO,WARNING,ERROR,CRITICAL,NOTSET - Aliases supported:
WARN→WARNING,FATAL→CRITICAL - Numeric values are also accepted, including signed (e.g.,
"10","+20") - Default when unset or unrecognized:
WARNING
Handler behavior
- If the host (e.g.,
uv, VS Code, pytest) already installed console handlers, the server will NOT add its own; it only lowers overly-restrictive handler thresholds so your chosen level is not filtered out. It will never raise a handler's threshold. - If no handlers are present, the server adds a single stderr StreamHandler with a simple format.
Examples
# See normal lifecycle messages
MCP_REDIS_LOG_LEVEL=INFO uv run src/main.py
# Very verbose for debugging
MCP_REDIS_LOG_LEVEL=DEBUG uvx --from redis-mcp-server@latest redis-mcp-server --url redis://localhost:6379/0
In MCP client configs that support env, add it alongside your Redis settings. For example:
{
"mcpServers": {
"redis": {
"command": "uvx",
"args": ["--from", "redis-mcp-server@latest", "redis-mcp-server", "--url", "redis://localhost:6379/0"],
"env": {
"REDIS_HOST": "localhost",
"REDIS_PORT": "6379",
"MCP_REDIS_LOG_LEVEL": "INFO"
}
}
}
}
Integrations
Integrating this MCP Server to development frameworks like OpenAI Agents SDK, or with tools like Claude Desktop, VS Code, or Augment is described in the following sections.
OpenAI Agents SDK
Integrate this MCP Server with the OpenAI Agents SDK. Read the documents to learn more about the integration of the SDK with MCP.
Install the Python SDK.
pip install openai-agents
Configure the OpenAI token:
export OPENAI_API_KEY="<openai_token>"
And run the application.
python3.14 redis_assistant.py
You can troubleshoot your agent workflows using the OpenAI dashboard.
Augment
The preferred way of configuring the Redis MCP Server in Augment is to use the Easy MCP feature.
You can also configure the Redis MCP Server in Augment manually by importing the server via JSON:
{
"mcpServers": {
"Redis MCP Server": {
"command": "uvx",
"args": [
"--from",
"redis-mcp-server@latest",
"redis-mcp-server",
"--url",
"redis://localhost:6379/0"
]
}
}
}
Claude Desktop
The simplest way to configure MCP clients is using uvx. Add the following JSON to your claude_desktop_config.json, remember to provide the full path to uvx.
Basic Redis connection:
{
"mcpServers": {
"redis-mcp-server": {
"type": "stdio",
"command": "/Users/mortensi/.local/bin/uvx",
"args": [
"--from", "redis-mcp-server@latest",
"redis-mcp-server",
"--url", "redis://localhost:6379/0"
]
}
}
}
Azure Managed Redis with EntraID authentication:
{
"mcpServers": {
"redis-mcp-server": {
"type": "stdio",
"command": "/Users/mortensi/.local/bin/uvx",
"args": [
"--from", "redis-mcp-server@latest",
"redis-mcp-server",
"--url", "redis://your-azure-redis.redis.cache.windows.net:6379"
],
"env": {
"REDIS_ENTRAID_AUTH_FLOW": "default_credential",
"REDIS_ENTRAID_SCOPES": "https://redis.azure.com/.default"
}
}
}
}
VS Code with GitHub Copilot
To use the Redis MCP Server with VS Code, you must nable the agent mode tools. Add the following to your settings.json:
{
"chat.agent.enabled": true
}
You can start the GitHub desired version of the Redis MCP server using uvx by adding the following JSON to your mcp.json file:
"servers": {
"redis": {
"type": "stdio",
"command": "uvx",
"args": [
"--from", "redis-mcp-server@latest",
"redis-mcp-server",
"--url", "redis://localhost:6379/0"
]
},
}
Suppressing uvx Installation Messages
If you want to suppress uvx installation messages that may appear as warnings in MCP client logs, use the -qq flag:
"servers": {
"redis": {
"type": "stdio",
"command": "uvx",
"args": [
"-qq",
"--from", "redis-mcp-server@latest",
"redis-mcp-server",
"--url", "redis://localhost:6379/0"
]
},
}
The -qq flag enables silent mode, which suppresses "Installed X packages" messages that uvx writes to stderr during package installation.
Alternatively, you can start the server using uv and configure your mcp.json. This is usually desired for development.
// mcp.json
{
"servers": {
"redis": {
"type": "stdio",
"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_USERNAME": "<your_redis_database_username>",
"REDIS_PWD": "<your_redis_database_password>",
}
}
}
}
For more information, see the VS Code documentation.
Tip: You can prompt Copilot chat to use the Redis MCP tools by including
#redisin your message.
Note: Starting with VS Code v1.102, MCP servers are now stored in a dedicated
mcp.jsonfile instead ofsettings.json.
Testing
You can use the MCP Inspector for visual debugging of this MCP Server.
npx @modelcontextprotocol/inspector uv run src/main.py
Example Use Cases
- AI Assistants: Enable LLMs to fetch, store, and process data in Redis.
- Chatbots & Virtual Agents: Retrieve session data, manage queues, and personalize responses.
- Data Search & Analytics: Query Redis for real-time insights and fast lookups.
- Event Processing: Manage event streams with Redis Streams.
Contributing
- Fork the repo
- Create a new branch (
feature-branch) - Commit your changes
- Push to your branch and submit a PR!
License
This project is licensed under the MIT License.
Badges
Contact
For questions or support, reach out via GitHub Issues.
Alternatively, you can join the Redis Discord server and ask in the #redis-mcp-server channel.
Frequently asked questions
What is Mcp Redis MCP Server?
The official Redis MCP Server is a natural language interface designed for agentic applications to manage and search data in Redis efficiently
How do I install Mcp Redis MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Mcp Redis MCP Server runs locally from the Docker image mcp/redis with the command docker run -i --rm mcp/redis.
Is Mcp Redis MCP Server free and open source?
Yes. Mcp Redis MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does Mcp Redis MCP Server support remote (HTTP) connections?
No remote endpoint is listed for Mcp Redis MCP Server. It runs locally on your machine over stdio, started by your MCP client.
How is Mcp Redis MCP Server's trust score calculated?
Mcp Redis MCP Server scores 47 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.