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.

Values you need

VariableWhat it is
RM_API_KEYrequired secret Your Royal Mail Click & Drop API key, from Settings then API credentials.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add royalmail-mcp -e 'RM_API_KEY=<RM_API_KEY>' -- npx -y royalmail-mcp@0.2.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "royalmail-mcp": {
      "args": [
        "-y",
        "royalmail-mcp@0.2.1"
      ],
      "command": "npx",
      "env": {
        "RM_API_KEY": "<RM_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "royalmail-mcp": {
      "args": [
        "-y",
        "royalmail-mcp@0.2.1"
      ],
      "command": "npx",
      "env": {
        "RM_API_KEY": "<RM_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "RM_API_KEY",
      "id": "rm-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "royalmail-mcp": {
      "args": [
        "-y",
        "royalmail-mcp@0.2.1"
      ],
      "command": "npx",
      "env": {
        "RM_API_KEY": "${input:rm-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.royalmail-mcp]
command = "npx"
args = ["-y", "royalmail-mcp@0.2.1"]
env = { "RM_API_KEY" = "<RM_API_KEY>" }

For AI agents

  1. Ask the user for: RM_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: book_order, get_label, book_batch_and_label, track_order, cancel_order, list_services.
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json