Expand description
MCP (Model Context Protocol) server for Redis Cloud and Enterprise
This crate provides an MCP server that exposes Redis Cloud and Enterprise management operations as tools for AI systems.
§Binary Usage
The primary way to use this crate is as a standalone binary:
# Stdio transport (for Claude Desktop, etc.)
redisctl-mcp --profile my-profile
# Multiple profiles for multi-cluster support
redisctl-mcp --profile cluster-west --profile cluster-east --profile cluster-central
# HTTP transport with OAuth (for shared deployments)
redisctl-mcp --transport http --port 8080 --oauth --oauth-issuer https://accounts.google.com
# Enable only specific toolsets
redisctl-mcp --tools cloud,app§Library Usage
You can also embed the tools in your own MCP server using sub-routers:
use std::sync::Arc;
use redisctl_mcp::{AppState, CredentialSource, tools};
use redisctl_mcp::policy::{Policy, PolicyConfig};
use tower_mcp::McpRouter;
let policy = Arc::new(Policy::new(
PolicyConfig::default(), // read-only
std::collections::HashMap::new(),
"default".to_string(),
));
let state = Arc::new(AppState::new(
CredentialSource::Profiles(vec!["default".to_string()]),
policy,
None, // no database URL
)?);
// Use merge to compose sub-routers
let router = McpRouter::new()
.merge(tools::cloud::router(state.clone()))
.merge(tools::enterprise::router(state.clone()))
.merge(tools::profile::router(state.clone()));Re-exports§
pub use error::McpError;pub use state::AppState;pub use state::CredentialSource;
Modules§
- audit
- Audit logging for MCP tool invocations.
- error
- Error types for the MCP server
- policy
- MCP server policy configuration for granular tool access control.
- presets
- Tool visibility presets for managing the number of tools exposed to MCP clients.
- prompts
- MCP Prompts for Redis management workflows
- resources
- MCP Resources for Redis management
- serde_
helpers - Serde helpers for MCP JSON transport coercion.
- state
- Application state and credential resolution
- tools
- MCP tools for Redis Cloud, Enterprise, and direct database operations