Skip to content
VS Code

PostNL for VS Code

io.github.bartwaardenburg/postnl-mcp

Create shipments, generate barcodes, track parcels, and find pickup locations via the PostNL API

client:VS Code transport:stdio runtime:npm

Install PostNL in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "postnl-api-key",
      "description": "POSTNL_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "postnl-customer-code",
      "description": "POSTNL_CUSTOMER_CODE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "postnl-customer-number",
      "description": "POSTNL_CUSTOMER_NUMBER",
      "password": true
    },
    {
      "type": "promptString",
      "id": "postnl-cache-ttl",
      "description": "POSTNL_CACHE_TTL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "postnl-max-retries",
      "description": "POSTNL_MAX_RETRIES",
      "password": true
    },
    {
      "type": "promptString",
      "id": "postnl-toolsets",
      "description": "POSTNL_TOOLSETS",
      "password": true
    }
  ],
  "servers": {
    "postnl-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "postnl-mcp"
      ],
      "env": {
        "POSTNL_API_KEY": "${input:postnl-api-key}",
        "POSTNL_CUSTOMER_CODE": "${input:postnl-customer-code}",
        "POSTNL_CUSTOMER_NUMBER": "${input:postnl-customer-number}",
        "POSTNL_CACHE_TTL": "${input:postnl-cache-ttl}",
        "POSTNL_MAX_RETRIES": "${input:postnl-max-retries}",
        "POSTNL_TOOLSETS": "${input:postnl-toolsets}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

PostNL in other clients