get_long_weekends

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

Get long weekends (3+ consecutive days off) for a country and year. Shows which weekends can become long breaks, including whether a “bridge day” (vacation day) is needed. Great for trip planning. Example: get_long_weekends(2025, “DE”).

Parameters

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

Example call

Arguments

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

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

TypeScript (@pipeworx/sdk)

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

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

More examples

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

Response shape

Always returns: year, country_code, count, long_weekends

FieldTypeDescription
yearnumberThe year requested
country_codestringISO 3166-1 alpha-2 country code in uppercase
countnumberTotal number of long weekends found
long_weekendsarrayList of 3+ day consecutive off-day stretches
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 long weekends found"
    },
    "long_weekends": {
      "type": "array",
      "description": "List of 3+ day consecutive off-day stretches",
      "items": {
        "type": "object",
        "properties": {
          "start_date": {
            "type": "string",
            "description": "Start date of long weekend in YYYY-MM-DD format"
          },
          "end_date": {
            "type": "string",
            "description": "End date of long weekend in YYYY-MM-DD format"
          },
          "day_count": {
            "type": "number",
            "description": "Number of consecutive days off (including weekends)"
          },
          "needs_bridge_day": {
            "type": "boolean",
            "description": "Whether a vacation day needed to extend into long weekend"
          }
        },
        "required": [
          "start_date",
          "end_date",
          "day_count",
          "needs_bridge_day"
        ]
      }
    }
  },
  "required": [
    "year",
    "country_code",
    "count",
    "long_weekends"
  ]
}

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