by Redis
A Model Context Protocol server that provides access to Redis databases. This server enables LLMs to interact with Redis key-value stores through a set of standardized tools.
Updated 6 days ago
Official
npx @mintlify/mcp add redis --client claude
Docker
- when running docker on macos, use host.docker.internal if the server is running on the host network (eg localhost)
- Redis URL can be specified as an argument, defaults to "redis://localhost:6379"
{
"mcpServers": {
"redis": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"mcp/redis",
"redis://host.docker.internal:6379"]
}
}
}
NPX
{
"mcpServers": {
"redis": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-redis",
"redis://localhost:6379"
]
}
}
}
Available tools
set
Set a Redis key-value pair with optional expiration
get
Get value by key from Redis
delete
Delete one or more keys from Redis
list
List Redis keys matching a pattern