Gives Claude access to container shipping costs across six major carriers (Maersk, MSC, CMA-CGM, Hapag-Lloyd, ONE, COSCO) covering demurrage, detention, local port charges, and inland haulage rates. Nine tools total: three free (listing carriers, stats, health checks) and six paid via x402/USDC micropayments at $0.03 to $0.25 per call. The standout is dd_compare, which calculates penalty costs across all carriers in one shot so you can see who's cheapest for a given container type and delay period. Data covers nine countries with 2,500+ verified tariff records pulled from official carrier PDFs. Reach for this when building freight optimization tools or any logistics app that needs real carrier pricing without monthly API contracts.
Container shipping intelligence for AI agents — demurrage & detention, local charges, inland haulage, CFS tariffs. Pay-per-request with USDC via x402.
Add ShippingRates to Claude Desktop, Cursor, or any MCP-compatible client:
{
"mcpServers": {
"shippingrates": {
"url": "https://mcp.shippingrates.org/mcp"
}
}
}
That's it. 9 tools auto-discovered. 3 free + 6 paid via x402.
/.well-known/mcp/server-card.json for auto-discovery| Tool | Price | Description |
|---|---|---|
dd_calculate | $0.10 | Calculate demurrage & detention costs — free days, per-diem rates, slab breakdown, total cost |
dd_compare | $0.25 | Compare D&D costs across all 6 shipping lines in one call. No competitor offers this. |
local_charges | $0.05 | Port local charges — THC, documentation fees, BL fees, seal fees |
inland_search | $0.03 | Search inland transport routes by origin/destination |
cfs_tariffs | $0.05 | Container Freight Station handling tariffs by cargo type |
inland_haulage | $0.05 | Inland haulage rates — trucking/rail from port to destination |
| Tool | Description |
|---|---|
list_lines | List all 6 shipping lines with per-country record counts |
get_stats | Database statistics — records, coverage, pricing, last update |
health_check | Server status, version, network configuration |
ShippingRates uses the x402 protocol — the internet's native payment standard for AI agents.
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.
@x402/fetch or @x402/axiosx402 package (httpx / requests)x402 Go module| Network | Address |
|---|---|
| Base (EVM) | 0x8c9e0882b4c6e6568fe76F16D59F7E080465E5C8 |
| Solana | Gcv56hKWuEGmXheBpJxAwQxvX6QAMimZzzVrHaVCbNWE |
| Metric | Value |
|---|---|
| Shipping Lines | 6 — Maersk, MSC, CMA-CGM, Hapag-Lloyd, ONE, COSCO |
| Records | 2,547+ verified tariff entries across 14 tables |
| Countries | 9 — IN, AE, SG, CN, MY, LK, PK, BD, TH |
| Container Types | 20DV, 40DV, 40HC, 20RF, 40RF, 20OT, 40OT, 20FR, 40FR |
| Data Quality | 100% manually verified from official carrier PDFs |
| Data Tables | dd_tariffs, local_charges, inland_haulage, cfs_tariffs, ports, and more |
For direct API integration (without MCP):
| Resource | URL |
|---|---|
| API Base | https://api.shippingrates.org |
| Full Docs | https://api.shippingrates.org/llms-full.txt |
| LLMs.txt | https://api.shippingrates.org/llms.txt |
| x402 Discovery | https://api.shippingrates.org/.well-known/x402.json |
| MCP Server | https://mcp.shippingrates.org/mcp |
| MCP Server Card | https://mcp.shippingrates.org/.well-known/mcp/server-card.json |
| Health Check | https://api.shippingrates.org/health |
# 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}'
{
"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
}
{
"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
}
┌─────────────────────────────────────────────────────┐
│ 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 │
└──────────────────────────┘
@modelcontextprotocol/sdk, Streamable HTTP transportShippingRates is listed on:
| Directory | Status |
|---|---|
| Official MCP Registry | ✅ Live — io.github.vinaybhosle/shippingrates-mcp-server |
| Smithery | ✅ Submitted |
| Glama | ✅ Submitted |
| mcp.so | ✅ Submitted |
| x402scan | ✅ Indexed — 6 resources auto-discovered |
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.
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.