Redis Management
STDIOManagement and Control Protocol server for Redis operations using Spring Boot and Spring AI.
Management and Control Protocol server for Redis operations using Spring Boot and Spring AI.
A Redis Management and Control Protocol (MCP) server implementation using Spring Boot and Spring AI.
This project implements a Redis MCP server that provides a set of tools for Redis operations. It uses spring-ai-mcp-server-webmvc-spring-boot-starter
to implement MCP Server-Sent Events (SSE) functionality.
The Redis connection can be configured using the redis.url
system property. Default value is redis://localhost:6379
.
Example:
java -Dredis.url=redis://your-redis-host:6379 -jar your-app.jar
To use this MCP server in Cursor, add the following configuration to your Cursor settings:
{ "redis-mcp-server": { "url": "http://localhost:8080/sse", "enabled": true } }
mvn clean package
java -jar target/redis-mcp-server-{version}.jar
The server exposes the following MCP tools:
set
: Set a Redis key-value pair with optional expiration timeget
: Get value from Redis by keydelete
: Delete one or multiple keys from Redislist
: List Redis keys matching a patternThis project is licensed under the MIT License.