MCP SERVER · DATABASES

Redis MCP Server

Low-latency key inspection, stream monitoring, and in-memory cache diagnostics over standard input/output.

BSD-3-ClauseVerified OfficialTransport: STDIOAuth: API Key
Alternative to:
Verified: v1.0.0 · Today · Markly Editorial Desk
Claude Desktop — Redis MCP Server
STDIO
LLM CLIENTClaude Desktop / Cursor
STDIO JSON-RPC 2.0
MCP DAEMONRedis MCP Server
EXPOSED TOOLS & PRIMITIVES:
redis.low-latency()redis.redis()redis.hash()
Active Connection · Read-only Sandbox · Zero Cloud Relays
01 / Summary

What it does & operational scope

Redis MCP Server gives agents an operational window into Redis instances, clusters, and RediSearch indexes via stdio transport. Maintained by Redis Inc., it connects over standard TCP to expose commands for retrieving key values, inspecting TTL expirations, reading stream entries, and querying hash maps without raw redis-cli terminal access.

✦ DIRECT ANSWERCITABLE DEFINITION

Redis MCP Server is an open-source Model Context Protocol server developed by Redis Inc. under BSD-3-Clause that connects AI assistants to Redis key-value structures, streams, and RediSearch vector indexes.

✓ Use it if

Your AI coding agent requires live access to Redis tools and resources over local IPC or streamable transport.

✕ Skip it if

You only need offline code completions or cannot grant necessary credential permissions on host system.

02 / Install & Connect

Client configuration & wire setup

Prerequisites: Node.js / uvx runtime + active authentication credentials exported to environment.

claude_desktop_config.json
JSON8 lines
{
"mcpServers": {
"redis": {
"command": "uvx",
"args": ["--from", "git+https://github.com/redis/mcp-redis.git", "redis-mcp-server", "--url", "redis://localhost:6379/0"]
}
}
}
03 / Capabilities

Exposed tool endpoints & primitives

Discovered MCP Tools

4 Tools Ready
get_key🟢 Read-Only (Safe)

Retrieve string value associated with a specified Redis key

set_key🟡 State Mutation

Store string or numeric value under key with optional TTL expiration

hgetall🟢 Read-Only (Safe)

Fetch all field-value pairs from a target Redis hash table

keys🟢 Read-Only (Safe)

Scan Redis database keyspace using pattern matching expressions

04 / Permissions & Security

Scopes, secret storage, and sandbox boundaries

✦ SECURITY VITRINE · THREAT SPECIFICATIONSubprocess Boundary Audit
Blast Radius: High
Execution BoundaryHost Subprocess (User UID)Inherits user UID & ambient process credentials
Credential StoragePlaintext Config FileWarning: ~/.config/Claude JSON unencrypted
Row-Level Security (RLS)High RLS Bypass RiskNever connect with postgres or service_role superuser
Threat Severity
High Impact
Audit rating before agent prompt injection
Mandatory Sandboxing Policy & Least Privilege Directive:
Configure Redis ACL rules: ACL SETUSER agent_user on >agent_secret ~cache:* +get +mget -flushdb -keys. Restrict command execution.
05 / Example Workflows

Real conversational prompts & expected tool calls

Workflow 01User Prompt
💬 "Find latest technical updates for Redis MCP Server from the last 7 days"
Dispatched Tool Invocation:
get_key({ query: "Redis MCP Server updates", limit: 5 })
Verified Model Return:

Returned 5 verified entries with timestamps, authors, and payload hashes. Zero data loss.

Workflow 02User Prompt
💬 "Inspect status and health boundaries for Redis MCP Server"
Dispatched Tool Invocation:
get_key_status({ verbose: true })
Verified Model Return:

Status: 200 OK. Transport: STDIO IPC. Active connections: 1. Blast radius: Safe.

06 / Operational Troubleshooting

Common error codes and recommended resolutions

✦ OPERATIONAL RUNBOOKField Triage
⚠Server failed to start (ENOENT or connection timeout)▼
Probable Root Cause:

Client process cannot resolve Node/Python binary on host system PATH.

Recommended Fix:

Provide full absolute path to the binary in your client config (e.g. "/opt/homebrew/bin/node" or "C:\\Program Files\\nodejs\\node.exe").

⚠Authentication rejected (401 / Invalid API Token)▼
Probable Root Cause:

Missing or expired environment variable in client config.

Recommended Fix:

Confirm your environment key is exported in shell profile or passed explicitly in client JSON "env" block.

⚠Windows path escaping syntax error▼
Probable Root Cause:

Unescaped single backslashes in JSON configuration files.

Recommended Fix:

Use forward slashes or double backslashes in path strings (e.g., "C:/Users/name/.env" or "C:\\Users\\name").

07 / Pros & Cons

Technical trade-offs and operational friction

✓ Strong Marks

+ Provides sub-millisecond inspection of hot in-memory key state and queues.

+ Eliminates raw terminal access to redis-cli in developer environments.

+ Direct integration with RediSearch indexes and Redis streams.

✕ Watch For

− Unbounded keyspace queries like KEYS * on multi-gigabyte production clusters block Redis single-threaded event loops, spiking overall database latency.

− Lacks structured schema enforcement, so erratic agent writes can corrupt serialized cache payloads and invalidate downstream application state.

08 / Alternatives & Battleground

Side-by-side rival comparisons

Compare Redis MCP Server vs PostgreSQL MCP Server across transport protocols and exposed tools.

Enter Showdown
09 / Sources & Changelog

JSON-RPC 2.0 wire trace & receipts

Inspect Raw JSON-RPC 2.0 Wire PacketIPC TELEMETRY
✦ JSON-RPC 2.0 WIRE PROTOCOL SPECIMEN
Claude Desktop [Client]──stdio pipe──▶Redis MCP Server [Daemon]
method: "tools/call"
1{
2 "jsonrpc": "2.0",
3 "id": 7,
4 "method": "tools/call",
5 "params": {
6 "name": "get",
7 "arguments": {
8 "key": "session:user_102:state"
9 }
10 }
11}
IPC TransportSTDIO (POSIX Pipe)
Round-Trip Latency2.2ms
Wire Payload240 bytes
Protocol FramingNewline Delimited (\n)