redis-mcp
Provides tools for interacting with a Redis server, enabling AI agents to get and set string keys, scan and inspect keys, retrieve server info, delete keys via UNLINK with confirmation, set expiration, and flush the current database with a confirm phrase.
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-mcpshow me the value for key 'user:123'"
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
Safe, connection-efficient Model Context Protocol server for Redis.
It exposes common Redis inspection and write operations while requiring explicit confirmation for destructive actions.
Features
Reuses one lazy Redis connection per MCP process.
Uses cursor-based
SCANinstead of blockingKEYS.Uses
UNLINKandFLUSHDB ASYNCfor non-blocking deletion.Limits collection reads to 200 elements.
Prevents accidental overwrites unless
overwrite=trueis set.Gates destructive tools behind explicit confirmation.
Related MCP server: mcp-database
Tools
Tool | Purpose | Confirmation |
| Read a string value | — |
| Find keys by pattern | — |
| Read type, TTL, and value | — |
| Read Redis server info | — |
| Set a string value, optionally with TTL |
|
| Delete keys with |
|
| Set a key TTL |
|
| Delete every key in the current database |
|
Requirements
Node.js 18 or newer
A reachable Redis server
Install
git clone https://github.com/wahyuakbarwibowo/redis-mcp.git
cd redis-mcp
npm installSet REDIS_URL to configure Redis. It defaults to redis://127.0.0.1:6379.
REDIS_URL=redis://127.0.0.1:6379 node src/index.jsThe server communicates over stdio. It logs readiness to stderr.
MCP configuration
Replace /absolute/path/to/redis-mcp with the path where you cloned the repository.
Claude Code
claude mcp add redis \
--env REDIS_URL=redis://127.0.0.1:6379 \
-- node /absolute/path/to/redis-mcp/src/index.jsClaude Desktop, Codex CLI, OpenCode, Kilo Code, and Antigravity
Use this server command in the client’s MCP configuration:
{
"command": "node",
"args": ["/absolute/path/to/redis-mcp/src/index.js"],
"env": { "REDIS_URL": "redis://127.0.0.1:6379" }
}Each client uses a different wrapper key around this command. See its MCP configuration documentation for the expected format.
Safety model
Destructive tools follow this sequence:
The first call without confirmation is refused and describes the intended action.
The user explicitly approves that exact action.
The client retries with the required confirmation fields.
The checks run inside the server, so they remain effective even if an MCP client or AI agent forgets to ask first.
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
The MCP server that vets MCP servers: identity, risk grade and per-tool risk before you install.
An MCP server that provides read access to your cloud storage providers, bank accounts and more.
2,000+ MCP servers read at source level. Know what one does before you connect. Free, no key.
Related MCP Servers
AlicenseBqualityAmaintenanceThe official Redis MCP Server is a natural language interface designed for agentic applications to efficiently manage and search data in Redis.533,554 PyPI634MIT- AlicenseNot gradedqualityDmaintenanceMCP server for connecting to databases (PostgreSQL, MySQL, SQL Server, Redis) enabling SQL queries, table exploration, and Redis key-value operations.1MIT
- AlicenseCqualityDmaintenanceMCP server for Redis with data operations, permission control, and operation logging. Supports key management, dynamic tool lists, and auto-reconnection.1837 npmMIT
- AlicenseBqualityDmaintenanceRead-only Redis MCP server with a configurable command allowlist for safe production diagnostics, enabling exact read-only subcommands like CLIENT LIST and SLOWLOG GET.5MIT