get_holidays

Pack: holidays · Endpoint: https://gateway.pipeworx.io/holidays/mcp

Get all public holidays for a country and year. Returns holiday names and dates. Provide country code (e.g., “US”, “GB”, “DE”) and year.

Parameters

NameTypeRequiredDescription
country_codestringyesISO 3166-1 alpha-2 country code (e.g., US, GB, DE, FR)
yearnumberyesThe year to retrieve holidays for (e.g., 2025)

Example call

Arguments

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

curl

curl -X POST https://gateway.pipeworx.io/holidays/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_holidays","arguments":{"country_code":"US","year":2025}}}'

TypeScript (@pipeworx/sdk)

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

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

More examples

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

Response shape

Always returns: country_code, year, holidays

FieldTypeDescription
country_codestringISO 3166-1 alpha-2 country code in uppercase
yearnumberThe year for which holidays were retrieved
holidaysarrayList of public holidays for the country and year
Full JSON Schema
{
  "type": "object",
  "properties": {
    "country_code": {
      "type": "string",
      "description": "ISO 3166-1 alpha-2 country code in uppercase"
    },
    "year": {
      "type": "number",
      "description": "The year for which holidays were retrieved"
    },
    "holidays": {
      "type": "array",
      "description": "List of public holidays for the country and year",
      "items": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "description": "Holiday date (ISO 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 in the country"
          },
          "counties": {
            "type": [
              "array",
              "null"
            ],
            "description": "Specific counties/regions where holiday is observed",
            "items": {
              "type": "string"
            }
          },
          "types": {
            "type": "array",
            "description": "Holiday types (e.g., Public, Bank, School)",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "date",
          "name",
          "local_name",
          "global",
          "counties",
          "types"
        ]
      }
    }
  },
  "required": [
    "country_code",
    "year",
    "holidays"
  ]
}

Connect

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

{
  "mcpServers": {
    "holidays": {
      "url": "https://gateway.pipeworx.io/holidays/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026