Spring Boot AI Cloudflare R2 MCP Server
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
Jump to
- 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 deploymentPrerequisites
- JDK 17 or above - Maven 3.6 or above - Cloudflare R2 account and credentialsConfiguration
Create or modifyapplication.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
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.

