logistics-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@logistics-mcp track shipment SBY-1003"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
logistics-mcp
Operations teams ask questions about shipments all day — "where is SBY-1042", "which route missed its SLA last month", "what would 12 kg to Makassar cost". The answers sit in a logistics system that an AI assistant cannot see. This MCP server exposes that system as nine tools, so Claude can answer from the actual data instead of from a screenshot the user pasted into the chat.
It runs out of the box against a bundled demo dataset (200 synthetic shipments across 6 cities over 3 months), so you can try every tool without credentials. Point it at your own backend by setting two environment variables.
The domain model comes from a production logistics platform I built (Next.js + Supabase, deployed on GCP). This repo contains the MCP server and a synthetic demo dataset, not the client application; no real customer names, rates, or operational data appear anywhere in it.
Architecture
Claude (Desktop / Code)
| MCP, stdio
v
logistics-mcp
tool handlers <- zod-validated inputs, row/byte caps, actionable errors
|
LogisticsSource <- one interface; handlers do not know which side is active
/ \
demo source rest source
fixtures/*.json LOGISTICS_API_URL + LOGISTICS_API_TOKEN (Bearer)The demo source reads the checked-in fixture JSON. The rest source expects the upstream
contract documented below. Writes are disabled unless ALLOW_WRITES=1; in demo mode an
update_shipment_status call mutates memory only and never touches the fixture files.
Related MCP server: Logistics AI MCP
Install
Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"logistics": {
"command": "npx",
"args": ["-y", "logistics-mcp"]
}
}
}Claude Code:
claude mcp add logistics -- npx -y logistics-mcpBoth configurations need nothing else: no URL, no token, no clone. To connect your own
backend instead of the demo data, add LOGISTICS_API_URL and LOGISTICS_API_TOKEN to the
server's environment.
What a conversation looks like
Recorded against the demo dataset.
You: What's the status of shipment SBY-1003?
Claude calls track_shipment and gets the public timeline:
{
"spNumber": "SBY-1003",
"events": [
{ "at": "2026-07-11T05:35:01.991Z", "status": "READY", "location": "Surabaya", "description": "Shipment registered and waiting for pickup" },
{ "at": "2026-07-11T14:35:01.991Z", "status": "PICKED_UP", "location": "Surabaya", "description": "Picked up from sender" },
{ "at": "2026-07-12T11:35:01.991Z", "status": "IN_TRANSIT", "location": "Surabaya to Yogyakarta", "description": "On the way to the destination region" },
{ "at": "2026-07-13T02:35:01.991Z", "status": "AT_HUB", "location": "Yogyakarta hub", "description": "Arrived at destination sorting hub" },
{ "at": "2026-07-13T13:35:01.991Z", "status": "OUT_FOR_DELIVERY", "location": "Yogyakarta", "description": "With the courier for final delivery" },
{ "at": "2026-07-14T21:35:01.991Z", "status": "DELIVERED", "location": "Yogyakarta", "description": "Delivered to the recipient" }
]
}You: And what would 12 kg to Makassar cost on STANDARD?
quote_shipping_rate resolves the layered rate table and shows the math:
{
"freight": 174000,
"currency": "IDR",
"breakdown": {
"pricePerKg": 14500,
"minCharge": 25000,
"appliedRule": "destination_special",
"formula": "max(ceil(12 * 14500), 25000)"
},
"alternatives": [
{ "product": "ECONOMY", "freight": 68400 },
{ "product": "EXPRESS", "freight": 312000 }
]
}Other questions the demo data supports: "which route had the worst on-time rate in June"
(delivery_performance), "what's on the next load to Surabaya" (list_manifests →
get_manifest), "show everything Kirana Textiles shipped that's still in transit"
(search_shipments), "which customers still have unpaid invoices" (list_invoices).
Tools
Tool | What it answers |
| Find shipments by status, date range, route, or customer (limit default 20, max 100) |
| Full detail: items, extra charges, total amount, status history |
| Public tracking timeline, without internal ops notes |
| Price for route + weight + product, with the winning rate rule and the math |
| Outbound loads per region and date, with counts and total weight |
| Contents of one load |
| Per-route on-time rate, average transit days, exception counts for a period |
| Customer invoices by payment status or customer, with amount and due date |
| Write. Disabled unless |
Configuration
Variable | Default | Effect |
| (empty) | Empty: bundled demo dataset. Set: REST backend at this URL |
| (empty) | Bearer token for the REST backend. Required when the URL is set |
|
| Only the exact value |
|
| Per-call timeout for the data source |
|
| Responses above this are trimmed with a note on how to narrow the query |
If LOGISTICS_API_URL is set without a token, the server exits with a message naming the
missing variable. It does not fall back to demo data — a demo answer presented as
production data is worse than an error.
REST backend contract
The rest source expects these endpoints under LOGISTICS_API_URL, all with
Authorization: Bearer <LOGISTICS_API_TOKEN>:
GET /shipments?status&from&to&origin&destination&customer&limit&offset
GET /shipments/:spNumber
GET /shipments/:spNumber/tracking
GET /rates?origin&destination
GET /manifests?region&date&limit&offset
GET /manifests/:id
GET /invoices?status&customer&limit&offset
POST /shipments/:spNumber/status { "status": "...", "note": "..." }Response shapes match the TypeScript interfaces in src/sources/types.ts.
Security notes
Read-only by default. The single write tool stays off unless
ALLOW_WRITES=1, and when it is off the tool says how to enable it instead of failing with a generic error.No credentials in the repo and no credential defaults in code. The token comes from the environment and is sent only to
LOGISTICS_API_URL.Tool errors return sentences the model can act on ("no shipment matches SBY-9999; check the number or use search_shipments"), not stack traces or raw upstream responses.
List responses are capped in rows and in bytes, so one tool call cannot flood the client's context window.
stdio transport only; the server opens no network listener of its own.
Development
npm install
npm run build # tsc
npm test # vitest, runs against the demo dataset
npm run generate:fixtures # regenerate fixtures/data deterministicallyfixtures/generate.ts uses a fixed seed; regeneration must produce byte-identical output.
If it does not, the generator picked up nondeterminism — fix the generator, never hand-edit
the JSON. The demo-data review checklist in .claude/agents/demo-data-reviewer.md covers
the consistency rules the dataset must satisfy (chronology, rate math, cross-file
references).
The .claude/ setup is part of the repo's workflow, not decoration: a review subagent
(agents/demo-data-reviewer.md), a fixture-check skill (skills/check-fixtures/), and two
hooks wired in settings.json — hooks/no-stdout-log.sh keeps stray console.log out of
the stdio server, and hooks/no-null-bytes.sh blocks git commit when a staged text file
contains null bytes (a guard against UTF-16 output from PowerShell redirects, which once
published an empty README to npm).
Limitations
stdio only; no HTTP/SSE transport.
The demo dataset is synthetic and small by design (200 shipments). Aggregations like
delivery_performancefetch up to 1000 rows and stop there.No OAuth; the REST adapter authenticates with a static bearer token.
Available Tools
9 toolsdelivery_performanceA
Aggregate delivery performance per route for a period: on-time rate, average transit days, and exception counts. Use for questions like 'which route underperformed last month'. Read-only; fetches up to 1000 shipments.
Inputs: to, from, origin, destination.
get_manifestA
Contents of one manifest: the shipments on it, total weight, and shipment count. Use after list_manifests to see what is on a specific load.
Inputs: manifest_id (required).
get_shipmentA
Full detail for one shipment: items, extra charges, total amount, and the complete status history. Use after search_shipments when the summary is not enough.
Inputs: sp_number (required).
list_invoicesA
List customer invoices with amount, due date, and payment status. Use for billing questions like which customers still have unpaid invoices.
Inputs: limit, offset, status, customer.
list_manifestsA
List outbound manifests (line-haul loads grouped by destination region and date), with shipment counts and total weight. Use for capacity and dispatch questions.
Inputs: date, limit, offset, region.
quote_shipping_rateA
Price a shipment for a route, weight, and product. Resolves the layered rate table (base per route and weight bracket, product override, destination special) and returns the winning rule with the math, plus the price of the other products for comparison.
Inputs: origin (required), product (required), weight_kg (required), destination (required).
search_shipmentsA
Find shipments by status, creation date range, route, or customer. Returns summaries, newest first. Use this to answer 'where are the late deliveries' or 'what did customer X ship last week' before calling get_shipment for details.
Inputs: to, from, limit, offset, +4 more.
track_shipmentA
Public tracking timeline for a shipment: the subset of events a recipient would see, without internal ops notes. Use this when the question is 'where is my package'.
Inputs: sp_number (required).
update_shipment_statusA
Set the status of a shipment. Disabled unless the server runs with ALLOW_WRITES=1; in demo mode the change is kept in memory only. Use only when the user explicitly asks to change a status.
Inputs: status (required), sp_number (required), note.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Each tool serves a distinct purpose: shipment search, detail, tracking, manifest contents, rate quoting, manifest listing, delivery performance, invoices, and status updates. No overlap.
All tools follow a consistent verb_noun pattern with snake_case (e.g., search_shipments, list_manifests, update_shipment_status).
9 tools cover the main logistics operations without being excessive. Each tool serves a clear, non-redundant function.
Covers essential queries (search, detail, tracking, manifests, pricing, performance, invoices) and a status update. Lacks shipment creation or deletion, but these are outside the stated read-heavy scope.
Related MCP Connectors
Multi-carrier shipping for AI agents: compare rates, buy labels, track packages, validate addresses
Neutral freight reference + validation layer for AI agents: ADR, HS, UN/LOCODE, freight math
Manage Zineps shipments, labels, orders, invoices, and partner operations with AI assistants.
RixFreight logistics quotes and route info via AI agents
Related MCP Servers
- AlicenseAqualityDmaintenanceThe first logistics/WMS MCP server for AI agents. Rate shopping, inventory management, order tracking, fleet logistics, AI-powered route optimization, demand forecasting, and supply chain analytics. 18 tools across 3 tiers.2018 npm1MIT
- AlicenseNot gradedqualityCmaintenanceProvides supply chain and shipping tools including shipment tracking, route optimization, warehouse inventory management, delivery ETA estimation, and customs documentation. Enables logistics operations through natural language interactions with Claude.8 npm1MIT

Easyship MCPofficial
AlicenseNot gradedqualityDmaintenanceEnables AI agents to manage global shipping operations, including rate comparison, shipment creation, label purchasing, tracking, pickup scheduling, address validation, billing, and analytics, via natural language.25 npmMIT- FlicenseAqualityCmaintenanceEnables AI agents to query orders, manage routes, track drivers, and analyze delivery performance on the FleetSync last-mile delivery platform through natural language.18-