Spring Boot AI Cloudflare R2 MCP Server
@lskun
Spring Boot AI Cloudflare R2 MCP Server - 一个基于Spring Boot和Spring AI的Cloudflare R2对象存储MCP服务器实现
Overview
What is Spring Boot AI Cloudflare R2 MCP Server?
Spring Boot AI Cloudflare R2 MCP Server is a Model Context Protocol (MCP) server implementation built with Spring Boot and Spring AI that provides integration with Cloudflare R2 object storage service. It is intended for developers who need to manage Cloudflare R2 buckets and objects through an MCP-compatible interface.
How to use Spring Boot AI Cloudflare R2 MCP Server?
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.
Key features of Spring Boot AI Cloudflare R2 MCP Server
- 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
Use cases of Spring Boot AI Cloudflare R2 MCP Server
- Listing, creating, and deleting R2 buckets
- Uploading and downloading objects to/from R2 buckets
- Listing objects and retrieving object metadata
- Deleting objects from a bucket
- Automating R2 storage tasks via MCP client interactions
FAQ from Spring Boot AI Cloudflare R2 MCP Server
What are the prerequisites for using this server?
JDK 17 or above, Maven 3.6 or above, and a Cloudflare R2 account with access credentials.
How do I configure the R2 credentials?
Set the environment variables R2_ACCESS_KEY_ID, R2_SECRET_ACCESS_KEY, and R2_ENDPOINT, or provide them in application.properties.
What operations does the server support?
It supports listing, creating, and deleting buckets; uploading, downloading, listing, and deleting objects; and retrieving object metadata.
Does the server include tests?
Yes, comprehensive integration tests for all R2 operations are provided in R2ServiceClientTest.
What is the project license?
The project is licensed under the MIT License.