is_today_holiday

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

Check if today is a public holiday in a given country. Returns true/false. Example: is_today_holiday(“US”).

Parameters

NameTypeRequiredDescription
country_codestringyesISO 3166-1 alpha-2 country code (e.g., “US”, “GB”)

Example call

Arguments

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

TypeScript (@pipeworx/sdk)

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

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

More examples

{
  "country_code": "GB"
}

Response shape

Always returns: country_code, is_holiday

FieldTypeDescription
country_codestringISO 3166-1 alpha-2 country code in uppercase
is_holidaybooleanTrue if today is a public holiday in the country, false otherwise
Full JSON Schema
{
  "type": "object",
  "properties": {
    "country_code": {
      "type": "string",
      "description": "ISO 3166-1 alpha-2 country code in uppercase"
    },
    "is_holiday": {
      "type": "boolean",
      "description": "True if today is a public holiday in the country, false otherwise"
    }
  },
  "required": [
    "country_code",
    "is_holiday"
  ]
}

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