About
High performance Redis MCP Server using node-redis
README
A lightweight Model Context Protocol (MCP) server that lets AI assistants inspect and operate Redis through a structured tool interface.
This project uses Node.js, TypeScript, the official MCP SDK, and the official redis Node.js client. It communicates over stdio and supports standalone Redis, Redis Cluster, TLS, and read-only operation.
Features
- Typed tools for strings, hashes, lists, sets, sorted sets, streams, and server information
- Generic
redis_commandfallback for commands without a dedicated tool - Standalone Redis and Redis Cluster connections
- Username/password authentication
- TLS connections with optional CA and client certificates
- Read-only mode that hides typed write tools and restricts generic commands
Requirements
- Node.js 20 or newer
- npm
- A reachable Redis server or Redis Cluster
Installation
Run the server directly with npx:
npx -y easy-redis-mcp
For local development after cloning the repository:
cd easy-redis-mcp
npm install
npm run build
Configuration
Configure the server with environment variables in your MCP client configuration or shell environment.
| Variable | Required | Default | Description |
|---|---|---|---|
REDIS_HOST |
No | 127.0.0.1 |
Redis host name or IP address |
REDIS_PORT |
No | 6379 |
Redis port |
REDIS_DB |
No | 0 |
Database number for standalone Redis |
REDIS_USERNAME |
No | default |
Redis ACL username |
REDIS_PWD |
No | empty | Redis password |
REDIS_SSL |
No | false |
Enable TLS when set to true |
REDIS_SSL_CA_PATH |
No | empty | Path to a CA certificate used to verify the server |
REDIS_SSL_KEYFILE |
No | empty | Path to the client private key |
REDIS_SSL_CERTFILE |
No | empty | Path to the client certificate |
REDIS_SSL_CERT_REQS |
No | required |
Server certificate verification: required or none |
REDIS_SSL_CA_CERTS |
No | empty | Alternative path to a trusted CA certificate file |
REDIS_CLUSTER_MODE |
No | false |
Connect through a Redis Cluster root node when true |
REDIS_MODE |
No | readwrite |
Permission mode: readwrite or read |
Example shell configuration:
REDIS_HOST=localhost REDIS_PORT=6379 REDIS_PWD=your_password npx -y easy-redis-mcp
In PowerShell:
$env:REDIS_HOST = "localhost"
$env:REDIS_PORT = "6379"
$env:REDIS_PWD = "your_password"
npx -y easy-redis-mcp
The server normally runs through an MCP client. Starting it directly opens a stdio transport and does not provide an HTTP endpoint.
If you are unsure how a tool should be used, or a Redis command fails, call redis_manual first. It returns the built-in manual with safe usage rules, key-type guidance, and command composition notes.
Claude Desktop Example
{
"mcpServers": {
"easy-redis-mcp": {
"command": "npx",
"args": ["-y", "easy-redis-mcp"],
"env": {
"REDIS_HOST": "localhost",
"REDIS_PORT": "6379",
"REDIS_DB": "0",
"REDIS_USERNAME": "default",
"REDIS_PWD": "YOUR PASSWORD",
"REDIS_MODE": "readwrite"
}
}
}
}
Restart Claude Desktop after updating the configuration.
Codex config.toml Example
[mcp_servers.easy-redis-mcp]
command = "npx"
args = ["-y", "easy-redis-mcp"]
enabled = true
[mcp_servers.easy-redis-mcp.env]
REDIS_HOST = "localhost"
REDIS_PORT = "6379"
REDIS_DB = "0"
REDIS_USERNAME = "default"
REDIS_PWD = "YOUR PASSWORD"
REDIS_MODE = "readwrite"
OpenCode opencode.jsonc Example
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"easy-redis-mcp": {
"type": "local",
"command": ["npx", "-y", "easy-redis-mcp"],
"enabled": true,
"environment": {
"REDIS_HOST": "localhost",
"REDIS_PORT": "6379",
"REDIS_DB": "0",
"REDIS_USERNAME": "default",
"REDIS_PWD": "YOUR PASSWORD",
"REDIS_MODE": "readwrite"
}
}
}
}
Available Tools
| Tool | Description |
|---|---|
redis_manual |
Return the built-in manual. Use this first when you are unsure how to use Redis tools or need help diagnosing an operation error |
redis_command |
Execute a Redis command with arguments |
redis_ping |
Ping Redis and optionally echo a message |
redis_info |
Return server information, optionally for one section |
redis_dbsize |
Return the number of keys in the selected database |
redis_time |
Return Redis server time |
redis_client_list |
Return connected client information |
redis_config_get |
Read Redis configuration values |
redis_command_list |
List commands supported by the Redis server |
redis_get, redis_mget |
Read one or more string values |
redis_exists, redis_ttl, redis_type |
Inspect key state and metadata |
redis_scan, redis_keys |
Find keys by pattern |
redis_hget, redis_hgetall |
Read hash data |
redis_lrange |
Read a list range |
redis_smembers |
Read all set members |
redis_zrange |
Read a sorted set range, optionally with scores |
redis_xrange |
Read stream entries by ID range |
redis_set, redis_mset |
Set one or more string values, only registered in readwrite mode |
redis_del, redis_unlink |
Delete one or more keys, only registered in readwrite mode |
redis_expire, redis_rename, redis_incrby |
Modify key metadata or integer values, only registered in readwrite mode |
redis_hset, redis_hdel |
Modify hash fields, only registered in readwrite mode |
redis_lpush, redis_rpush, redis_lpop, redis_rpop |
Modify lists, only registered in readwrite mode |
redis_sadd, redis_srem |
Modify sets, only registered in readwrite mode |
redis_zadd, redis_zrem |
Modify sorted sets, only registered in readwrite mode |
redis_xadd |
Append a stream entry, only registered in readwrite mode |
redis_publish |
Publish a message to a channel, only registered in readwrite mode |
Prefer redis_scan over redis_keys for large or production databases because KEYS can block Redis while scanning the entire keyspace.
When REDIS_MODE=read, redis_command permits only commands classified as read-only. Write, administrative, blocking, and unknown commands are rejected. REDIS_MODEL remains supported as a backward-compatible alias.
Read-Only Mode
Set the following variable when the assistant should only inspect Redis:
REDIS_MODE=read
In this mode, typed write tools are not registered and the generic command policy allows only recognized read commands. Redis ACL permissions remain the final security boundary, so use a dedicated read-only Redis user whenever possible.
Security Notes
- Use a dedicated Redis ACL user with only the commands and key patterns the assistant needs.
- Use
REDIS_MODE=readfor inspection and reporting workloads.REDIS_MODELis accepted for backward compatibility. - Treat MCP configuration files containing
REDIS_PWDas sensitive. - Use TLS when connecting across untrusted networks.
- Keep
REDIS_SSL_CERT_REQS=requiredin production. - Prefer
redis_scantoredis_keyson large databases. - Review write operations before using the server against production data.
- Do not commit passwords, private keys, or certificates to source control.
Development
Run TypeScript in watch mode:
npm run dev
Create a production build:
npm run build
Run the test suite:
npm test
The integration tests require a reachable Redis instance configured through the Redis environment variables.
License
MIT. See LICENSE.md.
Install Easy Redis Mcp in Claude Desktop, Claude Code & Cursor
unyly install easy-redis-mcpInstalls 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 easy-redis-mcp --env REDIS_CLUSTER_MODE="" --env REDIS_DB="" --env REDIS_HOST="" --env REDIS_MODE="" --env REDIS_PORT="" --env REDIS_PWD="" --env REDIS_SSL="" --env REDIS_SSL_CA_PATH="" --env REDIS_SSL_CERT_REQS="" --env REDIS_USERNAME="" -- npx -y easy-redis-mcpStep-by-step: how to install Easy Redis Mcp
FAQ
Is Easy Redis Mcp MCP free?
Yes, Easy Redis Mcp MCP is free — one-click install via Unyly at no cost.
Does Easy Redis Mcp need an API key?
Yes, it requires environment variables: REDIS_CLUSTER_MODE, REDIS_DB, REDIS_HOST, REDIS_MODE, REDIS_PORT, REDIS_PWD, REDIS_SSL, REDIS_SSL_CA_PATH, REDIS_SSL_CERT_REQS, REDIS_USERNAME. Unyly injects them into the config during install.
Is Easy Redis Mcp hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Easy Redis Mcp in Claude Desktop, Claude Code or Cursor?
Open Easy Redis Mcp on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Changes
Versions and requested access over time.
- New version published
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 modelcontextprotocolRedis
Interact with Redis key-value stores.
by modelcontextprotocolSQLite
Database interaction and business intelligence capabilities.
by modelcontextprotocolmxcp
Open-source framework for building enterprise-grade MCP servers using just YAML, SQL, and Python, with built-in auth, monitoring, ETL and policy enforcement.
by raw-labstadas-github/a2asearch-mcp
MCP server to search 4,800+ MCP servers, AI agents, CLI tools and agent skills. Install: npx -y a2asearch-mcp. Ask Claude: "Find MCP servers for database access
by tadas-githubjulien040/anyquery
Query more than 40 apps with one binary using SQL. It can also connect to your PostgreSQL, MySQL, or SQLite compatible database. Local-first and private by desi
by julien040drakonkat/wizzy-mcp-tmdb
A MCP server for The Movie Database API that enables AI assistants to search and retrieve movie, TV show, and person information.
by drakonkatCompare Easy Redis Mcp with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All data MCPs
