Redis MCP Server
A Redis MCP server (pushed to https://github.com/modelcontextprotocol/servers/tree/main/src/redis) implementation for interacting with Redis databases. This server enables LLMs to interact with Redis key-value stores through a set of standardized too
What is Redis MCP Server?
Redis MCP Server is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to redis mcp server (pushed to https://github.com/modelcontextprotocol/servers/tree/main/src/redis) implementation for interacting with redis databases. this server enables llms to interact with redis ke...
A Redis MCP server (pushed to https://github.com/modelcontextprotocol/servers/tree/main/src/redis) implementation for interacting with Redis databases. This server enables LLMs to interact with Redis key-value stores through a set of standardized too
This server falls under the Databases category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- A Redis MCP server (pushed to https://github.com/modelcontex
Use Cases
Maintainer
Works with
Installation
NPM
npx -y redisManual Installation
npx -y redisConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Redis MCP Server
Redis MCP Server enables LLMs to interact directly with Redis key-value stores through four standardized operations: set, get, delete, and list with wildcard pattern matching. It implements the Model Context Protocol over the @gongrzhe/server-redis-mcp package and connects to any Redis instance via a standard connection URL, making it straightforward to add persistent key-value storage, cache inspection, and data retrieval to AI workflows. Developers can use it to read and write application caches, session stores, or feature flags through natural language without writing Redis client code.
Prerequisites
- Node.js 16 or higher installed
- A running Redis instance (local or remote) accessible via a Redis URL
- An MCP-compatible client such as Claude Desktop or Claude Code
- npm or npx available on your PATH
Ensure Redis is running
Start a local Redis instance if you don't have one. The default port is 6379.
redis-serverInstall via Smithery (recommended)
The easiest installation path uses the Smithery CLI to configure the server for Claude automatically.
npx -y @smithery/cli install @gongrzhe/server-redis-mcp --client claudeOr configure manually in claude_desktop_config.json
Add the Redis MCP server to your MCP client configuration, passing your Redis URL as an argument.
Restart Claude Desktop
Quit and reopen Claude Desktop so it picks up the new server configuration and connects to Redis.
Verify the connection
Ask your assistant to set a test key and retrieve it. If Redis is reachable you should get the value back.
Redis MCP Server Examples
Client configuration
Add the Redis MCP server to claude_desktop_config.json. Replace the Redis URL with your actual Redis instance.
{
"mcpServers": {
"redis": {
"command": "npx",
"args": ["-y", "@gongrzhe/[email protected]", "redis://localhost:6379"]
}
}
}Prompts to try
Use these prompts to interact with your Redis store through natural language.
- "Set a Redis key 'user:123:session' with value 'abc456' that expires in 3600 seconds"
- "Get the value of the Redis key 'user:123:session'"
- "List all Redis keys matching the pattern 'user:*'"
- "Delete the keys 'temp:cache:1' and 'temp:cache:2' from Redis"
- "Show me all keys in the Redis store that start with 'feature_flag:'"Troubleshooting Redis MCP Server
Connection refused when trying to reach Redis at localhost:6379
Ensure Redis is running with 'redis-cli ping'. If it returns PONG, Redis is up. If not, start it with 'redis-server'. On macOS with Homebrew: 'brew services start redis'.
Docker-based Redis is unreachable from Claude Desktop on macOS
Use 'host.docker.internal' instead of 'localhost' in your Redis URL when Redis runs inside Docker: redis://host.docker.internal:6379
The list tool returns no keys even though keys exist in Redis
Provide a wildcard pattern to the list tool. Pass '*' to list all keys, or 'prefix:*' to list keys with a specific prefix. An empty pattern may not match any keys.
Frequently Asked Questions about Redis MCP Server
What is Redis MCP Server?
Redis MCP Server is a Model Context Protocol (MCP) server that redis mcp server (pushed to https://github.com/modelcontextprotocol/servers/tree/main/src/redis) implementation for interacting with redis databases. this server enables llms to interact with redis key-value stores through a set of standardized too It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Redis MCP Server?
Install via npm with the command: npx -y redis. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).
Which AI clients work with Redis MCP Server?
Redis MCP Server works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Redis MCP Server free to use?
Yes, Redis MCP Server is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.
Redis MCP Server Alternatives — Similar Databases Servers
Looking for alternatives to Redis MCP Server? Here are other popular databases servers you can use with Claude, Cursor, and VS Code.
Excelize
★ 20.6kGo language library for reading and writing Microsoft Excel™ (XLAM / XLSM / XLSX / XLTM / XLTX) spreadsheets
MCP Toolbox for Databases
★ 15.3kOpen source MCP server specializing in easy, fast, and secure tools for Databases.
DBHub
★ 2.8kA universal database gateway MCP server that enables AI assistants to connect to and query multiple databases (PostgreSQL, MySQL, MariaDB, SQL Server, SQLite) with support for schema exploration, SQL execution, and secure connections via SSH tunnels.
Tabularis
★ 2.1kA lightweight, cross-platform database client for developers. Supports MySQL, PostgreSQL and SQLite. Hackable with plugins. Built for speed, security, and aesthetics.
Postgres AI Guide
★ 1.7kMCP server and Claude plugin for Postgres skills and documentation. Helps AI coding tools generate better PostgreSQL code.
Anyquery
★ 1.7k🏎️ 🏠 ☁️ - 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 design.
Browse More Databases MCP Servers
Explore all databases servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Redis MCP Server in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Redis MCP Server?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.