freightutils-mcp 标志

freightutils-mcp

社区
SoapyRED

Neutral freight reference & correctness layer for AI agents — source-backed DG, customs, location & freight-math data agents can call and cite. No freight to sell.

发布者SoapyRED
代码仓库freightutils-mcp
语言TypeScript
复刻数
0
星标数
6
可用工具
11
传输类型stdio
分类
许可协议MIT
链接
  • 将工具接入 AI 工作流

    freightutils-mcp 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 11 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 6 个 Star 和 0 个 Fork。

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 25 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.

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


Tools (25)

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
resolve_referenceResolve any freight identifier ("176", "UN1845", "NLRTM", "FOB") to typed, ranked, cited candidates — the agent front door
airline_lookup6,357 airlines with IATA/ICAO codes and AWB prefixes
unlocode_lookup116,232+ 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)

Installation

Claude Desktop / Claude Code (stdio)

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

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

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:

json
{
  "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.


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:

sh
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

SymptomLikely causeFix
Tools not appearing in the MCP client after editing the configClient wasn't fully restartedQuit 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 errorDNS, proxy, or the website is unreachable from your networkCheck 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 failsBroken 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 exceededIf 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 logsnpx not on PATH, or Node older than 18Install 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: trueBad 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

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 — UN Comtrade HS 2022 (Public Domain Dedication and Licence); the WCO Harmonized System nomenclature is the authority.
  • Airlines — the IATA / ICAO code registries. Authority only: this dataset carries no per-record provenance, and no licence or "open data" claim is made for it.
  • UN/LOCODE 2025-1 — UNECE official release artifact, coordinates strict-validated.
  • 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 — open 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.

安装

TypingMind
前提条件:

Node.js 18+

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

可用工具

  • cbm_calculator

    Calculate cubic metres (CBM) for sea freight

  • chargeable_weight_calculator

    Air freight chargeable weight (volumetric vs actual)

  • ldm_calculator

    Loading metres for European road freight

  • adr_lookup

    Dangerous goods lookup (ADR 2025, 2,939 entries)

  • adr_exemption_calculator

    ADR 1.1.3.6 small load exemption check

  • airline_lookup

    Search 6,352 airlines by name, IATA/ICAO code, AWB prefix

  • container_lookup

    ISO container specs and loading calculation

  • hs_code_lookup

    Harmonized System tariff codes (6,940 codes)

  • incoterms_lookup

    Incoterms 2020 trade rules

  • pallet_fitting_calculator

    Box-on-pallet fitting with layers and rotation

  • unit_converter

    Convert between freight units (weight, volume, length)

将 freightutils-mcp MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 freightutils-mcp 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 此 MCP 通过您设备上的 TypingMind MCP 连接器在本地运行。

本地连接器设置指南

如果 MCP 服务器需要访问您电脑上的本地文件、应用或私有资源,请选择此方式。

1

打开 MCP 设置

在 TypingMind 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  5. 点击“设置连接器”,然后选择“此设备”。
TypingMind MCP 连接器设置界面,已选择“此设备”
2

运行连接器命令

选择“此设备”,从 TypingMind 复制命令并在终端中运行。使用 MCP 时,请保持该进程运行。

  1. 复制 TypingMind 显示的设置命令。
  2. 在 macOS 上打开“终端”,或在 Windows 上打开 Windows Terminal。
  3. 粘贴并运行命令。
  4. 如果终端询问您是否继续,请确认安装软件包。
  5. 使用 MCP 工具时,请保持终端窗口及其中的进程运行。
3

将 freightutils-mcp 添加为服务器

当连接器状态为“就绪”时,点击“编辑服务器”,然后粘贴 MCP 服务器配置。

  1. 等待连接器状态显示为“就绪”。
  2. 点击“编辑服务器”。
  3. 粘贴 freightutils-mcp MCP 服务器配置。
  4. 保存服务器列表。
  5. 如需确认连接器是否仍处于就绪状态,请刷新。
TypingMind MCP 设置界面,显示正在运行的服务器和“编辑服务器”按钮
{
  "mcpServers": {
    "freightutils-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "freightutils-mcp"
      ]
    }
  }
}
4

在不同模型中使用同一连接

保存服务器列表,打开“插件”,启用 freightutils-mcp MCP 工具,然后在 TypingMind 中选择任意受支持的 AI 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 freightutils-mcp MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 freightutils-mcp 帮我完成这项任务吗?
freightutils-mcp
当然。我已阅读。
以下是我使用 freightutils-mcp 得到的结果。

常见问题

freightutils-mcp MCP 服务器有什么用途?

freightutils-mcp 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 freightutils-mcp MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您可以让 Claude、ChatGPT、Gemini 等不同 AI 模型,或您在 TypingMind 中配置的其他模型使用 freightutils-mcp,而无需为每个模型单独配置 MCP 服务器。

为什么在 TypingMind 中使用 freightutils-mcp MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是优秀的大语言模型聊天前端之一。连接 freightutils-mcp 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 freightutils-mcp MCP 连接到 TypingMind?

freightutils-mcp 通过 TypingMind 本地 MCP 连接器运行。当 MCP 服务器需要访问您计算机上的本地文件、桌面应用、命令行工具或私有资源时,这种方式最合适。

freightutils-mcp MCP 在 TypingMind 中提供哪些工具?

freightutils-mcp 提供 11 个 MCP 工具,您可以在 TypingMind 的插件页面启用这些工具,然后在聊天中使用,或将其分配给 AI 智能体。

使用 freightutils-mcp MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行掌控模型提供商、API 密钥、提示词和 MCP 配置。如果 freightutils-mcp 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇