# met-mcp [Health: Active]

**Category:** 🌳 Environment & Nature  
**Repository:** https://github.com/trondbjoroy/met-mcp  
**GitHub Stars:** 0  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/met-mcp

## Description
Weather forecasts from MET Norway (Yr): geocoding plus hourly forecasts worldwide.

## Tools
Capabilities this server exposes over MCP:

- **geocode_location** — Find latitude and longitude for a place name. Use the coordinates with the other tools.
- **get_forecast** — Get an hourly weather forecast from MET Norway (Yr) for a coordinate. Works worldwide, best coverage in the Nordics.
- **get_nowcast** — Minute-by-minute precipitation for the next 2 hours, radar-based. Nordic region only. Answers 'do I need an umbrella right now?'
- **get_weather_alerts** — Official danger warnings (wind, flood, ice, forest fire...) from MET Norway. Covers Norway and its waters. Omit coordinates to get all current alerts. Alert text is in Norwegian.
- **get_sun_events** — Sunrise, sunset, and solar noon for a coordinate and date. Works worldwide.
- **get_ocean_forecast** — Wave height, wave direction, and sea temperature. Covers the Norwegian coast and nearby seas.
- **find_weather_stations** — Find the nearest official weather stations (Frost). Use the station id (e.g. SN50540) with get_historical_weather.
- **get_historical_weather** — Daily historical observations from a weather station (Frost archive, some stations go back over 100 years). Find station ids with find_weather_stations.

## Claude Desktop Quick Installation
Remote MCP endpoint (confidence: high). Install path detected from listing signals. Add as a URL/SSE server in your client:

```json
"mcpServers": {
  "met-mcp": {
    "url": "https://met-mcp.met-mcp-worker.workers.dev/mcp"
  }
}
```

## Documentation

## What met-mcp MCP server does

The met-mcp MCP server gives MCP clients access to weather services from MET Norway, also known as Yr. It can turn a place name into coordinates, retrieve current and forecast information, and query several specialized weather datasets. Geocoding is handled through the free Open-Meteo geocoder because MET Norway does not provide a geocoding API.

The available data covers different geographic areas and time ranges:

- Hourly forecasts work worldwide, with best coverage or relevance in the Nordic region.
- Radar-based precipitation nowcasts cover the Nordic countries and extend up to two hours.
- Official danger warnings cover Norway.
- Sunrise, sunset, and solar noon calculations work worldwide.
- Wave height and sea temperature forecasts cover the Norwegian coast.
- Frost provides nearby official stations and historical daily observations, including records that may extend back more than a century.

## How it works

The local implementation communicates over MCP using JSON-RPC on standard input and output. MCP clients read each tool's Zod-defined input schema and provide validated arguments. Results are returned as JSON inside text content blocks; responses are reduced from the larger MET payload to fields intended for language-model use.

The same tool definitions are shared by the local stdio server and the remote Cloudflare Workers deployment. The remote endpoint uses MCP Streamable HTTP and is available at `https://met-mcp.met-mcp-worker.workers.dev/mcp`. The project also includes a worker implementation under `worker/`, using the MCP SDK's `createMcpHandler`.

## Setup and configuration

Install the npm package or build the repository locally. A repository checkout can be installed, built, and tested with:

```bash
npm install
npm run build
npm test
```

To use the local process with Claude Code, register the compiled entry point with an MCP command such as:

```bash
claude mcp add met-weather -- node C:\Users\trond\met-mcp\dist\index.js
```

Most tools require no credentials. The two Frost-based tools, `find_weather_stations` and `get_historical_weather`, require a free Frost client ID in `FROST_CLIENT_ID`. The worker uses the equivalent Cloudflare secret. Requests to MET Norway should identify the caller with `MET_USER_AGENT`, including contact information.

## Tools and capabilities

The met-mcp MCP server exposes these operations:

- `geocode_location(name, count)` finds coordinates for a place name.
- `get_forecast(latitude, longitude, hours)` retrieves hourly MET Locationforecast 2.0 data.
- `get_nowcast(latitude, longitude)` returns radar precipitation for the next two hours.
- `get_weather_alerts(latitude?, longitude?)` retrieves Norwegian danger warnings, or all warnings in Norway when coordinates are omitted.
- `get_sun_events(latitude, longitude, date, utc_offset)` returns sunrise, sunset, and solar noon.
- `get_ocean_forecast(latitude, longitude, hours)` retrieves wave height and sea temperature along the Norwegian coast.
- `find_weather_stations(latitude, longitude, count)` locates nearby official Frost stations.
- `get_historical_weather(station_id, from, to, elements)` retrieves daily observations from the Frost archive.

## Limitations and notes

Nowcasts and ocean forecasts are geographically limited, while weather alerts are specifically Norwegian. Coordinates are rounded to a maximum of four decimal places before requests are sent. Applications displaying MET data must follow the stated NLOD / CC BY 4.0 licensing terms and credit MET Norway.

The local server must not write logs to stdout because that stream carries the MCP protocol. Diagnostic output should go to stderr instead. Tests call the live APIs, so successful test execution depends on those services being available. The remote worker currently describes the same two-tool deployment in its setup notes, while the npm server exposes the full tool list above.

_Full upstream README: https://allmcps.com/mcp/met-mcp/readme_

