Redis

Redis

MCP server enabling Redis-style caching via MCP with Redis/MemoryDB backends.

25
Stars
4
Forks
0
Releases

Overview

This MCP server provides a modular framework to interact with Redis-like backends (e.g., Redis and AWS MemoryDB) through the Model Context Protocol. It exposes resources to observe the Redis connection and server information and to list keys by pattern. It ships a set of tools for common data operations: basic operations (get_value, set_value with optional expiry, delete_key, increment), list operations (list_push, list_range), hash operations (hash_set, hash_get), set operations (set_add, set_members), and Pub/Sub (publish_message). The architecture comprises a Redis connection manager, resource implementations (status and keys), and tool implementations for various data structures. The server returns structured responses, includes error handling, and auto-reconnects if the Redis connection drops. It can be tested via the MCP Inspector and can be installed in Claude Desktop. Run with python src/server.py and customize connection details via .env. The README provides example interactions showing status checks and basic set/get workflows. It is designed to interact with caching backends for in-memory and key-value storage use-cases, and references Redis/AWS MemoryDB in its original description.

Details

Owner
prajwalnayak7
Language
Python
License
MIT License
Updated
2025-12-07

Features

Redis Connection Status Resource

Provides the current connection status to the Redis backend via the redis://status endpoint.

Redis Information Resource

Exposes information about the Redis server via the redis://info endpoint.

Key Pattern Search Resource

Lists keys matching a given pattern through redis://keys/{pattern}.

Basic Operations

Get, set (with optional expiry), delete, and increment values.

List Operations

Push values to lists and read ranges (list_push, list_range).

Hash Operations

Set and retrieve hash fields (hash_set, hash_get).

Set Operations

Add to a set and retrieve set members (set_add, set_members).

Pub/Sub Operations

Publish messages to channels (publish_message).

Audience

DevelopersInteract with Redis-style caches and in-memory key-value stores via MCP for caching and data-management workflows.

Tags

RedisAWS MemoryDBCachingIn-MemoryKey-ValueMCPPub/SubListsHashesSets