MCP server that exposes Redis API to AI models
MCP server that exposes Redis API to AI models
mcp-name: io.github.daedalus/mcp-redis-server
pip install mcp-redis-server
from mcp_redis_server import mcp
# Run the server
mcp.run()
Or as a CLI tool:
mcp-redis-server
The server exposes the following tools:
redis_connect - Connect to Redis serverredis_disconnect - Disconnect from Redis serverredis_ping - Ping the Redis serverredis_get, redis_set, redis_mget, redis_mset, redis_delredis_incr, redis_decrredis_lpush, redis_rpush, redis_lrange, redis_llenredis_sadd, redis_srem, redis_smembers, redis_sismember, redis_scardredis_hset, redis_hget, redis_hmset, redis_hmget, redis_hgetallredis_hkeys, redis_hvals, redis_hdel, redis_hlenredis_zadd, redis_zscore, redis_zrange, redis_zrevrange, redis_zcardredis_exists, redis_expire, redis_ttl, redis_type, redis_scanredis_dbsize, redis_flushdb, redis_flushall, redis_inforedis_config_get, redis_config_setEnvironment 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)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/
from mcp_redis import mcp
# Run the server
mcp.run()
Or as a CLI tool:
mcp-redis
The server exposes the following tools:
redis_connect - Connect to Redis serverredis_disconnect - Disconnect from Redis serverredis_ping - Ping the Redis serverredis_get, redis_set, redis_mget, redis_mset, redis_delredis_incr, redis_decrredis_lpush, redis_rpush, redis_lrange, redis_llenredis_sadd, redis_srem, redis_smembers, redis_sismember, redis_scardredis_hset, redis_hget, redis_hmset, redis_hmget, redis_hgetallredis_hkeys, redis_hvals, redis_hdel, redis_hlenredis_zadd, redis_zscore, redis_zrange, redis_zrevrange, redis_zcardredis_exists, redis_expire, redis_ttl, redis_type, redis_scanredis_dbsize, redis_flushdb, redis_flushall, redis_inforedis_config_get, redis_config_setEnvironment 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)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/
Source-derived launch command. Check the maintainer’s required arguments and credentials before running:
uvx mcp-redis-serverMerge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.
{
"mcpServers": {
"io-github-daedalus-mcp-redis-server": {
"command": "uvx",
"args": [
"mcp-redis-server"
]
}
}
}Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.
Claude Desktop setup referencemcp-redis-serverpypiio.github.daedalus/mcp-redis-server works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.
~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.~/.cursor/mcp.jsonRestart Cursor for changes to take effect..vscode/mcp.jsonReload VS Code window for changes to take effect.~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect..mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.