Skip to main content

Redis MCP Server

通过 MCP (Model Context Protocol) 协议操作 Redis 数据库的服务器,支持所有常用 Redis 数据类型。

功能

  • 连接管理: 自动连接 / 手动指定连接参数
  • String: GET, SET, DELETE, INCR, DECR, MGET, MSET
  • Hash: HGET, HSET, HGETALL, HDEL, HKEYS, HVALS, HLEN, HEXISTS
  • List: LPUSH, RPUSH, LRANGE, LPOP, RPOP, LLEN
  • Set: SADD, SMEMBERS, SREM, SCARD, SISMEMBER
  • Sorted Set: ZADD, ZRANGE, ZRANGEBYSCORE, ZREM, ZCARD, ZSCORE
  • 键管理: KEYS, EXISTS, EXPIRE, TTL, TYPE, RENAME
  • 服务器: INFO, DBSIZE

安装

pip install redis-mcp

使用

环境变量配置

export REDIS_HOST=127.0.0.1
export REDIS_PORT=6379
export REDIS_DB=0
export REDIS_PASSWORD=your_password  # 可选

命令行启动

redis-mcp
# 或
python -m redis_mcp

Cherry Studio 配置

{
  "mcpServers": {
    "redis-mcp": {
      "command": "uvx",
      "args": ["redis-mcp"],
      "env": {
        "REDIS_HOST": "127.0.0.1",
        "REDIS_PORT": "6379",
        "REDIS_DB": "0"
      }
    }
  }
}

Claude Desktop 配置

{
  "mcpServers": {
    "redis-mcp": {
      "command": "uvx",
      "args": ["redis-mcp"],
      "env": {
        "REDIS_HOST": "127.0.0.1",
        "REDIS_PORT": "6379"
      }
    }
  }
}

开发

git clone https://github.com/yourname/redis-mcp.git
cd redis-mcp
uv sync
uv run python -m redis_mcp

License

MIT

Metadata

Release files for redis-mcp-fan 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for redis-mcp-fan 0.1.0
File Size Uploaded Provenance
redis_mcp_fan-0.1.0.tar.gz 4.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for redis-mcp-fan 0.1.0
File Interpreter ABI Platform
redis_mcp_fan-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.9 kB

Release files / redis_mcp_fan-0.1.0.tar.gz

Download URL redis_mcp_fan-0.1.0.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
9b9858d49990a3f41d6daabfa0c46f7086e0e8b7f1b9f645dcb03729fde942dc
BLAKE2b-256 checksum
How to use checksums
d7f0958c6d17c641e42168fdcfebb7de40638491da51bf2ce587557060dc5310
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / redis_mcp_fan-0.1.0-py3-none-any.whl

Download URL redis_mcp_fan-0.1.0-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a0ace839a1c96f7e47ececa567a7e0ab1d6fa65f54692e9af1ce1fcc75851985
BLAKE2b-256 checksum
How to use checksums
33235534bb1643fe27f69a55a96bfd26e0cbd462c31fe6f122b75c2a6ff2b1c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Security for redis-mcp-fan 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page