MCP.so
Sign In
Servers

Mcp Server Weather

@yestarz

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.

FAQ from Mcp Server Weather

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.

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.

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.

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.

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.

More from Media & Design