About this Server
The official Redis Model Context Protocol (MCP) server provides a natural language interface for agentic workflows to inspect, cache, manage, and search data across Redis. It features complete support for strings, hashes, lists, sets, sorted sets, streams consumer groups, pub/sub channels, JSON document manipulation, vector search indexes, and natural language documentation search.
Direct low-latency RPC protocol communication with structured JSON schemas.
Restricted capability bounds to prevent accidental modifications or leakage.
Security & Best Practices
When to Use (and When Not To)
- •High-speed ephemeral caching, session state management, and TTL-based record expiration
- •Real-time event streams, activity feeds, task queues, and pub/sub message broadcasting
- •Hybrid in-memory vector similarity searches and nested JSON document retrieval
- •Complex relational multi-table SQL queries and foreign key joins (use DBHub, Neon, or PlanetScale MCP instead)
- •Heavy OLAP analytical aggregations over large Parquet datasets (use DuckDB / MotherDuck MCP instead)
- •Document collections needing complex MongoDB aggregation pipelines (use MongoDB MCP instead)
Install & Setup
claude mcp add redis -- uvx --from redis-mcp-server@latest redis-mcp-server --url redis://localhost:6379/0Exposed Tools & Endpoints
10 toolsFunctions your AI agent can invoke via this Model Context Protocol server
Sets and retrieves string keys with optional TTL expiration for caching and session data.
Stores and reads individual field-value pairs and vector embeddings inside Redis hashes.
Appends, pops, and inspects list items for message queues and FIFO/LIFO workloads.
Manages unique sets and score-ordered sorted sets for leaderboards and priority queues.
Publishes messages and manages channel/pattern subscriptions for real-time notifications.
Reads, acknowledges, and manages stream event sourcing and consumer groups.
Stores, queries, and mutates nested JSON documents using JSONPath expressions.
Manages vector indexes and executes similarity searches over stored embeddings.
Searches official Redis documentation, tutorials, and command reference manuals.
Retrieves Redis server memory stats, active clients, and connection information.