Spring MCP Bridge

Spring MCP Bridge

spring-mcp-bridge•bybrunosantoslab

A tool that scans Spring Boot projects and generates a ready-to-use MCP server exposing their REST endpoints as MCP tools.

License: MIT•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Scans Spring Boot projects for REST controllers and extracts endpoint metadata.
  • •Converts Java types to JSON Schema types for MCP compatibility.
  • •Generates a FastAPI application that maps MCP calls to Spring REST calls.
  • •Routes requests from the MCP client to the Spring Boot application.

BEST FOR

  • •Developers wanting to let AI assistants like Claude or Cursor interact with existing Spring Boot APIs.
  • •Projects seeking zero-configuration exposure of existing REST endpoints without modifying Spring Boot code.

ABOUT SPRING-MCP-BRIDGE

Spring MCP Bridge is cataloged as an MCP server attributed to brunosantoslab. A tool that scans Spring Boot projects and generates a ready-to-use MCP server exposing their REST endpoints as MCP tools. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Spring MCP Bridge are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does the generated server support authentication to the Spring Boot API?

No; authentication is not currently included, and handler code must be modified to add headers or tokens.

What Spring Boot features can be converted?

REST controllers, HTTP method mappings, request parameters, path variables, request bodies, and Java models and DTOs.

上游原版 README

在 GitHub 查看同一版本原文

README.md · d1513cc1b903 · 采集于 2026-11-13 10:33:28 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Spring MCP Bridge

License Python Spring

Spring MCP Bridge is a tool that automatically converts REST endpoints from Spring Boot applications into an MCP (Message Conversation Protocol) server, allowing AI assistants like Claude, Cursor, and other MCP-compatible tools to directly interact with your APIs.

*It does not currently include authentication. If your Spring Boot API requires authentication, you will need to modify the handler code to include the appropriate headers or tokens.

📖 Overview

Integrating existing APIs with AI assistants typically requires manual coding or complex configuration. Spring MCP Bridge eliminates this complexity by automatically scanning your Spring Boot project and generating a ready-to-use MCP server.

✨ Features

  • Automatic Scanning: Discovers all REST endpoints (@RestController, @GetMapping, etc.)
  • Zero Configuration: No modifications needed to existing Spring Boot code
  • Model Preservation: Maintains request and response models as MCP tools
  • Javadoc Extraction: Uses existing documentation to enhance MCP tool descriptions
  • Complete Documentation: Generates README and clear instructions for use

🚀 Installation

# Clone the repository
git clone https://github.com/brunosantos/spring-mcp-bridge.git

# Enter the directory
cd spring-mcp-bridge

🛠️ Usage

  1. Scan your Spring Boot project:
python spring_boot_mcp_converter.py --project /path/to/spring-project --output ./mcp_server --name MyAPI
  1. Run the generated MCP server:
cd mcp_server
pip install -r requirements.txt
python main.py
  1. Connect via MCP client:
    • Configure your MCP client (Claude, Cursor, etc.) to use http://localhost:8000
    • The MCP schema will be available at http://localhost:8000/.well-known/mcp-schema.json

📋 Arguments

ArgumentDescriptionDefault
--projectPath to Spring Boot project(required)
--outputOutput directory./mcp_server
--nameApplication nameSpringAPI
--debugEnable debug loggingFalse

💻 Example

python spring_mcp_bridge.py --project ~/projects/my-spring-api --output ./mcp_server --name MyAPI

The tool will:

  1. Scan the Spring Boot project for REST controllers
  2. Identify model types, parameters, and return types
  3. Generate a fully functional MCP server in Python/FastAPI
  4. Create a compatible MCP schema that describes all endpoints

🔄 How It Works

  1. Scanning: Analyzes Java source code to extract metadata from REST endpoints
  2. Conversion: Converts Java types to JSON Schema types for MCP compatibility
  3. Generation: Creates a FastAPI application that maps MCP calls to Spring REST calls
  4. Forwarding: Routes requests from MCP client to the Spring Boot application

🔍 Spring Boot Features Supported

  • REST Controllers (@RestController, @Controller)
  • HTTP Methods (@GetMapping, @PostMapping, @PutMapping, @DeleteMapping, @PatchMapping)
  • Request Parameters (@RequestParam)
  • Path Variables (@PathVariable)
  • Request Bodies (@RequestBody)
  • Java Models and DTOs

⚙️ Configuration

The generated MCP server can be configured by editing the main.py file:

# The Spring Boot base URL - modify this to match your target API
SPRING_BASE_URL = "http://localhost:8080"

🧪 Testing

To test the MCP server:

  1. Ensure your Spring Boot application is running
  2. Start the MCP server
  3. Visit http://localhost:8000/docs to see the FastAPI documentation
  4. Check the MCP schema at http://localhost:8000/.well-known/mcp-schema.json
  5. Connect with an MCP client like Claude

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

👨‍💻 Author

Bruno Santos

🙏 Acknowledgments

  • Inspired by FastAPI-MCP and the growing ecosystem of MCP-compatible tools
  • Thanks to the Spring Boot and FastAPI communities

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Spring MCP Bridge from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/spring-mcp-bridge)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools