# REDIS-MCP-Server

> MCP Server

This repository provides a Redis Model Context Protocol (MCP) server implementation, enabling LLMs to interact with Redis databases through standardized tools like set, get, delete, and list. This repository provides

## Overview

- **Category:** Database
- **Language:** JavaScript
- **Stars:** 30
- **Forks:** 2
- **Owner:** GongRzhe
- **GitHub:** https://github.com/GongRzhe/REDIS-MCP-Server
- **Created:** 2024-12-24T14:43:59+00:00
- **Updated:** 2025-03-15T14:00:38+00:00
- **Source:** https://model-context-protocol.com/servers/redis-llm-model-context-protocol-server

## Setup

## Setup

**Installing via Smithery**

To install Redis MCP Server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@gongrzhe/server-redis-mcp):

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

**Installing Manually**

```bash
# Using npx with specific version (recommended)
npx @gongrzhe/server-redis-mcp@1.0.0 redis://your-redis-host:port

# Example:
npx @gongrzhe/server-redis-mcp@1.0.0 redis://localhost:6379
```

Or install globally:

```bash
# 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
```

**Building from Source**

1. Clone the repository
2. Install dependencies:
   ```bash
   npm install
   ```
3. Build the project:
   ```bash
   npm run build
   ```

## Tools

## Available Tools

1.  **set** (Set a Redis key-value pair with optional expiration)
2.  **get** (Get value by key from Redis)
3.  **delete** (Delete one or more keys from Redis)
4.  **list** (List Redis keys matching a pattern)
