Redis MCP Server – AI Access to Redis Data
Redis MCP Server is Redis's official Model Context Protocol server for giving MCP clients a natural-language interface to Redis databases. It lets agents work with Redis data structures, query/search capabilities, documentation lookup, and basic server information while relying on Redis connection credentials supplied by the operator.
Overview
Redis MCP Server is the official Redis Model Context Protocol implementation for connecting AI agents and MCP-compatible clients to a Redis database. Redis describes it as a general-purpose MCP server that lets agents read, write, and query data in Redis, with additional basic commands for managing the Redis server. It is useful when an assistant needs live Redis context rather than relying on static documentation or copied data.
What the MCP server enables
The server exposes Redis-oriented tools for common data structures and workflows. Documented capabilities include string operations with expiration, hash operations for field-value data and embeddings, list operations for queues, set and sorted-set operations, pub/sub messaging, streams and consumer-group operations, JSON document access, query engine tools for indexes and vector search, a documentation search tool, and server information tools. These tools let an agent inspect cached values, store session state, add events to streams, search vectors, or answer operational questions such as how many keys exist in a database.
When to use it
Use Redis MCP when an AI assistant needs controlled access to application state, cache entries, session data, queues, streams, JSON documents, or vector-search data held in Redis. Practical examples include debugging user session records, creating or inspecting queues, checking stream events, storing a conversation transcript in a stream, retrieving product or user profile hashes, and using Redis as a fast working-memory layer for an agentic application.
Connection and authentication
Redis documents the MCP server as a local stdio server. The recommended PyPI configuration runs redis-mcp-server through uvx with redis-mcp-server@latest and a Redis URL such as redis://localhost:6379/0. Encrypted Redis connections use the rediss URI scheme. The server can also be configured with individual command-line options or environment variables such as REDIS_HOST, REDIS_PORT, REDIS_USERNAME, and REDIS_PWD; command-line arguments take precedence over environment variables and defaults.
Key considerations
The Redis MCP Server currently documents stdio support; the official repository notes that Streamable HTTP support is planned for the future, so this provider entry includes only stdio. Because the tools can read and modify Redis data, configure Redis ACLs for the least privilege needed by the agent. For read-only analysis, Redis documents an ACL pattern that enables read commands while denying write command categories. Use rediss and certificate verification for encrypted remote databases, and avoid embedding passwords directly in MCP client configuration files.
Supported Transports
stdio
Command: uvx
Args:
--fromredis-mcp-server@latestredis-mcp-server--url${REDIS_URL}
Frequently Asked Questions
- When should an AI agent use the Redis MCP Server?
- Use it when the agent needs live access to Redis data, such as cached values, session state, queues, streams, JSON documents, hashes, sets, sorted sets, or vector-search data, instead of relying on pasted snapshots or static knowledge.
- What does the Redis MCP Server add to an AI agent's capabilities?
- It exposes Redis-specific MCP tools for reading, writing, querying, and searching Redis data structures, plus documentation lookup and basic database information tools, so the agent can work directly with Redis-backed application state.
- What can the AI agent access or manage through this server?
- The documented tools cover Redis strings, hashes, lists, sets, sorted sets, pub/sub, streams, JSON documents, query engine and vector-search operations, documentation search, and basic server-management information. Access should be limited with Redis ACLs because write-capable tools can modify data.
- How is authentication configured for the Redis MCP Server?
- Authentication is configured through the Redis connection details supplied to the server, commonly as a Redis URI in `REDIS_URL` or through host, port, username, and password options or environment variables such as `REDIS_HOST`, `REDIS_PORT`, `REDIS_USERNAME`, and `REDIS_PWD`. Use `rediss` for encrypted Redis connections and never place real passwords in this YAML file.
- Which transport should be used for the Redis MCP Server?
- Use the documented stdio transport. Redis's official repository states that stdio is supported and that Streamable HTTP support is planned for the future, so Streamable HTTP and SSE are intentionally not included here.