Redis MCP Server

Redis MCP Server

By yyue9527 GitHub

A Redis Management and Control Protocol (MCP) server implementation using Spring Boot and Spring AI

redis mcp
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.

How to use Redis MCP Server?

To use the Redis MCP Server, configure the Redis connection using the redis.url system property and run the server using the provided commands. You can also integrate it with Cursor by adding specific configuration settings.

Key features of Redis MCP Server?

  • Perform Redis key-value operations (set, get, delete)
  • Pattern-based key listing
  • Optional key expiration time
  • SSE-based MCP implementation for real-time updates

Use cases of Redis MCP Server?

  1. Managing Redis key-value pairs in applications.
  2. Monitoring and controlling Redis operations in real-time.
  3. Integrating with other tools that require Redis data management.

FAQ from Redis MCP Server?

  • What are the prerequisites for running Redis MCP Server?

You need JDK 17 or higher, Maven 3.6 or higher, and a running Redis server.

  • How do I configure the Redis connection?

You can configure it using the redis.url system property when starting the server.

  • Is there a way to list keys in Redis?

Yes, the server provides a list endpoint to list keys matching a specific pattern.

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 time
  • get: Get value from Redis by key
  • delete: Delete one or multiple keys from Redis
  • list: List Redis keys matching a pattern

License

This project is licensed under the MIT License.

No tools information available.
School MCP
School MCP by 54yyyu

A Model Context Protocol (MCP) server for academic tools, integrating with Canvas and Gradescope platforms.

canvas mcp
View Details
repo-template
repo-template by loonghao

A Model Context Protocol (MCP) server for Python package intelligence, providing structured queries for PyPI packages and GitHub repositories. Features include dependency analysis, version tracking, and package metadata retrieval for LLM interactions.

-

google-calendar mcp
View Details
strava-mcp
strava-mcp by jeremysilva1098

MCP server for strava

strava mcp
View Details

Model Context Protocol (MCP) server implementation for Rhinoceros/Grasshopper integration, enabling AI models to interact with parametric design tools

grasshopper mcp
View Details

MCP configuration to connect AI agent to a Linux machine.

security mcp
View Details

AI assistant built with Streamlit, NVIDIA NIM (LLaMa 3.3:70B) / Ollama, and Model Control Protocol (MCP).

python mcp
View Details