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.
A small Redis server for MCP clients: four tools over one Redis connection, with the connection URL given when the server starts.
- 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
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.
One command — npx @gongrzhe/server-redis-mcp@1.0.0 redis://your-redis-host:port
