Skip to main content
Glama
ariz-ahmad

weather-mcp-server

by ariz-ahmad

openmeteo-mcp

CI

An MCP server wrapping the Open-Meteo geocoding and forecast APIs. No API key required.

Install

pip install git+https://github.com/ariz-ahmad/weather-mcp-server

Related MCP server: Weather MCP

Run

Stdio (default, for local agent clients):

openmeteo-mcp

SSE (for remote/hosted clients):

openmeteo-mcp sse
# serves on http://localhost:8000/sse

Tool reference

Tool

Args

Returns

geocode_city

city: str

{name, country, latitude, longitude}

get_forecast

latitude: float, longitude: float, days: int = 3

{forecast: [{date, condition, temp_max_c, temp_min_c, precipitation_mm}, ...]}

get_weather_by_city

city: str, days: int = 3

{location, forecast} — geocode + forecast in one call

Resource

weather://{city} — read-only current-conditions summary for a city, e.g. weather://Tokyo.

Prompt

weather_report(city: str) — template that asks an agent to produce a short, friendly 3-day weather report for a city using get_weather_by_city.

Connect from an Agents SDK client

from agents import Agent, Runner
from agents.mcp import MCPServerStdio, MCPServerStdioParams

async with MCPServerStdio(
    name="Weather Tools",
    params=MCPServerStdioParams(command="openmeteo-mcp", args=[]),
) as weather_server:
    agent = Agent(
        name="Weather Assistant",
        instructions="Use the weather tools to answer the user's question.",
        mcp_servers=[weather_server],
    )
    result = await Runner.run(agent, "What's the weather in Tokyo this week?")
    print(result.final_output)

See client_stdio_test.py and client_sse_test.py for full runnable examples of each transport.

Development

git clone https://github.com/ariz-ahmad/weather-mcp-server
cd weather-mcp-server
pip install -e ".[dev]"
pytest -v

tests/test_tools.py calls the tool functions directly against the real Open-Meteo API. tests/test_server.py launches the installed console script as a real MCP stdio server and checks it advertises the right tools/resources/prompts over the wire — both run in CI on every push with no API key required.

Package layout

src/openmeteo_mcp/server.py   # FastMCP server: tools, resource, prompt
tests/                        # protocol- and tool-level tests, no LLM needed
client_stdio_test.py          # Agents SDK client demo (needs OPENAI_API_KEY)
client_sse_test.py            # same, over SSE
A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

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

Related MCP Servers

  • A
    license
    -
    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.
    Last updated
    1
    MIT
  • A
    license
    -
    quality
    D
    maintenance
    A MCP server for querying real-time weather information for any city worldwide using the free Open-Meteo API, supporting CLI and integration with AI clients like Claude and Cursor.
    Last updated
    35
    MIT
  • F
    license
    -
    quality
    D
    maintenance
    A production-ready MCP server that provides real-time weather information, forecasts, and alerts to LLM clients using the Open-Meteo API, with support for 26+ global cities, dual transport (STDIO/HTTP), and Docker deployment.
    Last updated
  • A
    license
    -
    quality
    B
    maintenance
    MCP server for Open-Meteo free weather APIs, offering 16 tools for forecast, historical, air quality, marine, flood, ensemble, climate, seasonal, and scheduled data collection with no API key required.
    Last updated
    52
    MIT

View all related MCP servers

Related MCP Connectors

  • MCP server for AI dialogue using various LLM models via AceDataCloud

  • MCP server for generating rough-draft project plans from natural-language prompts.

  • MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.

View all MCP Connectors

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/ariz-ahmad/weather-mcp-server'

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