MCP server that exposes Redis API to AI models
Project description
mcp-redis-server
MCP server that exposes Redis API to AI models
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 serverredis_disconnect- Disconnect from Redis serverredis_ping- Ping the Redis server
Strings
redis_get,redis_set,redis_mget,redis_mset,redis_delredis_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_hgetallredis_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_inforedis_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 serverredis_disconnect- Disconnect from Redis serverredis_ping- Ping the Redis server
Strings
redis_get,redis_set,redis_mget,redis_mset,redis_delredis_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_hgetallredis_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_inforedis_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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3a67ea3766657795da53988e260f8ea4d420c54b759d0c9530d0613f800a13a
|
|
| MD5 |
824747d4aa649a30421d3b258d6b5e82
|
|
| BLAKE2b-256 |
23eca82630bf0d48270899a2f439662491697d0496eee9d3a8af624277944cd8
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_redis_server-0.1.0.tar.gz -
Subject digest:
e3a67ea3766657795da53988e260f8ea4d420c54b759d0c9530d0613f800a13a - Sigstore transparency entry: 1202674588
- Sigstore integration time:
-
Permalink:
daedalus/mcp-redis-server@a3b3a3c919f86a016e7a0fe1b60049c27055774b -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/daedalus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@a3b3a3c919f86a016e7a0fe1b60049c27055774b -
Trigger Event:
release
-
Statement type:
File details
Details for the file mcp_redis_server-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mcp_redis_server-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f8fc566e89a17420415fd0caf4b1f3ea9007ebbc4c75c831ccec78eaae8f580
|
|
| MD5 |
614c57ad3e8cd055846d126d42fc4d1d
|
|
| BLAKE2b-256 |
c4e7f341e5bbea2cb342772d5a3d6ff5a38bc0c962ae6d6bee5f0e86230e1c9a
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_redis_server-0.1.0-py3-none-any.whl -
Subject digest:
0f8fc566e89a17420415fd0caf4b1f3ea9007ebbc4c75c831ccec78eaae8f580 - Sigstore transparency entry: 1202674592
- Sigstore integration time:
-
Permalink:
daedalus/mcp-redis-server@a3b3a3c919f86a016e7a0fe1b60049c27055774b -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/daedalus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@a3b3a3c919f86a016e7a0fe1b60049c27055774b -
Trigger Event:
release
-
Statement type: