PlugWiki

java-mcp-server-generator Skill (awesome-copilot) for Claude Code: What It Does and How to Install It

Makes Claude build a Java MCP server with the official MCP Java SDK 2.x, including tests and client configuration.

Installs
8.8K
on skills.sh
Stars
40.7K
on GitHub
Files
2
besides SKILL.md
Updated
Oct 2026
last repo commit

This skill makes Claude build a working MCP server in Java. Claude creates a Maven project by default, writes the server and its tools with the MCP Java SDK 2.x, writes JUnit tests that start the server over stdio, runs mvn verify until the tests pass, and writes the client configuration.

The folder has SKILL.md plus two reference files, 3 files in all and no scripts. The references cover Gradle and remote Streamable HTTP servers, including Spring Boot. SKILL.md lists JDK 17 or later and Maven 3.9 or later or Gradle 9 or later as requirements.

Good for

  • Java developers who want Claude or Copilot to call their code, an API or a database
  • Teams adding an MCP server to a Spring Boot app
  • Anyone who wants a tested starting point instead of SDK 0.x or 1.x examples

Install java-mcp-server-generator

Claude Code

  1. 1

    Download the skill folder from https://github.com/github/awesome-copilot/tree/HEAD/skills/java-mcp-server-generator.

  2. 2

    Put it at ~/.claude/skills/java-mcp-server-generator/ so that SKILL.md sits directly inside.

  3. 3

    Start a new session; the skill loads when its description matches the task.

Pick one route. The Copilot CLI plugin route installs the java-mcp-development plugin from the awesome-copilot marketplace: this skill and the java-mcp-expert agent, whose file lists no tools. The other routes install only java-mcp-server-generator. The repo README says its customizations come from third-party developers, so inspect them before installing.

Built from the package data we hold. Not yet tested by us.

What's in the skill

When it loads

Use this skill when the user wants to create a Model Context Protocol (MCP) server in Java or in a Spring Boot app. Also use it when the user wants AI agents, such as GitHub Copilot or Claude, to use Java code, an API, or a database. Use it even if the user does not say "MCP". The skill makes a Maven or Gradle project with the MCP Java SDK 2.x, tools, JUnit tests, and client configuration. Do not use it for Quarkus/Quarkiverse MCP servers (use the `quarkus-mcp-server-sse` instruction), for an MCP client or for a server in another language.

Sections in SKILL.md

  1. Workflow
  2. Step 1: Create the project
  3. Step 2: Write the server
  4. Step 3: Write the tests
  5. Step 4: Build until the tests pass
  6. Step 5: Configure the client
  7. Gotchas

Key facts

Installs on skills.sh
8,814 (Nov 2, 2026)
Last repo commit
Oct 30, 2026

What it includes

  • Maven layout with pom.xml, MCP Java SDK 2.x and a shade plugin

    Maven by default. For Gradle it reads references/gradle.md instead.

    Try: “Create an MCP server in Java that lets Claude query my Postgres database”

    Write · Step 1: Create the project

  • Starts from a divide-tool template and swaps in your tools

    Gives each tool a JSON Schema and description, and adds resources and prompts only if you ask. Stdio is the default transport.

    Write · Step 2: Write the server

  • JUnit tests start the server as a subprocess and call each tool

    One test per tool and per error result, over real stdio.

    Runs code · Step 3: Write the tests

  • mvn verify, fix failures, repeat

    Builds target/mcp-server-demo-0.1.0.jar. Maven downloads the dependencies.

    Runs code · Step 4: Build until tests pass

  • Writes .vscode/mcp.json, or the same command in claude_desktop_config.json

    Also tells you how to start the server with java -jar and how to test it with the MCP Inspector.

    Write · Step 5: Configure the client

  • gradle wrapper once, then ./gradlew build installDist

    From references/gradle.md. It says not to use ./gradlew run as the client command.

    Runs code · Gradle variant

  • Servlet or Spring Boot server for a remote MCP server

    From references/streamable-http.md, read only when you ask for a remote server. It says to set a Host and Origin check and to add authorization yourself.

    Write · Streamable HTTP variant

  • SDK 2.x builder rules, tool-name limits, stdout reserved for the protocol

    Warns against copying examples from SDK 0.x and 1.x and against the deprecated SSE transports.

    Read · Gotchas

From the official docs

Permissions

Medium risk

What it can do

  • Read your data
  • Create and change things
  • Delete things
  • Read-only mode

Watch out for

  • It builds and runs code on your machine

    Step 4 runs mvn verify, which downloads dependencies and runs the tests, and the tests start the server as a subprocess. The Gradle variant runs gradle wrapper and ./gradlew build installDist. Our advice: read the generated code before you build. github.com

  • It can edit your Claude Desktop config

    Step 5 says to put the server command and args in claude_desktop_config.json under mcpServers. Our advice: check the diff so you do not overwrite other servers. github.com

  • Remote servers need your own security setup

    references/streamable-http.md says the HTTP transports do not check Host and Origin by default, embedded Tomcat listens on all network interfaces and the SDK has no authorization. The file tells you to set the validator and put authentication in front. github.com

  • The plugin route also adds an agent

    The java-mcp-development plugin lists this skill and the java-mcp-expert agent. That agent's file lists no tools. github.com

Technical details
Turning on read-onlyNo read-only mode.
Sign-in and keysThe skill names no credentials. Servers you build with it may need their own, which is up to you.
Scopes
  • Creates a project folder with pom.xml, source and test files

  • Runs Maven or Gradle builds that download dependencies and run tests

  • Writes .vscode/mcp.json, or the same command and arguments into claude_desktop_config.json

Questions

What does the java-mcp-server-generator skill do?

It makes Claude create an MCP server in Java with the official MCP Java SDK 2.x. Claude sets up a Maven or Gradle project, writes the tools, adds JUnit tests, builds until they pass and writes the client configuration.

What do I need installed?

SKILL.md lists JDK 17 or later, Maven 3.9 or later or Gradle 9 or later, and network access to download dependencies. The MCP Inspector, if you use it to test, needs Node.js.

Can it build a remote HTTP server?

Yes. When you ask for one, SKILL.md points Claude to references/streamable-http.md, which has a servlet and a Spring Boot setup. That file warns that the HTTP transports do not check Host and Origin headers by default and that the SDK has no authorization.

Which clients does it configure?

VS Code through .vscode/mcp.json and Claude Desktop through claude_desktop_config.json, using the same command and arguments.

How do I install it?

Use the install box at the top of this page. The repo README documents Copilot CLI plugins from the awesome-copilot marketplace, and the java-mcp-development plugin includes this skill. The box also has folder routes that install only this skill.

Is it for Quarkus?

No. Its description says not to use it for Quarkus or Quarkiverse MCP servers, for an MCP client or for a server in another language.

Is it safe?

It makes Claude create project files, run Maven or Gradle builds that download dependencies and run your tests, and write client configuration files. Our advice: review the generated code and the config files before you use them. The plugin route also installs an agent.

Information

updated Nov 2, 2026

Folder
skills/java-mcp-server-generator

github/awesome-copilotskills.sh

Sources

Docs, issue trackers and discussions this page is built from.

Show all 6
  1. java-mcp-server-generator SKILL.md · github.com
  2. awesome-copilot README · github.com
  3. java-mcp-development plugin.json · github.com
  4. references/gradle.md · github.com
  5. references/streamable-http.md · github.com
  6. awesome-copilot LICENSE · github.com

Updated Nov 2, 2026.