Labsco
SoapyRED logo

FreightUtils MCP Server

β˜… 3

from SoapyRED

11 freight logistics tools for AI agents β€” ADR dangerous goods lookup (2,939 UN entries, UNECE ADR 2025), HS code search (6,940 codes, WCO HS 2022), airline codes (6,352 with AWB prefixes), LDM/CBM/chargeable weight calculators, pallet fitting, container capacity, INCOTERMS 2020, unit converter, and ADR 1.1.3.6 exemption calculator. Free REST APIs + remote MCP endpoint.

πŸ”₯πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedPaid serviceNeeds API keys

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 β€” authoritative 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, so an agent can trust it as ground truth regardless of who carries the load.

This Model Context Protocol server gives AI agents access to 24 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 and last-verified date β€” 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).

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


Tools (24)

Calculators

ToolDescription
ldm_calculatorLoading metres for European and US road trailers
cbm_calculatorCubic metres for sea freight
chargeable_weight_calculatorAir freight chargeable weight (volumetric vs actual)
pallet_fitting_calculatorBox-on-pallet optimisation with rotation
container_lookupISO container specs (10 types) and loading calculation
unit_converterWeight, volume, length, and freight-specific conversions
consignment_calculatorMulti-item CBM, LDM, volumetric & mode-specific chargeable weight (sea/air/road) + advisory flags
emissions_calculatorFreight 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)

ToolDescription
adr_lookup2,939 UNECE ADR 2025 entries
adr_exemption_calculatorADR 1.1.3.6 small load exemption check
adr_lq_eq_checkLimited and Excepted Quantity eligibility

Customs & Tariff

ToolDescription
hs_code_lookup6,940 Harmonized System tariff codes (HS 2022)
uk_duty_calculatorUK import duty and VAT (live GOV.UK Trade Tariff data)
incoterms_lookupIncoterms 2020 β€” all 11 rules with risk/cost transfer points
ics2_checkFlag EU ICS2 unacceptable goods-description terms (stop-words) before filing an ENS β€” reference only

Reference Data

ToolDescription
airline_lookup6,352 airlines with IATA/ICAO codes and AWB prefixes
unlocode_lookup116,129+ UN/LOCODE transport locations
airport_lookup85,555 airports by IATA/ICAO code, name or city (OurAirports)
nearest_airportNearest airports to a latitude/longitude, by great-circle distance
uld_lookup16 air cargo ULD types (LD3, PMC, etc.)
vehicle_lookup17 road freight vehicles and trailers

Validation

ToolDescription
validateParse 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

Composite

ToolDescription
shipment_summaryChains CBM + weight + LDM + ADR + duty in one call

Subscription

ToolDescription
get_subscribe_linkURL to upgrade to FreightUtils Pro (50,000/month at Β£19/mo)

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

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 (licensed from Labeline.com)
  • HS 2022 β€” UN Comtrade (PDDL)
  • Airlines β€” public IATA/ICAO data, cross-referenced
  • UN/LOCODE β€” UNECE
  • UK Duty β€” live GOV.UK Trade Tariff API
  • Containers/ULD/Vehicles β€” ISO, IATA, and industry-standard specifications

Changelog

Full release notes also on GitHub Releases.

2.4.0 β€” 2026-06-16

  • consignment_calculator β†’ canonical consignment v1. New transport mode (sea | air | road) and a canonical lines[] shape (each line: quantity, dims {l,w,h,unit} mm/cm/m/in, weight {value,unit} kg/g/t/lb, optional description/hs_code/un_number/stackable), plus an options object (air_volumetric_divisor default 6000, container_number, awb_number). The legacy flat items[] array (cm/kg) still works unchanged. Output gains per-line + grand totals, a schema_version, and advisory-only flags (implausible density, mode/option mismatch, dangerous-goods presence by UN number vs the ADR 2025 reference, ISO 6346 / IATA AWB check-digit) plus a best-effort disclaimer. Canonical schema: https://www.freightutils.com/schema/consignment.v1.json. No tool-count change (19).

2.1.1 β€” 2026-05-09

  • Fix: serverInfo.version was stuck at 1.0.8 even after 1.1.0 / 2.0.0 / 2.1.0 published. The wire-level identity has been silently lying about the package version since the 1.0.7 fix. Now reads from package.json at runtime via createRequire, so the wire version always matches the npm-published release.
  • Fix: server.json description undercounted tools ("18 freight tools …" β†’ "19 freight tools …, get_subscribe_link").
  • Tightened Zod input constraints across airline_lookup, adr_lookup, adr_exemption_calculator, adr_lq_eq_check, unlocode_lookup, and uk_duty_calculator (regex / length / min-max on UN numbers, IATA / ICAO / AWB prefixes, ISO country codes, UN/LOCODE format). Field-level constraints take effect at the wire; .strict() on top-level schemas becomes wire-effective once the server.registerTool() migration ships in 2.2.0.

2.1.0 β€” 2026-05-01

  • New tool: get_subscribe_link. Returns the FreightUtils /pricing URL plus tier / monthly limit / monthly price metadata. Tool description tells agents NOT to attempt checkout themselves β€” they hand the URL to the user. Tool count: 18 β†’ 19.
  • Pairs with the website-side fix wiring /api/mcp/* through the existing API rate-limit middleware so Pro keys are attributed against the 50,000/month bucket on MCP traffic.

2.0.0 β€” 2026-04-25 (BREAKING β€” input-side casing)

  • Tool input schemas migrated camelCase β†’ snake_case to match the response convention shipped in 1.1.0. 13 input keys renamed across uk_duty_calculator, consignment_calculator, and shipment_summary (e.g. commodityCode β†’ commodity_code, originCountry β†’ origin_country, items[].grossWeight β†’ items[].gross_weight). Agents calling these tools with prior camelCase keys now get a Zod validation error instead of a 200. Re-prompt or update tool-call code.
  • All other tools (cbm_calculator, chargeable_weight_calculator, ldm_calculator, pallet_fitting_calculator, unit_converter, ADR family, airline_lookup, container_lookup, hs_code_lookup, incoterms_lookup, unlocode_lookup, uld_lookup, vehicle_lookup) already used snake_case (or single-word) input keys and are unchanged.

1.1.0 β€” 2026-04-25 (BREAKING β€” response-side casing)

  • API responses migrated camelCase β†’ snake_case site-wide across /api/unlocode, /api/uld, /api/containers, /api/vehicles, /api/consignment, /api/duty. All MCP tools in this package are passthroughs, so AI agents see snake_case keys (e.g. commodity_code, location_code, internal_length_cm) instead of the prior camelCase forms. Re-prompt or update parsing logic.
  • No code changes to MCP tool implementations β€” every tool was already a passthrough wrapper around apiGet / apiPost. Input schemas continue to declare camelCase here; 2.0.0 deliberately closes that asymmetry.
  • README badges: added monthly + total npm downloads alongside the existing version + license + Glama score badges.

1.0.8 β€” 2026-04-23 (hotfix)

  • Critical fix: revert list_prompts / list_resources stub handlers introduced in 1.0.7. The raw SDK asserts the corresponding capability must be declared before setRequestHandler is called β€” 1.0.7 threw Server does not support prompts at startup, crashing the MCP server on every run. 1.0.8 removes the stubs and restores boot.
  • Server identity bumped: version: '1.0.7' β†’ '1.0.8'.
  • No other changes. 18 tools, annotations, shipment_summary descriptions, and smithery.yaml from 1.0.7 are preserved.

1.0.7 β€” 2026-04-22

  • Add smithery.yaml with empty configSchema (Smithery Quality Score: config UX +25).
  • Add read-only annotations to all 18 tools (readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false) with human-readable title (+7).
  • Add missing parameter .describe(...) text to shipment_summary (+1).
  • Add stub list_prompts / list_resources handlers so probes return { prompts: [] } / { resources: [] } instead of -32601 Method not found (+5).
  • Fix server identity: name: 'FreightUtils' β†’ 'freightutils-mcp', version: '1.0.0' β†’ '1.0.7'.
  • No breaking changes. Same 18 tools, same names, same behaviour.

1.0.6 β€” 2026-04-22

  • Security: bump @modelcontextprotocol/sdk to 1.26.0 to patch CVE-2026-25536 (cross-client data leak via shared transport/server instance reuse). See GHSA-345p-7cg4-v4c7.
  • No user-facing API changes. Same 18 tools.

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.