Freightgate MCP Server logo

Freightgate MCP Server

Shipping intelligence β€” D&D charges, local charges, inland haulage. x402 USDC payments.

Install Freightgate MCP Server

Pick your client, then add it in one click or paste the config.

Streamable HTTP (Remote)
Server URL
https://mcp.shippingrates.org/mcp

Remote servers are added in the app, not the config file: Customize β†’ Connectors β†’ Add custom connector, then paste this URL.

Overview

Tools9

What Freightgate MCP Server lets your agent do. Expand a tool for its parameters.

Self-reported~170 tokens of context

Security & health

What it can reach and how reliably it runs β€” from our own checks, not the maintainer’s claims.

ActiveLast checked 2d ago

Recent health check succeeded.

10/10 checks healthy over the last 51d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks β€” not a rating.

Last commit8mo agoMost recent push to the default branch.
Tools exposed9Callable tools this server registers over MCP.
Directory activity6 viewsConfig copies, upvotes, and views on AllMCPs.

From the project README

βš“ ShippingRates MCP Server

Container shipping intelligence for AI agents β€” demurrage & detention, local charges, inland haulage, CFS tariffs. Pay-per-request with USDC via x402.

MCP x402 Networks Version Status

Quick Start

Add ShippingRates to Claude Desktop, Cursor, or any MCP-compatible client:

config.json
{
  "mcpServers": {
    "shippingrates": {
      "url": "https://mcp.shippingrates.org/mcp"
    }
  }
}

That's it. 9 tools auto-discovered. 3 free + 6 paid via x402.

What's New in v2.1.0

  • Dual-chain payments β€” Base Mainnet (EVM) + Solana Mainnet
  • Tiered pricing β€” $0.03 to $0.25 per call based on data complexity
  • PayAI facilitator β€” Free, no API key required for payment processing
  • 23/23 endpoints verified β€” Full production health check passed
  • 2,547+ records across 14 database tables
  • Server card at /.well-known/mcp/server-card.json for auto-discovery
  • Live analytics dashboard with real-time payment tracking
  • Listed on Official MCP Registry, Smithery, Glama, mcp.so, x402scan

Tools

Paid (USDC via x402)

ToolPriceDescription
dd_calculate$0.10Calculate demurrage & detention costs β€” free days, per-diem rates, slab breakdown, total cost
dd_compare$0.25Compare D&D costs across all 6 shipping lines in one call. No competitor offers this.
local_charges$0.05Port local charges β€” THC, documentation fees, BL fees, seal fees
inland_search$0.03Search inland transport routes by origin/destination
cfs_tariffs$0.05Container Freight Station handling tariffs by cargo type
inland_haulage$0.05Inland haulage rates β€” trucking/rail from port to destination

Free

ToolDescription
list_linesList all 6 shipping lines with per-country record counts
get_statsDatabase statistics β€” records, coverage, pricing, last update
health_checkServer status, version, network configuration

Payment

ShippingRates uses the x402 protocol β€” the internet's native payment standard for AI agents.

  • Currency: USDC (stablecoin, always $1.00)
  • Networks: Base Mainnet (EVM) + Solana Mainnet
  • Facilitator: PayAI β€” free, no API key needed
  • Settlement: Instant (~200ms)
  • No API keys, no accounts, no subscriptions

Your agent sends a request β†’ gets HTTP 402 with payment terms β†’ signs USDC payment β†’ retries with proof β†’ gets data. All handled automatically by x402 client libraries.

Supported x402 Client Libraries

  • TypeScript: @x402/fetch or @x402/axios
  • Python: x402 package (httpx / requests)
  • Go: x402 Go module

Payment Wallets

NetworkAddress
Base (EVM)0x8c9e0882b4c6e6568fe76F16D59F7E080465E5C8
SolanaGcv56hKWuEGmXheBpJxAwQxvX6QAMimZzzVrHaVCbNWE

Data Coverage

MetricValue
Shipping Lines6 β€” Maersk, MSC, CMA-CGM, Hapag-Lloyd, ONE, COSCO
Records2,547+ verified tariff entries across 14 tables
Countries9 β€” IN, AE, SG, CN, MY, LK, PK, BD, TH
Container Types20DV, 40DV, 40HC, 20RF, 40RF, 20OT, 40OT, 20FR, 40FR
Data Quality100% manually verified from official carrier PDFs
Data Tablesdd_tariffs, local_charges, inland_haulage, cfs_tariffs, ports, and more

API Access

For direct API integration (without MCP):

ResourceURL
API Basehttps://api.shippingrates.org
Full Docshttps://api.shippingrates.org/llms-full.txt
LLMs.txthttps://api.shippingrates.org/llms.txt
x402 Discoveryhttps://api.shippingrates.org/.well-known/x402.json
MCP Serverhttps://mcp.shippingrates.org/mcp
MCP Server Cardhttps://mcp.shippingrates.org/.well-known/mcp/server-card.json
Health Checkhttps://api.shippingrates.org/health

Example: D&D Calculate

bash
# Free endpoint β€” no payment needed
curl https://api.shippingrates.org/api/stats

# Paid endpoint β€” returns HTTP 402 with payment instructions
curl -X POST https://api.shippingrates.org/api/dd/calculate \
  -H "Content-Type: application/json" \
  -d '{"line": "maersk", "country": "IN", "container_type": "40HC", "days": 14}'

Example Response (D&D Calculate)

config.json
{
  "line": "maersk",
  "country": "IN",
  "container_type": "40HC",
  "days": 14,
  "free_days": 4,
  "currency": "USD",
  "slabs": [
    { "from": 5, "to": 7, "rate_per_day": 7.5, "days": 3, "cost": 22.5 },
    { "from": 8, "to": 14, "rate_per_day": 15, "days": 7, "cost": 105 }
  ],
  "total_cost": 127.5
}

Example Response (D&D Compare)

config.json
{
  "country": "IN",
  "container_type": "40HC",
  "days": 14,
  "comparisons": [
    { "line": "maersk", "total_cost": 127.5, "free_days": 4, "currency": "USD" },
    { "line": "msc", "total_cost": 150.0, "free_days": 3, "currency": "USD" },
    { "line": "cosco", "total_cost": 95.0, "free_days": 7, "currency": "USD" }
  ],
  "cheapest": "cosco",
  "savings_vs_most_expensive": 55.0
}

Architecture

Code
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                   AI Agent / Client                  β”‚
β”‚            (Claude, Cursor, ChatGPT, etc.)           β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
               β”‚ MCP                  β”‚ HTTP + x402
               β–Ό                      β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  MCP Server v1.1.0   β”‚  β”‚    API Server v2.1.0     β”‚
β”‚  mcp.shippingrates   │──│  api.shippingrates.org   β”‚
β”‚  .org:3480           β”‚  β”‚  :3402                   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                       β”‚
                          β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                          β”‚  Shipping Intelligence DB β”‚
                          β”‚  SQLite β€” 14 tables       β”‚
                          β”‚  2,547+ verified records   β”‚
                          β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
  • MCP Server β€” TypeScript, @modelcontextprotocol/sdk, Streamable HTTP transport
  • API Server β€” TypeScript, Express.js, x402 v2 SDK with PayAI facilitator
  • Database β€” SQLite with data from official carrier tariff PDFs
  • Infrastructure β€” PM2 process manager, Cloudflare Tunnel, reboot-proof

Use Cases

  • Freight forwarders estimating penalty costs before booking
  • AI agents optimizing container pickup schedules to minimize D&D charges
  • Logistics companies comparing carriers to find the cheapest option
  • Trade finance assessing cost risk on import operations
  • Supply chain platforms integrating real-time D&D data

Discovery & Directories

ShippingRates is listed on:

DirectoryStatus
Official MCP Registryβœ… Live β€” io.github.vinaybhosle/shippingrates-mcp-server
Smitheryβœ… Submitted
Glamaβœ… Submitted
mcp.soβœ… Submitted
x402scanβœ… Indexed β€” 6 resources auto-discovered

About

Built by SmartBiz AI β€” AI solutions for commercial shipping, based in Mumbai, India.

ShippingRates is the world's first x402-native shipping data API, purpose-built for AI agents and autonomous commerce.

Links

License

This repository contains documentation and connection configuration only. The ShippingRates API and MCP server are commercial services operated by SmartBiz AI.

Usage of the API is governed by pay-per-request pricing via the x402 protocol.

Reviews

No reviews yet β€” be the first to share how it worked for you.

Frequently Asked Questions about Freightgate MCP Server

freightgate-mcp-server is an MCP server that provides shipping intelligence for AI agents, including demurrage and detention calculations, port local charges, inland haulage, inland route searches, and CFS tariffs. It exposes nine tools, with three free tools and six paid tools using USDC payments through x402 on Base and Solana.

Connect using the MCP endpoint https://mcp.shippingrates.org/mcp in Claude Desktop, Cursor, or another MCP-compatible client. The server supports automatic tool discovery through its MCP interface.

The server provides six paid tools and three free tools. Paid tools include dd_calculate, dd_compare, local_charges, inland_search, cfs_tariffs, and inland_haulage. Free tools include list_lines, get_stats, and health_check.

Paid requests use USDC through the x402 protocol on Base Mainnet or Solana Mainnet. The server returns payment terms, and an x402-compatible client can sign the payment and retry the request; no API key, account, or subscription is required.

The server covers demurrage and detention, local port charges, inland transport routes and haulage, and CFS tariffs. Its listed coverage includes six shipping lines, nine countries, multiple container types, and more than 2,547 verified tariff records across 14 database tables.

Related MCP servers

Add a badge to your READMEShow it’s listed β€” live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewFreightgate MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/freightgate-mcp-server?style=directory)](https://allmcps.com/mcp/freightgate-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/freightgate-mcp-server"><img src="https://allmcps.com/api/badge/freightgate-mcp-server?style=directory" alt="Freightgate MCP Server on AllMCPs" /></a>