Skip to main content
MCP server CX Codex

open-meteo-mcp-server — Claude Code MCP server: install and use

Connects AI agents to Open-Meteo forecasts, historical climate data since 1940, and marine conditions. Works over HTTP or npx without any API key.

Install into Claude Code · Platform CLI: remote server All methods and platforms ↓
claude mcp add --transport http open-meteo-mcp-server https://open-meteo.caseyjhand.com/mcp
Open on GitHub

What open-meteo-mcp-server does

This MCP server exposes 12 specialized tools that interface with Open-Meteo endpoints. It handles place geocoding with timezone detection, fetches forecasts up to 16 days ahead, and pulls historical climate records spanning back to 1940. You also get access to ocean waves, air quality indexes, flood discharges, and terrain elevations.

Results can be staged on a DataCanvas instance for querying with read-only SQL statements. When querying weather forecasts across several weather models, the response appends model suffixes to individual data columns.

You do not need an account or token to run queries. Keep in mind that reanalysis sets like ERA5 trail behind real time by roughly five days. For recent dates within the past week, pass past_days to the forecast endpoint rather than searching the historical archive.

What it helps with

  • Geocode city names into coordinates and timezone data
  • Retrieve multi-day weather predictions across various forecast models
  • Query historical climate measurements dating back to 1940
  • Inspect wave conditions, air pollutant indexes, and river levels

Example prompts for the agent

  • Look up the coordinates for Tokyo and get a 7-day temperature forecast.
  • Compare tomorrow's hourly precipitation between GFS and ICON for London.
  • Check historical rainfall in Madrid for August 1995.

How to install open-meteo-mcp-server

1Platform CLI: remote server

claude mcp add --transport http open-meteo-mcp-server https://open-meteo.caseyjhand.com/mcp

2Platform CLI

claude mcp add --env MCP_LOG_LEVEL=<MCP_LOG_LEVEL> --env CANVAS_PROVIDER_TYPE=<CANVAS_PROVIDER_TYPE> --env OPENMETEO_DATAFRAME_DROP_ENABLED=<OPENMETEO_DATAFRAME_DROP_ENABLED> --env MCP_TRANSPORT_TYPE=<MCP_TRANSPORT_TYPE> --env MCP_HTTP_HOST=<MCP_HTTP_HOST> --transport stdio open-meteo-mcp-server -- npx -y @cyanheads/open-meteo-mcp-server

Replace <…> with your own values. 3 more environment variables are in the server README

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about open-meteo-mcp-server

How do I install open-meteo-mcp-server in Claude Code?

Run claude mcp add --transport http open-meteo-mcp-server https://open-meteo.caseyjhand.com/mcp in your terminal. This immediately connects your environment to the public hosted endpoint.

Is an API key required to use open-meteo-mcp-server?

No API key is needed. The server communicates directly with Open-Meteo public endpoints.

Why does recent historical weather data show a delay?

The ERA5 climate reanalysis lags behind by approximately 5 days. Use the past_days argument in openmeteo_get_forecast instead of calling openmeteo_get_historical for dates from the past week.

Similar MCP servers

All MCP servers for Data and databases →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor