MCP Server Java Sse Http Demo
M

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.
2.5 points
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

Installation

Copy the following command to your Client for configuration
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

K
Klavis
Klavis AI is an open-source project that provides a simple and easy-to-use MCP (Model Context Protocol) service on Slack, Discord, and Web platforms. It includes various functions such as report generation, YouTube tools, and document conversion, supporting non-technical users and developers to use AI workflows.
TypeScript
9.4K
5 points
S
Scrapling
Scrapling is an adaptive web scraping library that can automatically learn website changes and re - locate elements. It supports multiple scraping methods and AI integration, providing high - performance parsing and a developer - friendly experience.
Python
7.9K
5 points
A
Apple Health MCP
An MCP server for querying Apple Health data via SQL, implemented based on DuckDB for efficient analysis, supporting natural language queries and automatic report generation.
TypeScript
10.7K
4.5 points
M
MCP Server Airbnb
Certified
MCP service for Airbnb listing search and details query
TypeScript
13.6K
4 points
B
Baidu Map
Certified
Baidu Maps MCP Server is the first domestic map service compatible with the MCP protocol, offering 10 standardized API interfaces such as geocoding and route planning, supporting quick access via Python and Typescript, and enabling agents to implement map - related functions.
Python
26.4K
4.5 points
F
Firecrawl MCP Server
The Firecrawl MCP Server is a Model Context Protocol server integrating Firecrawl's web - scraping capabilities, providing rich web - scraping, searching, and content - extraction functions.
TypeScript
65.1K
5 points
R
Rednote MCP
RedNote MCP is a tool that provides services for accessing Xiaohongshu content. It supports functions such as authentication management, keyword - based note search, and command - line initialization, and can access note content via URL.
TypeScript
12.4K
4.5 points
P
Perplexity MCP
Certified
An MCP server based on the Perplexity AI API, providing web search functionality for the Claude desktop client.
Python
15.7K
4.1 points
N
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
M
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
G
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
D
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
U
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
F
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
G
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
M
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
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2025AIBase