github avatar

Java Mcp Server Generator

The java-mcp-server-generator skill generates complete, production-ready Model Context Protocol server projects in Java using the official MCP Java SDK with Maven or Gradle build configuration. It targets Java developers building MCP servers and solves the problem of setting up a properly structured Java MCP project from scratch by providing templates for server configuration, tool/resource/prompt handlers, and all necessary dependencies. The skill includes Maven and Gradle configuration examples, standard project structure with separate handler classes, and optional Spring Boot integration for developers who need it.

skills.sh installs
8.8K
GitHub stars
41K
last updated
Aug 21, 2026

Install

$ npx -y skills add github/awesome-copilot --skill java-mcp-server-generator --agent claude-code

Installs into .claude/skills of the current project.

Files

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:

project-name/
├── pom.xml
└── src/
    ├── main/java/com/example/McpServerApp.java
    └── test/java/com/example/McpServerAppTest.java

Write pom.xml:

Sponsors

Details

Repository
github.com/github/awesome-copilot
Categories
Backend & APIs, Git & Pull Requests, AI & Agent Building, Automation & Workflows, Java & JVM

More from github/awesome-copilot

All 318
1okx avatarokx-onchain-gatewayokx/onchainos-skillsOnchain transaction gateway across XLayer, Solana, Ethereum, Base, BSC, Arbitrum, Polygon and 20+ chains. Invoke to broadcast a pre-signed / raw / already-signe8.8Kskills.sh installs
2github avatartypespec-api-operationsgithub/awesome-copilotAdd GET, POST, PATCH, and DELETE operations to a TypeSpec API plugin with proper routing, parameters, and adaptive cards8.8Kskills.sh installs
3github avatarswift-mcp-server-generatorgithub/awesome-copilotGenerate a complete Model Context Protocol server project in Swift using the official MCP Swift SDK package.8.8Kskills.sh installs
4github avatarkotlin-mcp-server-generatorgithub/awesome-copilotGenerate a complete Kotlin MCP server project with proper structure, dependencies, and implementation using the official io.modelcontextprotocol:kotlin-sdk libr8.7Kskills.sh installs
5aahl avataredge-ttsaahl/skillsText-to-speech conversion using `uvx edge-tts` for generating audio from text. Use when (1) User requests audio/voice output with the "tts" trigger or keyword. 8.6Kskills.sh installs
6github avatarruby-mcp-server-generatorgithub/awesome-copilotGenerate a complete Model Context Protocol server project in Ruby using the official MCP Ruby SDK gem.8.6Kskills.sh installs