del
Delete a key
Read and write live Redis state from the conversation — scan for a key by pattern, read a hash, page a sorted set by score, and set a value with an expiry.
LABSCO SUMMARY
This is a working client, not a viewer: del removes a key outright and set overwrites unless NX is passed, so an agent holding these tools can change whatever state the instance holds. The read paths are shaped for exactly the questions you ask during an incident — scan by pattern to find the key, hgetall to see the whole record, zrangebyscore to pull the slice of a leaderboard or queue that a score range covers. Expiry is available where it belongs, on set through PX, rather than as a separate tool.
A Redis client exposed as 13 tools, covering strings, hashes, sorted sets, sets and key discovery against one instance.
A Redis instance the host can reach, addressed by hostname and port when the server starts.
One command — npx redis-mcp --redis-host localhost --redis-port 6379
USE CASES
Find the keys matching the pattern from the report, then read whichever shape they turn out to be.
Page the sorted set by rank or pull the slice inside a score range, and drop members that should no longer be counted.
Write the string, hash and set values the run expects, then read one back to confirm the shape is right.
Read what the key currently holds, then either delete it or overwrite it with a value that carries its own expiry.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
delDelete a key
getGet string value
hgetGet the value of a hash field
hgetallGet all the fields and values in a hash
hmsetSet multiple hash fields to multiple values
saddAdd one or more members to a set
scanScan Redis keys matching a pattern
setSet string value with optional NX (only if not exists) and PX (expiry in milliseconds) options
smembersGet all members in a set
zaddAdd one or more members to a sorted set
zrangeReturn a range of members from a sorted set by index
zrangebyscoreReturn members from a sorted set with scores between min and max
zremRemove one or more members from a sorted set
BEFORE YOU INSTALL
13 tools when we connected. Six tools write, including del, which deletes keys, and there is no read-only switch. The names are bare Redis commands, so they can collide with other servers in the same client.
npx on PATH
Both documented clients run the server on your machine.
CONTEXT COST
Rated by the size of the 13 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
npx redis-mcp --redis-host localhost --redis-port 6379{
"mcpServers": {
"redis": {
"command": "npx",
"args": [
"redis-mcp",
"--redis-host",
"localhost",
"--redis-port",
"6379"
],
"disabled": false
}
}
}