open-meteo-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@open-meteo-mcp what's the weather in San Francisco for the next 5 days?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
open-meteo-mcp
An MCP server that gives AI agents current weather and forecasts from the free Open-Meteo API. No API key is needed.
Tools
All tools are read-only (readOnlyHint: true) and call an external service (openWorldHint: true).
Tool | Inputs | Returns |
|
| matching places with country, admin area, coordinates and timezone; |
|
| current temperature, feels-like, humidity, precipitation, wind and WMO weather description, with units and the local timezone |
| same as | one line per day ( |
Recommended flow: search_locations to turn a place name into coordinates, then get_current_weather or get_forecast with those coordinates. If the user already gave coordinates, the search can be skipped.
The resource weather://wmo-codes lists the meaning of the WMO weather_code values returned by the tools.
Text output is one compact line per result, always with units; the full objects are in structuredContent. Times are local to the place's timezone, which every result states. Empty searches come back as a normal result with a hint on what to try; upstream errors (4xx/5xx, timeouts) come back as isError: true with a suggestion.
Related MCP server: Weather MCP Server
Layout
src/
backend.ts OpenMeteoBackend interface + HttpOpenMeteoBackend (fetch) + FakeOpenMeteoBackend
wmo.ts WMO weather code descriptions
tools/weather.ts Tool definitions: zod inputs, annotations, ok()/fail() results
server.ts createServer(backend): tools, resource and instructions, no transport
index.ts stdio entry point; builds the backend from env
http.ts Stateless Streamable HTTP handler (used by the Vercel function)
api/
mcp.js Vercel function at /api/mcp, re-exports dist/http.js
test/
server.test.ts In-memory client ↔ server tests, no network
http.test.ts HTTP endpoint tests on 127.0.0.1, no network
live.test.ts Optional smoke test against the real API
fixtures/ Real Open-Meteo responses captured with curlInstall and run
Requires Node.js 20 or newer.
npm install
npm run build
claude mcp add open-meteo -- node /absolute/path/to/open-meteo-mcp/dist/index.jsAny MCP client that launches stdio servers works the same way: run node dist/index.js.
npm run dev # run from source with tsx
npm run inspect # MCP InspectorHosted endpoint (Vercel)
A public instance runs on Vercel. open-meteo-mcp-eight.vercel.app is a small web app (Spanish UI, public/index.html) that searches places and shows current weather, the next 24 hours and 7 days, calling the tools through the same MCP endpoint. The endpoint itself is stateless Streamable HTTP (POST only):
claude mcp add --transport http open-meteo https://open-meteo-mcp-eight.vercel.app/api/mcpapi/mcp.js serves dist/http.js (built by npm run build, see vercel.json); public/ is the web app. To deploy your own: vercel link, then vercel deploy --prod. The OPEN_METEO_*_URL variables below can be set as Vercel environment variables.
Everyone using the hosted endpoint shares one free Open-Meteo quota from Vercel's IPs (600 calls/min, 5,000/hour, 10,000/day), and the same non-commercial terms apply. For heavy use, run your own instance.
Environment variables
Both are optional; each one is the full endpoint URL.
OPEN_METEO_GEOCODING_URL: geocoding endpoint (defaulthttps://geocoding-api.open-meteo.com/v1/search).OPEN_METEO_FORECAST_URL: forecast endpoint (defaulthttps://api.open-meteo.com/v1/forecast).
Tests
npm test # in-memory client ↔ server tests, no network (the live test shows as skipped)
npm run test:live # smoke test against the real API (OPEN_METEO_LIVE=1)
npm run typecheckData and terms
Weather data by Open-Meteo.com (CC BY 4.0). If you publish results obtained through this server, credit Open-Meteo.
The free API is for non-commercial use only and is limited to 600 calls/min, 5,000/hour and 10,000/day. See the Open-Meteo terms for details.
This project is not affiliated with or endorsed by Open-Meteo.
License
MIT (this server's code).
Available Tools
3 toolsget_current_weatherGet current weatherARead-onlyIdempotent
Current conditions (temperature, feels-like, humidity, precipitation, weather code, wind, day/night) at the given coordinates, with the local time of the place. Use search_locations first if you only have a place name.
Inputs: latitude (required), longitude (required), wind_speed_unit, temperature_unit.
get_forecastGet forecastARead-onlyIdempotent
Daily forecast for up to 16 days (weather, min/max temperature, precipitation and its max probability, max wind) at the given coordinates and, with hourly: true, an hourly forecast for up to 48 hours (temperature, precipitation probability, weather). Times are local to the place. Use search_locations first if you only have a place name.
Inputs: latitude (required), longitude (required), days, hours, +3 more.
search_locationsSearch locationsARead-onlyIdempotent
Search places by name worldwide. Returns name, region, country, coordinates, timezone and id; use the coordinates with get_current_weather or get_forecast. An ambiguous name returns several results.
Inputs: name (required), count, language, country_code.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose: location search, current conditions, and forecast. The descriptions explicitly guide sequencing, reducing ambiguity between current weather and forecast.
All tool names follow a consistent verb_noun pattern: search_locations, get_current_weather, get_forecast. The convention is predictable and readable.
Three tools are well-scoped for a focused weather server: geocoding, current conditions, and forecast. Each tool earns its place without feeling bloated or overly thin.
The core workflow is covered: find a place, get current weather, and get a forecast. Minor gaps exist for historical weather or alerts, but the stated purpose is well served.
Related MCP Connectors
Current, hourly and daily weather per call by coordinates, for AI agents. Paid per location, no run.
1Global weather via Open-Meteo: forecast, historical, marine, air quality, geocoding, elevation.
US weather & geo for AI agents: forecasts, alerts, earthquakes, elevation, geocoding. No keys.
US weather & geo for AI agents: forecasts, alerts, earthquakes, elevation, geocoding. No keys.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to fetch current weather conditions and forecasts for any city using the Open-Meteo API. Provides temperature, precipitation, and hourly forecast data through natural language queries.ISC
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to retrieve current weather, forecasts, and summaries for any global location using the Open-Meteo API, with no API key required.Creative Commons Zero v1.0 Universal
- AlicenseNot gradedqualityDmaintenanceProvides live weather data (current conditions, forecasts) and city geocoding through Open-Meteo API, enabling AI assistants to answer weather queries without an API key.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to retrieve real-time weather conditions and 7-10 day forecasts for any location via Open-Meteo, with no API key required.74 npmMIT