postnl-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| POSTNL_API_KEY | Yes | Your PostNL API key. | |
| POSTNL_TOOLSETS | No | Comma-separated list of tool categories to enable: shipping, tracking, delivery, locations. When not set, all toolsets are enabled. | |
| POSTNL_CACHE_TTL | No | Response cache lifetime in seconds. Set to 0 to disable caching. | 120 |
| POSTNL_MAX_RETRIES | No | Maximum retry attempts for rate-limited (429) requests with exponential backoff. | 3 |
| POSTNL_CUSTOMER_CODE | Yes | Your PostNL customer code (used in barcode generation and shipments). | |
| POSTNL_CUSTOMER_NUMBER | Yes | Your PostNL customer number (used in shipment requests). |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| generate_barcodeA | Generate a PostNL barcode for shipping. The barcode is required before creating a shipment. Types: 2S (mailbox parcel), 3S (domestic NL parcels), CC/CP/CD/CF (EU parcels), LA (EU letter), RI (registered international), UE (non-EU parcels). |
| create_shipmentA | Create a PostNL shipment and generate a shipping label. Requires a barcode (use generate_barcode first), sender address (AddressType 02), and receiver address (AddressType 01). Returns a PDF label as base64. Common product codes: 3085 (standard), 3385 (stated address only), 3090 (neighbour + return), 3087 (extra cover), 3089 (signature on delivery), 3533/3534 (pickup point). Evening delivery: use product option {Characteristic: '118', Option: '006'} with a DeliveryDate. WARNING: Creating a shipment incurs shipping costs. Always confirm with the user before calling this tool. |
| get_shipment_statusA | Track a PostNL shipment by barcode. Returns the current status, expected delivery date, and status history of the shipment. |
| get_delivery_dateA | Calculate the expected delivery date for a shipment based on the shipping date, postal code, and delivery options. Useful for showing customers when they can expect their parcel. |
| get_delivery_optionsA | Get available delivery time windows for a specific address and date range. Returns available timeframes including daytime, evening, and morning delivery options. |
| find_locationsA | Find nearby PostNL pickup/drop-off points (post offices, parcel lockers, retail points). Search by postal code, city, coordinates, or a combination. Useful for finding the nearest place to drop off or collect a parcel. |
| get_locationA | Get detailed information about a specific PostNL location by its location code. Returns address, opening hours, available delivery options, and contact information. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 7 tools
Most tools target clearly distinct actions (barcode generation, shipment creation, tracking, delivery calculation). The only mild overlaps are get_location vs find_locations and get_delivery_date vs get_delivery_options, but the descriptions clearly differentiate lookup-by-code vs nearby-search and date-calculation vs time-window-retrieval.
All tool names follow a consistent snake_case verb_noun pattern: get_location, generate_barcode, create_shipment, get_shipment_status, get_delivery_date, get_delivery_options, find_locations. Verbs are used predictably (get/find/generate/create).
Seven tools is well-scoped for a shipping/logistics server, covering the full create-track-locate workflow without obvious padding. Each tool earns its place.
The core shipment lifecycle (barcode, create, track, delivery estimation, location search) is well covered. Minor gaps exist: no cancel shipment, no separate label retrieval/reprint, and no shipping-cost/rate calculation, but these are workarounds rather than blocking dead ends.