MCP.so
ログイン

Weather MCP Server

@xuezhijian

基本情報

カテゴリ

メディアとデザイン

トランスポート

stdio

作者

xuezhijian

Weather MCP Server について

MCP Server 和风天气API例子。

Weather MCP Server の設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "mcp_weather": {
      "command": "python",
      "args": [
        "-m",
        "mcp_server_weather"
      ]
    }
  }
}

Weather MCP Server のツール

ツール一覧はまだありません

この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

What is Weather MCP Server?

Weather MCP Server is a Model Context Protocol server that provides weather forecasts and city information queries. It allows LLMs to retrieve 24‑hour weather forecasts using a city name or latitude/longitude coordinates.

How to use Weather MCP Server?

Install via uv (using uvx) or pip; then configure the server in Claude.app or Zed by adding the appropriate command and arguments to the MCP settings. The server exposes the get_24h_weather tool, which requires a location string parameter (city name or “longitude,latitude”).

Key features of Weather MCP Server

  • Fetches 24‑hour weather forecasts.
  • Supports location by city name or latitude/longitude.
  • Runs via uvx (recommended), pip, or Docker.
  • Integrates with Claude.app and Zed.
  • No API key or external service registration required.

Use cases of Weather MCP Server

  • An AI assistant answering “What will the weather be like tomorrow in Beijing?”
  • A chatbot providing hourly weather details for a specific GPS coordinate.
  • Embedding real‑time weather data into a conversational agent without manual API calls.

よくある質問

1

What does the Weather MCP Server do?

It provides a 24‑hour weather forecast for a given location (city name or latitude/longitude) through the `get_24h_weather` tool.

2

How do I install the Weather MCP Server?

You can run it directly with `uvx mcp-server-weather` or install it via `pip install mcp-server-weather` and then execute `python -m mcp_server_weather`.

3

How do I configure the server in Claude.app or Zed?

Add the server settings to your MCP configuration file. For Claude.app, use the JSON snippet under “使用uvx”, “使用docker”, or “使用pip安装”. For Zed, use the JSON under “配置Zed”.

4

What tools does the server provide?

The only tool currently documented is `get_24h_weather`, which accepts a `location` string (city name or “longitude,latitude”) and returns the forecast.

5

Does the server require any external API keys?

No, the README does not mention any required API keys, authentication, or external data sources.

コメント

「メディアとデザイン」の他のコンテンツ