Redis MCP Server logo

Redis MCP Server

Read-first Redis exploration and diagnostics over MCP, with SCAN-based discovery, health reporting, slow-log access, and DBA findings.

Install Redis MCP Server

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "redis-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@yawlabs/redis-mcp@latest"
      ],
      "env": {
        "REDIS_URL": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

Redis MCP Server connects MCP clients to Redis 6+ or Valkey for read-first exploration, diagnosis, and controlled command execution. Its typed tools inspect keys, values, TTLs, memory usage, health, slow logs, and sampled operational risks without using the blocking KEYS command. Redis_command permits curated writes only when explicitly enabled, while arbitrary-execution and administrative commands remain blocked. Use it when an agent needs production-aware Redis visibility rather than unrestricted database administration.

Use cases

  • Inspect unfamiliar Redis keys before reading their values
  • Diagnose memory pressure, eviction behavior, and slow commands
  • Find sampled big keys and keys without expiration
  • Run approved Redis read or maintenance commands through an MCP client

Key features

  • Cursor-based SCAN key enumeration instead of KEYS
  • Type-aware, bounded value reads
  • TTL, encoding, idle-time, and memory inspection
  • Aggregated Redis health and slow-log reporting
  • Sampled DBA findings with severity and suggested fixes
  • Read-only command gate with optional curated writes

Tools7

What Redis MCP Server lets your agent do. Expand a tool for its parameters.

Verified live~2.0k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 1d ago

Recent health check succeeded.

9/9 checks healthy over the last 44d

What it can do

From the 7 tools this server returned when we ran it; 7 declare their own safety hints.

Runs commands · 1Can delete or modify data · 1Makes network requests · 7Read-only tools · 6
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age140 days
Maintainers1

Observed 2026-10-21 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 14d ago via OSV.dev · @yawlabs/redis-mcp@latest (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2Stargazers on the source repository.
npm downloads1.5kPackage downloads in the last 30 days.
Last commit12d agoMost recent push to the default branch.
Tools exposed7Callable tools this server registers over MCP.
Directory activity6 viewsConfig copies, upvotes, and views on AllMCPs.

How Redis MCP Server works

What Redis MCP Server does

Redis MCP Server exposes Redis and Valkey inspection tools through the Model Context Protocol. It is designed for investigating what is stored in an instance, checking operational health, and identifying common database risks. The default posture is read-only, making it suitable for asking an agent about a production Redis instance without granting unrestricted command access.

Key enumeration uses cursor-based SCAN rather than KEYS. Results are bounded, can be filtered by glob pattern or Redis value type, and can be resumed with a returned cursor. The advisor also samples keys with SCAN when looking for large values and missing expirations.

How it works

The server connects using a Redis URL supplied through its environment. redis_get determines a key's type before returning a suitable representation: strings, hashes, lists, sets, sorted sets, and streams are handled differently. Collection reads are limited, and large string values are byte-windowed. Responses include size and truncation information so a client can tell when it received only part of a value.

redis_key_info provides type, expiration, encoding, serialized memory usage, and idle time without loading the value. This makes it a useful first check for unfamiliar or potentially large keys. Health reporting combines Redis INFO data, database sizes, and recent slow-log entries into one snapshot. The advisor reports findings for sampled big keys, missing TTLs, eviction pressure, and fork-latency risk, with severity and a suggested fix.

Commands sent through redis_command pass through a curated safety gate. Read commands are allowed by default. Mutating commands require ALLOW_WRITES=1; commands for arbitrary execution, transactions, monitoring, shutdown, cluster administration, and similar high-risk operations remain unavailable.

Setup and configuration

A standard stdio configuration can run the package through npx:

config.json
{
  "mcpServers": {
    "redis": {
      "command": "npx",
      "args": ["-y", "@yawlabs/redis-mcp@latest"],
      "env": {
        "REDIS_URL": "redis://:password@host:6379/0"
      }
    }
  }
}

REDIS_URL is required. It can use a regular Redis connection string or rediss:// for TLS. On Windows, the configuration wraps npx with cmd /c.

The server starts in read-only mode. Set ALLOW_WRITES=1 or true to permit the curated mutating commands accepted by redis_command; this does not enable blocked arbitrary-execution commands. The package also supports limits for key and value results, including REDIS_MAX_KEYS and REDIS_MAX_VALUE_BYTES, which bound returned data.

For stronger access control, use a least-privileged Redis ACL user in the connection URL. After changing a stored connection value in Yaw MCP, deactivate the connection or start a new session so the new value is loaded.

Tools and capabilities

  • redis_scan: Enumerate keys with resumable, bounded SCAN operations, optional glob matching, and type filtering.
  • redis_key_info: Inspect TTL, type, encoding, memory footprint, and idle time without reading the value.
  • redis_get: Read supported Redis value types with collection limits and string byte windows.
  • redis_command: Run commands through read and write allowlists.
  • redis_health: Review memory, eviction, clients, throughput, hit/miss ratio, persistence, replication, key counts, TTL coverage, and recent slow commands.
  • redis_slowlog: Retrieve recent slow commands with execution time, timestamp, and client details.
  • redis_advisor: Review sampled findings for big keys, missing TTLs, eviction pressure, and fork latency.

Limitations and notes

This is an explorer and diagnostician, not a general Redis administration console. Pub/sub, MONITOR, cluster management, replication control, scripting, and other high-risk operations are intentionally excluded. Use redis-cli for those tasks.

Advisor findings about large keys and missing TTLs apply to the sampled portion of the keyspace, not necessarily every key. SCAN can return a key again across resumed scans, although keys present for the entire scan are not missed. Some health fields become null when the connected Redis server does not expose them through INFO.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Redis MCP Server

Redis MCP Server is an MCP server that connects AI clients to Redis and Valkey. Its main tools scan keys safely, inspect metadata, read typed values, run gated Redis commands, report health and slow logs, and identify sampled big-key, TTL, eviction, and fork-latency risks.

Install it by adding an MCP stdio entry that runs `npx -y @yawlabs/redis-mcp@latest` and setting `REDIS_URL` to the target Redis connection string. Restart the MCP client and approve the server when prompted.

Yes, Redis MCP Server works with Cursor. The package is configured as a standard MCP server, and its documented clients include Cursor and Claude Code.

Set `ALLOW_WRITES=1` or `true` in the server environment to permit curated mutating commands through `redis_command`. Read-only access remains the default, and scripting, monitoring, shutdown, cluster, and other arbitrary-execution commands stay blocked.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewRedis MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/redis-mcp-server?style=directory)](https://allmcps.com/mcp/redis-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/redis-mcp-server"><img src="https://allmcps.com/api/badge/redis-mcp-server?style=directory" alt="Redis MCP Server on AllMCPs" /></a>