# EU261 & UK261 Flight Compensation Calculator (MCP) (`conradvukovic/eu261`) Actor

Deterministic EU261 / UK261 calculator for AI agents: scope, distance band, delay, cancellation and denied-boarding compensation, 50% reductions, right to care, downgrade refunds.

- **URL**: https://apify.com/conradvukovic/eu261.md
- **Developed by:** [Rémi Dubois](https://apify.com/conradvukovic) (community)
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $100.00 / 1,000 compensation checks

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## EU261 & UK261 Flight Compensation Calculator (MCP)

**Give your AI agent the exact answer to "how much compensation am I owed?"** This Actor is a remote MCP server that lets Claude, ChatGPT, Cursor or any MCP-compatible agent apply **Regulation (EC) No 261/2004 (EU261)** and its UK version (**UK261**) deterministically: scope, distance band, delay, cancellation and denied boarding, exemptions and reductions.

Every answer explains why, cites the articles and case law used, and carries a disclaimer. Calculations run in code, not in a language model: same input, same answer.

Built by an airline pilot (First Officer) who knows how delays, cancellations and re-routings actually happen.

### Who it is for

Travel agents and online travel agencies, claim-management start-ups, customer-service and chatbot teams at airlines and airports, travel insurers, legal-tech builders, and consumer assistants that answer "my flight was late".

### Tools

| Tool | What it returns | Rule |
|---|---|---|
| `eu261_check_claim` | Eligibility and amount per passenger (EUR and/or GBP), explanation, possible 50% reduction | Art. 3, 4, 5, 6, 7; CJEU Sturgeon, Nelson, Bossen, Germanwings |
| `eu261_scope` | Does EU261 and/or UK261 cover the flight? (departure, arrival, operating carrier licence) | Art. 3 |
| `eu261_flight_distance` | Great-circle distance and distance band (a/b/c), intra-EU flag | Art. 7(1), 7(4) |
| `eu261_right_to_care` | Meals, communication, hotel, refund option during a long delay | Art. 6, 8, 9 |
| `eu261_downgrade_refund` | 30 / 50 / 75% refund for involuntary downgrading | Art. 10(2) |
| `eu261_airport_info` | Airport name, city, country and passenger-rights zone from an IATA code | Art. 3 |

Covered territory: EU Member States including outermost regions (Canary Islands, Madeira, Azores, Guadeloupe, Martinique, French Guiana, Réunion, Mayotte, Saint-Martin), Iceland, Norway, Liechtenstein and Switzerland; UK for UK261. About 9,000 airports with an IATA code.

#### Example

> "Paris CDG to New York JFK on an EU airline, arrived 4 h 20 late. What am I owed?"

`eu261_check_claim` returns **€600 per passenger** (distance 5,834 km, band c, arrival delay of 3 hours or more), with the references. Had the delay been between 3 and 4 hours, it flags that the airline may reduce it to €300.

### How to connect

Endpoint (Streamable HTTP): `https://<username>--eu261.apify.actor/mcp`, with your Apify API token in the `Authorization: Bearer <token>` header.

Claude Code:

```bash
claude mcp add --transport http eu261 https://<username>--eu261.apify.actor/mcp --header "Authorization: Bearer <APIFY_TOKEN>"
```

Cursor / other clients:

```json
{ "mcpServers": { "eu261": { "url": "https://<username>--eu261.apify.actor/mcp",
  "headers": { "Authorization": "Bearer <APIFY_TOKEN>" } } } }
```

Through Apify's hosted MCP server (`https://mcp.apify.com`, sign-in with OAuth), ask your assistant to call the tools of the `eu261` Actor.

### Pricing

Pay per event: **$0.10** per compensation check (`eu261_check_claim`), **$0.02** per other lookup. Calls rejected for invalid input are not charged.

### Coverage and limits

Applies the rules in force today. The revision of Regulation 261/2004 approved in July 2026 will apply only from its date of application (expected in the second half of 2027); this Actor will be updated then. Not covered: whether a given event is an "extraordinary circumstance" (you tell the tool), national claim deadlines, Montreal Convention damages, package travel rights, and multi-carrier itinerary edge cases (the tool uses the first departure and final destination of the booking).

Also by the same developer: **EASA FTL Calculator (MCP)** and **FAA Part 117 Duty & Rest Calculator (MCP)** for flight crew duty limits.

### Disclaimer and sources

Information tool, not legal advice. Sources: Regulation (EC) No 261/2004 (EUR-Lex), Commission Interpretative Guidelines C/2024/5687, CJEU case law, UK Regulation 261/2004 as amended (legislation.gov.uk). Airport data: OurAirports (public domain).

# Actor input Schema

## Actor input object example

```json
{}
```

# Actor output Schema

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

Self-test calculation stored by a normal (non-Standby) run.

# 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("conradvukovic/eu261").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("conradvukovic/eu261").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 conradvukovic/eu261 --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,conradvukovic/eu261"
        }
    }
}
```

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/rVg2FaXgBDKM7r84m/builds/Bn3qohaW4hyJ4JdCd/openapi.json
