apc-mcp

v0.2.1
io.github.catrinmdonnelly/apc-mcp Checked 18 hours ago Published 21 days ago

Book, label, track and cancel APC Overnight UK parcels from any MCP client.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

book_shipment

Book a parcel delivery with APC Overnight. Returns a 22-digit waybill used for label retrieval and tracking.

ParameterTypeDescription
collectionDate *stringCollection date. YYYY-MM-DD or DD/MM/YYYY
numberOfPieces *integerNumber of parcels/items in this consignment (1 to 50)
recipient *objectRecipient / delivery address
sender *objectSender / collection address
service *stringAPC delivery service. Pass a friendly key (e.g. "next-day", "saturday-1200", "courier-pack", "liquid-0900", "ireland-road") or the raw ProductCode (e.g. "ND16", "NS12", "CP16", "LP09", "ROAD"). Call l…
totalWeightKg *numberTotal weight in kg
closedAtstringTime business closes HH:MM (default 17:00)
goodsDescriptionstringBrief description of goods
goodsValuenumberDeclared value in GBP
itemTypestringType of goods being sent
readyAtstringTime goods will be ready HH:MM (default 09:00)
referencestringYour internal order or job reference

get_label

Get the shipping label for a booked APC consignment and save it to disk. Call any time after book_shipment. APC typically needs 3-5 seconds to generate it, which this tool waits for automatically. APC marks the consignment as printed once the label has been fetched. Returns the local file path. Default save location is ~/Downloads/parcel-toolkit/, overridable via the PARCEL_TOOLKIT_LABELS_DIR env var.

ParameterTypeDescription
waybill *stringThe 22-digit WayBill number returned when booking (or from a previously booked consignment).
formatstringLabel format. PDF for standard printers, ZPL for thermal (Zebra/Rollo), PNG for previews.

book_batch_and_label

Book multiple APC shipments at once (up to 50), then fetch the labels. Every shipment booked costs money. PDF labels are merged into one file, ready to print; ZPL and PNG labels are saved as one file each. Use this when the user pastes a list of orders/addresses. All shipments share the same service, collection date and sender. A shipment that is booked but whose label could not be fetched is still reported with its waybill, so never book it again; use get_label instead. Saves to ~/Downloads/parcel-toolkit/ (overridable via PARCEL_TOOLKIT_LABELS_DIR).

ParameterTypeDescription
collectionDate *stringCollection date for every shipment. YYYY-MM-DD or DD/MM/YYYY
sender *objectSender / collection address. Same for every shipment in the batch.
service *stringAPC delivery service for every shipment in this batch (e.g. "next-day", "next-day-1200", "ND16"). Call list_services for the full catalogue.
shipments *arrayArray of shipments to book, at most 50. Each entry is one consignment with its own recipient, weight and pieces.
closedAtstringTime business closes HH:MM (default 17:00)
labelFormatstringLabel format. PDF labels are merged into one file. ZPL (thermal printers) and PNG labels are saved as one file per shipment.
readyAtstringTime goods will be ready HH:MM (default 09:00)

track_shipment

Get the current status and tracking history for an APC Overnight consignment.

ParameterTypeDescription
waybill *stringThe 22-digit WayBill number

cancel_shipment

Cancel an APC Overnight consignment. Must be done before the parcel is collected/manifested.

ParameterTypeDescription
waybill *stringThe 22-digit WayBill number to cancel

list_services

List every APC Overnight delivery service with friendly key, label and ProductCode. Service availability depends on your APC account and routing, so confirm with your depot before relying on an unusual service.