Spring Boot AI Cloudflare R2 MCP Server

by lskun

1 stars
354 downloads
Not rated
GitHub

About

Spring Boot AI Cloudflare R2 MCP Server - 一个基于Spring Boot和Spring AI的Cloudflare R2对象存储MCP服务器实现

Details

Author
lskun
GitHub stars
1
Downloads
354
Categories
Cloud Service

- Complete Cloudflare R2 object storage operation support
- Integration with Spring AI’s MCP server
- Support for text, binary, and other file types
- Comprehensive test coverage for all operations
- Bucket and object CRUD management

Clone the repository, set environment variables R2_ACCESS_KEY_ID, R2_SECRET_ACCESS_KEY, and R2_ENDPOINT, then build with mvn clean package. Use mvn test -Dtest=R2ServiceClientTest to run integration tests.

Spring Boot AI Cloudflare R2 MCP Server

English | 简体中文

Introduction

Spring Boot AI Cloudflare R2 MCP Server is a Model Context Protocol (MCP) server implementation based on Spring Boot and Spring AI, providing integration with Cloudflare R2 object storage service.

Project Structure

src/main/java/com/lskun/mcp/
├── SpringBootAiCloudflareR2McpServerApplication.java (Application entry)
├── config/
│   └── McpConfiguration.java (MCP configuration class)
└── service/
    └── R2ServiceClient.java (R2 service client)

Features

- Complete Cloudflare R2 object storage operation support - Integration with Spring AI's MCP server - Support for various file types (text, binary, etc.) - Comprehensive test coverage - Easy configuration and deployment

Prerequisites

- JDK 17 or above - Maven 3.6 or above - Cloudflare R2 account and credentials

Configuration

Create or modify application.properties with your R2 credentials:
r2.access-key-id=${R2_ACCESS_KEY_ID}
r2.secret-access-key=${R2_SECRET_ACCESS_KEY}
r2.endpoint=${R2_ENDPOINT}

Quick Start

1. Clone the repository:
git clone https://github.com/lskun/spring-boot-ai-cloudflare-r2-mcp-server.git

2. Set up environment variables:

export R2_ACCESS_KEY_ID=your_access_key_id
export R2_SECRET_ACCESS_KEY=your_secret_access_key
export R2_ENDPOINT=your_r2_endpoint

3. Build the project:

mvn clean package

4. Run integration tests:
```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.