mcp-redis-server
Provides tools for interacting with Redis, enabling operations on strings, lists, sets, hashes, sorted sets, keys, and server management.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-redis-serverset key 'session:42' to 'token123'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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-serverRelated MCP server: mcp-llm
Usage
from mcp_redis_server import mcp
# Run the server
mcp.run()Or as a CLI tool:
mcp-redis-serverAPI
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-redisAPI
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/This server cannot be installed
Maintenance
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/daedalus/mcp-redis-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server