# Redis MCP

> Redis MCP is an open-source MCP server for databases. Run Redis commands and look up Upstash Redis Search docs against Upstash Redis over HTTP or TCP. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/upstash/redis-mcp
- **MCP Registry name:** io.github.upstash/redis-mcp
- **Categories:** databases
- **Listing updated:** 2026-11-13

## About

Run Redis commands and look up Upstash Redis Search docs against Upstash Redis over HTTP or TCP.

## Install

### Claude Code (Terminal)

```sh
claude mcp add redis-mcp --env UPSTASH_REDIS_REST_TOKEN='<UPSTASH_REDIS_REST_TOKEN>' --env UPSTASH_REDIS_TCP_URL='<UPSTASH_REDIS_TCP_URL>' -- npx -y @upstash/redis-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "redis-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@upstash/redis-mcp"
      ],
      "env": {
        "UPSTASH_REDIS_REST_TOKEN": "<UPSTASH_REDIS_REST_TOKEN>",
        "UPSTASH_REDIS_TCP_URL": "<UPSTASH_REDIS_TCP_URL>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "redis-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@upstash/redis-mcp"
      ],
      "env": {
        "UPSTASH_REDIS_REST_TOKEN": "<UPSTASH_REDIS_REST_TOKEN>",
        "UPSTASH_REDIS_TCP_URL": "<UPSTASH_REDIS_TCP_URL>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "redis-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@upstash/redis-mcp"
      ],
      "env": {
        "UPSTASH_REDIS_REST_TOKEN": "<UPSTASH_REDIS_REST_TOKEN>",
        "UPSTASH_REDIS_TCP_URL": "<UPSTASH_REDIS_TCP_URL>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "redis-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@upstash/redis-mcp"
      ],
      "env": {
        "UPSTASH_REDIS_REST_TOKEN": "<UPSTASH_REDIS_REST_TOKEN>",
        "UPSTASH_REDIS_TCP_URL": "<UPSTASH_REDIS_TCP_URL>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "redis-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@upstash/redis-mcp"
      ],
      "env": {
        "UPSTASH_REDIS_REST_TOKEN": "<UPSTASH_REDIS_REST_TOKEN>",
        "UPSTASH_REDIS_TCP_URL": "<UPSTASH_REDIS_TCP_URL>"
      }
    }
  }
}
```

## FAQ

### Is Redis MCP free?

Yes. Redis MCP is open source, so you can use and self-host it for free.

### How do I add Redis MCP to Claude Code?

Run this command in your terminal: claude mcp add redis-mcp --env UPSTASH_REDIS_REST_TOKEN='<UPSTASH_REDIS_REST_TOKEN>' --env UPSTASH_REDIS_TCP_URL='<UPSTASH_REDIS_TCP_URL>' -- npx -y @upstash/redis-mcp

### What are the best alternatives to Redis MCP?

The closest alternatives to Redis MCP are Midplane, PlatypusDB, Lorebase, Sovaria and model2data studio.

## Alternatives

- [Midplane](https://ai-powered.com/mcp/midplane): Midplane is an open-source MCP server for databases.
- [PlatypusDB](https://ai-powered.com/mcp/platypusdb): PlatypusDB is an open-source MCP server for databases.
- [Lorebase](https://ai-powered.com/mcp/lorebase): Lorebase is an open-source MCP server for knowledge and memory.
- [Sovaria](https://ai-powered.com/mcp/sovaria): Sovaria is a freemium MCP server for databases.
- [model2data studio](https://ai-powered.com/mcp/model2data-studio): model2data studio is a freemium MCP server for databases.
- [semlayer](https://ai-powered.com/mcp/semlayer): semlayer is a free MCP server for databases.
- [bricksentry](https://ai-powered.com/mcp/bricksentry): bricksentry is an open-source MCP server for databases.
- [MCP Toolbox for Databases](https://ai-powered.com/mcp/mcp-toolbox-for-databases-2): MCP Toolbox for Databases is an open-source MCP server for databases.

---
Source: https://ai-powered.com/mcp/redis-mcp
