Labsco
Dmitriusan logo

MCP Redis Diagnostics

from Dmitriusan

Redis diagnostics MCP server โ€” analyze memory usage, slowlog patterns, client connections, and keyspace health with AI-powered recommendations. Lightweight npx install, no Docker required.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeQuick setup

npm version License: MIT

MCP Redis Diagnostics

MCP server for Redis diagnostics โ€” analyze memory usage, slowlog, client connections, and keyspace health with AI-powered recommendations.

Why This Tool?

Most Redis MCP servers are CRUD wrappers (get/set keys). RedisNexus offers diagnostics but targets enterprises (K8s, multi-tenant SaaS). This tool is the only lightweight npm package for deep Redis diagnostics โ€” 7 tools covering memory fragmentation, slowlog patterns, client connection health, keyspace distribution, latency analysis, and configuration auditing. Install with npx, no Docker or SaaS required.

Pro Tier

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
<!-- TODO: replace placeholder Stripe Payment Link once STRIPE_SECRET_KEY is configured -->

$9.00/month โ€” Get Pro License

Pro license key activates the generate_report MCP tool in mcp-jvm-diagnostics.

Tools (7)

analyze_memory

Analyze Redis memory usage and fragmentation.

Detects:

  • 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_slowlog

Analyze Redis SLOWLOG for slow commands.

Parameters:

  • count (number, default: 128) โ€” Number of slowlog entries to retrieve

Detects:

  • Dangerous O(N) commands: KEYS, SMEMBERS, HGETALL, SORT
  • High latency commands (>10ms, >100ms thresholds)
  • Command concentration patterns
  • Full slowlog buffer (missing history)

analyze_clients

Analyze Redis client connections.

Detects:

  • Blocked clients (BLPOP/BRPOP)
  • Connection pool saturation (>80% maxclients)
  • Idle connections (>5 minutes)
  • Large output buffer memory
  • Pub/sub subscriber patterns

analyze_keyspace

Analyze Redis keyspace distribution and cache effectiveness.

Detects:

  • Low TTL coverage (<20% of keys)
  • Low cache hit rate (<80%)
  • Unbalanced database distribution
  • High expiry/eviction rates
  • Multiple database anti-pattern

analyze_latency

Analyze Redis latency events from the LATENCY subsystem.

Detects:

  • 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

Requires latency-monitor-threshold to be set in redis.conf (e.g., CONFIG SET latency-monitor-threshold 100).

analyze_config

Analyze Redis configuration for security and reliability risks.

Detects:

  • 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)

analyze_performance

Comprehensive health assessment โ€” runs all analyzers and produces a unified report.

Parameters:

  • slowlog_count (number, default: 128) โ€” Number of slowlog entries

Quick Demo

Once configured, try these prompts in Claude:

  1. "Analyze my Redis memory usage โ€” is there fragmentation?" โ€” Shows used vs max memory, fragmentation ratio, eviction policy, and memory pressure issues
  2. "Check the Redis slowlog for dangerous commands" โ€” Identifies O(N) commands like KEYS/SMEMBERS, high-latency patterns, and optimization suggestions
  3. "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"

Part of the MCP Java Backend Suite

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

License

MIT


End-of-life: 2026-05-10.

This MCP server is no longer maintained or distributed. The Corporation has pivoted to Apify marketplace actors. See irrationalways on Apify and irrcorp/bzp-poland-tenders for current Corporation work.

The npm package has been unpublished. The repository is archived for historical reference only.