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/mcpAdd 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.
Claude Desktop: In the Claude app on your computer, open Settings → Connectors, then choose Add → Add custom connector. Enter a name and the server URL, then choose Add.
ChatGPT: On the web, open chatgpt.com/plugins and choose + → Add custom MCP server. Enter a name and the server URL, and choose No authentication. Read and accept the warning, choose Create as a plugin, then install it.
Grok Build (Cursor): Add this to ~/.cursor/mcp.json.
{
"mcpServers": {
"nivadu": {
"url": "https://nivadu.sandaru.one/mcp"
}
}
}VS Code: Add this to ~/.copilot/mcp-config.json, then choose Copilot under Session Target.
{
"mcpServers": {
"nivadu": {
"type": "http",
"url": "https://nivadu.sandaru.one/mcp",
"tools": [
"*"
]
}
}
}Claude Code: Run this in your terminal.
claude mcp add --transport http nivadu https://nivadu.sandaru.one/mcpThen ask: “When is the next long weekend for private-sector staff?”
Tools your assistant gets
next_holidayNext holiday for a typelist_holidaysHolidays by year, month, week or typeis_holidayCheck a date, and who gets it offplan_leaveBest breaks for your leave daysiso_weekISO week for any datedata_statusWhen the data was updated, and gazette changes
REST API
Free JSON API. No key needed, CORS enabled.
Endpoints
GET /v1/2027Whole yearGET /v1/2027/05One month (01–12)GET /v1/2027/W20One ISO week (W01–W53)GET /v1/next?type=mercantileNext holidayGET /v1/check?date=2027-05-19Is this date a holiday, and for whom?GET /v1/calendar.ics?type=mercantileCalendar feed for every yearGET /v1/2027/calendar.icsCalendar file for one yearGET /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
- Free and read-only. No key and no sign-in.
- CORS is open, so a web page can call the API directly.
- Every response includes meta: when the data was last updated, its gazette source and any amendments.
- Dates are Sri Lankan calendar dates (Asia/Colombo), written YYYY-MM-DD. Months are 1–12, and ISO weeks start on Monday.
- Both Eids depend on the moon. Until they are confirmed, the API and MCP mark them with "tentative": true.
- Where the data comes from, and how well it is checked: Sources and privacy.