Skip to main content

mcp-redis-server

MCP server that exposes Redis API to AI models

PyPI Python Ruff

mcp-name: io.github.daedalus/mcp-redis-server

Install

pip install mcp-redis-server

Usage

from mcp_redis_server import mcp

# Run the server
mcp.run()

Or as a CLI tool:

mcp-redis-server

API

The server exposes the following tools:

Connection

  • redis_connect - Connect to Redis server
  • redis_disconnect - Disconnect from Redis server
  • redis_ping - Ping the Redis server

Strings

  • redis_get, redis_set, redis_mget, redis_mset, redis_del
  • redis_incr, redis_decr

Lists

  • redis_lpush, redis_rpush, redis_lrange, redis_llen

Sets

  • redis_sadd, redis_srem, redis_smembers, redis_sismember, redis_scard

Hashes

  • redis_hset, redis_hget, redis_hmset, redis_hmget, redis_hgetall
  • redis_hkeys, redis_hvals, redis_hdel, redis_hlen

Sorted Sets

  • redis_zadd, redis_zscore, redis_zrange, redis_zrevrange, redis_zcard

Keys

  • redis_exists, redis_expire, redis_ttl, redis_type, redis_scan

Server

  • redis_dbsize, redis_flushdb, redis_flushall, redis_info
  • redis_config_get, redis_config_set

Configuration

Environment variables:

  • REDIS_HOST - Redis host (default: localhost)
  • REDIS_PORT - Redis port (default: 6379)
  • REDIS_PASSWORD - Redis password (optional)
  • REDIS_DB - Redis database number (default: 0)
  • REDIS_SSL - Enable SSL (default: false)

Development

git clone https://github.com/daedalus/mcp-redis-server.git
cd mcp-redis-server
pip install -e ".[test]"

# run tests
pytest

# format
ruff format src/ tests/

# lint
ruff check src/ tests/

# type check
mypy src/

Usage

from mcp_redis import mcp

# Run the server
mcp.run()

Or as a CLI tool:

mcp-redis

API

The server exposes the following tools:

Connection

  • redis_connect - Connect to Redis server
  • redis_disconnect - Disconnect from Redis server
  • redis_ping - Ping the Redis server

Strings

  • redis_get, redis_set, redis_mget, redis_mset, redis_del
  • redis_incr, redis_decr

Lists

  • redis_lpush, redis_rpush, redis_lrange, redis_llen

Sets

  • redis_sadd, redis_srem, redis_smembers, redis_sismember, redis_scard

Hashes

  • redis_hset, redis_hget, redis_hmset, redis_hmget, redis_hgetall
  • redis_hkeys, redis_hvals, redis_hdel, redis_hlen

Sorted Sets

  • redis_zadd, redis_zscore, redis_zrange, redis_zrevrange, redis_zcard

Keys

  • redis_exists, redis_expire, redis_ttl, redis_type, redis_scan

Server

  • redis_dbsize, redis_flushdb, redis_flushall, redis_info
  • redis_config_get, redis_config_set

Configuration

Environment variables:

  • REDIS_HOST - Redis host (default: localhost)
  • REDIS_PORT - Redis port (default: 6379)
  • REDIS_PASSWORD - Redis password (optional)
  • REDIS_DB - Redis database number (default: 0)
  • REDIS_SSL - Enable SSL (default: false)

Development

git clone https://github.com/daedalus/mcp-redis.git
cd mcp-redis
pip install -e ".[test]"

# run tests
pytest

# format
ruff format src/ tests/

# lint
ruff check src/ tests/

# type check
mypy src/

Metadata

Release files for mcp-redis-server 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 mcp-redis-server 0.1.0
File Size Uploaded
mcp_redis_server-0.1.0.tar.gz 6.4 kB Details

Built distribution (wheel)

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

Total release size: 13.6 kB

Release files / mcp_redis_server-0.1.0.tar.gz

Download URL mcp_redis_server-0.1.0.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e3a67ea3766657795da53988e260f8ea4d420c54b759d0c9530d0613f800a13a
BLAKE2b-256 checksum
How to use checksums
23eca82630bf0d48270899a2f439662491697d0496eee9d3a8af624277944cd8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 31, 2026.

Transparency log

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

Download URL mcp_redis_server-0.1.0-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0f8fc566e89a17420415fd0caf4b1f3ea9007ebbc4c75c831ccec78eaae8f580
BLAKE2b-256 checksum
How to use checksums
c4e7f341e5bbea2cb342772d5a3d6ff5a38bc0c962ae6d6bee5f0e86230e1c9a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 31, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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