Skip to main content

MCP server that exposes Redis API to AI models

Project description

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/

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

mcp_redis_server-0.1.0.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

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

mcp_redis_server-0.1.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcp_redis_server-0.1.0.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mcp_redis_server-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e3a67ea3766657795da53988e260f8ea4d420c54b759d0c9530d0613f800a13a
MD5 824747d4aa649a30421d3b258d6b5e82
BLAKE2b-256 23eca82630bf0d48270899a2f439662491697d0496eee9d3a8af624277944cd8

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_redis_server-0.1.0.tar.gz:

Publisher: pypi-publish.yml on daedalus/mcp-redis-server

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for mcp_redis_server-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0f8fc566e89a17420415fd0caf4b1f3ea9007ebbc4c75c831ccec78eaae8f580
MD5 614c57ad3e8cd055846d126d42fc4d1d
BLAKE2b-256 c4e7f341e5bbea2cb342772d5a3d6ff5a38bc0c962ae6d6bee5f0e86230e1c9a

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_redis_server-0.1.0-py3-none-any.whl:

Publisher: pypi-publish.yml on daedalus/mcp-redis-server

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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