MCP.so
登录

Server2MCP Spring Boot Starter MCP Server

@TheEterna

基本信息

分类

开发工具

许可证

Apache-2.0

传输方式

stdio

作者

TheEterna

关于 Server2MCP Spring Boot Starter MCP Server

Spring Boot Starter: Auto-convert existing REST APIs (@RestController) to MCP Server with zero/low-code. Expose controllers as MCP Tools instantly.

Server2MCP Spring Boot Starter MCP Server 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

Server2MCP Spring Boot Starter MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Server2MCP Spring Boot Starter?

Server2MCP Spring Boot Starter automatically scans existing Spring Boot @RestController and @Service beans and exposes them as MCP (Model Context Protocol) tools with minimal configuration. It combines parsers from Swagger/OpenAPI, Javadoc, Spring MVC metadata, Jackson, and Spring AI to turn REST APIs into AI-callable tools without rewriting business logic. It is designed for developers who want to add MCP support to existing Spring Boot projects with zero-to-low code changes.

How to use Server2MCP Spring Boot Starter?

Add the dependency (build from source — not yet on Maven Central), enable it in application.yml with plugin.mcp.enabled: true, configure parser order and scan scope, and optionally set up Javadoc parsing by packaging source files. Start your application; the MCP endpoint is ready at /mcp by default and can be tested with any MCP client like Cursor or Continue.

Key features of Server2MCP Spring Boot Starter

  • Non-intrusive — no need to change existing business code
  • Auto-discovery — scans controllers and services to register methods as MCP tools
  • Multi-parser support — combines descriptions from Swagger, Javadoc, Spring MVC, and more
  • Custom annotations — @ToolScan, @ResourceScan, @PromptScan for fine-grained control
  • Isolated MCP tool system — uses its own McpTool annotation independent of Spring AI
  • Full MCP SDK compatibility — supports callbacks, resources, and prompts

Use cases of Server2MCP Spring Boot Starter

  • Expose internal management system APIs to AI agents quickly
  • Build multi-agent systems by turning microservices into MCP tools
  • Prototype AI features on top of production REST services
  • Avoid duplicating logic between REST and MCP endpoints

常见问题

1

How does this differ from manually adding @Tool annotations?

It automatically scans existing REST controllers, requiring only configuration changes instead of annotating every method. The comparison table shows minimal code changes compared to medium-to-high for alternatives.

2

What are the runtime requirements?

Java 17 or later and Spring Boot 3.x.

3

Is the project available on Maven Central?

Not yet — you must build from source by cloning the repository and running `mvn clean install`.

4

How do I enable Javadoc parsing in production?

Package source files using the `maven-resources-plugin` to copy `.java` files into the build output directory, since bytecode does not contain Javadoc comments.

5

What is the default MCP endpoint?

The MCP endpoint is available at `/mcp` by default and can be configured via `spring.ai.mcp.*` properties.

评论

开发工具 分类下的更多 MCP 服务器