Skip to main content
Glama
FreightUtils MCP Server

FreightUtils MCP Server

FreightUtils MCP Server

npm version npm downloads (total) npm downloads (month) License: MIT FreightUtils MCP server

The neutral freight reference layer for AI agents.

FreightUtils is the neutral freight reference layer for AI agents — source-backed dangerous-goods, customs, location and freight-calculation data an agent can call and cite, from primary sources (ADR 2025 / UNECE, HS 2022 / WCO, IATA-regulated airline prefixes). Neutral by design: no freight to sell and no carrier to push — a lookup returns what the named source says, with the citation attached so an agent can inspect it rather than take our word for it, regardless of who carries the load.

This Model Context Protocol server gives AI agents access to 28 freight calculation and reference tools, covering road, air, and sea freight. Built by a UK ADR-certified freight transport planner.

Every response cites its source — a _source block with the authority, edition, licence where held, and a verification status an agent can read — and the tools are deterministic, not generated answers. Reference only: never filing, booking, or legal advice, and results state when human review is required (validate is structural check-digit validation only; a clean ics2_check is not ENS acceptance; emissions figures are estimates, not audited reports).

Since 2.11.0, every tool also declares a typed outputSchema and returns structuredContent — the FreightUtils v1 response envelope: the answer under result, plus confidence, normalized_input, warnings, _source and a ready-to-use citation. The legacy flat JSON text channel is unchanged (byte-identical), so existing text-parsing consumers are unaffected.

Since 2.24.0 the envelope is version 1.2, which adds four fields beside ok: status (ok, partial when required inputs are missing, not_found, ambiguous or unsupported), missing_inputs (the inputs a partial answer still needs), edition (the edition the answer is served from, with the dates it applies from and may apply until; null for a computed or live answer) and as_of (the date the answer's data was last audited, or today for a computed answer). A refusal carries the same envelope on structuredContent, so an agent can read partial and missing_inputs there as well. The change is additive: envelope 1 and 1.1 answers still validate.

Since 2.26.0:

  • ADR 2025 and ADR 2027. The tools that read ADR data — adr_lookup, adr_exemption_calculator, adr_lq_eq_check, consignment_calculator, shipment_summary and, from 2.29.0, adr_consignment_check — take edition ("2025" or "2027") and as_of (YYYY-MM-DD). edition wins; otherwise as_of (default today, UTC) picks the edition by the legal timeline. Without either, they answer ADR 2025 until 31 December 2026 and ADR 2027 from 1 January 2027. ADR 2027 is accepted and applies from 1 January 2027: an ADR 2027 answer for an earlier date says it is not yet applicable on that as_of (EDITION_NOT_YET_APPLICABLE). From 1 January to 30 June 2027 either edition may be applied (EDITION_TRANSITIONAL); ADR 2025 answers end on 30 June 2027, and from 1 July 2027 edition: "2025" is refused with EDITION_UNSUPPORTED. An answer on a named edition carries adr_edition; an ADR 2027 exemption answer for UN 0081, 0082, 0084, 0241, 0331, 0332, 0482, 1005 or 1017 also carries transitional_1_6_1_61 (the ADR 2025 note-a basis that 1.6.1.61 allows until 31 December 2030) beside the verdict, never instead of it.

Since 2.25.0:

  • The ADR consignment check (2.29.0). adr_consignment_check takes the consignment object (lines[] with un_number, quantity { value, unit, basis }, packing_group / variant_index, packages, inner_packaging and, on an ID line, icao_limited_quantity; journey { date, tunnels_on_route, mode }) with edition / as_of beside it (journey.date is the default as_of) and answers status — pass, fail, conditional or insufficient_data — with missing_inputs[] (each input by path, the check it blocks, what to send) and checks_performed[] (each check's verdict, edition, date, basis and the ADR section and page it rests on). The 1.1.3.6 check is adr_exemption_calculator's answer, whole; the LQ / EQ checks are adr_lq_eq_check's; the tunnel check gives the whole load's code (the most restrictive, 8.6.3.2) and which tunnels on the route the load may use without and with the 1.1.3.6 relief (8.6.3.3); the document entries follow 5.4.1.1.1 (a), (b), (c), (d), (k), e.g. UN 1098 ALLYL ALCOHOL, 6.1 (3), I, (C/D). From 2.30.0 it also checks mixed loading (mixed_loading_7_5_2): every pair of lines against the ADR 7.5.2.1 table by the labels of Table A column (5), subsidiary labels included, Class 1 pairs against the 7.5.2.2 table by compatibility group, each pair with its deciding cell (e.g. 3 × 1.4) and source; and the foodstuffs precautions of 7.5.4 for goods with CV28, with the optional vehicle.foodstuffs_carried. Where the ADR text does not settle a case the check asks instead of assuming. From 2.31.0 it also checks the vehicle side — plates and placards (5.3), vehicle equipment (8.1) and driver training (8.2) — and from 2.32.0 the UN packaging mark of each line (6.1.3.1); the packaging kind against the packing instruction is not checked. A keyed call stores a check receipt.

  • Check receipts. A receipt is stored only when the package runs with an API key (FREIGHTUTILS_API_KEY) — a free key is enough (freightutils.com/pricing). Then every answer of the seven executed checks (adr_exemption_calculator, adr_lq_eq_check, uk_duty_calculator, consignment_calculator, shipment_summary, ics2_check and, from 2.29.0, adr_consignment_check) carries _meta.check_id and _meta.receipt_url. A receipt is the record of that one check, kept for 90 days at GET https://www.freightutils.com/api/receipts/{check_id} (?format=text for a summary): the inputs as consumed, the edition and as-of date, the data hashes, the rules applied, the result, anything unresolved and a receipt_hash a copy can be checked against. Without a key the answer carries the receipt hash inline and nothing is stored: _meta.receipt (stored: false, reason: "key_required"; from 2.28.0 the reason may also be "quota" — the key's daily stored-receipt allowance for the day is used up, the answer is unchanged and nothing is stored; receipt_hash and the hashed fields the answer does not otherwise carry, so the hash recomputes from the answer alone), and no check_id (the API's rule since 30 October 2026, typed in this package from 2.26.0). Verifying by id needs no plan and no payment — a keyed check's receipt is read with the same key — and a fetch counts as one request against the daily allowance, like a lookup. A receipt never holds a name, an address, a key or an IP address. Every check also names the edition it rested on (edition + as_of), or answers edition: null with _meta.edition_basis "no regulatory dataset read".

  • Batch inputs. adr_lookup takes un_numbers[]; unlocode_lookup, airport_lookup, airline_lookup and hs_code_lookup take codes[] (up to 50 each); uk_duty_calculator takes lines[] (up to 10). Send the list alone: the answer is results[] in input order, each item with its own status. One call against the daily limit, one per item against the Pro monthly allowance.

  • What each ADR code means. adr_lookup answers resolved_codes[] beside results[]: each code in Table A columns (5)–(20), once per answer, with the rows that carry it, its summary, ADR section and verification_status. include_codes picks compact (the default for a UN number), full (adds the url, title, meaning and references) or none; include_statements: true adds plain-word statements to every row. The meanings are FreightUtils' paraphrases of ADR 2025, cited to section, and verification_status says how each has been reviewed: paraphrase_unreviewed, machine_reviewed (two independent readings of the UNECE text, compared with the record; the owner adjudicates every disagreement), contested, owner_reviewed, dg_reviewed, needs_fix, or verified on the transport category and tunnel code entries read from the 1.1.3.6.3 and 8.6.4 tables (typed from 2.28.0).

  • Scopes. --scope dg | customs | ops (or FREIGHTUTILS_SCOPE) serves only that scope's tools — see Scoped tool lists. The default serves all of them.

  • The consignment object. consignment_calculator, shipment_summary and adr_exemption_calculator take one consignment argument (schema) instead of their own inputs; validate checks one with type: "consignment".

Website: https://www.freightutils.com API Docs: https://www.freightutils.com/api-docs

Rules every tool shares

Since 2.34.3 these are said once — here and in the server's instructions (sent on initialize) — instead of in each tool's description, so the tool list is lighter (about 57,400 tokens for all 26 tools, 14,700 of them to choose and call, against 79,400 and 31,600 in 2.34.2):

  • structuredContent is the FreightUtils response envelope: the answer under result, plus confidence, _source and citation.

  • Field names as this package serves them (snake_case); the hosted /api/mcp endpoint serves the same fields in camelCase (e.g. total_cbm → totalCbm).

  • Rate-limited: a limit error carries reset_at, the UTC time the allowance resets.

  • Fields are checked by name: a field the tool does not read is refused with a tool error naming it and listing the accepted ones, never ignored.

  • ADR editions: edition ("2025" | "2027") and as_of (YYYY-MM-DD) choose the ADR edition — edition wins, else the date picks it (ADR 2025 before 2027-01-01, ADR 2027 from then; ADR 2025 may still be applied until 2027-06-30). An answer on a named edition carries adr_edition; neither sent, the answer is ADR 2025 until 2027-01-01.

  • Identifiers: each record carries fu_id, a stable FreightUtils identifier (and fu_version_id where the dataset has editions); resolve_reference resolves one to exactly its record.

  • Lists: a list (no single record asked for) returns summary rows with total, truncated, next_offset and detail_hint; full: true returns full records five per page, with offset / limit to page.

  • Batch arguments (codes, un_numbers, lines): send alone; answered as results[] in input order, each with its own status. One call against the daily limit, N against the Pro monthly allowance.

  • consignment: the consignment object may replace a tool's other arguments; send it alone; an input the tool needs and the object lacks comes back in missing_inputs.


Tools (28)

Calculators

Tool

Description

ldm_calculator

Loading metres for European and US road trailers

cbm_calculator

Cubic metres for sea freight

chargeable_weight_calculator

Air freight chargeable weight (volumetric vs actual)

pallet_fitting_calculator

Box-on-pallet optimisation with rotation

container_lookup

ISO container specs (10 types) and loading calculation

unit_converter

Weight, volume, length, and freight-specific conversions

consignment_calculator

Multi-item CBM, LDM, volumetric & mode-specific chargeable weight (sea/air/road) + advisory flags

emissions_calculator

Freight CO2e via the ISO 14083 / GLEC distance-based method — open DEFRA/EPA/ADEME factors (WTW + TTW); use actual gross mass (not chargeable/volumetric); result carries empty_running + representativeness (sea/air = low) + a summary

Dangerous Goods (ADR)

Tool

Description

adr_lookup

2,939 UNECE ADR 2025 entries, all 20 Table A columns — beyond class, packing group, labels, special provisions, LQ/EQ, transport category, tunnel code and HIN: packing_instructions, special_packing_provisions, mixed_packing_provisions, portable_tank_instructions, portable_tank_special_provisions, tank_code, tank_special_provisions, vehicle_for_tank_carriage, carriage_packages, carriage_bulk, carriage_loading_unloading_handling, carriage_operation

adr_exemption_calculator

ADR 1.1.3.6 small load exemption check

adr_lq_eq_check

Limited and Excepted Quantity eligibility

adr_consignment_check

One call on the consignment object: the 1.1.3.6 verdict, LQ / EQ per line, the whole-load tunnel code against the route (ADR 8.6.3 / 8.6.4), the 5.4.1.1.1 transport-document entries and mixed loading (7.5.2, 7.5.4), with one status and page-cited checks

In 2.34.0: the envelope declares _meta.upstream — the upstream state of the datasets an answer was drawn from, as the site's daily upstream check recorded it: per dataset the state (in_step, changed_upstream, schema_drift, unreachable, window_missed, or unknown when it could not be read), how the dataset is watched, the last successful check and the window, with stale true only when a dataset missed its window (the answer is still the last verified edition held). Optional and passthrough, so an answer without it still validates. It says whether the upstream was checked inside its window, not that an answer is right (data status). Still 26 tools.

In 2.33.0: every record the fifteen record tools return declares fu_id (a stable FreightUtils identifier, the same across editions) and, where the dataset has editions, fu_version_id (fu_id@<edition>) — optional strings on passthrough records, so an answer without them still validates; the envelope declares _meta.ids { scheme, pattern }; each of those tools says so in one closing clause; and resolve_reference takes an fu: identifier of up to 200 characters, which resolves to exactly its one record or to none (every other identifier keeps the 32-character limit). Still 26 tools.

In 2.32.0: adr_consignment_check reads the UN packaging mark of each line — the optional lines[].packages.un_mark, read by ADR 6.1.3.1 field by field (symbol, the 6.1.2.7 code, the X / Y / Z packing-group letter and the density or gross mass, S or the test pressure, year, State, maker) and its letter held against the line's packing group (packaging_code_validity; no mark → conditional; the packaging kind against the packing instruction is not checked) — and leaves a limited / excepted quantity line whose stated regime is met out of the 1.1.3.6 total (ADR 1.1.3.6.5, exemption_1_1_3_6.engine.excluded_lines). Nothing removed: every 2.31.0 argument and answer field still validates.

In 2.31.0: adr_consignment_check answers the vehicle side — placards_and_plates_5_3 (orange-coloured plates, placards for Class 1 / Class 7 packages, the 5.3.6 mark, the 3.4.13 LQ mark as a condition), equipment_8_1 (documents, the 8.1.4.1 extinguisher band by the transport unit's mass, the 8.1.5 items by danger label) and driver_training_8_2 (the 8.2.1 certificate and Class 1 / Class 7 specialisations; 8.2.3 / Chapter 1.3 under 1.1.3.6). Each lists the requirements the load puts on the vehicle and checks them against the optional vehicle.* / crew inputs; without them a dangerous-goods load is conditional. fail means a check the load does not meet: a load outside 1.1.3.6 answers exemption_1_1_3_6: not_applicable (a fully regulated load, not a failed one), a line with no stated regime that fits neither LQ nor EQ is not_applicable, and result.regime ("1.1.3.6" | "full_adr" | "undetermined") says which rules the checks answered under.

In 2.30.0: adr_consignment_check checks mixed loading (mixed_loading_7_5_2: every pair of lines against the ADR 7.5.2.1 table by the labels of Table A column (5), Class 1 pairs against 7.5.2.2 by compatibility group, each pair with its deciding cell, e.g. 3 × 1.4, and source; the foodstuffs precautions of 7.5.4 for goods with CV28) and takes the optional vehicle.foodstuffs_carried. Still to come: plates and placards 5.3, equipment 8.1 and driver training 8.2.1 in build 2c, packaging codes in build 2d. Nothing removed: every 2.29.0 argument and answer field still validates.

In 2.29.0: adr_consignment_check (above; checks today: 1.1.3.6, LQ / EQ per line, the tunnel code, the transport-document entries; coming: mixed loading 7.5.2 in build 2b, plates and placards 5.3, equipment 8.1 and driver training 8.2 in build 2c, packaging codes in build 2d — each listed as not_in_this_version until then; a keyed call stores a check receipt, a keyless one carries the receipt hash). adr_exemption_calculator types two fields the API already serves: strict_adr_2027.entry_deleted (with deleted_un_numbers and message) and items[].edition_basis. A line whose entry is deleted in ADR 2027 (e.g. UN 2941) has no ADR 2027 figure; on a stated as_of from 2027-01-01 to 2027-06-30 the load is answered on ADR 2025 under 1.6.1.1 (basis: "1.6.1.1", every line edition_basis: "2025"), the strict block's four figures null. Nothing removed: every 2.28.0 argument and answer field still validates.

In 2.28.0: adr_exemption_calculator mirrors the website's 4 November calculator changes.

  • icao_limited_quantity (boolean, on an ID-prefixed line such as ID8000): an air-only line is counted out of 1.1.3.6 (AIR_ONLY_ID) only when the request states that the packages are limited quantities to the ICAO Technical Instructions; without it the line is BLOCKED (entry_required). On a UN-numbered line the API answers 400.

  • An item quantity of 0 is accepted: the goods are read as not carried, the line is left out of the load (state EXCLUDED_NIL) and named in a warning; a load of nothing but zeros is refused, never cleared.

  • A gross mass on an entry counted by mass is an upper bound of the net mass: the load is exempt on it only when it clears even so (figure_basis: "upper_bound_gross", items[].upper_bound_gross).

  • ADR 2027 answers carry basis (adr_2027, 1.6.1.61 or 1.6.1.1). ADR 2027 applies from 1 January 2027; on a stated as_of from that date, a transitional measure that clears a load ADR 2027 itself does not is headlined, with basis_until and the strict ADR 2027 figure beside it (strict_adr_2027); transitional_1_6_1_1 states the load on ADR 2025 inside the 1.6.1.1 window.

adr_lookup types verification_status as the ADR code registry serves it (see below). Nothing removed: every 2.27.0 argument and answer field still validates.

In 2.26.0: edition and as_of on the five ADR tools — ADR 2025 and ADR 2027 (accepted, applying from 1 January 2027) by edition or by date, with the ADR 2027 answer fields (adr_edition, transitional_1_6_1_61, transitional_notes, amended_in_2027); a check receipt is stored for keyed calls only, and an answer without a key carries its receipt hash in _meta.receipt. Nothing removed: every 2.25.0 argument and answer field still validates.

In 2.25.0: check receipts, batch inputs, resolved_codes on adr_lookup (what each Table A code means), --scope dg | customs | ops, the consignment object, and resolve_reference decodes ADR Table A codes ("TU9"). Nothing removed: every 2.24.0 call answers as before.

In 2.24.0: every tool answers with response envelope 1.2 (status, missing_inputs, edition, as_of); unlocode_lookup says 116,086 UN/LOCODE codes. In 2.23.0, adr_lookup gained the 12 further Table A columns (packing, tank, vehicle and carriage provisions, columns 8–14 and 16–19) in its description and result schema; empty columns are null.

Some UN numbers have more than one ADR Table A row (packing groups, concentration bands). When a bare UN number matches rows that give different answers, the ADR tools never pick one: they withhold the verdict and return the candidate rows, and you pin one with packing_group or variant_index. The rules, with worked cases (UN 1789, UN 1790 PG I, UN 2215 PG III): the ADR 1.1.3.6 calculator in the API docs.

Customs & Tariff

Tool

Description

hs_code_lookup

6,936 Harmonized System codes (HS 2022): 96 chapters, 1,228 headings, 5,612 subheadings

uk_duty_calculator

UK import duty and VAT (live GOV.UK Trade Tariff data)

incoterms_lookup

Incoterms 2020 — all 11 rules with risk/cost transfer points

ics2_check

Flag EU ICS2 unacceptable goods-description terms (stop-words) before filing an ENS — reference only

eu_tariff_lookup

EU tariff code (CN 8-digit or TARIC 10-digit) on a date: whether it exists and is declarable, and every measure that applies by TARIC's cascade from its parent lines — codes, measures and rates only, from one monthly TARIC extraction

eu_duty_calculator

EU import duty from TARIC for a declarable 10-digit code, origin and customs value in EUR: each measure computed, insufficient_data or not_applicable, third-country duty first, no total — EUR only, no VAT or excise

code_list_lookup

A code in a published code list — HMRC CDS procedure codes (DE 1/10) and additional procedure codes (DE 1/11): the code's name as published, its heading, status and the list's edition

In 2.34.6: eu_tariff_lookup, eu_duty_calculator and code_list_lookup join the package with the hosted server's definitions; get_subscribe_link is no longer listed (the pricing link still travels in every rate-limit answer, as upgrade_url).

Reference Data

Tool

Description

resolve_reference

Resolve any freight identifier ("176", "UN1845", "NLRTM", "FOB") to typed, ranked, cited candidates when its type is unknown

airline_lookup

6,356 airlines with IATA/ICAO codes and AWB prefixes

unlocode_lookup

116,086 UN/LOCODE transport locations

airport_lookup

86,281 airports by IATA/ICAO code, name or city (OurAirports)

nearest_airport

Nearest airports to a latitude/longitude, by great-circle distance — by default airports with scheduled airline service and an IATA code (include_all: true lists every type)

uld_lookup

16 air cargo ULD types (LD3, PMC, etc.)

vehicle_lookup

17 road freight vehicles and trailers

What's new in 2.27.0: the airline record's operational status, shared-prefix flag and air-safety-list flags; nearest_airport's scheduled-service default with include_all; the refreshed airport fields; failure reasons on validate and resolve_reference. Nothing removed: every 2.26.0 argument and answer field still validates.

  • Airlines (airline_lookup). A cargo carrier's record carries operational_status (active, ceased or unknown) with operational_status_basis — the carrier's own published page, a current FAA designator listed for that carrier, or a dead-domain check after the FAA withdrew the designator. It is a separate thing from the verification status ladder: a record can be historical in verification and still say why the carrier is ceased. Every record with an AWB prefix carries prefix_shared and prefix_holders (prefix 081 is shared by four carriers, Qantas among them). restrictions[] lists the carrier when the EU Air Safety List or the UK Air Safety List names it, with the list, annex, regulation or list date and the source URL. It is a flag with its source, not a legal determination — best-effort; verify with the list itself. Where the carrier publishes them, the record links its own cargo website (cargo_website), its tracking URL template (tracking_url_template) and its dangerous-goods acceptance page (dg_acceptance_url).

  • Airports (airport_lookup, nearest_airport). 86,248 airports from the OurAirports refresh of 30 October 2026; records gain icao_code, scheduled_service, iso_region, gps_code and keywords. nearest_airport answers, by default, airports with scheduled airline service and an IATA code — never a heliport and never a closed field. include_all: true lists every type except closed fields; a type filter keeps the earlier behaviour for that type. Every answer states distance_basis: "great_circle", the filter applied (scheduled_iata, all or type) and filter_description. The hosted server changed the same way on 30 October; the package now sends include_all and types the answer.

Validation

Tool

Description

validate

Parse any text (a booking line, an email) to find & validate every container (ISO 6346), AWB (modulus-7) and IMO number in it — or validate a single identifier by type

Failure reasons (2.27.0). An invalid identifier in a validate answer carries failure — reason (INVALID_CHECK_DIGIT, WRONG_LENGTH or BAD_CHARSET), message, expected_format and an example of a valid one — so an agent can tell the user what to fix ("176-12345676": the check digit is 6, the modulus-7 calculation gives 5). An AWB whose prefix no record holds, or several records share, says so in details.airline_failure (UNKNOWN_PREFIX / AMBIGUOUS); the check digit is a different question. resolve_reference carries validation (type, valid, failure) when the query is an AWB, container or IMO number — an invalid AWB still names the carrier its prefix belongs to — and failure (NO_MATCH / AMBIGUOUS, with candidate_types) when nothing or more than one type matched.

Composite

Tool

Description

shipment_summary

Chains CBM + weight + LDM + ADR + duty in one call


Related MCP server: Bankr Industrial Customs MCP

Installation

Claude (claude.ai, desktop and mobile apps, Cowork)

Add FreightUtils from Claude's connector directory: https://claude.ai/directory/connectors/freightutils. Or add it as a custom connector — Customize → Connectors → Add custom connector — with the URL https://www.freightutils.com/api/mcp. No API key, no sign-in. Setup, limits and privacy: freightutils.com/mcp#use-in-claude.

Claude Desktop / Claude Code (stdio)

Add to your MCP config (claude_desktop_config.json or .claude/settings.json):

{
  "mcpServers": {
    "freightutils": {
      "command": "npx",
      "args": ["freightutils-mcp"]
    }
  }
}

Scoped tool lists

An agent that only does one job can load fewer tool definitions. --scope (or the FREIGHTUTILS_SCOPE environment variable) serves one scope — the same tools, names, schemas and answers, filtered:

Scope

Tools

dg

adr_lookup, adr_exemption_calculator, adr_lq_eq_check, adr_consignment_check, validate, resolve_reference

customs

hs_code_lookup, uk_duty_calculator, ics2_check, incoterms_lookup, validate

ops

the 11 calculators and equipment lookups, unlocode_lookup, airport_lookup, nearest_airport, airline_lookup, validate, resolve_reference (17)

all (default)

every tool

{
  "mcpServers": {
    "freightutils-dg": {
      "command": "npx",
      "args": ["freightutils-mcp", "--scope", "dg"]
    }
  }
}

The hosted endpoint serves the same lists at https://www.freightutils.com/api/mcp/dg, /customs and /ops. An unknown scope stops the server with an error naming the four.

Remote HTTP / SSE

If your MCP client supports remote servers, use the canonical URL:

https://www.freightutils.com/api/mcp

The older URL https://www.freightutils.com/api/mcp/mcp still works for backwards compatibility with existing clients.

No API key required to get started — anonymous calls work out of the box (see Rate Limits below).

Authenticating with a Pro key

Anonymous usage caps at 25 requests/day per IP. If you have a free or Pro API key, set FREIGHTUTILS_API_KEY in the environment that runs the MCP server. The package reads it from process.env and attaches Authorization: Bearer <key> to every outbound /api/* call — same key the remote https://www.freightutils.com/api/mcp transport already honors.

stdio config example with the env var wired through:

{
  "mcpServers": {
    "freightutils": {
      "command": "npx",
      "args": ["freightutils-mcp"],
      "env": {
        "FREIGHTUTILS_API_KEY": "fu_pk_xxx"
      }
    }
  }
}

Get a key at freightutils.com/api-docs (free, 100/day) or freightutils.com/pricing (Pro, 50,000/month). Backwards compatible — unset env var preserves the existing anonymous behaviour.

With no key set, the server says so once at start-up, on stderr (stdout carries only the MCP protocol), so a key you meant to set and missed shows up in your client's MCP log rather than at the first 429:

freightutils-mcp: FREIGHTUTILS_API_KEY is not set, so calls use the anonymous tier — 25 requests per day per IP address. Set the key to use your plan's limit: https://www.freightutils.com/pricing

Verify your setup

After adding FreightUtils to your MCP client config, fully quit and relaunch the client (Claude Desktop, Cursor, Cline). MCP servers are only loaded at client startup; editing the config in a running session does nothing until restart.

Then run the install diagnostic from a terminal:

npx freightutils-mcp ping

You should see three ticks and All checks passed:

FreightUtils MCP Diagnostic
───────────────────────────
package: freightutils-mcp@<installed version>
health:  https://www.freightutils.com/api/mcp/health

[1/3] Backend health (https://www.freightutils.com/api/mcp/health)
      ✓ status=ok mcp_version=<current> tools_registered=<current> (143ms)

[2/3] MCP handshake (in-process via InMemoryTransport)
      ✓ server freightutils-mcp@<installed version> initialized; tools/list returned <n> tools

[3/3] End-to-end tool call (cbm_calculator l=120 w=80 h=100)
      ✓ cbm_calculator → total=0.96 m³ (expected 0.96) (218ms)

All checks passed. Your FreightUtils MCP install is working.

If any check shows ✗, see Troubleshooting below. Exit code is 0 on all-pass and 1 on any failure, so the command works in CI / health-check scripts too.


Troubleshooting

Symptom

Likely cause

Fix

Tools not appearing in the MCP client after editing the config

Client wasn't fully restarted

Quit and relaunch (Cmd+Q on macOS / right-click → Quit on Windows tray). Closing the window is not enough.

npx freightutils-mcp ping check 1 fails with a network error

DNS, proxy, or the website is unreachable from your network

Check the status page at https://www.freightutils.com/status. If you're behind a corporate proxy, set HTTPS_PROXY. Override the host for ping with FREIGHTUTILS_API_URL=<base-url>.

npx freightutils-mcp ping check 2 fails

Broken local install (npx cache or stale Node version)

Re-install: rm -rf ~/.npm/_npx && npm install -g freightutils-mcp and rerun. Requires Node 18 or newer.

Tool calls return HTTP 429 / "rate_limited"

Anonymous IP cap of 25 requests/day exceeded

If you have a FreightUtils Pro API key, set FREIGHTUTILS_API_KEY in your environment before invoking the MCP. The package passes it through automatically on every outbound call. See https://www.freightutils.com/pricing if you need a key.

"Server failed to start" / spawn error in client logs

npx not on PATH, or Node older than 18

Install Node 18+. On macOS, an absolute path in the config ("command": "/opt/homebrew/bin/npx") avoids PATH issues for GUI-launched clients.

Specific tool returns isError: true

Bad input shape, or an unknown lookup key (UN number / HS code / AWB prefix not in the dataset)

The tool's error body names the offending field. Verify against the schema at https://www.freightutils.com/api-docs or call the corresponding playground endpoint to confirm the input shape.

The full diagnostic flow lives at the /api-docs#mcp-setup section on the website. The live backend status is callable from inside any MCP client at GET /api/mcp/health — useful when you don't have shell access during a conversation.


Rate Limits

All tools call the free FreightUtils API:

  • Anonymous: 25 requests/day per IP

  • Free API key: 100 requests/day (register at https://www.freightutils.com)

  • Pro: 50,000 requests/month at £19/month


Security and data

  • Read-only. Every tool is a lookup or a calculation, declared readOnlyHint: true and destructiveHint: false. The server changes nothing, anywhere.

  • No file system, no shell. The server reads no file except its own package.json, starts no process and opens no port — it talks over stdio only.

  • One destination. Tool inputs go only to https://www.freightutils.com/api (or the base you set in FREIGHTUTILS_API_URL), over HTTPS.

  • The key stays in the environment. FREIGHTUTILS_API_KEY is read from the environment and sent only as an Authorization: Bearer header to that host — never logged, never written to disk, never put in an error message.

  • stdout is the protocol. Nothing but MCP JSON-RPC goes to stdout; the one start-up notice goes to stderr.

  • Two validation layers. Each tool's Zod schema checks types, formats and the API's own limits before any call is made (the three ADR tools — adr_exemption_calculator, adr_lq_eq_check, shipment_summary — also refuse, by name, a field they do not read). The API then validates every request again on the server and refuses what it cannot answer with a 400 naming the field.

  • Errors keep their meaning. A failed call is reported by kind: network failure, timeout (30 s, or FREIGHTUTILS_TIMEOUT_MS), the API's own 4xx refusal, a 429 with its reset_at, or a 5xx — never with a stack trace, a request header or the contents of a server error page.

  • Two direct runtime dependencies: @modelcontextprotocol/sdk and zod. CI fails on any high or critical advisory in the production dependency tree, and Dependabot watches it.

  • Reporting a vulnerability: see SECURITY.md.


Example Prompts

Once connected, your AI agent can:

  • "Calculate CBM for a box 120cm × 80cm × 100cm, 24 pieces"

  • "Look up UN 1203 in the ADR database"

  • "Check if 200L of petrol qualifies for ADR 1.1.3.6 exemption"

  • "Find the HS code for lithium batteries"

  • "What does FOB mean in shipping?"

  • "How many boxes of 40×30×25cm fit on a euro pallet?"

  • "Calculate loading metres for 26 euro pallets on an artic trailer"

  • "What's the UK import duty on laptops from China?"


Data Sources

  • ADR 2025 — UNECE, ECE/TRANS/352, applicable 1 Jan 2025; given legal effect by EU Directive 2008/68/EC (consolidated). Factual compilation, best-effort — not legal advice, not a regulatory authority.

  • HS 2022 — HS 2022 descriptions from UN Comtrade's H6 classification (UN Statistics Division); the WCO maintains the Harmonized System nomenclature. No named open licence.

  • Airlines — compiled by FreightUtils from public sources. Verified records cite carrier-published pages and FAA Order JO 7340.2 field by field; the rest are pending verification. IATA and ICAO assign these codes, but this dataset is not published or endorsed by IATA or ICAO, and no licence or "open data" claim is made for it.

  • UN/LOCODE 2025-1 — UNECE official release artifact, coordinates strict-validated. UN/LOCODE © UNECE, CC BY 4.0 (as UNECE states for UN/CEFACT standards).

  • UK duty — the live GOV.UK Trade Tariff API, pulled per request, so there is no local copy that can drift.

  • Containers / ULD / vehicles — ISO, IATA and industry-standard specifications.

  • Emissions factors — published DEFRA / EPA / ADEME factors (currently DEFRA 2026 + EPA 2025

    • ADEME Base Carbone v23.11), combined by the ISO 14083 / GLEC distance-based method. Estimates, not audited reports.

Public provenance wording is maintained in the FreightUtils repository's docs/DATA_PROVENANCE.md and copied here, not written from memory — so a source that is re-attributed there cannot keep being cited here.


Changelog

Release notes: CHANGELOG.md in this repo and GitHub Releases.

A README that carries its own copy of the changelog is why three directories showed 2.4.0 as the latest release for three months after 2.4.0 had been superseded. One source now.


Other ways to use FreightUtils

FreightUtils ships across multiple distribution surfaces. Pick the one that fits how you work:

Same data, same compliance reference set (ADR 2025, HS 2022, IATA-regulated airline prefixes), every surface kept in sync.


License

MIT — see LICENSE.

Built by Marius Cristoiu, ADR-certified freight transport planner.

Available Tools

28 tools
adr_consignment_checkA
Read-onlyIdempotent
Inspect

One call on the consignment object for the ADR picture of a road load: the 1.1.3.6 small-load verdict, the limited / excepted quantity check of each line, the tunnel restriction code of the whole load against the tunnels on the route, each line's transport-document entry, mixed loading (7.5.2, with the foodstuffs precautions of 7.5.4), and the vehicle side — orange-coloured plates and placards (5.3), the documents, fire extinguishers and equipment on the transport unit (8.1), and driver training (8.2); and the UN packaging mark of each line (6.1.3.1). The rules are page-cited to the free UNECE ADR 2025 publication. For the 1.1.3.6 check alone use adr_exemption_calculator; LQ / EQ alone adr_lq_eq_check; a row's columns adr_lookup.

Send lines[] (un_number, quantity {value, unit, basis} and, where they apply, packing_group / variant_index, packages with un_mark, inner_packaging) and optionally journey, vehicle and crew; journey.date is the default as_of, and an as_of that contradicts it is refused. A check whose input is not sent is conditional, the input named in missing_inputs — never assumed. status is pass | fail | conditional | insufficient_data; a relief that does not apply is not_applicable, not fail. edition ("2025" | "2027") and as_of choose the ADR edition; neither sent, ADR 2025 until 2027-01-01. Rate-limited: a limit error carries reset_at, the UTC time the allowance resets. Not checked: whether the packaging kind is one the packing instruction allows, IBC / large-packaging marks, the vehicle approval of Part 9, the elevated temperature mark (5.3.3), handling and stowage (7.5.7). Not legal advice, verify against the current UNECE ADR text.

Inputs: lines (required), crew, as_of, edition, +3 more. Returns: ok, _meta, as_of, result, +11 more

adr_exemption_calculatorA
Read-onlyIdempotent
Inspect

ADR 1.1.3.6 "small load" exemption points for a dangerous-goods road load, and whether it qualifies; points = quantity x the transport category multiplier. The rule (1.1.3.6.2), for dangerous goods carried in packages: goods of ONE transport category qualify when their TOTAL on the transport unit stays within that category's 1.1.3.6.3 column (3) maximum (category 1: 20, 2: 333, 3: 1,000 kg or L; 4 unlimited; 0: 0); goods of DIFFERENT categories qualify when the 1.1.3.6.4 points sum does not exceed 1,000. Transport category 0 can never use the exemption. For limited/excepted quantity relief use adr_lq_eq_check; for a substance's row and variant_index adr_lookup; for the whole ADR picture of a load (tunnels, documents, plates) adr_consignment_check.

Send un_number + quantity for one substance OR items[] for a load — never both: a single-substance field sent beside items[] is refused, never dropped. Quantities are kg or litres per the substance's ADR unit; a quantity of 0 means not carried, and a load of nothing but zeros is refused. A UN number whose Table A rows disagree needs packing_group or variant_index, else that line has no verdict (AMBIGUOUS_UN_VARIANT with candidates[]) — never a guessed row. An ID-prefixed air-only number (e.g. "ID8000") is counted out of 1.1.3.6 only with icao_limited_quantity: true on that line, otherwise BLOCKED. Without that statement the ID line is BLOCKED (items[].entry_required true) and the load has no verdict unless the other lines settle it. A gross mass (basis "gross") is only an upper bound: send the net quantity. edition ("2025" | "2027") and as_of choose the ADR edition; neither sent, ADR 2025 until 2027-01-01. Such an answer headlines the transitional basis that clears the load, names it, gives basis_until (the last day it may be applied) and puts the strict ADR 2027 figure beside it (strict_adr_2027: basis, total_points, exempt, has_category_zero, has_quantity_exceedance). Fields are checked by name: a field the tool does not read is refused with a tool error naming it and listing the accepted ones, never ignored. Rate-limited: a limit error carries reset_at, the UTC time the allowance resets. A calculation over reference data, not legal advice: 1.1.3.6 relieves goods carried in packages only (not in bulk or in tanks), and exempt loads keep core duties; verify against the current UNECE ADR text.

Inputs: unit, as_of, basis, items, +7 more. Returns: ok, _meta, as_of, result, +11 more

adr_lookupA
Read-onlyIdempotent
Inspect

Look up the full European road dangerous-goods (ADR 2025) Table A entry for a substance — all 20 columns, from class, packing group and labels through special provisions, limited/excepted quantities, packing instructions, tank codes, carriage provisions, transport category, tunnel restriction code and hazard identification number — and what each of those codes means (resolved_codes). 2,939 entries across all 9 classes, from UNECE ADR 2025. Provide exactly ONE of: un_number (every packing-group variant of it; "1203", "UN1203" and "un 1203" are equivalent; explosives keep their leading zero), search (partial proper shipping name), hazard_class, or un_numbers (batch). A search with no hits errors with the closest names. For an LQ/EQ quantity check use adr_lq_eq_check; for 1.1.3.6 small-load points adr_exemption_calculator; for an identifier of unknown kind resolve_reference. Editions: edition ("2025" | "2027") and as_of (YYYY-MM-DD) choose the ADR edition — edition wins, else the date picks it (ADR 2025 before 2027-01-01, ADR 2027 from then; ADR 2025 may still be applied until 2027-06-30). An answer on a named edition carries adr_edition; neither sent, the answer is ADR 2025 until 2027-01-01. edition ("2025" | "2027") and as_of choose the ADR edition; neither sent, ADR 2025 until 2027-01-01. Rate-limited: a limit error carries reset_at, the UTC time the allowance resets. A factual compilation of the ADR table, not legal or compliance advice; classification remains the consignor's responsibility.

Inputs: as_of, limit, offset, search, +6 more. Returns: ok, _meta, as_of, result, +11 more

adr_lq_eq_checkA
Read-onlyIdempotent
Inspect

Whether dangerous goods qualify for ADR Limited Quantity (LQ, ADR 3.4) or Excepted Quantity (EQ, ADR 3.5) relief, item by item. Send mode ("lq" or "eq") and 1-20 items, each with un_number, quantity per INNER packaging (not the whole load) and unit (ml or L for liquids, g or kg for solids); inner_packaging_qty adds the EQ per-outer check. A mass against a volume limit (or the reverse) cannot be compared: that item is inconclusive — send the unit given by lq_limit_unit. A UN number whose Table A rows disagree needs packing_group or variant_index, else no verdict for it (AMBIGUOUS_UN_VARIANT with candidates[]). For the 1.1.3.6 load-points route use adr_exemption_calculator; for the per-substance LQ/EQ values and variant_index adr_lookup. edition ("2025" | "2027") and as_of choose the ADR edition; neither sent, ADR 2025 until 2027-01-01. Fields are checked by name: a field the tool does not read is refused with a tool error naming it and listing the accepted ones, never ignored. Rate-limited: a limit error carries reset_at, the UTC time the allowance resets. A quantity-threshold check only — packaging, marking and documentation conformity are not assessed; not legal advice, verify against the current UNECE ADR text.

Inputs: mode (required), items (required), as_of, edition. Returns: ok, _meta, as_of, result, +11 more

airline_lookupA
Read-onlyIdempotent
Inspect

Find airlines (6,356) by name, IATA code, ICAO code, AWB prefix (the first 3 digits of an air waybill number, e.g. 176 = Emirates) or country. Provide ONE parameter: query is a ranked fuzzy search; iata / icao / prefix / country are exact filters. Searches carriers, not airports — for airports use airport_lookup; to check an AWB number's check digit use validate. Rate-limited: a limit error carries reset_at, the UTC time the allowance resets. Provenance pending independent verification — confirm operationally critical codes with IATA/ICAO or the carrier.

Inputs: full, iata, icao, codes, +5 more. Returns: ok, _meta, as_of, result, +11 more

airport_lookupA
Read-onlyIdempotent
Inspect

Look up an airport by IATA code ("LHR"), ICAO code ("EGLL") or free-text name/city search (OurAirports, public domain). Covers 86,281 airports worldwide (OurAirports, public domain, cross-checked vs OpenFlights + Wikidata). Provide ONE of iata, icao or query; ambiguous name searches return ranked candidates; an unknown code errors. For airports near a coordinate use nearest_airport; for carriers and AWB prefixes airline_lookup; for general transport locations unlocode_lookup. Rate-limited: a limit error carries reset_at, the UTC time the allowance resets. Reference data only — not for navigation.

Inputs: iata, icao, type, codes, +1 more. Returns: ok, _meta, as_of, result, +11 more

cbm_calculatorA
Read-onlyIdempotent
Inspect

Cubic metres (CBM) of a shipment from per-piece dimensions in cm and a piece count, with cubic feet, litres and cubic inches. Volume only: for air billing weight from the same dimensions use chargeable_weight_calculator, for multi-line totals consignment_calculator, for one unit conversion unit_converter, for a full composite analysis shipment_summary. Deterministic; totals are computed from unrounded figures and rounded only for display. Rate-limited: a limit error carries reset_at, the UTC time the allowance resets.

Inputs: width_cm (required), height_cm (required), length_cm (required), pieces. Returns: ok, _meta, as_of, result, +11 more

chargeable_weight_calculatorA
Read-onlyIdempotent
Inspect

Air freight chargeable weight — the greater of actual gross weight and volumetric weight, which is what airlines bill. The dimensions are per piece and gross_weight_kg is the TOTAL for all pieces; factor is the volumetric divisor (default 6000, the IATA standard; express integrators typically use 5000). Air only: sea W/M is consignment_calculator with mode=sea; volume alone is cbm_calculator; multi-line loads in any mode consignment_calculator; the equipment the freight flies in uld_lookup. Deterministic; totals are computed from unrounded figures and rounded only for display. Rate-limited: a limit error carries reset_at, the UTC time the allowance resets.

Inputs: width_cm (required), height_cm (required), length_cm (required), gross_weight_kg (required), +2 more. Returns: ok, _meta, as_of, result, +11 more

code_list_lookupCode List LookupA
Read-onlyIdempotent
Inspect

Look up a code in a published code list. list (required) is one of: cds-procedure-codes-imports and cds-procedure-codes-exports (HMRC CDS requested and previous procedure codes, DE 1/10, e.g. 4000, 1040); cds-additional-procedure-codes-imports and cds-additional-procedure-codes-exports (HMRC CDS additional procedure codes, DE 1/11, e.g. C07, 1RV). With code it returns the code's name as published, the heading it is listed under, its status and the list's edition; with q it searches that one list (exact code, code prefix, then name); with neither, the list itself, paged. Use it to read what a UK customs procedure or additional procedure code means; for a commodity code use hs_code_lookup, for UK duty uk_duty_calculator. Codes and names as HMRC publishes them on GOV.UK (Open Government Licence v3.0, attribution in every answer). No completion rules and no declaration check; reference, not advice. Rate-limited: a limit error carries reset_at, the UTC time the allowance resets.

Inputs: q, code, full, list, +3 more. Returns: ok, _meta, as_of, result, +11 more

consignment_calculatorA
Read-onlyIdempotent
Inspect

Per-line and grand totals for a multi-item mixed consignment: CBM, loading metres, volumetric weight and the mode's chargeable figure (air chargeable weight, sea revenue tonnes, road LDM), plus advisory flags (implausible density, mode/option mismatch, dangerous goods by UN number, container/AWB check digits). Send mode (sea | air | road, default road) and lines[] (each line with its own dimension and weight units), or the legacy flat items[] in cm and kg. For a vehicle/container suggestion and duty estimates use shipment_summary; for one figure cbm_calculator / chargeable_weight_calculator / ldm_calculator; for what a flagged UN number is adr_lookup. edition ("2025" | "2027") and as_of choose the ADR edition; neither sent, ADR 2025 until 2027-01-01. Rate-limited: a limit error carries reset_at, the UTC time the allowance resets. Flags are advisory and never state that a shipment is permitted or compliant; not regulatory, customs or dangerous-goods compliance advice.

Inputs: mode, as_of, items, lines, +3 more. Returns: ok, _meta, as_of, result, +11 more

container_lookupA
Read-onlyIdempotent
Inspect

ISO shipping-container specifications for 10 types (20ft/40ft standard, 40ft and 45ft high-cube, reefer, open-top and flat-rack), with optional load-fit maths. type (a slug such as "40ft-high-cube", the ISO size-type code "45G1" or the short form "40HC") gives one record; omit it to list all 10; add item dimensions to compute how many items fit. For a container NUMBER's check digit use validate; for the air-freight equivalent uld_lookup; for the cargo volume cbm_calculator / consignment_calculator. Rate-limited: a limit error carries reset_at, the UTC time the allowance resets. Manufacturer-typical specs, provenance pending — confirm against the carrier's equipment guide.

Inputs: full, type, limit, offset, +5 more. Returns: ok, _meta, as_of, result, +11 more

emissions_calculatorA
Read-onlyIdempotent
Inspect

Estimate freight transport greenhouse-gas emissions (kgCO2e) for one shipment leg, per ISO 14083:2023 / GLEC Framework v3.2: mass x distance x a published emission-intensity factor (DEFRA, EPA or ADEME by region). Pass ACTUAL GROSS MASS, not chargeable/volumetric weight, and a distance you provide — this tool does NOT route, geocode or compute distances. The fleet-average factor already includes average empty running: do not add an empty-return leg. An unknown mode/sub_mode/region returns available:false with the covered options. Distinct from cbm_calculator / ldm_calculator / chargeable_weight_calculator, which size or bill a shipment. Rate-limited: a limit error carries reset_at, the UTC time the allowance resets. A best-effort reference estimate, not a verified or audited carbon report.

Inputs: mass (required), mode (required), distance_km (required), basis, +3 more. Returns: ok, _meta, as_of, result, +11 more

eu_duty_calculatorEU Duty Calculator (TARIC)A
Read-onlyIdempotent
Inspect

Compute EU import duty from TARIC for a declarable 10-digit code, as_of (YYYY-MM-DD, mandatory), origin (ISO country) and customs_value in EUR, with quantities by TARIC unit code (e.g. {"DTN": 12.5}) where a specific duty needs them. Every measure on the code for that origin gets a state: computed, insufficient_data (condition, quota balance, additional code, Meursing, entry price, MIN / MAX, or a quantity named in missing_inputs) or not_applicable. Third-country duty first; each other rate is its own line saying what it requires; no total. Trade-defence duties are listed, never computed. For the measures alone use eu_tariff_lookup; for the UK use uk_duty_calculator. No VAT, excise or currency conversion (EUR only); one monthly TARIC extraction, as_of must be its reference date. Reference, not advice. Rate-limited: a limit error carries reset_at, the UTC time the allowance resets.

Inputs: code, as_of, origin, currency, +2 more. Returns: ok, _meta, as_of, result, +11 more

eu_tariff_lookupEU Tariff Lookup (TARIC)A
Read-onlyIdempotent
Inspect

Look up an EU tariff code: give a CN (8-digit) or TARIC (10-digit) code and as_of (YYYY-MM-DD, mandatory), optionally origin (ISO country or TARIC country-group code) and direction (import, default, or export). It returns whether the code exists and is declarable on that date (with the declarable codes below it when it is not), and every measure that applies by TARIC's cascade from its parent lines: measure type and name, the duty as published and parsed, origin or destination with its name, exclusions, additional codes (codes only), quota order numbers, legal base, start and end. For the duty on a value use eu_duty_calculator; for the UK tariff use uk_duty_calculator. Codes, measures and rates only: no goods description is served; every answer links the Commission's TARIC consultation for the code's wording. Answers come from one monthly TARIC extraction and as_of must be its reference date (every answer and refusal names it). No VAT, excise or national measures; reference, not advice. Rate-limited: a limit error carries reset_at, the UTC time the allowance resets.

Inputs: code, as_of, origin, direction. Returns: ok, _meta, as_of, result, +11 more

hs_code_lookupA
Read-onlyIdempotent
Inspect

Search the 6,936 codes of the WCO Harmonized System (HS 2022), the 6-digit international customs classification (2 digits chapter, 4 heading, 6 subheading). Provide ONE of: query (free-text description), code (2-6 digits, dots or spaces ignored; returns the code with its hierarchy) or section (Roman numeral I-XXI). Behavior: read-only; description search runs first against the HS 2022 descriptions (UN Comtrade H6), on whole words only (a word inside a longer word never matches); when none contains the words, or the best match is weak, it asks the UK Trade Tariff search references (HMRC's index of everyday goods names) and serves their answer, so "laptop" finds 847130, "computers" heading 8471 and "charger" heading 8504. A description search matches whole words, then asks HMRC's everyday goods names at medium confidence; count 0 with an empty results[] is a valid answer (NO_MATCH). For UK duty/VAT on a code use uk_duty_calculator; for ENS goods-description screening ics2_check. Rate-limited: a limit error carries reset_at, the UTC time the allowance resets. The 6-digit level only — national tariff lines and duty rates are set per country; indicative, not a binding ruling.

Inputs: code, codes, query, section. Returns: ok, _meta, as_of, result, +11 more

ics2_checkA
Read-onlyIdempotent
Inspect

Check a goods description against the official EU ICS2 stop-words list — terms too vague or generic for an entry summary declaration (ENS) goods description. A standalone stop-word means automatic rejection, an embedded one means make the description more specific; clean=true means no listed term matched, not that it will be accepted. The Commission's whitelist of accepted goods descriptions (ICS2 Common Repository, from 17 November 2026) is applied first: a whole description that is a whitelist entry is not flagged, even when it contains a stop-word, and the answer carries whitelist_match naming the entry and the stop words it contains. For commodity codes use hs_code_lookup; for duty/VAT uk_duty_calculator. Rate-limited: a limit error carries reset_at, the UTC time the allowance resets. Strictly a reference check — not an ENS filing, not a customs-compliance determination, not legal advice.

Inputs: description (required). Returns: ok, _meta, as_of, result, +11 more

incoterms_lookupA
Read-onlyIdempotent
Inspect

The 11 Incoterms 2020 rules — who pays for transport, insurance and customs clearance, and where risk transfers from seller to buyer. code gives one rule; category (any_mode | sea_only) filters; neither lists all 11. An unknown code errors with the valid list; DAT names its successor, DPU. Related: uk_duty_calculator (takes an incoterm when composing the CIF value), shipment_summary. Rate-limited: a limit error carries reset_at, the UTC time the allowance resets. Summarised guidance; the ICC publication is the binding text.

Inputs: code, full, limit, offset, +1 more. Returns: ok, _meta, as_of, result, +11 more

ldm_calculatorA
Read-onlyIdempotent
Inspect

Loading metres (LDM) for European road freight — how much trailer length a pallet load occupies (1 LDM = 1 linear metre of a 2.4 m-wide trailer; a standard artic is 13.6 LDM) — and whether it fits. Provide a pallet preset OR custom length_mm + width_mm; omitting both errors. fits is true only when the load fits the vehicle's length, its pallet floor positions and, when weight_kg is given, its max payload; without weight_kg the payload is not checked. For the trailer specs behind the presets use vehicle_lookup; for boxes onto one pallet pallet_fitting_calculator; for mixed lines consignment_calculator. Rate-limited: a limit error carries reset_at, the UTC time the allowance resets.

Inputs: pallet, vehicle, quantity, width_mm, +5 more. Returns: ok, _meta, as_of, result, +11 more

nearest_airportA
Read-onlyIdempotent
Inspect

The airports nearest a latitude/longitude you provide, sorted by great-circle distance (distance_km on each). Searches 86,281 airports (OurAirports, public domain). By default only airports with scheduled airline service and an IATA code are ranked — never a heliport or a closed field; include_all: true ranks every type except closed fields. Does NOT geocode place names — pass coordinates you already hold; nothing is stored. For an exact code or name lookup use airport_lookup; for named transport locations unlocode_lookup. Rate-limited: a limit error carries reset_at, the UTC time the allowance resets. Reference data only — not for navigation.

Inputs: latitude (required), longitude (required), type, radius_km, +2 more. Returns: ok, _meta, as_of, result, +11 more

pallet_fitting_calculatorA
Read-onlyIdempotent
Inspect

How many identical boxes fit on one pallet: boxes per layer (trying 90-degree rotation when allowed), layers within the max height, totals, footprint and volume utilisation (volume_utilisation_percent), capped in whole layers by max_payload_kg. One box size in aligned rows — no interlocked or mixed patterns. For pallets into trailer length use ldm_calculator; pallet capacity per vehicle vehicle_lookup; pallets into containers container_lookup. Rate-limited: a limit error carries reset_at, the UTC time the allowance resets. A theoretical best-effort fit — carton strength, overhang and load stability are not modelled.

Inputs: box_width_cm (required), box_height_cm (required), box_length_cm (required), pallet_width_cm (required), +6 more. Returns: ok, _meta, as_of, result, +11 more

resolve_referenceA
Read-onlyIdempotent
Inspect

Resolve an arbitrary freight identifier — one opaque string in, typed and cited candidates out. Use when you hold one identifier-ish token ("176", "UN1845", "NLRTM", "FOB", "22G1", "MSKU1100810", "D/E", "TU9") and do not know what kind of identifier it is: each candidate names its entity type and carries the api_url and canonical_url of its full record. q is ONE identifier (max 32 chars), or an fu: identifier (fu_id or fu_version_id, up to 200 chars), which resolves to exactly its one record or to none. Colliding grammars return several ranked candidates, never a silent guess; zero candidates is a valid result. Single-token resolution, not free-text extraction — pass one identifier, not a manifest line. The lookups it resolves into: adr_lookup, airline_lookup, airport_lookup, unlocode_lookup, hs_code_lookup, incoterms_lookup, container_lookup, uld_lookup, validate. Rate-limited: a limit error carries reset_at, the UTC time the allowance resets.

Inputs: q (required). Returns: ok, _meta, as_of, result, +11 more

shipment_summaryA
Read-onlyIdempotent
Inspect

Composite shipment analysis in one call: volume (CBM), gross and chargeable weight, and by mode road LDM with pallet floor positions and a suggested vehicle, air volumetric weight, or sea revenue tonnes with a suggested container; plus dangerous-goods presence for items with un_number and UK duty estimates for items with hs_code + customs_value. weight and customs_value are PER ITEM; adr_quantity is the TOTAL for the dangerous-goods line, all pieces together. An item with no stackable flag is not stacked. Sections that cannot run surface in warnings instead of failing the call. Its result uses camelCase field names (legacy shape). For canonical snake_case lines[] totals with advisory flags use consignment_calculator; single figures cbm_calculator, chargeable_weight_calculator, ldm_calculator; ldm_calculator, adr_lookup and uk_duty_calculator are the engines it calls. edition ("2025" | "2027") and as_of choose the ADR edition; neither sent, ADR 2025 until 2027-01-01. Fields are checked by name: a field the tool does not read is refused with a tool error naming it and listing the accepted ones, never ignored. Rate-limited: a limit error carries reset_at, the UTC time the allowance resets. A planning summary, not a quotation or compliance determination.

Inputs: mode, as_of, items, origin, +6 more. Returns: ok, _meta, as_of, result, +11 more

uk_duty_calculatorA
Read-onlyIdempotent
Inspect

Estimate UK import duty and VAT for a commodity code from the LIVE GOV.UK Trade Tariff: CIF = customs_value + freight_cost + insurance_cost (GBP); duty = CIF x the rate for the origin country; VAT on the duty-inclusive value. commodity_code must be the declarable 10 digits: a 6- or 8-digit code is refused — never padded with zeros — with the declarable codes beneath it. To find the code first use hs_code_lookup; for who pays these costs incoterms_lookup. Rate-limited: a limit error carries reset_at, the UTC time the allowance resets. An estimate, not a customs ruling — confirm with a customs broker or HMRC.

Inputs: lines, incoterm, freight_cost, customs_value, +3 more. Returns: ok, _meta, as_of, result, +11 more

uld_lookupA
Read-onlyIdempotent
Inspect

Air-cargo ULD (unit load device) specifications — 16 types: lower-deck containers (AKE/LD3 and family), main-deck pallets (PMC, PAG and family) and temperature-controlled units. type as an IATA code ("AKE"), slug ("ake-ld3") or the record's own name ("LD3" → AKE) gives one record; omit it to list all 16; category and deck filter. Pallet records have no internal dimensions — read max_build_up_height_cm, and do not multiply dimensions for a volume. For the sea-freight equivalent use container_lookup; for what the cargo inside is billed at chargeable_weight_calculator; for whose aircraft it flies on airline_lookup. Rate-limited: a limit error carries reset_at, the UTC time the allowance resets. Provenance is pending, not verified (treat tare_weight with particular caution); confirm operationally critical dimensions with the carrier.

Inputs: deck, full, type, limit, +2 more. Returns: ok, _meta, as_of, result, +11 more

unit_converterA
Read-onlyIdempotent
Inspect

Convert freight weight, volume and length units, plus chargeable_kg (air volumetric weight at the IATA 6,000 divisor) and freight_tonnes (sea W/M, 1 CBM = 1 freight tonne), both only FROM cbm. Cross-dimension conversions (e.g. kg to litres) and a negative value are refused. For dimensions to volume use cbm_calculator; for air billing weight with pieces and a custom divisor chargeable_weight_calculator. Rate-limited: a limit error carries reset_at, the UTC time the allowance resets.

Inputs: to (required), from (required), value (required). Returns: ok, _meta, as_of, result, +11 more

unlocode_lookupA
Read-onlyIdempotent
Inspect

Search 116,086 UN/LOCODE transport locations — ports, airports, rail and road terminals, inland container depots and border crossings (5 characters: country + location, e.g. NLRTM = Rotterdam; "GB LHR" reads as GBLHR). code gives an exact record; query searches names, narrowed by country and function_type; an unknown code errors. For airport records with ICAO codes use airport_lookup; for airports near a coordinate nearest_airport. Rate-limited: a limit error carries reset_at, the UTC time the allowance resets. An administrative code list — confirm operational status and coordinates with the port or authority.

Inputs: code, codes, limit, query, +2 more. Returns: ok, _meta, as_of, result, +11 more

validateA
Read-onlyIdempotent
Inspect

Validate freight identifiers by their public check-digit algorithms: shipping container numbers (ISO 6346), air waybill numbers (IATA modulus-7) and IMO ship numbers. text finds and validates every identifier in a string; value + type validates one (value without type is refused); type "consignment" with consignment validates a consignment object. An AWB names its airline only when one record holds the prefix; otherwise airline_candidates[] lists every holder, never a guessed carrier. AWB: airline prefix + the airline from the AWB-prefix dataset when ONE record holds the prefix — when several do (e.g. 020: Lufthansa and Lufthansa Cargo), airline is null and airline_candidates[] lists every holder with airline_note saying why, never a guessed carrier. For container TYPE specs use container_lookup; for the AWB-prefix dataset airline_lookup. Rate-limited: a limit error carries reset_at, the UTC time the allowance resets. Structural only — a valid check digit means well-formed, NOT that the container, shipment or vessel exists.

Inputs: text, type, value, consignment. Returns: ok, _meta, as_of, result, +11 more

vehicle_lookupA
Read-onlyIdempotent
Inspect

Road-freight vehicle and trailer specifications — 17 types: EU articulated trailers, US 53ft/48ft dry vans, rigid trucks (7.5-26 t) and vans; internal dimensions, payload and gross weights, pallet capacity, axles. slug gives one record; omit it to list all 17; category (articulated | rigid | van) and region (EU | US) filter. For whether a pallet load fits use ldm_calculator; also pallet_fitting_calculator and consignment_calculator. Rate-limited: a limit error carries reset_at, the UTC time the allowance resets. Typical specs, provenance pending — legal payload is set by the vehicle's plated weights.

Inputs: full, slug, limit, offset, +2 more. Returns: ok, _meta, as_of, result, +11 more

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 28 tools

    Disambiguation4/5

    The set is unusually well cross-referenced: nearly every description states which sibling tool to use instead ('for one figure use cbm_calculator, for multi-line totals consignment_calculator, for a full composite analysis shipment_summary'), which resolves most potential misselection. The remaining friction is the composite tier — shipment_summary vs consignment_calculator vs the single-figure calculators overlap in output, and resolve_reference overlaps with the nine lookups it dispatches to. Still, no two tools appear to do the same thing.

    Naming Consistency4/5

    Almost everything follows a predictable snake_case noun+role pattern with a small, meaningful suffix vocabulary: _lookup (adr_lookup, hs_code_lookup, uld_lookup), _calculator (cbm, ldm, emissions, uk_duty), _check (ics2_check, adr_lq_eq_check). The few outliers — the bare verb 'validate', 'shipment_summary', 'nearest_airport', 'resolve_reference' — are minor deviations rather than a different convention.

    Tool Count3/5

    28 tools is heavy for a single server and past the comfortable 3-15 band; an agent faces a large surface before it can act. Each tool does map to a distinct dataset or calculation (ADR, EU/UK tariff, HS, airports, UN/LOCODE, containers, ULD, vehicles, airlines, plus a dozen calculators), so the count is scope-driven rather than padded, but it is borderline over-scoped.

    Completeness4/5

    Coverage across measurement (CBM, chargeable weight, LDM, pallet fitting), equipment (container, ULD, vehicle), regulatory reference (ADR lookup/exemption/LQ-EQ/consignment check, EU and UK tariff and duty, HS, ICS2, CDS code lists), identifier validation and resolution, plus emissions and Incoterms is broad and has few dead ends. Gaps are minor and often explicit: no non-EU/UK tariff, no routing or distance computation, no currency conversion.

    Maintenance

    ActivityActive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Ocean container shipping intelligence for AI agents — D\&D tariffs, freight rates, vessel schedules, port congestion, inland haulage across 6 major carriers. 24 MCP tools.
      1
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to query and manage logistics shipment data, supporting operations like tracking, quoting, and performance analysis via nine tools backed by a demo dataset or a REST API.
      9
      253 npm
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Provides container shipping intelligence for AI agents, enabling demurrage & detention calculations, local charges, inland haulage rates, and CFS tariffs across multiple shipping lines, with pay-per-request USDC payments via x402.
      -