# api2mcp4j MCP server

> Auto-converts existing Spring Boot REST controllers into MCP tools without code changes using a zero-config starter.

- Repository: https://github.com/TheEterna/api2mcp4j
- Page: https://hostedmcp.org/servers/theeterna/api2mcp4j
- Transport: —
- Stars: 114
- License: Apache-2.0

## FAQ

### How do I expose my Spring Boot REST controllers as MCP tools?

Add the server2mcp-starter-webmvc dependency, enable the plugin with scope set to interface, and your @RestController beans are auto-registered as MCP tools.

### Does api2mcp4j require @Tool annotations on my methods?

No. In interface scope all controllers are auto-registered and no @Tool annotation is needed.

### Which MCP protocol version does api2mcp4j support?

It supports protocol 2026-07-28 with full coverage of tools, resources, prompts, tasks, subscriptions, and MRTR.

### Does api2mcp4j work with WebFlux reactive applications?

Yes, use the server2mcp-starter-webflux artifact instead of the WebMVC starter for the same protocol surface.
