Skip to main content
Glama
MichealLewis

weather-mcp-server

by MichealLewis

Weather MCP Server

Real-time weather query MCP server based on the HelloAgents framework and wttr.in.

Features

  • get_weather — current weather for a city (Chinese mapped names + English names)

  • list_supported_cities — list built-in Chinese city mappings (80+)

  • get_server_info — server metadata

Related MCP server: MCP Weather Server

Quick start (local stdio)

pip install -r requirements.txt
MCP_TRANSPORT=stdio python server.py

Connect with HelloAgents:

from hello_agents.tools import MCPTool

tool = MCPTool(
    name="weather",
    server_command=["python", "server.py"],
    # set MCP_TRANSPORT=stdio in env when launching, or:
)

Or:

import os
os.environ["MCP_TRANSPORT"] = "stdio"
from hello_agents.protocols import MCPClient
# MCPClient(["python", "server.py"])

Docker / Smithery (HTTP on :8081)

docker build -t weather-mcp-server .
docker run --rm -p 8081:8081 weather-mcp-server

Endpoint: http://localhost:8081/mcp

Publish to Smithery

  1. Create a GitHub repo named weather-mcp-server under MichealLewis

  2. Push this folder to the repo

  3. Open https://smithery.ai/, sign in with GitHub

  4. Click Publish Server and paste: https://github.com/MichealLewis/weather-mcp-server

License

MIT

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    An MCP server that provides real-time weather data, hourly forecasts, and daily summaries using the free Open-Meteo API with no API key required. It enables users to search for weather conditions by specific coordinates or city names across multiple measurement units.
    2
    MIT
  • F
    license
    Not graded
    quality
    B
    maintenance
    A minimal MCP server that provides current weather and forecasts for any city using the free Open-Meteo API, no API key required.
    9 npm
    -
  • A
    license
    Not graded
    quality
    C
    maintenance
    Real-time weather query MCP server for Chinese cities and global cities using wttr.in API.
    MIT