Summary
Kuehne+Nagel Shipment Tracking API v2: find air, sea and road shipments by tracking number, customer reference or filters, and read their references, parties, cargo, routing milestones and milestone history. Read-only. OAuth2 consumer key and secret from the developer portal.
Guided setup
Connect Kuehne+Nagel to Claude, ChatGPT or Copilot in 2 minutes
Start a free trial on AnythingMCP Cloud, connect Kuehne+Nagel in the guided setup, then add your MCP URL to your AI assistant. No code and no server to run.
No credit card · 7-day trial · Self-host alternative available
Try asking
Example prompts for Kuehne+Nagel
Click any prompt to copy it. Paste into Claude, ChatGPT, Cursor, Gemini, Copilot or OpenClaw to run it against this connector.
Claude is AI and can make mistakes. Please double-check responses.
💡 No install? Use cloud.anythingmcp.com directly. Sign in, click Connectors → Kuehne+Nagel, paste your credentials, mint an MCP API key and you're done. No Docker, no
git clone, no local server.
Kuehne+Nagel
Kuehne+Nagel Shipment Tracking API v2: find air, sea and road shipments by tracking number, customer reference or filters, and read their references, parties, cargo, routing milestones and milestone history. Read-only. OAuth2 consumer key and secret from the developer portal.
Setup
Before you start: the API shows what your myKN account shows. Your company needs a myKN Enterprise Visibility setup (the company locations whose shipments you may see); ask your Kuehne+Nagel account manager if you are not sure.
Setting up takes about 10 minutes.
- Sign in to the developer portal at https://portal.api.kuehne-nagel.com/devportal/ with the same email address as your myKN account.
- Under Applications create an application (or open the default one) and subscribe it to the API ShipmentTracking, version v2.
- In the application open Production Keys, OAuth2 Tokens, generate the keys with the grant type Client Credentials, and copy the Consumer Key into
KUEHNE_NAGEL_CONSUMER_KEYand the Consumer Secret intoKUEHNE_NAGEL_CONSUMER_SECRET.
The connector exchanges them at https://portal.api.kuehne-nagel.com/oauth2/token for a bearer token and renews it by itself.
Where to start
- You know the tracking number:
kuehne_nagel_get_shipment. - You know your own reference (order or purchase order number):
kuehne_nagel_find_shipments_by_reference. The reference is required there and must match completely. - You want a list (all sea shipments in transit, everything departing this month):
kuehne_nagel_search_shipments. All its filters are optional; without filters it lists every visible shipment, newest first. - You want to know what changed (a delay, a new estimated arrival):
kuehne_nagel_get_shipment_historywith the shipmentId.
Two identifiers: the trackingNumber (letters and digits such as 1056143482TK) and the numeric shipmentId (such as 19101910). The details take the tracking number, or shipment-id: followed by the shipmentId; the history takes the bare shipmentId.
Reading the data: modeOfTransport is AIR, SEA or ROAD. currentStage is BOOKED, IN_TRANSIT, COMPLETED or CANCELLED. The routing lists locations (origin, ports or airports, destination) with milestones; each milestone time carries a condition, PLANNED or ACTUAL, and reached tells whether the shipment passed it. Times are ISO 8601. The search pages from page 0 with size rows; page.hasNext tells whether another page follows.
Errors: problems are answered as application/problem+json with title and detail. 401 means the token was refused, 403 that the application is not subscribed to ShipmentTracking v2, 404 that no visible shipment has that number.
Prerequisites: KUEHNE_NAGEL_CONSUMER_KEY, KUEHNE_NAGEL_CONSUMER_SECRET
Install the connector locally
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
Open http://localhost:3000/connectors/store, pick Kuehne+Nagel and paste in the env vars listed under Prerequisites.
Available tools
| Tool | What it does |
|---|---|
kuehne_nagel_search_shipments | Search the shipments your myKN account can see, newest first, with optional filters on customer reference, mode of transport, current… |
kuehne_nagel_find_shipments_by_reference | Find the shipments that carry a given customer reference (your order or purchase order number). The reference is required and must match… |
kuehne_nagel_get_shipment | Read one shipment in full: shipmentId, trackingNumber, bookingId, modeOfTransport, serviceType, shipmentReferences (HAWB, MAWB, bill of… |
kuehne_nagel_get_shipment_history | Read how the milestones of a shipment changed over time, newest change first: milestones with type (ROUTE_LOCATION_MILESTONE or… |
Example prompts
- "Where is shipment 1056143482TK and when does it arrive?"
- "Find the shipments for our purchase order PO-45812."
- "List all sea shipments that are in transit."
- "What changed in the milestones of shipment 19101910 this week?"
- "Which air shipments depart this month?"
Next steps
Was this guide helpful?