royalmail-mcp

v0.2.1
io.github.catrinmdonnelly/royalmail-mcp Checked 5 hours ago Published 21 days ago

Book, track and cancel Royal Mail and Parcelforce shipments from any MCP client.

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

book_order

Book a Royal Mail shipment via Click & Drop. Returns an orderIdentifier used to retrieve the label.

ParameterTypeDescription
recipient *objectRecipient / delivery address
service *stringRoyal Mail or Parcelforce service. Use a key from list_services, such as "first-class", "tracked-24", "tracked-48" or "special-delivery-1000", or a raw Service Register code such as OLP1 or TOLP24. As…
weightGrams *numberTotal weight in grams (e.g. 500 for 500g)
despatchDatestringPlanned despatch date YYYY-MM-DD. Omit if your account does not allow future-dated orders
dimensionsobjectPackage dimensions in mm (optional)
goodsDescriptionstringBrief description of contents
notifyEmailstringEmail address for delivery notifications
notifyPhonestringMobile number for SMS delivery notifications
packageFormatstringPackage format. Determines which services are available and pricing
referencestringYour internal order or job reference
requireSignaturebooleanRequest signature on delivery
safePlacestringSafe place instructions e.g. "leave in porch"
senderobjectSender address. Omit to use the address saved in your Click & Drop account
shippingCostnumberShipping cost charged to recipient in GBP
specialInstructionsstringSpecial handling instructions
subtotalnumberOrder subtotal in GBP (used for customs/insurance)
totalnumberOrder total in GBP

get_label

Get the shipping label for a Royal Mail Click & Drop order and save it to disk. Works for any order you have previously booked, so pass its orderIdentifier. Needs a Royal Mail Online Business Account. Default save location is ~/Downloads/parcel-toolkit/, overridable via the PARCEL_TOOLKIT_LABELS_DIR env var.

ParameterTypeDescription
orderIdentifier *stringThe orderIdentifier returned when booking the order (or from a previously booked order).

book_batch_and_label

Book multiple Royal Mail orders at once (up to 50), then fetch the labels and merge them into one PDF, ready to print. Every order booked costs money. Use this when the user pastes a list of orders/addresses. All orders share the same service, package format and sender. Saving labels through the API needs a Royal Mail Online Business Account. On other accounts the orders are still booked and reported, and the labels are printed from the Click & Drop website. An order that is booked but has no saved label is reported with its orderIdentifier, so never book it again. Saves to ~/Downloads/parcel-…

ParameterTypeDescription
service *stringRoyal Mail service for every order in this batch (e.g. "tracked-24", "tracked-48", "first-class", "special-delivery-1000"). Call list_services for full catalogue.
shipments *arrayArray of orders to book, at most 50. Each entry is one order with its own recipient, weight and reference.
despatchDatestringPlanned despatch date YYYY-MM-DD. Omit if the account does not allow future-dated orders.
packageFormatstringPackage format for every order in the batch.
senderobjectSender address. Omit to use the address saved in your Click & Drop account.

track_order

Get the current status and tracking details for a Royal Mail Click & Drop order.

ParameterTypeDescription
orderIdentifier *stringThe orderIdentifier returned when booking the order

cancel_order

Cancel a Royal Mail Click & Drop order. Must be done before the order is manifested/despatched.

ParameterTypeDescription
orderIdentifier *stringThe orderIdentifier to cancel

list_services

List supported Royal Mail and Parcelforce services with their Service Register codes. Availability depends on your Click & Drop account.