A Spring Boot library for exposing Java methods as Model Context Protocol (MCP) tools over HTTP. Annotate any Spring bean method with @AiTool and it becomes callable by an LLM — no manual registration or schema authoring required.
| Module | Description |
|---|---|
| mcp-server-core | A library for importing into any Spring Boot service to embed an MCP endpoint. |
| mcp-server-sample | Reference implementation and integration test. |
Requirements: Java 21, Maven
git clone https://github.com/emeraldhieu/mcp-server.git
cd mcp-server
mvn spring-boot:run -pl mcp-server-sampleSee mcp-server-sample for curl examples and Claude Code wiring.
mvn test