Skip to main content
Glama
Eric980305

Weather MCP Server

by Eric980305

Weather MCP Server

MCP-Server für echte Wetterabfragen, entwickelt auf Basis des HelloAgents-Frameworks.

Funktionen

  • 🌤️ Echtzeit-Wetterabfrage

  • 🌍 Unterstützt 12 wichtige chinesische Städte

  • 🔄 Verwendet die wttr.in-API (kein API-Schlüssel erforderlich)

  • 🚀 Basierend auf dem HelloAgents-Framework

Related MCP server: Weather MCP Server

Installation

pip install hello-agents requests

Verwendung

Direkte Ausführung

python server.py

Verwendung in Claude Desktop

Bearbeiten Sie die Datei ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) oder %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "weather": {
      "command": "python",
      "args": ["/path/to/server.py"]
    }
  }
}

Verwendung in 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-Tools

get_weather

Ruft das aktuelle Wetter für die angegebene Stadt ab.

Parameter:

  • city (string): Stadtname (Chinesisch und Englisch werden unterstützt)

Beispiel:

{
  "city": "北京"
}

Rückgabewert:

{
  "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

Listet alle unterstützten chinesischen Städte auf.

Rückgabewert:

{
  "cities": ["北京", "上海", "广州", "深圳", "杭州", "成都", "重庆", "武汉", "西安", "南京", "天津", "苏州"],
  "count": 12
}

get_server_info

Ruft Serverinformationen ab.

Rückgabewert:

{
  "name": "Weather MCP Server",
  "version": "1.0.0",
  "tools": ["get_weather", "list_supported_cities", "get_server_info"]
}

Unterstützte Städte

北京、上海、广州、深圳、杭州、成都、重庆、武汉、西安、南京、天津、苏州

Darüber hinaus können mit englischen Stadtnamen beliebige Städte weltweit abgefragt werden.

Lizenz

MIT License

Autor

HelloAgents Team

Maintenance

ActivityMaintained
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    C
    maintenance
    Provides real-time weather information for 12 major Chinese cities and global locations using the wttr.in API. Built with the HelloAgents framework, it requires no API keys and supports queries in both Chinese and English.
    5
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables real-time weather queries for 12 Chinese cities and global cities using English names via the wttr.in API.
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables 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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Eric980305/weather-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server