Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

java-mcp-server-generator

Skill by github

Creates a Model Context Protocol (MCP) server in Java or Spring Boot using the MCP Java SDK 2.x. It is for developers who want AI agents such as GitHub Copilot or Claude to use Java code, an API, or a database.

  • Score 93
  • 42k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install java-mcp-server-generator

Built from the published package, never by AI.

git clone --depth 1 https://github.com/github/awesome-copilot /tmp/awesome-copilot && mkdir -p ~/.claude/skills && cp -r /tmp/awesome-copilot/skills/java-mcp-server-generator ~/.claude/skills/java-mcp-server-generator

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install java-mcp-server-generator in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The java-mcp-server-generator skill helps an AI assistant build a Model Context Protocol (MCP) server in Java. It creates a Maven project by default, or a Gradle project when asked, that uses the official MCP Java SDK 2.x. The skill writes the tools the user requests, each with a JSON Schema input and a description, and adds JUnit tests that start the server and call it over stdio. It then runs mvn verify until the build passes.

The skill also writes client configuration for VS Code and Claude Desktop. It is meant for users who want AI agents to use Java code, an API, or a database. It does not cover Quarkus or Quarkiverse MCP servers, MCP clients, or servers written in other languages.

Written from the project's SKILL.md and checked against it.

What it can do

  • Project setupCreates a Maven or Gradle project with the MCP Java SDK 2.x and JUnit dependencies.
  • Tool server codeWrites an MCP server in Java with one method for each tool the user asks for.
  • Structured outputAdds an output schema and structured content for tools that clients must read as data.
  • Tool annotationsMarks tools as read-only or destructive using annotation hints.
  • JUnit testsWrites tests that start the server as a subprocess and call each tool over stdio.
  • Build checkRuns mvn verify and fixes failing tests until the build succeeds.
  • Client configurationWrites a .vscode/mcp.json file and a Claude Desktop config entry for the server JAR.
  • HTTP server referenceProvides a separate reference for remote, HTTP, or Spring Boot servers when requested.

What you need

  • JDK 17 or later
  • Maven 3.9 or later, or Gradle 9 or later
  • Network access to download dependencies
  • Node.js for the MCP Inspector

Try asking

  • Create a Java MCP server with a tool that divides two numbers
  • Build a Spring Boot MCP server that lets Claude query my database
  • Make a Maven MCP server with JUnit tests and a VS Code config

Good to know

  • Not for Quarkus or Quarkiverse MCP servers; use the quarkus-mcp-server-sse instruction instead.
  • Not for MCP clients or for servers written in other languages.
  • The default transport is stdio; HTTP setup is in a separate reference file.
  • Targets MCP Java SDK 2.x; SDK 2.0.x supports spec revision 2025-11-25 and earlier.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/java-mcp-server-generator/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md13 KB
  • references/gradle.md2 KB
  • references/streamable-http.md5 KB

Alternatives to java-mcp-server-generator

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

java-mcp-server-generator: common questions

Does it support Gradle?

Maven is the default. If the user asks for Gradle or the project uses Gradle, the skill reads a Gradle reference file and needs Gradle 9 or later.

Can it create a remote HTTP server?

Yes. The skill reads its HTTP reference only when the user asks for a remote server, an HTTP server, or Spring Boot.

Which MCP protocol versions does it target?

The source says SDK 2.0.x supports the MCP specification revision 2025-11-25 and earlier revisions, and SDK 3.x will add revision 2026-07-28.

How do I install java-mcp-server-generator?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is java-mcp-server-generator free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is java-mcp-server-generator safe to use?

It scores 93 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to java-mcp-server-generator?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

java-mcp-server-generator Install

Add to stack

Loading.