Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Easy Redis Mcp

БесплатноПоддерживается

High performance Redis MCP Server using node-redis

GitHubEmbed

Описание

High performance Redis MCP Server using node-redis

README

A lightweight Model Context Protocol (MCP) server that lets AI assistants inspect and operate Redis through a structured tool interface.

This project uses Node.js, TypeScript, the official MCP SDK, and the official redis Node.js client. It communicates over stdio and supports standalone Redis, Redis Cluster, TLS, and read-only operation.

Features

  • Typed tools for strings, hashes, lists, sets, sorted sets, streams, and server information
  • Generic redis_command fallback for commands without a dedicated tool
  • Standalone Redis and Redis Cluster connections
  • Username/password authentication
  • TLS connections with optional CA and client certificates
  • Read-only mode that hides typed write tools and restricts generic commands

Requirements

  • Node.js 20 or newer
  • npm
  • A reachable Redis server or Redis Cluster

Installation

Run the server directly with npx:

npx -y easy-redis-mcp

For local development after cloning the repository:

cd easy-redis-mcp
npm install
npm run build

Configuration

Configure the server with environment variables in your MCP client configuration or shell environment.

Variable Required Default Description
REDIS_HOST No 127.0.0.1 Redis host name or IP address
REDIS_PORT No 6379 Redis port
REDIS_DB No 0 Database number for standalone Redis
REDIS_USERNAME No default Redis ACL username
REDIS_PWD No empty Redis password
REDIS_SSL No false Enable TLS when set to true
REDIS_SSL_CA_PATH No empty Path to a CA certificate used to verify the server
REDIS_SSL_KEYFILE No empty Path to the client private key
REDIS_SSL_CERTFILE No empty Path to the client certificate
REDIS_SSL_CERT_REQS No required Server certificate verification: required or none
REDIS_SSL_CA_CERTS No empty Alternative path to a trusted CA certificate file
REDIS_CLUSTER_MODE No false Connect through a Redis Cluster root node when true
REDIS_MODE No readwrite Permission mode: readwrite or read

Example shell configuration:

REDIS_HOST=localhost REDIS_PORT=6379 REDIS_PWD=your_password npx -y easy-redis-mcp

In PowerShell:

$env:REDIS_HOST = "localhost"
$env:REDIS_PORT = "6379"
$env:REDIS_PWD = "your_password"
npx -y easy-redis-mcp

The server normally runs through an MCP client. Starting it directly opens a stdio transport and does not provide an HTTP endpoint.

If you are unsure how a tool should be used, or a Redis command fails, call redis_manual first. It returns the built-in manual with safe usage rules, key-type guidance, and command composition notes.

Claude Desktop Example

{
  "mcpServers": {
    "easy-redis-mcp": {
      "command": "npx",
      "args": ["-y", "easy-redis-mcp"],
      "env": {
        "REDIS_HOST": "localhost",
        "REDIS_PORT": "6379",
        "REDIS_DB": "0",
        "REDIS_USERNAME": "default",
        "REDIS_PWD": "YOUR PASSWORD",
        "REDIS_MODE": "readwrite"
      }
    }
  }
}

Restart Claude Desktop after updating the configuration.

Codex config.toml Example

[mcp_servers.easy-redis-mcp]
command = "npx"
args = ["-y", "easy-redis-mcp"]
enabled = true

[mcp_servers.easy-redis-mcp.env]
REDIS_HOST = "localhost"
REDIS_PORT = "6379"
REDIS_DB = "0"
REDIS_USERNAME = "default"
REDIS_PWD = "YOUR PASSWORD"
REDIS_MODE = "readwrite"

OpenCode opencode.jsonc Example

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "easy-redis-mcp": {
      "type": "local",
      "command": ["npx", "-y", "easy-redis-mcp"],
      "enabled": true,
      "environment": {
        "REDIS_HOST": "localhost",
        "REDIS_PORT": "6379",
        "REDIS_DB": "0",
        "REDIS_USERNAME": "default",
        "REDIS_PWD": "YOUR PASSWORD",
        "REDIS_MODE": "readwrite"
      }
    }
  }
}

Available Tools

Tool Description
redis_manual Return the built-in manual. Use this first when you are unsure how to use Redis tools or need help diagnosing an operation error
redis_command Execute a Redis command with arguments
redis_ping Ping Redis and optionally echo a message
redis_info Return server information, optionally for one section
redis_dbsize Return the number of keys in the selected database
redis_time Return Redis server time
redis_client_list Return connected client information
redis_config_get Read Redis configuration values
redis_command_list List commands supported by the Redis server
redis_get, redis_mget Read one or more string values
redis_exists, redis_ttl, redis_type Inspect key state and metadata
redis_scan, redis_keys Find keys by pattern
redis_hget, redis_hgetall Read hash data
redis_lrange Read a list range
redis_smembers Read all set members
redis_zrange Read a sorted set range, optionally with scores
redis_xrange Read stream entries by ID range
redis_set, redis_mset Set one or more string values, only registered in readwrite mode
redis_del, redis_unlink Delete one or more keys, only registered in readwrite mode
redis_expire, redis_rename, redis_incrby Modify key metadata or integer values, only registered in readwrite mode
redis_hset, redis_hdel Modify hash fields, only registered in readwrite mode
redis_lpush, redis_rpush, redis_lpop, redis_rpop Modify lists, only registered in readwrite mode
redis_sadd, redis_srem Modify sets, only registered in readwrite mode
redis_zadd, redis_zrem Modify sorted sets, only registered in readwrite mode
redis_xadd Append a stream entry, only registered in readwrite mode
redis_publish Publish a message to a channel, only registered in readwrite mode

Prefer redis_scan over redis_keys for large or production databases because KEYS can block Redis while scanning the entire keyspace.

When REDIS_MODE=read, redis_command permits only commands classified as read-only. Write, administrative, blocking, and unknown commands are rejected. REDIS_MODEL remains supported as a backward-compatible alias.

Read-Only Mode

Set the following variable when the assistant should only inspect Redis:

REDIS_MODE=read

In this mode, typed write tools are not registered and the generic command policy allows only recognized read commands. Redis ACL permissions remain the final security boundary, so use a dedicated read-only Redis user whenever possible.

Security Notes

  • Use a dedicated Redis ACL user with only the commands and key patterns the assistant needs.
  • Use REDIS_MODE=read for inspection and reporting workloads. REDIS_MODEL is accepted for backward compatibility.
  • Treat MCP configuration files containing REDIS_PWD as sensitive.
  • Use TLS when connecting across untrusted networks.
  • Keep REDIS_SSL_CERT_REQS=required in production.
  • Prefer redis_scan to redis_keys on large databases.
  • Review write operations before using the server against production data.
  • Do not commit passwords, private keys, or certificates to source control.

Development

Run TypeScript in watch mode:

npm run dev

Create a production build:

npm run build

Run the test suite:

npm test

The integration tests require a reachable Redis instance configured through the Redis environment variables.

License

MIT. See LICENSE.md.

from github.com/chenkumi/easy-redis-mcp

Установить Easy Redis Mcp в Claude Desktop, Claude Code, Cursor

Рекомендуется · одна команда, все IDE
unyly install easy-redis-mcp

Ставит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.

Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh

Или настроить вручную

Выполни в терминале:

claude mcp add easy-redis-mcp --env REDIS_CLUSTER_MODE="" --env REDIS_DB="" --env REDIS_HOST="" --env REDIS_MODE="" --env REDIS_PORT="" --env REDIS_PWD="" --env REDIS_SSL="" --env REDIS_SSL_CA_PATH="" --env REDIS_SSL_CERT_REQS="" --env REDIS_USERNAME="" -- npx -y easy-redis-mcp

Пошаговые гайды: как установить Easy Redis Mcp

FAQ

Easy Redis Mcp MCP бесплатный?

Да, Easy Redis Mcp MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Easy Redis Mcp?

Да, требуются переменные окружения: REDIS_CLUSTER_MODE, REDIS_DB, REDIS_HOST, REDIS_MODE, REDIS_PORT, REDIS_PWD, REDIS_SSL, REDIS_SSL_CA_PATH, REDIS_SSL_CERT_REQS, REDIS_USERNAME. Unyly подставит их в конфиг при установке.

Easy Redis Mcp — hosted или self-hosted?

Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.

Как установить Easy Redis Mcp в Claude Desktop, Claude Code или Cursor?

Открой Easy Redis Mcp на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Изменения

Версии и запрашиваемые доступы со временем.

  • Новая версия опубликована

Похожие MCP

wenb1n-dev/SmartDB_MCP

A universal database MCP server supporting simultaneous connections to multiple databases. It provides tools for database operations, health analysis, SQL optim

wenb1n-devавтор: wenb1n-dev

Postgres Server

This server enables interaction with PostgreSQL databases through the Model Context Protocol, optimized for the AWS Bedrock AgentCore Runtime. It provides tools

madhurprashавтор: madhurprash

Postgres

Query your database in natural language

Anthropicавтор: Anthropic

PostgreSQL

Read-only database access with schema inspection.

modelcontextprotocolавтор: modelcontextprotocol

Redis

Interact with Redis key-value stores.

modelcontextprotocolавтор: modelcontextprotocol

SQLite

Database interaction and business intelligence capabilities.

modelcontextprotocolавтор: modelcontextprotocol

mxcp

Open-source framework for building enterprise-grade MCP servers using just YAML, SQL, and Python, with built-in auth, monitoring, ETL and policy enforcement.

raw-labsавтор: raw-labs

tadas-github/a2asearch-mcp

MCP server to search 4,800+ MCP servers, AI agents, CLI tools and agent skills. Install: npx -y a2asearch-mcp. Ask Claude: "Find MCP servers for database access

tadas-githubавтор: tadas-github

julien040/anyquery

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 desi

julien040автор: julien040

drakonkat/wizzy-mcp-tmdb

A MCP server for The Movie Database API that enables AI assistants to search and retrieve movie, TV show, and person information.

drakonkatавтор: drakonkat

Compare Easy Redis Mcp with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории data