redis-mcp-server
Allows safe viewing and operating of Redis data, including key scanning, value retrieval, memory usage analysis, and write operations (if enabled). Supports all common Redis data types and provides access control with read-only mode and key prefix filtering.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@redis-mcp-server scan keys matching user:*"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Redis MCP Server
让AI安全地查看和操作你的Redis
✨ 特性
🔒 安全优先 — 默认只读模式,写操作需显式开启
🔍 智能识别 — 自动识别键类型(string/list/set/hash/zset)
🇨🇳 中文优先 — 文档和提示全部中文化
🔌 即插即用 — 支持Claude Desktop、Cursor等MCP客户端
🛡️ 访问控制 — 键前缀过滤 + 黑名单模式
📊 内存分析 — 查看键的内存占用
Related MCP server: Redis MCP
🚀 快速开始
Claude Desktop配置
{
"mcpServers": {
"redis": {
"command": "python",
"args": ["-m", "redis_mcp_server"],
"env": {
"REDIS_MCP_HOST": "localhost",
"REDIS_MCP_PORT": "6379",
"REDIS_MCP_PASSWORD": "",
"REDIS_MCP_READ_ONLY": "true"
}
}
}
}🛠️ 工具列表
工具 | 功能 | 安全级别 |
| 测试连接 | 🟢 只读 |
| 服务器信息 | 🟢 只读 |
| 键数量 | 🟢 只读 |
| 扫描键 | 🟢 只读 |
| 键类型+TTL | 🟢 只读 |
| 自动读取值 | 🟢 只读 |
| 哈希详情 | 🟢 只读 |
| 内存占用 | 🟢 只读 |
| 设置字符串 | 🔴 需关闭只读 |
| 删除键 | 🔴 需关闭只读 |
| 设置过期 | 🔴 需关闭只读 |
📄 License
MIT License
Available Tools
11 toolsdb_sizeA
获取当前数据库的键数量
Inputs: no named parameters. Returns: result
delete_keysC
删除键(需要关闭只读模式)
Inputs: keys (required). Returns: result
get_hashB
获取哈希类型的所有字段和值
Inputs: key (required). Returns: result
get_key_typeB
获取键的类型和TTL
Inputs: key (required). Returns: result
get_key_valueB
自动识别键类型并获取值(支持string/list/set/hash/zset)
Inputs: key (required). Returns: result
get_memory_usageC
获取键的内存使用量
Inputs: key (required). Returns: result
pingA
测试Redis连接是否正常
Inputs: no named parameters. Returns: result
scan_keysC
扫描匹配的键
Inputs: pattern, count. Returns: result
server_infoB
获取Redis服务器信息
Inputs: section. Returns: result
set_expireA
设置键的过期时间(需要关闭只读模式)
Inputs: key (required), seconds (required). Returns: result
set_stringA
设置字符串值(需要关闭只读模式)
Inputs: key (required), value (required), ex. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
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.
Related MCP Connectors
Safe, read-only Postgres and MySQL access for AI agents. Audit log + column-level controls.
Amazon Ads, Seller Central, Vendor Central and AMC data for AI agents. Read-only by default.
Read-only finance and operations controls for AI agents with evidence and safe next actions.
Read-only AI access to HAVN properties, leads, tasks, files, media, and analytics.
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceProvides access to Redis databases. This server enables LLMs to interact with Redis key-value stores through a set of standardized tools.179 npm30MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to perform comprehensive Redis database operations including managing strings, hashes, lists, sets, sorted sets, TTL management, and data backup/restore. Supports secure connections and provides batch operations for efficient Redis interaction through natural language.3417 npm2MIT
- AlicenseBqualityDmaintenanceProvides comprehensive Redis database operations supporting all major data types (strings, lists, sets, hashes, sorted sets) with full CRUD functionality through natural language commands.96 npmMIT
- AlicenseAqualityDmaintenanceEnables AI agents to manage and search data in Redis using natural language. Supports hashes, lists, sets, sorted sets, streams, JSON, and vector search.44MIT