Skip to content

i23098/mcp-server-java

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