Skip to main content
Glama
Weather MCP Server

Weather MCP Server

by Kisekixy

날씨 MCP 서버

HelloAgents 프레임워크를 기반으로 개발된 실시간 날씨 조회 MCP 서버입니다.

기능 특징

  • 🌤️ 실시간 날씨 조회

  • 🌍 12개 주요 중국 도시 지원

  • 🔄 wttr.in API 사용 (키 필요 없음)

  • 🚀 HelloAgents 프레임워크 기반

Related MCP server: Weather MCP Server

설치

pip install hello-agents requests

사용 방법

직접 실행

python server.py

Claude 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…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables 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
    • 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
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables 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
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides 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.
      1
      MIT