Redis MCP
Redis MCP server — interact with Redis cache and data structures through AI — get, set, search, and analyze cached data.
// Try it now
"Show me the 20 most recently modified keys in my Redis database"
- ! Running KEYS * on a large production Redis can freeze the server — prefer SCAN
- ! FLUSHDB and FLUSHALL wipe the entire database instantly — these should never be exposed to AI without guardrails
- ! Connection strings include passwords — store them in env vars, not config files
API key or simple config
// When to use
- You're debugging cache behavior and want to inspect live keys
- You need to clear or expire specific keys during a deployment
- You're learning Redis data structures and want AI to explain what's stored
- You're investigating rate-limiting or session issues
// When NOT to use
- You use Memcached, KeyDB, or DynamoDB for caching (different protocol)
- You want to give AI write access to production cache without review
- You need Redis pub/sub streaming through the MCP (not its strength)
// Usage Scenarios
Cache Inspection
Scan keys matching a pattern and see what data is stored.
Example prompt
"Show me all keys matching 'session:*' and tell me the TTL of the 5 most recent ones"
Targeted Cache Clearing
Delete specific keys or key patterns when invalidation is needed.
Example prompt
"Delete all keys matching 'user:123:*' to clear that user's cache"
Rate Limit Debugging
Check rate-limit counters for a specific user or IP.
Example prompt
"What's the current value of the key 'ratelimit:ip:1.2.3.4'?"
// About
Plain English
Imagine asking your AI: 'What keys are in my Redis cache that start with user:' or 'Clear all session keys older than an hour' — and it manages Redis for you. This server connects your AI to a Redis instance so it can read, write, and inspect keys, lists, sets, and streams through conversation.
The Redis MCP server provides AI assistants with access to Redis databases. Get and set values, work with Redis data structures (lists, sets, hashes, sorted sets), execute commands, and analyze cache contents — all through natural language.
Useful for debugging cache issues, analyzing session data, and understanding Redis usage patterns in development.
// Use Cases
- Debug Redis cache contents through conversation
- Manage Redis data structures with natural language
- Analyze session and cache data
- Monitor Redis key expiration and patterns
// Works With
// Also Consider
// Related Servers
PostgreSQL MCP
Official PostgreSQL MCP server — query and inspect Postgres databases with read-only access for safe AI-powered data analysis.
SQLite MCP
Official SQLite server — query, analyze, and modify local SQLite databases through natural language with full SQL support.
Supabase MCP
Official Supabase MCP server — manage your Supabase projects, run SQL, handle migrations, and interact with Edge Functions via AI.