Redis Allowlist
FreeNot checkedRead-only Redis MCP server with a configurable command allowlist for safe production diagnostics, enabling exact read-only subcommands like CLIENT LIST and SLOW
About
Read-only Redis MCP server with a configurable command allowlist for safe production diagnostics, enabling exact read-only subcommands like CLIENT LIST and SLOWLOG GET.
README
Read-only Redis MCP server with a configurable command allowlist.
This project is a fixed local variant for production diagnostics. It keeps the small tool surface from @infoinlet/mcp-redis and adds an environment-driven allowlist for exact read-only diagnostic subcommands such as CLIENT LIST, SLOWLOG GET, and LATENCY LATEST.
Tools
redis_get: get a string key and TTL.redis_scan: scan keys withSCAN.redis_inspect: inspect type, TTL, size, and preview for string/hash/list/set/zset keys.redis_command: run a Redis command if it passes the read-only guard.redis_info: runINFO, optionally with a section.
Security Model
By default, writes are blocked at the MCP layer.
REDIS_WRITE_ALLOWED=falsekeeps the read-only guard enabled.REDIS_EXTRA_READONLY_COMMANDSappends exact read-only command specs.REDIS_WRITE_ALLOWED=truebypasses the guard and should not be used for production diagnostics.
Extra command specs are comma or whitespace separated:
REDIS_EXTRA_READONLY_COMMANDS=client:list,slowlog:get,latency:latest
Redis ACL style syntax is also accepted:
REDIS_EXTRA_READONLY_COMMANDS='client|list slowlog|get latency|latest'
Known dangerous subcommands remain blocked unless REDIS_WRITE_ALLOWED=true, including:
CLIENT KILLCLIENT PAUSECLIENT UNPAUSECLIENT UNBLOCKCLIENT SETNAMESLOWLOG RESETLATENCY RESETCONFIG SETCONFIG RESETSTATCONFIG REWRITE
Use a Redis read-only or diagnostic ACL user as an additional safety boundary whenever possible.
Install
npm install
npm run build
Run
REDIS_URL='redis://localhost:6379' \
REDIS_WRITE_ALLOWED=false \
REDIS_EXTRA_READONLY_COMMANDS='client:list,slowlog:get,latency:latest' \
node dist/server.js
Codex MCP Config
[mcp_servers.redis_yesorno_prod]
command = "/Users/jason/.local/nodejs/current/bin/node"
args = ["/Users/jason/workspace/mcp-redis-allowlist/dist/server.js"]
startup_timeout_sec = 30.0
[mcp_servers.redis_yesorno_prod.env]
REDIS_URL = "redis://USER:PASSWORD@HOST:PORT/DB"
REDIS_WRITE_ALLOWED = "false"
REDIS_EXTRA_READONLY_COMMANDS = "client:list,slowlog:get,latency:latest"
PATH = "/Users/jason/.local/nodejs/current/bin:/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
Do not commit real Redis URLs, passwords, or production hostnames.
Diagnostic Examples
Use redis_command with exact subcommands:
{ "command": "CLIENT", "args": ["LIST"] }
{ "command": "SLOWLOG", "args": ["GET", "128"] }
{ "command": "LATENCY", "args": ["LATEST"] }
Development
npm install
npm run build
npm test
The tests verify that the diagnostic commands above can be allowlisted while dangerous related subcommands remain blocked.
Attribution
This server is inspired by the read-only guard and tool shape from @infoinlet/mcp-redis, which is MIT licensed.
Install Redis Allowlist in Claude Desktop, Claude Code & Cursor
unyly install mcp-redis-allowlistInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add mcp-redis-allowlist -- npx -y github:TeaBambooNGU/mcp-redis-allowlistFAQ
Is Redis Allowlist MCP free?
Yes, Redis Allowlist MCP is free — one-click install via Unyly at no cost.
Does Redis Allowlist need an API key?
No, Redis Allowlist runs without API keys or environment variables.
Is Redis Allowlist hosted or self-hosted?
A hosted option is available: Unyly runs the server in the cloud, no local setup required.
How do I install Redis Allowlist in Claude Desktop, Claude Code or Cursor?
Open Redis Allowlist on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
wenb1n-dev/SmartDB_MCP
A universal database MCP server supporting simultaneous connections to multiple databases. It provides tools for database operations, health analysis, SQL optim
by wenb1n-devPostgres Server
This server enables interaction with PostgreSQL databases through the Model Context Protocol, optimized for the AWS Bedrock AgentCore Runtime. It provides tools
by madhurprashPostgres
Query your database in natural language
by AnthropicPostgreSQL
Read-only database access with schema inspection.
by modelcontextprotocolCompare Redis Allowlist with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All data MCPs
