Redis Diagnostics
FreeNot checkedA lightweight npm MCP server for deep Redis diagnostics, offering tools for memory, slowlog, clients, keyspace, latency, and config analysis with AI-powered rec
About
A lightweight npm MCP server for deep Redis diagnostics, offering tools for memory, slowlog, clients, keyspace, latency, and config analysis with AI-powered recommendations.
README
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
$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-thresholdto 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
Installation
npm install -g mcp-redis-diagnostics
Or run directly:
npx mcp-redis-diagnostics
Configuration
Environment Variables
| Variable | Description | Default |
|---|---|---|
REDIS_URL |
Redis connection string | redis://localhost:6379 |
Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"redis-diagnostics": {
"command": "npx",
"args": ["-y", "mcp-redis-diagnostics"],
"env": {
"REDIS_URL": "redis://localhost:6379"
}
}
}
}
Redis with password:
{
"env": {
"REDIS_URL": "redis://:yourpassword@localhost:6379"
}
}
Quick Demo
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"
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
Limitations & Known Issues
- 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. The
analyze_performanceunified tool handles partial failures gracefully. - Latency monitoring: The
analyze_latencytool requireslatency-monitor-thresholdto be set in redis.conf. Without it, no latency events are captured. - Key-level analysis: Keyspace analysis uses
INFO 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 on
INFO 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.
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.
Installing Redis Diagnostics
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/Dmitriusan/mcp-redis-diagnosticsFAQ
Is Redis Diagnostics MCP free?
Yes, Redis Diagnostics MCP is free — one-click install via Unyly at no cost.
Does Redis Diagnostics need an API key?
No, Redis Diagnostics runs without API keys or environment variables.
Is Redis Diagnostics hosted or self-hosted?
A hosted option is available: Unyly runs the server in the cloud, no local setup required.
How do I install Redis Diagnostics in Claude Desktop, Claude Code or Cursor?
Open Redis Diagnostics on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
wenb1n-dev/SmartDB_MCP
A universal database MCP server supporting simultaneous connections to multiple databases. It provides tools for database operations, health analysis, SQL optim
by wenb1n-devPostgres Server
This server enables interaction with PostgreSQL databases through the Model Context Protocol, optimized for the AWS Bedrock AgentCore Runtime. It provides tools
by madhurprashPostgres
Query your database in natural language
by AnthropicPostgreSQL
Read-only database access with schema inspection.
by modelcontextprotocolRedis
Interact with Redis key-value stores.
by modelcontextprotocolSQLite
Database interaction and business intelligence capabilities.
by modelcontextprotocolmxcp
Open-source framework for building enterprise-grade MCP servers using just YAML, SQL, and Python, with built-in auth, monitoring, ETL and policy enforcement.
by raw-labstadas-github/a2asearch-mcp
MCP server to search 4,800+ MCP servers, AI agents, CLI tools and agent skills. Install: npx -y a2asearch-mcp. Ask Claude: "Find MCP servers for database access
by tadas-githubjulien040/anyquery
Query more than 40 apps with one binary using SQL. It can also connect to your PostgreSQL, MySQL, or SQLite compatible database. Local-first and private by desi
by julien040drakonkat/wizzy-mcp-tmdb
A MCP server for The Movie Database API that enables AI assistants to search and retrieve movie, TV show, and person information.
by drakonkatCompare Redis Diagnostics with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All data MCPs
