Redis
Summary
This Redis MCP server, developed by gongrzhe, provides a standardized interface for interacting with Redis databases through the Model Context Protocol. Built with TypeScript and leveraging the MCP SDK, it offers tools for common Redis operations like setting/getting key-value pairs, deleting keys, and listing keys matching a pattern. The server implements connection management and error handling, supporting both local and remote Redis instances. By abstracting Redis operations into a consistent MCP format, it enables AI systems to easily interact with Redis data stores. This implementation is particularly valuable for applications requiring fast, in-memory data access and caching, facilitating use cases such as session management, real-time analytics, and distributed task queues.
Available Actions(4)
set
Set a Redis key-value pair with optional expiration. Input: key (string): Redis key, value (string): Value to store, expireSeconds (number, optional): Expiration time in seconds.
get
Get value by key from Redis. Input: key (string): Redis key to retrieve.
delete
Delete one or more keys from Redis. Input: key (string | string[]): Key or array of keys to delete.
list
List Redis keys matching a pattern. Input: pattern (string, optional): Pattern to match keys (default: *).
社区评论
暂无评论. 成为第一个评论的人!
登录以参与讨论