- Explore MCP Servers
- redis-mcp-server
Redis Mcp Server
What is Redis Mcp Server
redis-mcp-server is an implementation of a Redis Management and Control Protocol (MCP) server using Spring Boot and Spring AI, designed to facilitate Redis operations.
Use cases
Use cases include managing session data in web applications, caching strategies, real-time analytics, and any scenario where Redis is utilized for fast data storage and retrieval.
How to use
To use redis-mcp-server, ensure you have JDK 17 or higher, Maven 3.6 or higher, and a Redis server. Configure the Redis connection with the ‘redis.url’ system property and run the server using ‘java -jar target/redis-mcp-server-{version}.jar’.
Key features
Key features include Redis key-value operations (set, get, delete), pattern-based key listing, optional key expiration time, and SSE-based MCP implementation.
Where to use
redis-mcp-server can be used in applications that require efficient management and control of Redis databases, particularly in web applications and real-time data processing.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Redis Mcp Server
redis-mcp-server is an implementation of a Redis Management and Control Protocol (MCP) server using Spring Boot and Spring AI, designed to facilitate Redis operations.
Use cases
Use cases include managing session data in web applications, caching strategies, real-time analytics, and any scenario where Redis is utilized for fast data storage and retrieval.
How to use
To use redis-mcp-server, ensure you have JDK 17 or higher, Maven 3.6 or higher, and a Redis server. Configure the Redis connection with the ‘redis.url’ system property and run the server using ‘java -jar target/redis-mcp-server-{version}.jar’.
Key features
Key features include Redis key-value operations (set, get, delete), pattern-based key listing, optional key expiration time, and SSE-based MCP implementation.
Where to use
redis-mcp-server can be used in applications that require efficient management and control of Redis databases, particularly in web applications and real-time data processing.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
Redis MCP Server
A Redis Management and Control Protocol (MCP) server implementation using Spring Boot and Spring AI.
Description
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.
Prerequisites
- JDK 17 or higher
- Maven 3.6 or higher
- Redis server
Components
- Spring Boot
- Spring AI
- Spring Data Redis
- Lettuce Redis Client
- Jackson
- spring-ai-mcp-server-webmvc-spring-boot-starter
Features
- Redis key-value operations (set, get, delete)
- Pattern-based key listing
- Optional key expiration time
- SSE-based MCP implementation
Configuration
Server Configuration
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
Cursor Tool Configuration
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
}
}
Building
mvn clean package
Running
java -jar target/redis-mcp-server-{version}.jar
API Endpoints
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 pattern
License
This project is licensed under the MIT License.
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.










