MCP Server Java Sse Http Demo
A Java implementation of a weather service based on the Model Context Protocol, including a fast proxy client, supporting interaction with local and remote MCP servers, and demonstrating the completion of weather query tasks through LLM - called toolchains.
rating : 2.5 points
downloads : 7.9K
What is the Weather MCP Server?
The Weather MCP Server is a weather forecast service based on the Model Context Protocol. It can receive users' weather query requests and obtain accurate weather forecast information through collaboration with other MCP servers.How to use the Weather MCP Server?
Users can interact with the Weather MCP Server by configuring client tools (such as fast - agent). The server will call other MCP servers (such as web search and weather APIs) based on the user - inputted prompts to generate the final weather forecast results.Applicable Scenarios
The Weather MCP Server is suitable for application scenarios that require real - time weather forecasts, such as travel planning, outdoor activity arrangements, and meteorological research.Main Features
Multi - tool Collaboration
The Weather MCP Server can work in collaboration with other MCP servers (such as web search and weather APIs) to provide more accurate weather forecasts.
Dynamic Tool Selection
The server can automatically select appropriate tools for operation based on the user - inputted prompts.
Support for Multiple Transmission Modes
It supports both local (standard input/output) and remote (HTTP SSE) transmission modes.
Advantages
Support for multi - tool collaboration to improve prediction accuracy
Dynamic tool selection to reduce manual intervention
Flexible transmission modes to adapt to different environments
Limitations
Dependence on the availability and performance of other MCP servers
May require high network bandwidth
How to Use
Start the Weather MCP Server
Run the command `mvn clean package` to build the project, and then execute `java -jar mcp - server/target/mcp - server - 1.0 - SNAPSHOT.jar` to start the server.
Configure the Client Tool
Install and configure the `fast - agent` tool, and ensure that the API key has been added.
Configure the Client to Connect to the Server
Add the relevant configuration of the Weather MCP Server in the `fastagent.config.yaml` file.
Usage Examples
Query the weather forecast for New York
The user wants to know the weather conditions in New York in the next few days.
Compare the temperatures of four cities tomorrow
The user needs to compare the temperatures of four cities tomorrow.
Frequently Asked Questions
What transmission modes does the Weather MCP Server support?
How to configure the client tool?
Related Resources
Model Context Protocol Official Website
Learn more about the Model Context Protocol
Weather MCP Server Source Code
Access the GitHub repository of the Weather MCP Server
Quick Start Guide
Quickly get started with using the Weather MCP Server

Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
14.8K
4.5 points

Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
24.8K
5 points

Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
15.6K
4.3 points

Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
44.6K
4.3 points

Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
20.3K
5 points

Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
44.6K
4.5 points

Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
15.0K
4.5 points

Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
29.4K
4.8 points





