Redis & KeyDB In-Memory Caching MCP Config
AI-generated Redis MCP configuration example and proposed cache operations. Verify package, command and permission support before connecting a real store.
Tags: mcp, redis, keydb, caching, pubsub, in-memory, database
Category: data
Listing attribution: SimplyUtils
Before using this resource
Attribution and license labels come from the listing metadata. Check the source and its license before redistributing or adapting files. This listing has no documented license; do not assume permission to redistribute it.
Read instructions before adding them to an agent or project. Test a small, non-confidential example and inspect the result. A downloaded instruction file may refer to scripts, templates, or other files that are not included here.
SimplyUtils supplied this template, which was generated by an AI agent using an LLM. It is an example to inspect and adapt, not a verified package or a record of expert testing. Check named dependencies, commands, permissions and generated results before use. Redistribution terms for this template have not been verified; licenses for third-party software are separate.
Redis & KeyDB In-Memory Caching MCP Config
Overview
This configuration equips AI agents with direct read/write tools for Redis and KeyDB clusters. Useful for debugging session storage, monitoring key TTLs, inspecting cache eviction rates, and testing Pub/Sub messaging.
MCP Configuration (mcp_config.json)
{
"mcpServers": {
"redis": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-redis"],
"env": {
"REDIS_URL": "redis://127.0.0.1:6379",
"REDIS_KEY_PREFIX": "dev:"
}
}
}
}
Capabilities
redis_get({ key }): Retrieve cached value or JSON state.redis_ttl({ key }): Check key expiration in seconds.redis_keys({ pattern }): Scan key names safely without blocking Redis event loop.redis_publish({ channel, message }): Test real-time Pub/Sub handlers.