# Finland Severe Weather & Baltic Marine Alerts (FMI CAP/WFS) (`itulo/fmi-weather-warnings-alerts`) Actor

Real-time Finnish Meteorological Institute (FMI) CAP 1.2 severe weather, wind, wave & traffic alerts plus live synoptic weather and Baltic Sea mareograph sea-level observations. Keyless CC BY 4.0 open data.

- **URL**: https://apify.com/itulo/fmi-weather-warnings-alerts.md
- **Developed by:** [Italo Armenti](https://apify.com/itulo) (community)
- **Categories:** Business, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 weather/marine alert or station observations

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Finland Severe Weather & Baltic Marine Alerts — FMI CAP & WFS API (`itulo/fmi-weather-warnings-alerts`)

Real-time **Finnish Meteorological Institute (FMI)** CAP 1.2 severe weather, storm wind, Baltic wave height, vessel icing, sea-level, and traffic warnings (`alerts.fmi.fi`) combined with live WFS 2.0 synoptic weather station observations and Baltic Sea mareograph sea-level readings (`opendata.fmi.fi/wfs`).

Keyless, clean **CC BY 4.0** open data built for Nordic logistics, maritime port operations, power grid resilience, construction scheduling, and property risk automation.

Ships as both a **Pay-Per-Event Apify Actor** (`itulo/fmi-weather-warnings-alerts`) and an open-source **stdio MCP Server** (`src/mcp-server.js`).

> **Independent Tool Notice:** Not affiliated with or endorsed by Ilmatieteen laitos (FMI); uses no FMI logo.

***

### Supported Modes

- **`active_alerts` (CAP 1.2 Severe Weather & Marine Warnings):** Normalized alerts with severity (`Minor`, `Moderate`, `Severe`, `Extreme`), alert color (`yellow`, `orange`, `red`), onset/expiry UTC timestamps, affected Finnish land municipalities and Baltic sea sub-basins, polygon bounding boxes, physical impact summaries, and `isGridOrMarineRisk` flags.
- **`weather_observations` (Synoptic Weather Stations):** Latest 2m air temperature, 10-min average wind speed, max wind gust, wind direction, relative humidity, 1h precipitation, snow depth, sea-level pressure, and visibility across Finnish cities.
- **`sea_level_observations` (Baltic Sea Mareographs):** Latest Baltic Sea water level (`seaLevelMm` relative to theoretical mean water) and water temperature across Finnish coastal mareograph stations (Helsinki, Turku, Hanko, Hamina, Rauma, Vaasa, Oulu, Kemi, etc.).

***

### Pay-Per-Event Pricing (`PAY_PER_EVENT`)

| Event Name | Price (USD) | Description |
|---|---|---|
| `actor-start` | **$0.01 / run** | Flat fee for starting an Actor run |
| `weather-alert-or-obs` | **$0.0015 / record** ($1.50 / 1,000) | Each normalized FMI CAP alert, synoptic weather observation, or Baltic mareograph sea-level observation written to the dataset (primary event) |

***

### Data Licence & Attribution Compliance

- **Licence:** Creative Commons Attribution 4.0 International ([CC BY 4.0](https://creativecommons.org/licenses/by/4.0/deed.fi)).
- **Mandatory Attribution on Every Record:** `Ilmatieteen laitoksen avoin data, <dataset> (EN: Finnish Meteorological Institute open data, <dataset>), CC BY 4.0`

***

### Connect to Claude Desktop, Cursor & MCP Clients (Model Context Protocol)

You can use **`itulo/fmi-weather-warnings-alerts`** as a live tool inside **Claude Desktop**, **Cursor**, **Windsurf**, or any MCP-compatible AI agent in two ways:

#### Option A: Hosted Apify MCP Server (`@apify/actors-mcp-server`)

Zero local setup required. Add this to your `claude_desktop_config.json` (macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`, Windows: `%APPDATA%\Claude\claude_desktop_config.json`) or Cursor `.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "fmi-weather-alerts": {
      "command": "npx",
      "args": [
        "-y",
        "@apify/actors-mcp-server",
        "--actors",
        "itulo/fmi-weather-warnings-alerts"
      ],
      "env": {
        "APIFY_TOKEN": "YOUR_APIFY_API_TOKEN"
      }
    }
  }
}
```

#### Option B: Local Stdio MCP Server (Open-Source CLI)

Run the bundled stdio MCP server (`src/mcp-server.js`) directly on your machine. Exposed MCP tools: `fmi_active_alerts`, `fmi_weather_observations`, `fmi_sea_level_observations`, `fmi_alerts_licence_info`.

```json
{
  "mcpServers": {
    "fmi-weather-alerts-local": {
      "command": "node",
      "args": [
        "/absolute/path/to/tools/fmi-weather-warnings-alerts/src/mcp-server.js"
      ]
    }
  }
}
```

***

### n8n, Make.com & REST API Integration (One-Call Sync JSON)

Trigger **`itulo/fmi-weather-warnings-alerts`** synchronously and get the normalized JSON dataset items back in a single HTTP request — ideal for **n8n `HTTP Request` nodes**, **Make.com**, **Zapier**, or cron webhooks:

- **Method:** `POST`
- **Endpoint:** `https://api.apify.com/v2/acts/itulo~fmi-weather-warnings-alerts/run-sync-get-dataset-items?token=YOUR_APIFY_API_TOKEN`
- **Headers:** `Content-Type: application/json`

#### cURL Example

```bash
curl -s -X POST \
  "https://api.apify.com/v2/acts/itulo~fmi-weather-warnings-alerts/run-sync-get-dataset-items?token=${APIFY_TOKEN}" \
  -H "Content-Type: application/json" \
  -d '{"modes":["active_alerts","weather_observations","sea_level_observations"],"language":"en-GB","minSeverity":"Minor","maxAlerts":20,"places":["Helsinki","Turku","Tampere","Vaasa","Oulu","Rovaniemi"],"hoursBack":2,"maxSeaStations":10}'
```

***

### LangChain, CrewAI, Node.js & Python SDK Snippets

#### Node.js (`apify-client`)

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('itulo/fmi-weather-warnings-alerts').call({
  "modes": [
    "active_alerts",
    "weather_observations",
    "sea_level_observations"
  ],
  "language": "en-GB",
  "minSeverity": "Minor",
  "maxAlerts": 20,
  "places": [
    "Helsinki",
    "Turku",
    "Tampere",
    "Vaasa",
    "Oulu",
    "Rovaniemi"
  ],
  "hoursBack": 2,
  "maxSeaStations": 10
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

#### Python (`apify-client` / LangChain `ApifyWrapper` / CrewAI)

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("itulo/fmi-weather-warnings-alerts").call(run_input={
  "modes": [
    "active_alerts",
    "weather_observations",
    "sea_level_observations"
  ],
  "language": "en-GB",
  "minSeverity": "Minor",
  "maxAlerts": 20,
  "places": [
    "Helsinki",
    "Turku",
    "Tampere",
    "Vaasa",
    "Oulu",
    "Rovaniemi"
  ],
  "hoursBack": 2,
  "maxSeaStations": 10
})
items = client.dataset(run["defaultDatasetId"]).list_items().items
for row in items:
    print(row)
```

#### LangChain Python Tool

```python
from langchain_community.utilities import ApifyWrapper

apify = ApifyWrapper()
loader = apify.call_actor(
    actor_id="itulo/fmi-weather-warnings-alerts",
    run_input={
  "modes": [
    "active_alerts",
    "weather_observations",
    "sea_level_observations"
  ],
  "language": "en-GB",
  "minSeverity": "Minor",
  "maxAlerts": 20,
  "places": [
    "Helsinki",
    "Turku",
    "Tampere",
    "Vaasa",
    "Oulu",
    "Rovaniemi"
  ],
  "hoursBack": 2,
  "maxSeaStations": 10
},
    dataset_mapping_function=lambda item: str(item),
)
docs = loader.load()
```

***

### Frequently Asked Questions (FAQ)

#### Which official FMI feeds does this actor combine?

It combines three official, keyless Finnish Meteorological Institute (FMI) open-data feeds: (1) CAP 1.2 severe weather & marine alerts (`alerts.fmi.fi/cap/feed/atom_en-GB.xml`), (2) live 10-minute synoptic weather observations (`fmi::observations::weather::simple`), and (3) live Baltic Sea mareograph water-level observations (`fmi::observations::mareograph::simple`).

#### Can I filter FMI alerts by severity, land vs. sea area, or language?

Yes. Set `minSeverity` (`Minor`, `Moderate`, `Severe`, `Extreme`), `areaFilter` (region name or sea area such as `Gulf of Finland`, `Bothnian Sea`, `Uusimaa`), `gridOrMarineOnly: true` (wind, storm, wave, sea-level, icing), and `language` (`en-GB`, `fi-FI`, `sv-FI`).

#### Does this actor require an API key?

No. All three FMI CAP and WFS 2.0 endpoints are official keyless CC BY 4.0 open data.

**Related Search Keywords:** FMI Weather Warnings API · Finland CAP 1.2 Severe Weather Alerts API · Baltic Sea Wave & Wind Warnings API · Finnish Meteorological Institute WFS Open Data · Finland Mareograph Sea Level API · FMI Weather MCP Server

# Actor input Schema

## `modes` (type: `array`):

Select which FMI feeds to query: active_alerts (CAP 1.2 warnings), weather_observations (live synoptic station observations), sea_level_observations (Baltic mareograph stations).

## `language` (type: `string`):

Language for FMI CAP weather warnings (en-GB or fi-FI).

## `minSeverity` (type: `string`):

Minimum CAP alert severity to include.

## `regionFilter` (type: `string`):

Optional substring filter on area or headline (e.g. 'Baltic', 'Uusimaa', 'Lapland').

## `includeCancelled` (type: `boolean`):

Whether to include CAP Cancel messages.

## `maxAlerts` (type: `integer`):

Maximum number of deduplicated CAP alerts to return.

## `places` (type: `array`):

Finnish locations for live weather observations.

## `hoursBack` (type: `integer`):

Lookback window in hours for latest station observations.

## `maxSeaStations` (type: `integer`):

Maximum number of Baltic mareograph stations to return.

## Actor input object example

```json
{
  "modes": [
    "active_alerts",
    "weather_observations",
    "sea_level_observations"
  ],
  "language": "en-GB",
  "minSeverity": "Minor",
  "regionFilter": "",
  "includeCancelled": false,
  "maxAlerts": 30,
  "places": [
    "Helsinki",
    "Turku",
    "Tampere",
    "Vaasa",
    "Oulu",
    "Rovaniemi"
  ],
  "hoursBack": 2,
  "maxSeaStations": 10
}
```

# Actor output Schema

## `results` (type: `string`):

CAP weather/marine alerts and live station observations with mandatory FMI CC BY 4.0 attribution.

## `summary` (type: `string`):

Summary counts by mode and mandatory FMI CC BY 4.0 attribution.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("itulo/fmi-weather-warnings-alerts").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("itulo/fmi-weather-warnings-alerts").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call itulo/fmi-weather-warnings-alerts --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,itulo/fmi-weather-warnings-alerts"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/z0lbkA3wM1ZIBo1QA/builds/3hk7N42DJw6QgykP2/openapi.json
