Redis MCP Server
Redis key-value store interactions for LLMs using set, get, delete, and list operations.
Data last scanned 2 days ago · Reviewed 2 months ago
Overview
This MCP server enables large language models to interface directly with Redis databases. It provides a standardized set of tools for performing basic key-value operations, including retrieving values by key, setting values with optional expiration, deleting keys, and listing keys based on patterns.
Our verdict
This server carries a high-risk rating with a security score of 0/100, primarily because the repository is archived and no longer receives updates. Furthermore, it lacks authentication, meaning any local configuration can access your database, and it provides full write access by default. It is not recommended for production environments or sensitive data.
- MIT licensed codebase
- Small footprint with only 4 dependencies
- Provides clear documentation for common connection issues
- Repository is archived with no further maintenance
- No authentication mechanism implemented
- Provides full write access by default
Setup
{
"mcpServers": {
"redis": {
"args": [
"-y",
"@modelcontextprotocol/server-redis"
],
"command": "npx"
}
}
}Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows), then restart Claude Desktop. Some servers require API keys or tokens as environment variables — check the project's README and add an "env" object if needed.
- No read-only mode — running this grants full read/write access.
- No built-in authentication — anyone with access to this config can invoke every tool it exposes.
Tools
| Tool | Description | Risk |
|---|---|---|
| set | Set a Redis key-value pair with optional expiration | medium |
| get | Get value by key from Redis | low |
| delete | Delete one or more keys from Redis | high |
| list | List Redis keys matching a pattern | low |
Compatibility
| Client | Local | Docker | Remote | Read-only |
|---|---|---|---|---|
| Claude Desktop | ||||
| Cursor | ||||
| VS Code | ||||
| Windsurf | ||||
| ChatGPT |
Frequently asked questions
›What should I do if I encounter an ECONNREFUSED error?
This usually means the Redis or Memurai server is not running or is unreachable. Verify your server is active with the appropriate ping command, ensure the default port 6379 is not blocked by a firewall, and try using the explicit IP 127.0.0.1 instead of localhost.
›How does the server handle connection failures?
The server implements an exponential backoff strategy with a maximum of 5 retries. It starts with a 1-second delay and caps at 30 seconds, exiting after the final attempt to prevent infinite loops.
›Are there specific Redis alternatives recommended for Windows users?
Yes, Windows users should utilize either the Windows Subsystem for Linux (WSL) or Memurai, which is a Redis-compatible server for Windows.
›What information is required to perform a set operation?
The set tool requires a key and a value. You also have the option to include an expiration time in seconds for the key-value pair.
›How can I retrieve multiple keys at once?
The delete tool accepts either a single key string or an array of key strings to remove multiple items from Redis.
›Can I filter keys when using the list tool?
Yes, the list tool accepts an optional pattern argument to filter results, which defaults to '*' if no pattern is provided.
Alternatives
Badge
Maintain this server? Add the live badge to your README.