Redis

by gongrzhe

27 stars
2.9k downloads
Not rated
GitHub

About

Integrates with Redis databases to enable fast, in-memory key-value operations for caching, session management, and real-time data processing.

Details

Author
gongrzhe
Repository
GongRzhe/REDIS-MCP-Server
GitHub stars
27
Downloads
2,869
License
MIT License
Categories
Productivity, Design, Developer Tools, AI, Database, Frontend, Other
Tags
#data-science, #analytics, #data

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Redis
    Command (node, npx, python, etc.) docker
    Arguments
    • Argument 1 run
    • Argument 2 -i
    • Argument 3 --rm
    • Argument 4 mcp/redis
    • Argument 5 redis://host.docker.internal:6379

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Installing Via Smithery

To install Redis MCP Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @gongrzhe/server-redis-mcp --client claude

Usage With Claude Desktop

To use this server with the Claude Desktop app, add the following configuration to the "mcpServers" section of your claude_desktop_config.json:

{
  "mcpServers": {
    "redis": {
      "command": "npx",
      "args": [
        "@gongrzhe/server-redis-mcp@1.0.0",
        "redis://localhost:6379"
      ]
    }
  }
}

Alternatively, you can use the node command directly if you have the package installed:

{
  "mcpServers": {
    "redis": {
      "command": "node",
      "args": [
        "path/to/build/index.js",
        "redis://10.1.210.223:6379"
      ]
    }
  }
}

Installing Manually


Install Specific Version Globally

npm install -g @gongrzhe/server-redis-mcp@1.0.0

Run After Global Installation

@gongrzhe/server-redis-mcp redis://your-redis-host:port

Docker Usage

When using Docker:
For macOS, use host.docker.internal if the Redis server is running on the host network
Redis URL can be specified as an argument, defaults to "redis://localhost:6379"

{
  "mcpServers": {
    "redis": {
      "command": "docker",
      "args": [
        "run", 
        "-i", 
        "--rm", 
        "mcp/redis", 
        "redis://host.docker.internal:6379"
      ]
    }
  }
}

set

Set a Redis key-value pair with optional expiration. Input: key (string): Redis key, value (string): Value to store, expireSeconds (number, optional): Expiration time in seconds

get

Get value by key from Redis. Input: key (string): Redis key to retrieve

delete

Delete one or more keys from Redis. Input: key (string | string[]): Key or array of keys to delete

list

List Redis keys matching a pattern. Input: pattern (string, optional): Pattern to match keys (default: *)

- set
- Set a Redis key-value pair with optional expiration
- Input:
- key (string): Redis key
- value (string): Value to store
- expireSeconds (number, optional): Expiration time in seconds

- get
- Get value by key from Redis
- Input: key (string): Redis key to retrieve

- delete
- Delete one or more keys from Redis
- Input: key (string | string[]): Key or array of keys to delete

- list
- List Redis keys matching a pattern
- Input: pattern (string, optional): Pattern to match keys (default: *)

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "redis": {
            "env": {},
            "args": [
                "run",
                "-i",
                "--rm",
                "mcp/redis",
                "redis://host.docker.internal:6379"
            ],
            "command": "docker"
        }
    }
}

Linux

{
    "env": [],
    "args": [
        "run",
        "-i",
        "--rm",
        "mcp/redis",
        "redis://host.docker.internal:6379"
    ],
    "command": "docker"
}

Macos

{
    "env": [],
    "args": [
        "run",
        "-i",
        "--rm",
        "mcp/redis",
        "redis://host.docker.internal:6379"
    ],
    "command": "docker"
}

Windows

{
    "env": [],
    "args": [
        "run",
        "-i",
        "--rm",
        "mcp/redis",
        "redis://host.docker.internal:6379"
    ],
    "command": "docker"
}

Redis MCP Server (@gongrzhe/server-redis-mcp@1.0.0)

![](https://badge.mcpx.dev?type=server 'MCP Server')
smithery badge

A Redis Model Context Protocol (MCP) server implementation for interacting with Redis databases. This server enables LLMs to interact with Redis key-value stores through a set of standardized tools.

Update

62 Redis MCP tools in https://github.com/GongRzhe/REDIS-MCP-Server/tree/redis-plus

Installation & Usage

Installing via Smithery

To install Redis MCP Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @gongrzhe/server-redis-mcp --client claude

Installing Manually

```bash
No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.