Weather MCP Server
Weather MCP Server
HelloAgentsフレームワークに基づいて開発された、リアルタイム天気検索MCPサーバーです。
機能特性
🌤️ リアルタイム天気検索
🌍 中国の主要12都市をサポート
🔄 wttr.in APIを使用(キー不要)
🚀 HelloAgentsフレームワークベース
Related MCP server: Weather MCP Server
インストール
pip install hello-agents requests使用方法
直接実行
python server.pyClaude Desktop での使用
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) または %APPDATA%\Claude\claude_desktop_config.json (Windows) を編集します:
{
"mcpServers": {
"weather": {
"command": "python",
"args": ["/path/to/server.py"]
}
}
}HelloAgents での使用
from hello_agents import SimpleAgent, HelloAgentsLLM
from hello_agents.tools import MCPTool
agent = SimpleAgent(name="天气助手", llm=HelloAgentsLLM())
weather_tool = MCPTool(server_command=["python", "server.py"])
agent.add_tool(weather_tool)
response = agent.run("北京今天天气怎么样?")API ツール
get_weather
指定した都市の現在の天気を取得します。
パラメータ:
city(string): 都市名(中国語および英語をサポート)
例:
{
"city": "北京"
}戻り値:
{
"city": "北京",
"temperature": 10.0,
"feels_like": 9.0,
"humidity": 94,
"condition": "Light rain",
"wind_speed": 1.7,
"visibility": 10.0,
"timestamp": "2025-10-09 13:25:03"
}list_supported_cities
サポートされているすべての中国の都市をリストアップします。
戻り値:
{
"cities": ["北京", "上海", "广州", "深圳", "杭州", "成都", "重庆", "武汉", "西安", "南京", "天津", "苏州"],
"count": 12
}get_server_info
サーバー情報を取得します。
戻り値:
{
"name": "Weather MCP Server",
"version": "1.0.0",
"tools": ["get_weather", "list_supported_cities", "get_server_info"]
}サポートされている都市
北京、上海、広州、深圳、杭州、成都、重慶、武漢、西安、南京、天津、蘇州
英語の都市名を使用して、世界中の任意の都市を検索することも可能です。
ライセンス
MIT License
作者
HelloAgents Team
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for current weather and multi-day forecasts worldwide, Chinese city names and output.
Global weather via Open-Meteo: forecast, historical, marine, air quality, geocoding, elevation.
Current weather and forecast lookup as an agent tool.
Live data: weather, air quality, FX, CN/HK/US stocks, IP geo, domain, SSL, China reachability.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables real-time weather queries for 12 major Chinese cities and global cities via wttr.in API, with tools like get_weather and list_supported_cities.MIT
- AlicenseNot gradedqualityCmaintenanceEnables real-time weather queries for 12 major Chinese cities and global cities using the wttr.in API. Provides tools to get weather, list supported cities, and server info.MIT
- AlicenseNot gradedqualityDmaintenanceEnables real-time weather queries for 12 major Chinese cities and global cities using the wttr.in API without an API key, with tools for weather, city listing, and server info.MIT
- AlicenseNot gradedqualityDmaintenanceProvides real-time weather queries for 12 major Chinese cities and global cities using the wttr.in API, with tools like get_weather and list_supported_cities.1MIT