Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

i23098/mcp-server-java

Open more actions menu

Repository files navigation

MCP Server - Hello World

Simple Hello World MCP Server done in Java, using https://github.com/modelcontextprotocol/java-sdk

Build

Execute:

./gradlew :build

This will generate build/libs/hello-world-mcp.war

Execute

Can be executed in Tomcat 11. Just copy build/libs/hello-world-mcp.war to the webapps folder.

MCP Client

To test the server, can use MCP inspector by executing:

./gradlew :runMCPInspector

It will open in the browser and should be configured using:

Click Connect button.

Click List Tools button. Click on the hello_world tool that is listed.

Click Run Tool button. Should have a success tool result with a "Hello World!" response.

About

Simple Hello World server using https://github.com/modelcontextprotocol/java-sdk

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.