Basic information
About Mcp Server Weather
## MCP Server Weather
Mcp Server Weather is a MCP server in the Media & Design category listed in the AddMCP.net directory, published by yestarz. Supported transport: stdio. Runtime: java. The repository has 26 GitHub stars. Source code is hosted on github.com.
Setup
{
"mcpServers": {
"mcp-server-weather": {
"command": "java",
"args": [
"-Dspring.ai.mcp.server.stdio=true",
"-jar",
"你的jar包路径",
"--weather.api.api-key=YOUR API KEY"
]
}
}
}
{
"mcpServers": {
"mcp-server-weather": {
"command": "java",
"args": [
"-Dspring.ai.mcp.server.stdio=true",
"-jar",
"你的jar包路径",
"--weather.api.api-key=YOUR API KEY"
]
}
}
}
{
"servers": {
"mcp-server-weather": {
"command": "java",
"args": [
"-Dspring.ai.mcp.server.stdio=true",
"-jar",
"你的jar包路径",
"--weather.api.api-key=YOUR API KEY"
]
}
}
}
Mcp Server Weather — by yestarz config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp-server-weather": {
"command": "java",
"args": [
"-Dspring.ai.mcp.server.stdio=true",
"-jar",
"你的jar包路径",
"--weather.api.api-key=YOUR API KEY"
]
}
}
}
Mcp Server Weather — by yestarz tools
Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is Mcp Server Weather?
Mcp Server Weather is a Java-based MCP server that provides real-time weather data by integrating with the QWeather API. It is intended for developers who want to add live weather queries to AI assistants or applications that support the Model Context Protocol.
How to use Mcp Server Weather?
Download the project, build the JAR with mvn clean package -Dmaven.test.skip=true, then configure it in your MCP client. For Claude Desktop, add the server to mcpServers in your config file, specifying the JAR path and your QWeather API key. For LangChain4J, use the provided StdioMcpTransport builder with the same command‑line arguments.
Key features of Mcp Server Weather
- Fetches real‑time weather data via the QWeather API.
- Exposes a single MCP tool:
getWeather. - Implemented in Java with Spring AI MCP.
- Transport via stdio for easy integration with MCP clients.
- Supports both Claude Desktop and LangChain4J usage.
Use cases of Mcp Server Weather
- Ask an AI assistant “What is the weather in Beijing right now?” and get an instant reply.
- Embed weather queries into a chatbot that uses the MCP protocol.
- Add weather lookup capabilities to a LangChain4J‑powered application.
- Use with Claude Desktop to answer weather‑related questions without manual searches.
Frequently asked questions
1 What data does Mcp Server Weather return?
It returns current weather conditions, including temperature, feels‑like temperature, wind direction and speed, humidity, precipitation, pressure, visibility, and cloud cover.
2 What are the runtime dependencies?
Java runtime (JRE) is required to run the JAR, and a valid QWeather API key must be provided via the --weather.api.api-key argument.
3 How does Mcp Server Weather authenticate?
It uses an API key from the QWeather service, passed as a command‑line argument when starting the server.
4 Which transport protocol does Mcp Server Weather use?
It uses the stdio transport, making it compatible with any MCP client that supports the standard input/output communication channel.
5 Can I use it with Claude Desktop?
Yes. Add the server configuration to your Claude Desktop MCP settings file, providing the path to the JAR and your API key.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In