MCP.so
登录

Mcp Server Weather

@yestarz

关于 Mcp Server Weather

暂无概览

基本信息

分类

媒体与设计

运行时

java

传输方式

stdio

发布者

yestarz

提交者

xin

配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "mcp-server-weather": {
      "command": "java",
      "args": [
        "-Dspring.ai.mcp.server.stdio=true",
        "-jar",
        "你的jar包路径",
        "--weather.api.api-key=YOUR API KEY"
      ]
    }
  }
}

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

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.

评论

媒体与设计 分类下的更多 MCP 服务器