mcp-redis-server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| REDIS_DB | No | Redis database number | 0 |
| REDIS_SSL | No | Enable SSL | false |
| REDIS_HOST | No | Redis host | localhost |
| REDIS_PORT | No | Redis port | 6379 |
| REDIS_PASSWORD | No | Redis password (optional) |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| extensions | {
"io.modelcontextprotocol/ui": {}
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| redis_connectB | Connect to a Redis server. |
| redis_disconnectA | Disconnect from the Redis server. Returns: Disconnection status message. Example: >>> redis_disconnect() "Disconnected from Redis" |
| redis_pingA | Ping the Redis server. Returns: PONG response if connected. Example: >>> redis_ping() "PONG" |
| redis_getB | Get the value of a key. |
| redis_setC | Set the value of a key. |
| redis_mgetB | Get the values of multiple keys. |
| redis_msetC | Set multiple key-value pairs. |
| redis_delC | Delete one or more keys. |
| redis_incrB | Increment the value of a key. |
| redis_decrB | Decrement the value of a key. |
| redis_lpushB | Push values to the left of a list. |
| redis_rpushC | Push values to the right of a list. |
| redis_lrangeA | Get a range of elements from a list. |
| redis_llenB | Get the length of a list. |
| redis_saddB | Add members to a set. |
| redis_sremA | Remove members from a set. |
| redis_smembersB | Get all members of a set. |
| redis_sismemberB | Check if a member exists in a set. |
| redis_scardB | Get the size of a set. |
| redis_hsetC | Set a field in a hash. |
| redis_hgetB | Get a field from a hash. |
| redis_hmsetB | Set multiple fields in a hash. |
| redis_hmgetB | Get multiple fields from a hash. |
| redis_hgetallA | Get all fields and values from a hash. |
| redis_hkeysB | Get all field names from a hash. |
| redis_hvalsB | Get all field values from a hash. |
| redis_hdelC | Delete fields from a hash. |
| redis_hlenB | Get the number of fields in a hash. |
| redis_zaddA | Add members with scores to a sorted set. |
| redis_zscoreC | Get the score of a member in a sorted set. |
| redis_zrangeC | Get a range of members from a sorted set. |
| redis_zrevrangeB | Get a range of members from a sorted set in reverse order. |
| redis_zcardB | Get the size of a sorted set. |
| redis_existsC | Check if keys exist. |
| redis_expireB | Set expiration time on a key. |
| redis_ttlA | Get the time to live for a key. |
| redis_typeB | Get the type of a key. |
| redis_scanC | Scan keys matching a pattern. |
| redis_dbsizeA | Get the number of keys in the current database. Returns: Number of keys. Example: >>> redis_dbsize() 42 |
| redis_flushdbA | Flush all keys in the current database. Returns: OK status. Example: >>> redis_flushdb() "OK" |
| redis_flushallA | Flush all keys in all databases. Returns: OK status. Example: >>> redis_flushall() "OK" |
| redis_infoB | Get Redis server information. |
| redis_config_getC | Get Redis configuration. |
| redis_config_setC | Set Redis configuration. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 44 tools
Each tool maps to a distinct Redis command with clear data type and operation, eliminating ambiguity. For example, redis_hget and redis_hgetall are clearly different.
All tools follow the consistent pattern redis_<datatype>_<operation> or redis_<operation> in snake_case, making them predictable and easy to understand.
44 tools is a comprehensive set covering most common Redis operations, but it's on the higher side; however, it remains manageable for the scope of a Redis client.
The set covers core Redis functionality including strings, hashes, lists, sets, sorted sets, config, and server info. Missing advanced features like pub/sub or transactions, but sufficient for typical use.