Skip to main content

Redis MCP Server - MCP protocol Redis database operations

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

redis_mcp_fan-0.1.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

redis_mcp_fan-0.1.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file redis_mcp_fan-0.1.0.tar.gz.

File metadata

  • Download URL: redis_mcp_fan-0.1.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for redis_mcp_fan-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9b9858d49990a3f41d6daabfa0c46f7086e0e8b7f1b9f645dcb03729fde942dc
MD5 f15ad674c5a9a2f58ebc310bd5aa8aa2
BLAKE2b-256 d7f0958c6d17c641e42168fdcfebb7de40638491da51bf2ce587557060dc5310

See more details on using hashes here.

File details

Details for the file redis_mcp_fan-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: redis_mcp_fan-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for redis_mcp_fan-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a0ace839a1c96f7e47ececa567a7e0ab1d6fa65f54692e9af1ce1fcc75851985
MD5 02aba97434084aed5d84ac986f15c7e7
BLAKE2b-256 33235534bb1643fe27f69a55a96bfd26e0cbd462c31fe6f122b75c2a6ff2b1c3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page