get_holidays

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

Get all public holidays for a country and year. Returns holiday names, dates, and types (public, bank, school, etc.). Example: get_holidays(2025, “US”).

Parameters

NameTypeRequiredDescription
yearnumberyesThe year (e.g., 2025)
country_codestringyesISO 3166-1 alpha-2 country code (e.g., “US”, “GB”, “DE”, “JP”)

Example call

Arguments

{
  "year": 2025,
  "country_code": "US"
}

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":"get_holidays","arguments":{"year":2025,"country_code":"US"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('get_holidays', {
  "year": 2025,
  "country_code": "US"
});

More examples

{
  "year": 2025,
  "country_code": "DE"
}

Response shape

Always returns: year, country_code, count, holidays

FieldTypeDescription
yearnumberThe year requested
country_codestringISO 3166-1 alpha-2 country code in uppercase
countnumberTotal number of holidays returned
holidaysarrayList of public holidays for the country and year
Full JSON Schema
{
  "type": "object",
  "properties": {
    "year": {
      "type": "number",
      "description": "The year requested"
    },
    "country_code": {
      "type": "string",
      "description": "ISO 3166-1 alpha-2 country code in uppercase"
    },
    "count": {
      "type": "number",
      "description": "Total number of holidays returned"
    },
    "holidays": {
      "type": "array",
      "description": "List of public holidays for the country and year",
      "items": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "description": "Holiday date in YYYY-MM-DD format"
          },
          "name": {
            "type": "string",
            "description": "Holiday name in English"
          },
          "local_name": {
            "type": "string",
            "description": "Holiday name in local language"
          },
          "global": {
            "type": "boolean",
            "description": "Whether holiday is observed globally across the country"
          },
          "counties": {
            "type": [
              "array",
              "null"
            ],
            "description": "List of counties/regions where holiday applies, or null if global",
            "items": {
              "type": "string"
            }
          },
          "types": {
            "type": "array",
            "description": "Holiday types (e.g., public, bank, school)",
            "items": {
              "type": "string"
            }
          },
          "fixed": {
            "type": "boolean",
            "description": "Whether holiday is on a fixed date each year"
          }
        },
        "required": [
          "date",
          "name",
          "local_name",
          "global",
          "counties",
          "types",
          "fixed"
        ]
      }
    }
  },
  "required": [
    "year",
    "country_code",
    "count",
    "holidays"
  ]
}

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