{"repo":"addozhang/spring-rest-to-mcp","free":true,"listed":false,"github":"https://github.com/addozhang/spring-rest-to-mcp","clone":"git clone https://github.com/addozhang/spring-rest-to-mcp.git","description":"Convert Spring REST API to MCP Server with OpenRewrite","language":"Java","stars":40,"topics":[],"license":"Apache-2.0","category":"mcp-servers","readme_excerpt":"Spring Web to MCP Converter 🚀 An OpenRewrite recipe collection that automatically converts Spring Web REST APIs to Spring AI Model Context Protocol (MCP) server tools. 📋 Introduction This project provides a set of OpenRewrite recipes that help you migrate traditional Spring Web REST APIs to Spring AI's Model Context Protocol (MCP) server tools. The transformation includes: 1. 🔄 Converting Spring Web annotations to Spring AI MCP @Tool annotations 2. 🔧 Adding necessary MCP configuration and components 3. 📦 Updating Maven dependencies to include Spring AI MCP server components The recipes automatically extract documentation from your existing REST controllers to create properly documented MCP tools, making your APIs accessible to AI agents through the Model Context Protocol. For more details about Spring AI's implementation of MCP, see the Spring AI MCP documentation. 🛠️ How to Build and Install Prerequisites - Java 17 or higher - Maven 3.6+ Prerequisites for Target REST API Projects To successfully migrate your Spring Web REST API to MCP, your project should: - Use Spring Boot 3.2+ (3.2.0 or newer) - Use Spring Web MVC for REST controllers - Use Maven build tool The recipe adds Spring AI MCP dependencies (version 1.0.0-SNAPSHOT or newer) to your project automatically. Build Steps 1. Clone this repository: 2. Build the project: This will compile the code and install the artifact to your local Maven repository. 🔥 How to Use To apply the recipes to your Spring Web project, ","default_branch":null,"files":null,"tree":[],"storefront":"/r/addozhang","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/addozhang/spring-rest-to-mcp/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}