Royalmail Mcp
About
Connect any MCP-compatible AI to Royal Mail and Parcelforce shipping. This server exposes five tools that let Claude, Cursor or any MCP client book orders, fetch postage labels, track shipments and cancel bookings through the official Click & Drop API.
Details
- Author
- catrinmdonnelly
- Downloads
- 355
- Categories
- Developer Tools
Jump to
- Five tools: book_order, get_label, track_order, cancel_order, and list_services
- Supports Royal Mail and Parcelforce services, including tracked, signed, and international options
- Labels returned as base64-encoded PDF (requires an OBA account)
- Order cancellation available before manifestation (no charge)
- Works with any MCP client that supports stdio transport
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
Royalmail McpCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Install globally with npm install -g royalmail-mcp or run directly with npx royalmail-mcp. Set the environment variables RM_API_KEY (your Click & Drop API key) and RM_BASE_URL (default https://api.parcel.royalmail.com/api/v1) in a .env file or your MCP client’s configuration. Add the server to your MCP client config (e.g., Claude Desktop or Cursor) as shown in the README, then ask the AI to book, track, or cancel shipments.
book_order
Book a Royal Mail shipment via Click & Drop. Returns an orderIdentifier used to retrieve the label.
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 — pass its orderIdentifier. Default save location is ~/Downloads/parcel-toolkit/, overridable via the PARCEL_TOOLKIT_LABELS_DIR env var.
book_batch_and_label
Book multiple Royal Mail orders at once and return a single merged PDF containing every label, ready to print. Use this when the user pastes a list of orders/addresses. All orders share the same service, package format and sender. Saves the merged PDF to ~/Downloads/parcel-toolkit/ (overridable via PARCEL_TOOLKIT_LABELS_DIR).
track_order
Get the current status and tracking details for a Royal Mail Click & Drop order.
cancel_order
Cancel a Royal Mail Click & Drop order. Must be done before the order is manifested/despatched.
list_services
List supported Royal Mail and Parcelforce services with their Service Register codes. Availability depends on your Click & Drop account.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"royalmail mcp": {
"royalmail": {
"command": "npx",
"args": [
"-y",
"royalmail-mcp"
],
"env": {
"RM_API_KEY": "your-royal-mail-api-key"
}
}
}
}
}
McpServers
{
"royalmail": {
"command": "npx",
"args": [
"-y",
"royalmail-mcp"
],
"env": {
"RM_API_KEY": "your-royal-mail-api-key"
}
}
}
royalmail-mcp
Book, label, track and cancel Royal Mail and Parcelforce shipments from any MCP-compatible AI such as Claude, Cursor, or Windsurf.
Verified against the live Click & Drop API (April 2026). Booking, tracking and cancellation tested end-to-end. Label retrieval verified against the spec for OBA accounts.
What it does
Exposes five tools to any AI that speaks MCP:
| Tool | What it does |
|------|--------------|
| book_order | Create an order in Click & Drop. Returns an orderIdentifier. |
| get_label | Fetch the postage label as a base64-encoded PDF. Requires an OBA account (see below). |
| track_order | Current status, tracking number and despatch date. |
| cancel_order | Cancel an order before it's manifested. No charge is applied. |
| list_services | Every Royal Mail and Parcelforce service this MCP supports, with codes. |
Under the hood it talks to https://api.parcel.royalmail.com/api/v1 using your Click & Drop API key.
Example prompts
Once the MCP is installed in your AI client, you can say things like:
> "Book a 1st class letter to Alex Taylor, 45 High Street, Manchester M1 1AA, 80 grams. Reference it ORDER-1842."
> "Ship these three orders via Tracked 48 and give me the orderIdentifiers." (paste a list of addresses)
> "Book Special Delivery by 1pm with £1,000 compensation to this address, then fetch the label."
> "Cancel order 1004. The customer sent the wrong postcode."
> "What's the cheapest signed-for service for a 500g parcel?" (AI calls list_services and reasons)
> "Track orders 1002, 1003 and 1004 and summarise where each one is."
The AI handles address parsing, service selection and error recovery. You handle the business decisions.
Workflow ideas for businesses
Plugged into any AI agent, this MCP can automate real shipping operations:
- Daily order fulfilment. Every morning, your AI reads new orders from Shopify, WooCommerce or a spreadsheet, books each one via Royal Mail at the right service level, and posts tracking numbers back to the customer.
- Customer service triage. When a customer emails "where's my parcel?", your AI calls track_order, summarises the latest status in plain English, and drafts a reply.
- Returns handling. A customer requests a return. Your AI reads the request, books the correct return service, and emails the printable label straight back, with no staff time involved.
- Multi-carrier picking. Installed alongside apc-mcp, your AI compares Royal Mail and APC at booking time and picks the cheapest or fastest option per destination.
- Bulk fulfilment days. For sale events or subscription-box drops, give your AI a CSV of hundreds of orders. It books them all at the right service and compensation tier in one run, then hands you a summary.
- Checkout quotes. When a customer asks for shipping cost at checkout, your AI picks the right service for the weight and postcode, calculates the price, and responds within seconds.
Compatibility
Works with any MCP client that supports stdio transport:
- Claude Desktop
- Cursor
- Windsurf
- Claude Code
- Zed
ChatGPT, Smithery and other remote-only MCP clients need an HTTP transport, which isn't included yet. If that matters to you, open an issue so I can prioritise it.
Install
npm install -g royalmail-mcp
Or run without installing:
npx royalmail-mcp
Configuration
Get your API key from Click & Drop → Settings → API credentials, then set:
RM_API_KEY=your-royal-mail-api-key
RM_BASE_URL=https://api.parcel.royalmail.com/api/v1
Either in a .env file next to the server, or via your MCP client's config (see below).
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"royalmail": {
"command": "npx",
"args": ["-y", "royalmail-mcp"],
"env": {
"RM_API_KEY": "your-royal-mail-api-key"
}
}
}
}
Cursor
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"royalmail": {
"command": "npx",
"args": ["-y", "royalmail-mcp"],
"env": {
"RM_API_KEY": "your-royal-mail-api-key"
}
}
}
}
Supported services
| Key | Royal Mail service | Code |
|-----|--------------------|------|
| first-class | 1st Class | OLP1 |
| first-class-signed | Signed For 1st Class | OLP1SF |
| second-class | 2nd Class | OLP2 |
| tracked-24 | Tracked 24 | TOLP24 |
| tracked-48 | Tracked 48 | TOLP48 |
| special-delivery-750 | Special Delivery by 1pm (£750) | SD1OLP |
| special-delivery-1000 | Special Delivery by 1pm (£1,000) | SD2OLP |
| special-delivery-2500 | Special Delivery by 1pm (£2,500) | SD3OLP |
| parcelforce-24 | Parcelforce express24 | PFE24 |
| parcelforce-48 | Parcelforce express48 | PFE48 |
| international-tracked | International Tracked | ITROLP |
Plus 22 more, including signed-for variants, age-verification services, and Parcelforce international. Run list_services for the full list.
You can pass either the friendly key (first-class) or the raw Service Register code (OLP1). Both work. Which services your account can use depends on what's enabled in Click & Drop → Settings → Shipping services.
Limitations
Labels require an OBA account
get_label only works for customers on a Royal Mail Online Business Account (OBA), the invoiced business account. Standard Pay-as-you-go Click & Drop accounts will get 403 Forbidden (Feature not available) on get_label.
Booking, tracking and cancelling work on all account types. If you don't have an OBA you can still automate the order creation via this MCP, then print labels in the Click & Drop UI manually.
Register for OBA at auth.parcel.royalmail.com/register/oba.
OBA users: enable auto-apply-postage
If you're on OBA, also tick "Apply postage automatically on orders imported via API" in Click & Drop → Settings. Without it, orders stay as drafts and get_label returns "Label generation only available for orders with postage applied status".
Security
Your API key grants full access to your Click & Drop account. Treat it like a password.
- Never commit .env to git. The .gitignore in this repo already excludes it.
- Don't paste your key into chat messages or shared documents.
- Rotate it at Click & Drop → Settings → API credentials if it's ever exposed.
Contributing
Issues and pull requests are welcome at github.com/catrinmdonnelly/royalmail-mcp. If Royal Mail changes their API, or you hit an edge case on your account type, please open an issue with the request body you sent and the response you got (scrub your API key first).
Companion MCP
For APC Overnight, see apc-mcp.
Disclaimer
This project is not affiliated with, endorsed by, or sponsored by Royal Mail Group Ltd. "Royal Mail", "Parcelforce" and "Click & Drop" are trademarks of their respective owners. Use at your own risk.
Licence
MIT. See LICENSE.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





