Model Context Protocol
Redis MCP Server
Interact with Redis key-value stores for caching, session management, and real-time data operations.
Last reviewed Mar 2, 2026
Install
claude mcp add redis --transport stdio -- npx -y @modelcontextprotocol/server-redis redis://localhost:6379Available tools
| Tool | Description |
|---|---|
| get | Get the value of a key |
| set | Set a key to a string value |
| del | Delete one or more keys |
| keys | Find all keys matching a pattern |
| hget | Get the value of a hash field |
| hset | Set the value of a hash field |
What it does
The Redis MCP Server gives your AI coding assistant direct access to a Redis instance, enabling it to read and write key-value data, inspect cached values, and manage hash structures. This is useful when building or debugging applications that use Redis for caching, session storage, or real-time data.
By connecting your assistant to Redis, you can quickly inspect cache state during development, test key expiration behavior, and debug data flow issues without switching between your editor and a Redis CLI.
Use cases
- Inspect cached values to debug cache invalidation issues in your application
- Manage session data during development and testing
- Explore Redis key patterns to understand data structures used by your application
- Set test data for development and integration testing scenarios
- Monitor and manage hash structures used for feature flags or configuration
Getting started
- Ensure Redis is running locally or have a remote Redis URL available. For local development, the default URL is
redis://localhost:6379. - Replace the connection URL in the install command with your Redis instance URL. For authenticated instances, use
redis://:yourpassword@host:port. - For Redis instances with TLS, use the
rediss://protocol prefix instead ofredis://. - Be cautious when connecting to production Redis instances -- the
setanddeltools can modify data. Consider using a read-only replica or a dedicated development instance.
Compatibility
Related MCP servers
AWS MCP Server
Interact with AWS services including S3, Lambda, CloudWatch, and ECS from your AI coding assistant.
Context7 MCP Server
Fetch up-to-date library documentation and code examples directly into your AI coding assistant.
Docker MCP Server
Manage Docker containers, images, and builds directly from your AI coding assistant.