Skip to content
AvFees

API & MCP

One REST API, described in OpenAPI 3.1 and exposed as MCP tools. The spec is at /api/openapi.json and the MCP manifest is at /api/mcp-manifest.json.

Authentication

Send your key as a bearer token. Keys start with ffe_. Without a key, or with one AvFees does not accept, the API answers 401 with a WWW-Authenticate: Bearer header and a body such as {"error":"missing_bearer","detail":"..."}: the error code (missing_bearer, unknown_key, revoked) and a detail saying what to do.

curl "https://avfees.com/api/v1/fees?icao=CYSB&aircraft_class=turboprop" \
  -H "Authorization: Bearer ffe_..."

Two reads need no key. GET /api/v1/fbos?icao=KTEB lists the FBOs at an airport as its page shows them (desk phone and email, hours, customs, call-out, address, services, website), with the page and date each fact was read off a website. GET /api/v1/coverage counts how complete and how current the FBO directory is: how many FBOs have a desk phone, a desk email, hours, a named contact and a website on file, how many are complete, and how many were read in the last 7, 30 and 90 days, in total and by country. Counts only.

curl "https://avfees.com/api/v1/coverage"

Connect AvFees to Claude / ChatGPT / Cursor

AvFees runs a Model Context Protocol server. Add it to your AI assistant and it can upload invoices, report fees, look up fees, estimate the fees for a trip, check your credits, list holidays and events, check an airport's restrictions, list the FBOs at an airport and count how complete the FBO directory is, using your API key. The tools are submit_invoice, report_fee, lookup_fees, estimate_fees, credit_balance, list_events, airport_restrictions, list_fbos and directory_coverage, plus the fee request tools fee_request_quote, request_fees, get_fee_request, cancel_fee_request and list_fee_requests.

Server URL
https://avfees.com/mcp
Transport
Streamable HTTP (stateless, JSON responses)
Auth
Header Authorization: Bearer ffe_...

1. Get a key

Sign in to your account and press Create API key under API & MCP. A key is shown once, so keep it in your password manager. Uploading invoices or reporting fees needs a key created after you confirm, on the same page, that your operator allows you to share its invoices; lookups and the balance work with any key. ChatGPT and Claude.ai connectors need no key (step 4).

2. Claude Code

claude mcp add --transport http avfees https://avfees.com/mcp \
  --header "Authorization: Bearer ffe_..."

3. Cursor, Claude Desktop and other clients (JSON config)

Cursor: ~/.cursor/mcp.json. Clients that only launch local servers can use the mcp-remote bridge (npx mcp-remote https://avfees.com/mcp --header "Authorization: Bearer ...").

{
  "mcpServers": {
    "avfees": {
      "url": "https://avfees.com/mcp",
      "headers": { "Authorization": "Bearer ffe_..." }
    }
  }
}

4. ChatGPT and Claude.ai connectors

Add a custom connector with the server URL https://avfees.com/mcp and leave the key blank. The connector signs in with OAuth: it opens AvFees, you sign in with your AvFees account and allow it, and it connects. No key to paste.

Without a valid key the server answers 401 with a WWW-Authenticate header pointing at /.well-known/oauth-protected-resource.

Airport restrictions

The aircraft rules at an airport before you plan a trip there: a jet ban, a weight or wingspan limit, a curfew or a PPR requirement. Each rule carries its source and the date it was read, and the airport to use instead where there is one. Any key reads them, and they cost no credits. Send aircraft_type (an ICAO type designator) or aircraft_class and each rule's applies says whether it rules your aircraft out: true or false, or null when it turns on the time or a permission (a curfew, a PPR).

curl "https://avfees.com/api/v1/airports/CYTZ/restrictions?aircraft_type=GLF5" \
  -H "Authorization: Bearer ffe_..."

# A whole trip, up to 20 airports:
curl "https://avfees.com/api/v1/airports/restrictions?icao=KTEB,CYTZ&aircraft_type=GLF5" \
  -H "Authorization: Bearer ffe_..."

coverage says how far to trust an empty list: curated means AvFees checked the airport; nasr means US FAA NASR airport remarks only; none means AvFees hasn't looked, which is not the same as no restrictions.

Fee requests

When AvFees has no current fees for an FBO, Avia, AvFees' assistant, can ask the FBO's desk for them by email or phone. Avia never gives the desk a tail number, operator or trip. These routes need a key with the fees.request scope.

  1. GET /api/v1/fee-requests/quote?icao=KTEB&aircraft_type=GLF5 (free): each FBO at the airport, whether it can be asked now (requestable, reason, channels), its desk hours, the fees AvFees already holds, and your membership.
  2. POST /api/v1/fee-requests with an Idempotency-Key header (a UUID) and the fbo from the quote. A retry with the same key returns the same request. Answers 202 with the request id.
  3. GET /api/v1/fee-requests/{id} until it is filed (with the fee lines), failed or cancelled. Polling every 20 seconds is fine. POST /api/v1/fee-requests/{id}/cancel works while it is queued or scheduled, and GET /api/v1/fee-requests lists yours.

A live request needs the On-Demand membership on the account that owns the key (pricing); there is no per-request charge. "test": true contacts nobody, needs no membership and runs through the statuses in about 12 seconds.

curl -X POST "https://avfees.com/api/v1/fee-requests" \
  -H "Authorization: Bearer ffe_..." \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"icao":"KTEB","fbo":"<fbo from the quote>","aircraft_type":"GLF5","nights":1,"test":true}'

Operations

POST/api/v1/feesMCP tool report_fee

Report one observed fee line. Earns credits once validated (more for FBOs with no recent data; 0 for a duplicate).

Requires a key cleared to contribute (scope fees.contribute, which needs operator consent); otherwise 403 consent_required. Contributed lines are credited at once but stay visibility=pending_consent (not returned by any lookup) until published. A key whose account has confirmed consent on /account publishes at once: visibility=published with consent_ref account-attest:<account_id>:<version>.

GET/api/v1/feesMCP tool lookup_fees

Look up fees at an airport for an aircraft class. Costs 1 credit per FBO among the observed lines returned (free when there are none); subscription keys are unlimited and also get labeled projections for fee types with no fresh observation.

observed: fee lines from operators' invoices. published: list prices the airport or FBO posts on its own website (kind=published), for the FBO asked for plus airport-wide lines (fbo null), for the aircraft class plus lines for every class (aircraft_class null, with size_range / weight band) whose weight band, if any, overlaps the class's MTOW range, or holds mtow_lb when it is given. Only the current price: a line a newer effective date replaces is left out, and a fee several documents post is returned once (its other pages in also_at). Published lines are returned to every tier and add nothing to credits_charged.

ParameterRequiredNotes
icaoyes
aircraft_classyespiston, turboprop, light_jet, midsize_jet, super_midsize_jet, heavy_jet, airliner
fbonoLimit to one FBO. Needed for projections.
fee_typenohandling, ramp, facility, landing, terminal, parking, overnight, gpu, lav, water, deice, hangar, security, callout, navigation, other
mtow_lbnoOptional: the plane's maximum takeoff weight in pounds. Published lines for every class then come back only for the weight band that weight is in, instead of every band the class's typical MTOW range overlaps (a Dash 8 is a turboprop far heavier than a King Air).
GET/api/v1/estimateMCP tool estimate_fees

Estimate the fees for an upcoming stop: low / typical / high (25th percentile, median, 75th percentile) per fee type from published invoices for the same airport, aircraft class and currency, at one FBO when it has enough invoices, else airport-wide. Costs 1 credit when anything is estimated (free when nothing is); subscription keys are unlimited.

A fee is estimated only from at least 3 fee lines on at least 2 different invoices; thinner fees are listed in not_enough_data, never guessed. Parking, overnight and hangar are per night (multiplied by nights; left out for nights=0). GPU, lav, water, de-ice, hangar and call-out are if_used and not in total. When at least 2 invoices state a fuel waiver for a fee and fuel_gal reaches their typical gallons, the fee counts as 0 (waiver.applies). stale is true when the newest invoice behind a figure is more than 12 months old. trend gives airport-wide quarterly medians where 2 or more quarters have enough invoices. Amounts are never converted between currencies: other_currencies_not_included lists what was left out. A fee with no invoice figure falls back to the list price the airport or FBO posts on its website (flat, per landing, or per night for parking / overnight / hangar), for the aircraft class or every class (or a weight band its typical MTOW falls in): that row has source=published, label "Published list price", low / typical / high = lowest / median / highest posted price, and published_lines with each source_url; its fee type is listed in published_fee_types and it counts in total. Rows from invoices have source=invoices. An estimate whose figures are all published list prices is free.

ParameterRequiredNotes
icaoyes
aircraft_classyespiston, turboprop, light_jet, midsize_jet, super_midsize_jet, heavy_jet, airliner
fbonoEstimate at one FBO; airport-wide when omitted.
nightsno
fuel_galnoUS gallons of fuel planned, for fuel waivers.
POST/api/v1/invoicesMCP tool submit_invoice

Submit an FBO or airport invoice (PDF, base64). It is parsed into fee lines with every identifying detail dropped; credits are awarded once validated. Re-submitting the same invoice credits 0.

Requires a key cleared to contribute (scope fees.contribute, which needs operator consent); otherwise 403 consent_required. Contributed lines are credited at once but stay visibility=pending_consent (not returned by any lookup) until published. A key whose account has confirmed consent on /account publishes at once: visibility=published with consent_ref account-attest:<account_id>:<version>.

GET/api/v1/eventsMCP tool list_events

The events calendar: holidays, sporting events, festivals, conferences and airshows that bring private aircraft to an airport in numbers, when FBOs often bill holiday, peak or special-event rates. Stored events plus recurring holidays computed by rule (Thanksgiving, Christmas to New Year, long weekends), by start date. Public: no key, free.

ParameterRequiredNotes
fromnoDefault today.
tonoDefault a year after from; at most 1100 days after it.
icaonoOnly what applies at this airport (its events and its country's holidays).
GET/api/v1/airports/{icao}/restrictionsMCP tool airport_restrictions

Airport restrictions: the aircraft rules at an airport (a jet ban, a weight or wingspan limit, a curfew, a PPR), each with its source and date, the airport to use instead where there is one, and how far AvFees has looked (coverage). Any AvFees key; no credits.

ParameterRequiredNotes
icaoyes4-character ICAO code.
aircraft_typenoICAO type designator (GLF5, PC12); fills applies.
aircraft_classnoFills applies; wins over aircraft_type. Send it with a type AvFees has no class for.
GET/api/v1/airports/restrictionsMCP tool airport_restrictions_batch

Airport restrictions: the aircraft rules at an airport (a jet ban, a weight or wingspan limit, a curfew, a PPR), each with its source and date, the airport to use instead where there is one, and how far AvFees has looked (coverage). Any AvFees key; no credits. Batch form for a whole trip: up to 20 airports.

ParameterRequiredNotes
icaoyesComma-separated ICAO codes, at most 20 (KVNY,CYTZ).
aircraft_typenoICAO type designator (GLF5, PC12); fills applies.
aircraft_classnoFills applies; wins over aircraft_type. Send it with a type AvFees has no class for.
GET/api/v1/fbosMCP tool list_fbos

The FBOs listed at one airport, as its AvFees page shows them: hours, customs, after-hours call-out, street address, services and amenities, website, whether the FBO manages its listing, and the source and date of each fact read off the FBO's own website. No fees and never a fuel price. Public: no key, free.

ParameterRequiredNotes
icaoyesThe airport's 4-character ICAO code, e.g. KDEN.
GET/api/v1/coverageMCP tool directory_coverage

How complete and how fresh the FBO directory is: how many listed FBOs have a desk phone, a desk email, hours, a named contact and a website on file, how many are complete, and how many were read off their own website in the last 7, 30 and 90 days; in total and by country. Counts only. Public: no key, free.

GET/api/v1/creditsMCP tool credit_balance

The calling key's credit balance and tier.

GET/api/v1/fee-requests/quoteMCP tool fee_request_quote

Before a fee request (free): the FBOs at an airport, whether Avia can ask each desk for its fees now (requestable, reason, channels), the desk's hours, the fees AvFees already holds for it, and the key's On-Demand membership. Needs scope fees.request.

ParameterRequiredNotes
icaoyes4-letter ICAO airport code, e.g. KTEB.
aircraft_typeyesICAO type designator, e.g. GLF5, C56X, PC12.
aircraft_classnoOverrides AvFees' mapping of the type; needed when it can't map one.
fbonoOnly this FBO (AvFees' key, from an earlier quote).
POST/api/v1/fee-requestsMCP tool request_fees

Ask one FBO's desk for its fees for one aircraft type and stay. Avia emails the desk (at any hour) or calls it (in desk hours; outside them the request is scheduled). A live request needs the On-Demand membership on the account that owns the key; test: true contacts nobody, charges nothing, needs no membership and runs through the statuses on a 12-second clock. No per-request charge. Needs scope fees.request.

ParameterRequiredNotes
Idempotency-KeyyesA UUID. A retry with the same key and body returns the same request; the same key with a different body is 409 idempotency_conflict.
GET/api/v1/fee-requestsMCP tool list_fee_requests

The key's own fee requests, newest first (at most 50), test requests included. Needs scope fees.request.

ParameterRequiredNotes
reference_prefixnoOnly requests whose reference starts with this.
GET/api/v1/fee-requests/{id}MCP tool get_fee_request

One of the key's fee requests: its status, how it ended (outcome), the channel Avia used and, once filed, the fee lines the desk gave. Poll it (every 20 s is fine). Needs scope fees.request.

ParameterRequiredNotes
idyes
POST/api/v1/fee-requests/{id}/cancelMCP tool cancel_fee_request

Cancel a fee request while it is queued or scheduled (free). Cancelling one already cancelled answers it again. Needs scope fees.request.

ParameterRequiredNotes
idyes

Errors

Stuck on an API key, a call or the MCP tools? Contact support →