java-mcp-server-generator
Installation
Summary
Generate production-ready MCP servers in Java with the official SDK, Maven or Gradle, and reactive streams.
- Scaffolds complete project structure with tools, resources, and prompts organized into separate handler classes
- Includes Maven and Gradle templates with MCP SDK, SLF4J logging, Project Reactor, and JUnit 5 dependencies
- Provides ready-to-use handler templates for tools, resources, and prompts with error handling and async Mono-based responses
- Generates test suite examples and Claude Desktop integration instructions for immediate deployment
SKILL.md
Java MCP Server Generator
Create a Model Context Protocol (MCP) server in Java with the official MCP Java SDK 2.x. SDK 2.0.x supports the MCP specification revision 2025-11-25 and the earlier revisions. SDK 3.x will add the revision 2026-07-28.
Workflow
Copy this checklist and track your progress:
- Step 1: Create the project.
- Step 2: Write the server.
- Step 3: Write the tests.
- Step 4: Build until the tests pass.
- Step 5: Configure the client.
Step 1: Create the project
Use Maven by default. If the project uses Gradle or the user asks for Gradle, read references/gradle.md. Use it for Step 1, Step 4, and Step 5.
Make this layout: