redisctl-mcp
MCP (Model Context Protocol) server for Redis Cloud and Enterprise management.
This standalone binary exposes Redis management operations as tools that AI assistants like Claude can use to help manage your Redis infrastructure.
Installation
# From source
# Or build directly
Quick Start
With Claude Desktop
Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
With Claude Code
Add to your project's .mcp.json:
Usage
Stdio Transport (Default)
For local integrations with Claude Desktop, Claude Code, or other MCP clients:
# Use the default profile
# Use a specific profile
# Read-only mode (disables write operations)
# With a direct Redis database connection
HTTP Transport
For shared deployments accessible over the network:
# Basic HTTP server
# With OAuth authentication
# With custom rate limiting
Available Tools
Redis Cloud
| Tool | Description |
|---|---|
list_subscriptions |
List all Redis Cloud subscriptions |
get_subscription |
Get details of a specific subscription |
list_databases |
List databases in a subscription |
get_database |
Get database configuration details |
Redis Enterprise
| Tool | Description |
|---|---|
get_cluster |
Get cluster information (name, version, config) |
list_enterprise_databases |
List all databases on the cluster |
get_enterprise_database |
Get database details by UID |
list_nodes |
List all cluster nodes |
Direct Redis Operations
| Tool | Description |
|---|---|
redis_ping |
Test connectivity to a Redis database |
redis_info |
Get Redis INFO output (optionally by section) |
redis_keys |
List keys matching a pattern (uses SCAN) |
Configuration
Profile-Based Authentication
The server uses redisctl profiles for credential management. Configure profiles in ~/.config/redisctl/config.toml:
= "cloud-prod"
= "enterprise-dev"
[]
= "cloud"
= "${REDIS_CLOUD_API_KEY}"
= "${REDIS_CLOUD_API_SECRET}"
[]
= "enterprise"
= "https://cluster.example.com:9443"
= "admin"
= "${RE_PASSWORD}"
= true
Environment Variables
For OAuth/HTTP mode or when not using profiles:
# Redis Cloud
# Redis Enterprise
# optional, for self-signed certs
# Direct Redis connection
Command Line Options
Options:
-t, --transport <TRANSPORT> Transport mode [default: stdio]
- stdio: For CLI integrations
- http: For web deployments
-p, --profile <PROFILE> Profile name for credentials
--read-only Disable write operations
--database-url <URL> Redis URL for direct connections
HTTP Options:
--host <HOST> Bind host [default: 127.0.0.1]
--port <PORT> Bind port [default: 8080]
--oauth Enable OAuth authentication
--oauth-issuer <URL> OAuth issuer URL
--oauth-audience <AUD> OAuth audience
--jwks-uri <URI> JWKS URI (auto-discovered if not set)
--max-concurrent <N> Max concurrent requests [default: 10]
--rate-limit-ms <MS> Rate limit interval [default: 100]
--request-timeout-secs <S> Request timeout [default: 30]
Logging:
--log-level <LEVEL> Log level [default: info]
Library Usage
You can embed these tools in your own MCP server:
use Arc;
use ;
use McpRouter;
let state = new;
let router = new
.tool
.tool
.tool
.tool;
Security Considerations
- Use
--read-onlymode in production to prevent accidental modifications - For HTTP transport, always enable OAuth in production environments
- Store credentials using environment variables or secure credential storage
- The server respects profile-based credential isolation