redis-mcp-server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| REDIS_MCP_HOST | No | Redis server host (default: localhost) | |
| REDIS_MCP_PORT | No | Redis server port (default: 6379) | |
| REDIS_MCP_PASSWORD | No | Redis password (optional) | |
| REDIS_MCP_READ_ONLY | No | Enable read-only mode (default: true) |
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 |
|---|---|
| pingA | 测试Redis连接是否正常 |
| server_infoB | 获取Redis服务器信息 |
| db_sizeA | 获取当前数据库的键数量 |
| scan_keysC | 扫描匹配的键 |
| get_key_typeB | 获取键的类型和TTL |
| get_key_valueB | 自动识别键类型并获取值(支持string/list/set/hash/zset) |
| get_hashB | 获取哈希类型的所有字段和值 |
| get_memory_usageC | 获取键的内存使用量 |
| set_stringA | 设置字符串值(需要关闭只读模式) |
| delete_keysC | 删除键(需要关闭只读模式) |
| set_expireA | 设置键的过期时间(需要关闭只读模式) |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| analyze_redis | 生成Redis分析提示词 |
| find_keys_by_pattern | 生成键搜索提示词 |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 11 tools
Each tool has a clearly distinct purpose, such as pinging, scanning keys, retrieving specific data types, or managing server info. No overlapping functionality.
All tool names follow a consistent verb_noun snake_case pattern (e.g., get_key_type, set_string, scan_keys), making them predictable.
11 tools cover essential Redis operations like connection checking, key management, memory/type info, and basic CRUD, without being excessive or sparse.
Missing write operations for non-string types (hash, list, set, zset) and no update/delete for those types. Only set_string and delete_keys exist, leaving significant gaps for typical Redis interaction.