Redis MCP Server (v0.0.4) is a lightweight Model Context Protocol server that exposes Redis database operations as MCP tools. It enables AI agents like Claude Desktop or Cline to execute Redis commands (String, Hash, Set, Sorted Set, Key) via a standardized interface. The server communicates over TCP to a Redis instance and uses TypeScript, with ESM-only distribution. Key differentiators: zero-dependency Redis connectivity via raw TCP, 12+ built-in tools covering common operations, and a simple extension model for adding custom tools. The package is early stage (0.x) with weekly releases. Alternatives like @anthropic/mcp-server-redis require more setup and have fewer tools.
npm install redis-mcpNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configure MCP client to connect to Redis via npx, then call Redis tools from AI agent.
Use Node.js 18+ and ensure type: 'module' in package.json or use .mjs extension.
Set environment variable REDIS_PASSWORD instead of using --redis-password.
Use a different port via --redis-port or configure Redis to use a custom port. For reconnection, implement your own health check.
Parse Redis response strings manually if expecting JSON objects.
Use ESM import syntax or ensure Node.js >=18 with type: 'module'.
Start Redis server with redis-server or adjust --redis-host and --redis-port arguments.
Use import { RedisMcpServer } from 'redis-mcp'Check available tools list; implement custom tool via extending RedisTool.