mcp-server-java-sse-http-demo

mcp-server-java-sse-http-demo

3.3

If you are the rightful owner of mcp-server-java-sse-http-demo and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

Weather Java SSE Transport MCP Service is a demonstration of a Model Context Protocol implementation using Java SDK, showcasing interaction with multiple MCP Servers.

The Weather Java SSE Transport MCP Service is a demonstration project that implements the Model Context Protocol using Java SDK. It includes a fast-agent for the MCP Client to interact with a Weather MCP Server. This project is not intended for production use but serves as an example of how to build a working system that leverages both local and remote MCP Servers using Stdio and HTTP SSE Transport. The agent in this demo uses Claude Sonnet 3.7 for LLM tasks, fetches latitude and longitude data for cities using a websearch MCP Server tool, and retrieves weather data using the Weather MCP Server tool. The agent then summarizes the forecasts to determine the warmest city for the next day. The system is designed to dynamically select tools based on user input.

Features

  • Demonstrates interaction with multiple MCP Servers using Java SDK.
  • Utilizes HTTP SSE Transport for remote server communication.
  • Integrates Claude Sonnet 3.7 for LLM tasks.
  • Fetches and processes weather data using MCP Server tools.
  • Configurable agent with support for different API keys.

Tools

  1. fetch tool

    Used to find the latitude and longitude information of a city

  2. weather tool

    Used to query weather data