MCP server for Redis operations (standalone and cluster) via stdio and Streamable HTTP. Version 1.2.5. Provides CRUD tools for key-value, list, hash, set, and diagnostic commands. Supports Redis Cluster with automatic node discovery. Designed for LLM agents using the Model Context Protocol. Uses ioredis under the hood. ESM-only.
npm install mcp-redisNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to configure mcp-redis as an MCP server with environment variables for standalone Redis.
Set either REDIS_URL (standalone) or REDIS_CLUSTER_NODES (cluster), not both.
Use npx -y mcp-redis or embed as an MCP server in your application's config.
Set REDIS_USERNAME and REDIS_PASSWORD when Redis requires authentication.
Currently only usable via CLI; watch for breaking changes if programmatic API is added.
Provide comma-separated valid node URLs (e.g., redis://host1:7000,redis://host2:7001).
Start Redis or set REDIS_URL to correct address.
Ensure all cluster nodes are registered and slots assigned. Use redis-cli --cluster fix.
Do not import mcp-redis directly; only use via MCP server configuration or npx CLI.
Set REDIS_PASSWORD (and optionally REDIS_USERNAME) environment variables.