Connect to Claude
Weather Service icon

Weather Service

Createdstantonk

Provides a working implementation of a Model Context Protocol (MCP) Java SDK with a weather tool accessible via HTTP SSE.

About

This Java-based tool demonstrates a Model Context Protocol (MCP) server implementation, specifically focusing on a weather service. It integrates with a fast-agent, leveraging the Model Context Protocol to determine which tools to call based on user prompts. The demo showcases how an agent can use Claude Sonnet 3.7, fetch lat/long data via web search and then utilize this weather service via HTTP SSE to summarize forecasts and determine the warmest city. It avoids heavy reliance on Spring, offering a lightweight solution for developers interested in MCP implementations.

Key Features

  • Implements a Weather MCP Server accessible via HTTP SSE transport.
  • Includes a functional example agent that fetches weather data for multiple cities.
  • Integrates with fast-agent for intelligent tool selection based on context.
  • Provides a simple and working demo of the Model Context Protocol java-sdk
  • Uses Claude Sonnet 3.7 for LLM processing.
  • 1 GitHub stars

Use Cases

  • Prototyping and testing MCP integrations with Java.
  • Building AI agents that can access and utilize external services through MCP.
  • Demonstrating the use of HTTP SSE transport for MCP servers.