list_countries

Pack: nager-date · Endpoint: https://gateway.pipeworx.io/nager-date/mcp

List all countries supported by the holiday API with their ISO country codes. Use these codes with get_holidays and other tools.

Example call

Arguments

{}

curl

curl -X POST https://gateway.pipeworx.io/nager-date/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"list_countries","arguments":{}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('list_countries', {});

Response shape

Always returns: count, countries

FieldTypeDescription
countnumberTotal number of supported countries
countriesarrayList of all supported countries with their codes
Full JSON Schema
{
  "type": "object",
  "properties": {
    "count": {
      "type": "number",
      "description": "Total number of supported countries"
    },
    "countries": {
      "type": "array",
      "description": "List of all supported countries with their codes",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "ISO 3166-1 alpha-2 country code"
          },
          "name": {
            "type": "string",
            "description": "Country name"
          }
        },
        "required": [
          "code",
          "name"
        ]
      }
    }
  },
  "required": [
    "count",
    "countries"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "nager-date": {
      "url": "https://gateway.pipeworx.io/nager-date/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026