MCP Redis Diagnostics
About
Redis diagnostics MCP server — analyze memory usage, slowlog patterns, client connections, and keyspace health with AI-powered recommendations. Lightweight npx install, no Docker required.
Details
- Author
- dmitriusan
- Categories
- Database, Other, Infrastructure
Jump to
Setup
Install MCP Redis Diagnostics in your MCP client (Claude Desktop, Cursor, Windsurf, and others).
Repository: https://github.com/dmitriusan/mcp-redis-diagnostics
Follow the installation instructions in the repository README, then restart your MCP client.
MCP server for Redis diagnostics — analyze memory usage, slowlog, client connections, and keyspace health with AI-powered recommendations.
Most Redis MCP servers are CRUD wrappers (get/set keys). RedisNexus offers diagnostics but targets enterprises (K8s, multi-tenant SaaS). This tool is the onlylightweight npm packagefor deep Redis diagnostics — 7 tools covering memory fragmentation, slowlog patterns, client connection health, keyspace distribution, latency analysis, and configuration auditing. Install withnpx, no Docker or SaaS required.
Generate exportable diagnostic reports (HTML + PDF)with a Pro license key.
- Full JVM thread dump analysis report with actionable recommendations
- PDF export for sharing with your team
- Priority support
Pro license key activates thegenerate_reportMCP tool in mcp-jvm-diagnostics.
Analyze Redis memory usage and fragmentation.
- High memory fragmentation (>1.5x RSS/used ratio)
- Swap risk (fragmentation <1.0)
- Maxmemory pressure (approaching limit)
- Eviction patterns
- Missing maxmemory configuration
- Unsafe noeviction policy
Analyze Redis SLOWLOG for slow commands.
- count(number, default: 128) — Number of slowlog entries to retrieve
- Dangerous O(N) commands: KEYS, SMEMBERS, HGETALL, SORT
- High latency commands (>10ms, >100ms thresholds)
- Command concentration patterns
- Full slowlog buffer (missing history)
Analyze Redis keyspace distribution and cache effectiveness.
- Low TTL coverage (<20% of keys)
- Low cache hit rate (<80%)
- Unbalanced database distribution
- High expiry/eviction rates
- Multiple database anti-pattern
Analyze Redis latency events from the LATENCY subsystem.
- Fork latency spikes (RDB/AOF background save blocking operations)
- AOF fsync delays and write latency
- Slow command processing (O(1) commands unexpectedly slow)
- Eviction and key expiry cycle delays
- Active defragmentation impact
- Increasing latency trends over time
Requireslatency-monitor-thresholdto be set in redis.conf (e.g.,CONFIG SET latency-monitor-threshold 100).
Analyze Redis configuration for security and reliability risks.
- No maxmemory limit (unbounded memory growth, OOM risk)
- Unsafe eviction policy (noeviction causing errors at memory limit)
- Network exposure (bind 0.0.0.0 without protected-mode)
- Missing authentication (no requirepass)
- Disabled persistence (both AOF and RDB off — data loss on restart)
- Idle connection accumulation (timeout 0)
- Disabled TCP keepalive (dead connections undetected)
- Low server frequency (hz < 10 slowing background tasks)
Comprehensive health assessment — runs all analyzers and produces a unified report.
- slowlog_count(number, default: 128) — Number of slowlog entries
{ "mcpServers": { "redis-diagnostics": { "command": "npx", "args": ["-y", "mcp-redis-diagnostics"], "env": { "REDIS_URL": "redis://localhost:6379" } } } }
{ "env": { "REDIS_URL": "redis://:yourpassword@localhost:6379" } }
Once configured, try these prompts in Claude:
- "Analyze my Redis memory usage — is there fragmentation?"— Shows used vs max memory, fragmentation ratio, eviction policy, and memory pressure issues
- "Check the Redis slowlog for dangerous commands"— Identifies O(N) commands like KEYS/SMEMBERS, high-latency patterns, and optimization suggestions
- "Run a complete Redis health check"— Unified report combining memory, slowlog, clients, keyspace, and latency analysis
"What's my cache hit rate? Are my TTLs configured properly?"
"Give me a full Redis health check"
This tool is part of a suite of MCP servers for backend developers:
- mcp-db-analyzer— PostgreSQL/MySQL/SQLite schema analysis
- mcp-jvm-diagnostics— Thread dump and GC log analysis
- mcp-migration-advisor— Flyway/Liquibase migration risk analysis
- mcp-spring-boot-actuator— Spring Boot health and metrics analysis
- mcp-redis-diagnostics— Redis memory, slowlog, and client diagnostics
- Single Redis instance: Analyzes one Redis instance at a time. Does not support Redis Cluster topology discovery or Sentinel failover analysis.
- ACL restrictions: Some tools require specific Redis commands (SLOWLOG, CLIENT LIST, LATENCY). Redis ACLs may block these. Theanalyze_performanceunified tool handles partial failures gracefully.
- Latency monitoring: Theanalyze_latencytool requireslatency-monitor-thresholdto be set in redis.conf. Without it, no latency events are captured.
- Key-level analysis: Keyspace analysis usesINFO keyspaceaggregates. Individual key inspection (e.g., finding the largest keys) requiresMEMORY USAGEper key, which is not performed to avoid impacting production.
- Redis Cluster: No cluster-specific analysis (slot distribution, rebalancing, cross-node latency). Works against individual nodes only.
- Redis Modules: Module-specific commands and data types (RedisJSON, RediSearch, RedisTimeSeries) are not analyzed.
- Memory advisor: Memory recommendations are based onINFO memorystats. For detailed memory breakdown by key type, useredis-cli --bigkeysexternally.
- Fragmentation ratio: Memory fragmentation uses RSS vs. used memory ratio, which can be distorted by jemalloc. Values <1.0 may not always indicate swapping.
- Read-only: All commands are read-only (INFO, SLOWLOG GET, CLIENT LIST, LATENCY). No data or configuration is modified.
This MCP server is no longer maintained or distributed. The Corporation has pivoted to Apify marketplace actors. Seeirrationalwayson Apifyandirrcorp/bzp-poland-tendersfor current Corporation work.
The npm package has been unpublished. The repository is archived for historical reference only.
A server for integrating with InfluxDB, a time-series database.
An MCP server for interacting with InfluxDB time-series databases, enabling AI assistants to work with time-series data.
You are working with the MCP MySQL Operations Server, a powerful tool that provides comprehensive MySQL database monitoring and analysis capabilities through natural language queries. This server offers 19 specialized tools for database administration, performance monitoring, and system analysis.
MCP-PostgreSQL-Ops is a professional MCP server for PostgreSQL database operations, monitoring, and management. Supports PostgreSQL 12-17 with comprehensive database analysis, performance monitoring, and intelligent maintenance recommendations through natural language queries.
An MCP server for PostgreSQL providing index tuning, explain plans, health checks, and safe SQL execution.
Retrieve and analyze time-series data from Prometheus databases using PromQL queries.
A Prometheus MCP server with full API support for comprehensive management and deep interaction with Prometheus beyond basic query support. Written in go, it is a single binary install that is capable of STDIO, SSE, and HTTP transports for complex deployments.
An MCP interface for the rails-pg-extras gem, providing PostgreSQL metadata and performance analysis through LLM prompts.
Database Reliability Engineer-grade SQL analysis inside any MCP client
Access VictoriaMetrics APIs for monitoring, observability, and debugging.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





