open-meteo-mcp-server
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-serverweather forecast for Tokyo"
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.
Public Hosted Server: https://open-meteo.caseyjhand.com/mcp
Overview
Global weather from Open-Meteo: forecasts, the historical archive, marine conditions, air quality, probabilistic ensembles, river discharge, and CMIP6 climate projections. Geocode a place name, pull hourly and daily variables for its coordinates, and run SQL over large results staged to DataCanvas. Runs as a stdio process, a local Streamable HTTP server, or the public hosted endpoint above.
Tools
Tool | Description |
| Resolve a place name to ranked coordinates with country, region, timezone, and population |
| Current conditions and hourly/daily forecast up to 16 days, with up to 92 past days |
| Hourly/daily history from the reanalysis archive, 1940 to present |
| Wave, swell, and sea-surface conditions: up to 8 forecast days or an archive range |
| Modeled CAMS pollutants, pollen, and AQI: current, up to 7 forecast days, or an archive range |
| Copernicus DEM terrain elevation for up to 100 coordinate pairs |
| Per-member ensemble forecast (up to 64 members, up to 35 days) for exceedance and uncertainty |
| GloFAS river discharge forecast (up to 210 days) or reanalysis from 1984 |
| Bias-corrected daily CMIP6 projections, 1950–2050, across up to 7 models |
| List the tables and columns staged on a DataCanvas |
| Run a read-only SQL |
| Remove one staged table or view from a DataCanvas (opt-in) |
Related MCP server: weather-mcp
Capability reference
openmeteo_search_locations tool
A bare place
name("Paris", not "Paris, France"), with optionalcountry(ISO 3166-1 alpha-2) andlanguage(defaulten);count1–10, default 5Each result carries coordinates, an IANA
timezone,country/country_code,admin1/admin2,population, andfeature_code; no match fails asno_resultsA
noticeflags a top match with null or sub-100,000 population, which is what a historic exonym ("Bangalore", "Calcutta") often resolves toA native-script query that misses under
enis retried once in the language its script implies; when that retry finds the results,effective_languagenames it (上海→zh), since theirname,country,admin1, andadmin2come back localized in it
openmeteo_get_forecast tool
At least one of
current_variables,hourly_variables, ordaily_variables(up to 50 each);forecast_days1–16 (default 7),past_days0–92 (default 0)Per-timestamp
hourly/dailyrecords withhourly_units/daily_units;current_variablesadds acurrentobject from 15-minute data (interval900) pluscurrent_unitsPrefer
past_daysoveropenmeteo_get_historicalfor the last ~5 days, where the archive's ERA5 components lag
openmeteo_get_historical tool
start_dateandend_daterequired (YYYY-MM-DD, from 1940-01-01), plus at least one ofhourly_variables/daily_variables, named as on the forecast toolOmitting
modelsreads Best Match (IFS HRES + ERA5 + ERA5-Land, source varies by date); up to 8modelspin a source. The ERA5 family runs ~5 days behind,ecmwf_ifshas no delay, andcerracovers Europe onlyOutput echoes
modelsand the returneddate_range; with 2+ models each column carries a model-name suffix
openmeteo_get_marine tool
One window per call:
forecast_days1–8 (upstream default 7) withpast_days0–92, or astart_date/end_datearchive range back to at least 2022. Mixing them fails asforecast_window_conflict, a lone date asdate_range_incompleteAt least one of
hourly_variables/daily_variables(wave height, period, and direction, swell, sea-surface temperature); sheltered water returns near-zero waves, a land point returns nulls (named in thenotice), andocean_current_velocityis null off the open ocean
openmeteo_get_air_quality tool
One window per call:
forecast_days1–7 (upstream default 5) withpast_days0–92, or astart_date/end_datearchive range from August 2022 (us_aqistarts a day later). Sameforecast_window_conflictanddate_range_incompleterejections as the marine toolAt least one of
current_variables(acurrentobject,interval3600) orhourly_variables: PM2.5, PM10, NO2, SO2, O3, CO, dust, pollen, European and US AQI. Pollen is modeled for Europe only, in pollen season; elsewhere it comes back null and thenoticenames itdata_source: "CAMS"marks every response as modeled grid data, not station measurements
openmeteo_get_elevation tool
Parallel
latitudes[]/longitudes[]arrays of up to 100 pairs; unequal lengths fail ascoordinate_count_mismatchelevations[]in input order, each{ latitude, longitude, elevation_m }from the Copernicus DEM (~90 m);elevation_misnullwhere the DEM has no value (latitude 90), without failing the rest of the call
openmeteo_get_ensemble tool
At least one of
hourly_variables/daily_variables;forecast_days1–35 (default 7),past_days0–92. Most models end within 16 days (ncep_gefs05runs to about day 34); past a model's horizon its columns are null and thenoticenames where its data ends.modelstakes one ensemble name (e.g.ecmwf_ifs025_ensemble, 51 members;gem_global_ensemble, 21); omitted or blank, it selectsecmwf_ifs025_ensemble, which themodelfield echoesEach variable returns as per-member columns (
temperature_2m_member01, …) across up to 64 members;member_countcounts the perturbed members, not the control runA regional model queried outside its coverage fails as a non-retryable input error naming the gap; switch to a global model
openmeteo_get_flood tool
daily_variablesrequired (up to 20), all in m³/s:river_discharge, the daily discharge value, and the ensemble statisticsriver_discharge_mean/_median/_min/_max/_p25/_p75. The statistics exist in forecast mode only; in reanalysis mode they repeatriver_dischargeand carry no spreadOne mode per call:
forecast_days1–210, or astart_date/end_datereanalysis range from 1984-01-01. Mixing them fails asforecast_days_conflict, a lone date asdate_range_incompleteDischarge comes from the largest modeled river within 5 km, not always the closest; vary the coordinate by ~0.1° when a value looks off. Null outside GloFAS coverage
openmeteo_get_climate tool
start_date/end_datewithin 1950-01-01 to 2050-12-31 anddaily_variablesrequired (the API is daily-only); up to 7 CMIP6models, e.g.CMCC_CM2_VHR4,MRI_AGCM3_2_SWith 2+ models each variable is suffixed with the model name; a single or omitted model returns plain names. A variable a model doesn't carry comes back null
openmeteo_dataframe_describe tool
Takes the
canvas_ida spilled weather tool returned; lists each table'sname,kind,row_count, and columns (name, type, nullability), plus the canvasexpires_atFails as
canvas_not_enabledwhen canvas is off, orcanvas_not_foundwhen the ID is unknown or past its 24-hour sliding TTL
openmeteo_dataframe_query tool
canvas_idplus a read-onlySELECTagainst the stagedtable_name;rowsholds up to 100 leading rows, fewer when wide rows would take the response past its 80,000-character inline ceiling (values are never cut).row_countis the exact total, so continue atOFFSET <rows.length>, under anORDER BYfor a stable orderIf counting the full result fails or runs past 5 seconds, the rows still return,
row_countis a lower bound, andcount_errornames the reason (e.g.count_timeout)Fails as
canvas_not_enabled,canvas_not_found,missing_table,system_catalog_access(system catalogs are blocked), orrow_too_large(the first row alone exceeds the ceiling: select fewer columns, or shorten values withleft(),substr(), orlist_slice())
openmeteo_dataframe_drop tool
Off by default: listed as disabled until
OPENMETEO_DATAFRAME_DROP_ENABLED=truecanvas_idplus the exacttable_namefromopenmeteo_dataframe_describe; removes that one table or view and returnsdroppedand theremaining_tables. A name that is not staged returnsdropped: false, so a repeated drop is safeFails as
canvas_not_enabled,canvas_not_found, orinvalid_table_name(not a plain SQL identifier, or a reserved keyword)
Features
Built on @cyanheads/mcp-ts-core: stdio and Streamable HTTP transports, pluggable auth (none / jwt / oauth), swappable storage (in-memory, filesystem, Supabase, Cloudflare KV/R2/D1), structured logging with optional OpenTelemetry tracing.
Open-Meteo-specific:
No API key for non-commercial use; commercial use requires Open-Meteo's paid API tier
Columnar API responses reshaped into per-timestamp records with
*_unitsmaps, on the same variable names across forecast and archiveDataCanvas spillover on the seven weather tools (forecast, historical, marine, air quality, ensemble, flood, climate): with
CANVAS_PROVIDER_TYPE=duckdban over-budget result is staged as a DuckDB table and the response carriescanvas_id,table_name, andtruncated: true; with the defaultnoneit returns a bounded preview andtruncated: truemodelson the historical, ensemble, and climate tools is not an allowlist, so a model Open-Meteo adds later works without a server update
Agent-friendly output:
Location-first workflow:
openmeteo_search_locationsreturns the IANAtimezonealongside coordinates, ready for any weather tool'stimezoneinput (defaultauto)Typed rejections: a variable passed under the wrong cadence fails as
variable_wrong_cadencebefore the upstream call, naming the field it belongs in; an over-wide request fails asrequest_too_large, naming the inputs to narrow; an upstream rate limit fails asrate_limitedon every upstream-calling tool, and onlyToo many concurrent requests, which clears within seconds, is retried firstRequest URLs never appear in error data or in the log records the client receives
One
noticeper response for what the data alone won't show: variable names the endpoint doesn't serve, null values from a location or window outside a dataset's coverage, and where spilled rows went
Getting started
Public Hosted Instance
A public instance is available at https://open-meteo.caseyjhand.com/mcp — no installation required. Point any MCP client at it via Streamable HTTP:
{
"mcpServers": {
"open-meteo-mcp-server": {
"type": "streamable-http",
"url": "https://open-meteo.caseyjhand.com/mcp"
}
}
}Self-Hosted / Local
Add the following to your MCP client configuration file.
{
"mcpServers": {
"open-meteo-mcp-server": {
"type": "stdio",
"command": "bunx",
"args": ["@cyanheads/open-meteo-mcp-server@latest"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info"
}
}
}
}Or with npx (no Bun required):
{
"mcpServers": {
"open-meteo-mcp-server": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@cyanheads/open-meteo-mcp-server@latest"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info"
}
}
}
}Or with Docker:
{
"mcpServers": {
"open-meteo-mcp-server": {
"type": "stdio",
"command": "docker",
"args": ["run", "-i", "--rm", "-e", "MCP_TRANSPORT_TYPE=stdio", "ghcr.io/cyanheads/open-meteo-mcp-server:latest"]
}
}
}For Streamable HTTP, set the transport and start the server:
MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 bun run start:http
# Server listens at http://localhost:3010/mcpPrerequisites
Bun v1.4.0 or higher (or Node.js v24+).
No API key required. Non-commercial use is free and keyless.
Commercial use requires Open-Meteo's paid API tier.
Installation
Clone the repository:
git clone https://github.com/cyanheads/open-meteo-mcp-server.gitNavigate into the directory:
cd open-meteo-mcp-serverInstall dependencies:
bun installConfiguration
Every variable is optional.
Variable | Description | Default |
| Forecast and elevation API base URL. |
|
| Historical archive API base URL. |
|
| Marine API base URL. |
|
| CAMS air quality API base URL. |
|
| Geocoding API base URL. |
|
| Ensemble API base URL. |
|
| GloFAS flood API base URL. |
|
| CMIP6 climate API base URL. |
|
|
|
|
|
|
|
| Transport: |
|
| HTTP server port. |
|
| HTTP session mode: |
|
| Authentication: |
|
| Log level ( |
|
| Directory for log files (Node.js only). |
|
| Storage backend: |
|
| Enable OpenTelemetry. |
|
See .env.example for the full list of optional overrides.
Running the server
Local development
Build and run the production version:
# One-time build bun run rebuild # Run the built server bun run start:http # or bun run start:stdioRun checks and tests:
bun run devcheck # Lint, format, typecheck, security bun run test # Vitest test suite
Docker
docker build -t open-meteo-mcp-server .
docker run --rm -p 3010:3010 open-meteo-mcp-serverThe Dockerfile defaults to HTTP transport, stateless session mode, and logs to /var/log/open-meteo-mcp-server. OpenTelemetry peer dependencies are installed by default — build with --build-arg OTEL_ENABLED=false to omit them.
Project structure
Directory | Purpose |
|
|
| Server-specific environment variable parsing and validation with Zod. |
| Tool definitions ( |
| Shared tool helpers — model catalog, cadence validation, columnar reshape, spillover, response notices. |
| HTTP client for the Open-Meteo APIs — retry, error classification, coverage-gap rejection. |
| DataCanvas accessor shared by the spill-capable tools. |
| Unit, integration, fuzz, and smoke tests. |
Development guide
See CLAUDE.md for development guidelines and architectural rules. The short version:
Handlers throw, framework catches — no
try/catchin tool logicUse
ctx.logfor request-scoped logging,ctx.statefor tenant-scoped storageRegister new tools in the
tools[]array insrc/index.tsWrap external API calls: validate raw → normalize to domain type → return output schema; never fabricate missing fields
Attribution
Weather data by Open-Meteo.com, licensed CC BY 4.0.
Contributing
Issues are welcome. Run checks and tests before submitting:
bun run devcheck
bun run testLicense
Apache-2.0 — see LICENSE for details.
This server cannot be deployed
Maintenance
Related MCP Connectors
Open-Meteo MCP — weather forecast + historical reanalysis + sister APIs
Climate MCP — wraps Open-Meteo Climate API (free, no auth)
Weather MCP — wraps Open-Meteo API (free, no auth)
MET Norway (api.met.no) MCP — global weather, Nordics specials.
Related MCP Servers
- FlicenseAqualityDmaintenanceA comprehensive MCP server providing tools for real-time, forecast, and historical weather data, alongside air quality, marine conditions, and climate projections. It also includes geocoding services to search for locations and retrieve precise coordinates for environmental analysis.7-
- AlicenseNot gradedqualityBmaintenanceExposes weather data from the free Open-Meteo API via decorator-driven MCP tools with Zod schemas, supporting stdio and HTTP transports.22 npmMIT
- AlicenseNot gradedqualityBmaintenanceMCP server that provides tools to retrieve weather information from a weather API, supporting both local stdio and remote Streamable HTTP transports.284 npm1MIT
- FlicenseNot gradedqualityCmaintenanceEnables querying weather, country information, exchange rates, public holidays, and dictionary definitions by wrapping public APIs as MCP tools over stdio.-