Skip to main content

For developers & AI

Use Nivadu data in your app, or let your AI assistant answer holiday questions.

MCP server

Connect Nivadu to your AI assistant. Read-only, no sign-in.

Server URL

https://nivadu.sandaru.one/mcp

Add it to

Claude: On claude.ai, go to Customize → Connectors → + Add → Add custom connector. Enter a name and the server URL, choose No sign in, then choose Add.

Then ask: “When is the next long weekend for private-sector staff?”

Tools your assistant gets

  • next_holidayNext holiday for a type
  • list_holidaysHolidays by year, month, week or type
  • is_holidayCheck a date, and who gets it off
  • plan_leaveBest breaks for your leave days
  • iso_weekISO week for any date
  • data_statusWhen the data was updated, and gazette changes

REST API

Free JSON API. No key needed, CORS enabled.

Endpoints

  • GET /v1/2027Whole year
  • GET /v1/2027/05One month (01–12)
  • GET /v1/2027/W20One ISO week (W01–W53)
  • GET /v1/next?type=mercantileNext holiday
  • GET /v1/check?date=2027-05-19Is this date a holiday, and for whom?
  • GET /v1/calendar.ics?type=mercantileCalendar feed for every year
  • GET /v1/2027/calendar.icsCalendar file for one year
  • GET /v1/2027/holidays.csvCSV file for one year

Sample response

GET /v1/check?date=2027-05-19

{
  "meta": {
    "lastUpdated": "2026-11-28T14:00:00+05:30",
    "dataVersion": "2027.1",
    "source": "Gazette Extraordinary No. 2493/05",
    "amendments": []
  },
  "isHoliday": true,
  "offFor": [
    "public",
    "bank",
    "mercantile"
  ],
  "holidays": [
    {
      "date": "2027-05-19",
      "dateParts": {
        "year": 2027,
        "month": 5,
        "day": 19
      },
      "weekday": "Wed",
      "isoWeekday": 3,
      "isoWeek": 20,
      "isoWeekYear": 2027,
      "timezone": "Asia/Colombo",
      "utcOffset": "+05:30",
      "start": "2027-05-19T00:00:00+05:30",
      "end": "2027-05-19T23:59:59+05:30",
      "id": "poya-vesak",
      "name": "Vesak Full Moon Poya Day",
      "nameSi": "වෙසක් පුර පසළොස්වක පෝය දිනය",
      "gazette": [
        "public",
        "bank"
      ],
      "offFor": [
        "public",
        "bank",
        "mercantile"
      ],
      "poya": true,
      "tentative": false,
      "special": false,
      "longWeekend": false
    }
  ]
}

Good to know