setLABSCO SUMMARY
Four key-value operations, nothing else in the way.
This is the minimal useful Redis surface — enough for an agent to stash state, read it back, expire it and clean up. Other Redis data types are not covered here; the author points at a separate branch of the same repository for a much larger tool set.
What it is
A small Redis server for MCP clients: four tools over one Redis connection, with the connection URL given when the server starts.
What you get
- set stores a value under a key, with an optional expiry in seconds
- get returns the value for a key
- delete removes one key or an array of them in a single call
- list returns the keys matching a pattern, defaulting to everything
- The instance is chosen by connection URL, so it points at local, remote or container-hosted Redis equally
Requirements
A reachable Redis instance and its connection URL, passed to the server at launch. Node, run from the published package, or the container image. Whatever credentials that URL carries are the only ones involved.
Setup effort
One command — npx @gongrzhe/server-redis-mcp@1.0.0 redis://<YOUR_REDIS_HOST>:port
USE CASES
Giving an agent somewhere to keep state
Write a value under a key in one turn and read it back in another, across sessions.
Caching something that should not live forever
Store the value with an expiry so it clears itself instead of needing a cleanup pass.
Seeing what is in there
List the keys matching a pattern rather than guessing at what a previous run left behind.
Clearing up after a run
Find the keys by pattern and delete them in a single call.
4 tools
Listed in project docs. Your client may show a different list.
getdeletelistBEFORE YOU INSTALL
What to know first
Tools you get
4 tools named in the project's documentation.
Requires
node on PATH
Where it runs
The documented client runs the server on your machine.
INSTALLATION
Connect your client
Server setup
npx @gongrzhe/server-redis-mcp@1.0.0 redis://<YOUR_REDIS_HOST>:portMCP Clients
Claude Desktop
{
"mcpServers": {
"redis": {
"command": "npx",
"args": [
"@gongrzhe/server-redis-mcp@1.0.0",
"redis://localhost:6379"
]
}
}
}