next_holidays
Pack: holidays · Endpoint: https://gateway.pipeworx.io/holidays/mcp
Get upcoming public holidays from today onward for a country. Returns holiday names and dates. Provide country code (e.g., “US”, “GB”, “DE”).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
country_code | string | yes | ISO 3166-1 alpha-2 country code (e.g., US, GB, DE, FR) |
Example call
Arguments
{
"country_code": "FR"
}
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":"next_holidays","arguments":{"country_code":"FR"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('next_holidays', {
"country_code": "FR"
});
More examples
{
"country_code": "JP"
}
Response shape
Always returns: country_code, upcoming_holidays
| Field | Type | Description |
|---|---|---|
country_code | string | ISO 3166-1 alpha-2 country code in uppercase |
upcoming_holidays | array | List of upcoming public holidays from today onward |
Full JSON Schema
{
"type": "object",
"properties": {
"country_code": {
"type": "string",
"description": "ISO 3166-1 alpha-2 country code in uppercase"
},
"upcoming_holidays": {
"type": "array",
"description": "List of upcoming public holidays from today onward",
"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",
"upcoming_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.