Sponsored by Deepsite.site

Royalmail Mcp

Created By
catrinmdonnelly14 days ago
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. Covers 33 UK and international services, including 1st and 2nd Class, Tracked 24 and 48, Special Delivery, Parcelforce express and international tracked. Accepts both friendly service keys (for example tracked-24 or parcelforce-48) and raw Service Register codes (TOLP24, PFE48) directly. Typical workflows: daily order fulfilment from ecommerce platforms, customer service triage for tracking queries, returns handling, multi-carrier price comparison when paired with apc-mcp, bulk fulfilment days, and shipping quotes at checkout. Booking, tracking and cancellation verified end-to-end against the live Click & Drop API. Label retrieval requires a Royal Mail OBA account.
Overview

royalmail-mcp

npm version licence node CI

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:

ToolWhat it does
book_orderCreate an order in Click & Drop. Returns an orderIdentifier.
get_labelFetch the postage label as a base64-encoded PDF. Requires an OBA account (see below).
track_orderCurrent status, tracking number and despatch date.
cancel_orderCancel an order before it's manifested. No charge is applied.
list_servicesEvery 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

KeyRoyal Mail serviceCode
first-class1st ClassOLP1
first-class-signedSigned For 1st ClassOLP1SF
second-class2nd ClassOLP2
tracked-24Tracked 24TOLP24
tracked-48Tracked 48TOLP48
special-delivery-750Special Delivery by 1pm (£750)SD1OLP
special-delivery-1000Special Delivery by 1pm (£1,000)SD2OLP
special-delivery-2500Special Delivery by 1pm (£2,500)SD3OLP
parcelforce-24Parcelforce express24PFE24
parcelforce-48Parcelforce express48PFE48
international-trackedInternational TrackedITROLP

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.

Server Config

{
  "mcpServers": {
    "royalmail": {
      "command": "npx",
      "args": [
        "-y",
        "royalmail-mcp"
      ],
      "env": {
        "RM_API_KEY": "your-royal-mail-api-key"
      }
    }
  }
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
RedisA Model Context Protocol server that provides access to Redis databases. This server enables LLMs to interact with Redis key-value stores through a set of standardized tools.
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.
Tavily Mcp
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Serper MCP ServerA Serper MCP Server
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
CursorThe AI Code Editor
ChatWiseThe second fastest AI chatbot™
Amap Maps高德地图官方 MCP Server
DeepChatYour AI Partner on Desktop
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright McpPlaywright MCP server
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
WindsurfThe new purpose-built IDE to harness magic
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.