# FAA Part 117 Duty & Rest Calculator (MCP) (`conradvukovic/faa-117`) Actor

Deterministic FAA 14 CFR Part 117 calculator for AI agents: max FDP (Tables A, B, C), augmented crews, extensions, rest, cumulative limits, consecutive nights, split duty.

- **URL**: https://apify.com/conradvukovic/faa-117.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 $20.00 / 1,000 part 117 calculations

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

## FAA Part 117 Duty & Rest Calculator (MCP)

**Stop letting your AI assistant guess FAA duty limits.** This Actor is a remote MCP server that gives Claude, ChatGPT, Cursor or any MCP-compatible agent a deterministic calculator for **14 CFR Part 117** flightcrew member duty and rest requirements.

Every answer cites the rule it applies (for example `117.13`, `Table B to Part 117`) 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 applies flight time limitation rules on every rotation. Tables checked cell by cell against the regulation and covered by automated tests.

### Who it is for

Crew schedulers and crew-tracking teams, roster and pairing optimisers, Part 121 operators and charter companies that elected Part 117, pilots checking a trip, union scheduling committees, aviation consultants, and the AI assistants and agents they build.

### Tools

| Tool | What it computes | Rule |
|---|---|---|
| `faa117_plan_fdp` | Full picture of one FDP: max FDP, max flight time, latest end, margins, WOCL, extension if needed | 117.11, 117.13, 117.17, 117.19 |
| `faa117_max_fdp` | Max scheduled FDP, unaugmented (Table B) or augmented (Table C, 3-4 pilots, rest facility class 1/2/3) | 117.13, 117.17 |
| `faa117_flight_time_limit` | Max flight time: Table A (8/9 h), 13 h (3 pilots), 17 h (4 pilots) | 117.11 |
| `faa117_extension_check` | Unforeseen-circumstance extension: 2 h before takeoff, one >30 min extension per 30-h rest, cumulative check, FAA report | 117.19 |
| `faa117_minimum_rest` | 10 h with 8 h sleep opportunity, 30 h in 168 h, 56 h after long trips, deadhead | 117.25 |
| `faa117_cumulative_limits` | 60 FDP h/168 h, 190/672 h, 100 flight h/672 h, 1,000/365 days, 30-h rest check | 117.23, 117.25(b) |
| `faa117_consecutive_nights` | Max 3 consecutive WOCL FDPs, up to 5 with 2-h rest opportunities | 117.27 |
| `faa117_split_duty_check` | Can a 22:00-05:00 rest opportunity (3 h min, 14 h max combined) be excluded from the FDP? | 117.15 |
| `faa117_acclimation_status` | Acclimated? (72 h in theater or 36 h free from duty) | 117.3, 117.25(c) |
| `faa117_theater_change` | New theater? (more than 60 degrees of longitude) | 117.3 |

Times of day are `HH:MM` in acclimated local time (if not acclimated: local time of the theater where last acclimated). Date-times are ISO 8601.

#### Example

> "Report 07:30, 2 segments, 2-pilot crew, planned FDP 13:00 and 8:30 flight time. Legal?"

`faa117_plan_fdp` returns **max FDP 14:00** (Table B, 0700-1159, 2 segments), margin 1:00, **max flight time 9:00** (Table A), margin 0:30, latest end 21:30, with references.

### How to connect

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

Claude Code:

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

Cursor / other clients:

```json
{ "mcpServers": { "faa-117": { "url": "https://<username>--faa-117.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 `faa-117` Actor.

### Pricing

Pay per event: **$0.02** per successful calculation, **$0.10** per `faa117_plan_fdp` or `faa117_cumulative_limits` call. Calls rejected for invalid input are not charged.

### Coverage and limits

Covered: Tables A, B and C and sections 117.3, 117.11, 117.13, 117.15, 117.17, 117.19, 117.23, 117.25 and 117.27 for lineholders. Not yet covered: reserve duty (117.21), 117.29 emergency and government-sponsored operations, Part 91K/135 rules, deadhead and training specifics beyond 117.25(g), and operator FRMS approvals.

Also by the same developer: [EASA FTL Calculator (MCP)](https://apify.com/conradvukovic/easa-ftl) for European operators, and [EU261 & UK261 Flight Compensation Calculator (MCP)](https://apify.com/conradvukovic/eu261) for passenger rights.

### Disclaimer and sources

Planning aid, not an official source. The certificate holder's FAA-approved procedures, fatigue risk management system and collective bargaining agreements may be more restrictive and prevail. Source: 14 CFR Part 117 (Electronic Code of Federal Regulations), a U.S. Government work.

# 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/faa-117").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/faa-117").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/faa-117 --silent --output-dataset

```

## MCP server setup

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

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/Rt3vafwtWRCUM9xHO/builds/MiPYplSXiR4qMWbzq/openapi.json
