Skip to main content
Glama

holidays-mcp

A Model Context Protocol (MCP) server for Indian public holidays by state/year. It lets Claude Code, Claude Desktop, Cline, and any other MCP client list central and state holidays, search them by keyword or month, and get the upcoming holidays for a state from today.

Indian public holidays fall into two buckets: the three national holidays — Republic Day, Independence Day, and Gandhi Jayanti — plus a large set of state holidays (gazetted public holidays and optional ones) that vary by state. This server ships a small, self-contained static dataset covering the national holidays for 2024/2025 plus a representative set of state holidays for Maharashtra, Karnataka and Tamil Nadu (including regional festivals such as Ganeshotsav, Pongal and Ugadi).

What it does

Three tools:

  • holiday_list — lists holidays for a given year and state (or central for national holidays). Returns date, day-of-week, name, occasion and type (Central/Federal/State/Gazetted/Optional).

  • holiday_search — searches holidays by keyword (e.g. Diwali, Republic Day, Eid) or by month (1–12).

  • next_holiday — returns the upcoming N holidays (from today) for a state (defaults to 5).

Related MCP server: mcp-nager-holidays

Quick start

Requires Node.js 18+. No API key is needed — the data is bundled with the package.

# from the monorepo root
npm install          # installs @modelcontextprotocol/sdk
npm run test --workspace holidays-mcp   # run the tests

Run the server directly (stdio transport):

node server.js

MCP client configuration

Add it to your MCP client's configuration as a stdio server:

{
  "mcpServers": {
    "holidays": {
      "command": "node",
      "args": ["/absolute/path/to/india-mcp/holidays-mcp/server.js"]
    }
  }
}

Or, from inside the package folder:

{
  "mcpServers": {
    "holidays": {
      "command": "node",
      "args": ["server.js"]
    }
  }
}

Tool examples

holiday_list — arguments:

argument

type

required

description

year

string

yes

4-digit year, e.g. 2025

state

string

yes

State name or central. Available: central, Maharashtra, Karnataka, Tamil Nadu

Example call:

{ "name": "holiday_list", "arguments": { "year": "2025", "state": "Maharashtra" } }

Example response (trimmed):

{
  "ok": true,
  "data": [
    {
      "date": "2025-01-26",
      "dayOfWeek": "Sunday",
      "name": "Republic Day",
      "occasion": "National",
      "type": "Central"
    },
    {
      "date": "2025-05-01",
      "dayOfWeek": "Thursday",
      "name": "Maharashtra Day",
      "occasion": "State Formation",
      "type": "Gazetted"
    }
  ]
}

holiday_search — arguments:

argument

type

required

description

query

string

yes

Keyword (name/occasion) or a month number 1–12

state

string

no

Optional state filter

Example call — find Diwali in 2025:

{ "name": "holiday_search", "arguments": { "query": "Diwali", "state": "central" } }

Example call — all central holidays in August:

{ "name": "holiday_search", "arguments": { "query": "8", "state": "central" } }

next_holiday — arguments:

argument

type

required

description

state

string

yes

State name or central

count

number

no

How many upcoming holidays to return (default 5)

Example call:

{ "name": "next_holiday", "arguments": { "state": "Tamil Nadu", "count": 5 } }

Data source

The data is a self-contained static dataset bundled in lib/holiday.js. It is not fetched from a network API — there is no API key and no runtime dependency on any external service. The dataset includes:

  • Central (national) holidays for 2024 and 2025: Republic Day, Holi, Id-ul-Fitr, Maharashtra Day, Independence Day, Gandhi Jayanti, Diwali, Christmas, Mahashivratri, Janmashtami, Children's Day.

  • State holidays for Maharashtra (Ganeshotsav, Maharashtra Day, Dr. Ambedkar Jayanti), Karnataka (Ugadi, Karnataka Rajyotsava, Mysuru Dasara) and Tamil Nadu (Pongal, Tamil New Year).

This is realistic sample data for local development and testing. It is not a complete or authoritative holiday calendar — for production use, pair it against an official source such as the Central Government Gazette or data.gov.in.

Scripts

script

description

npm start

run the server (node server.js)

npm run dev

run the server (node server.js)

npm test

run the tests (node scripts/test.mjs)

License

MIT

Available Tools

3 tools
holiday_listA

List Indian public holidays for a given year and state (or "central" for national holidays). Returns date, day-of-week, name, occasion and type (Central/Federal/State/Gazetted/Optional). Use when a user asks "what holidays are there in 2025 for Maharashtra?" or "central holidays 2024".

Inputs: year (required), state (required).

next_holidayA

Return the upcoming N holidays (from today) for a given state. Defaults to the next 5. Use when a user asks "what are the next holidays in Tamil Nadu?" or "upcoming central holidays".

Inputs: state (required), count.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a clearly distinct retrieval pattern: holiday_list enumerates by year+state, holiday_search filters by keyword or month, and next_holiday returns the upcoming N from today. Descriptions include concrete example queries that map cleanly to one tool each, leaving little room for misselection despite a shared 'holiday' domain.

    Naming Consistency4/5

    All names are snake_case and readable, with two tools sharing the 'holiday_' prefix (holiday_list, holiday_search) and one using an adjective-first form (next_holiday). The verb_noun ordering varies (noun_verb here), but the set is predictable enough that the deviation is minor.

    Tool Count4/5

    Three tools is a sensible, lean surface for a narrowly scoped Indian-holiday lookup server, with each tool covering a distinct access mode. It sits at the low end and could arguably use one more operation, but nothing feels redundant.

    Completeness4/5

    Listing, keyword/month search, and upcoming-holiday retrieval cover the core workflows a holiday agent needs. Minor gaps exist, such as checking whether a specific date is a holiday or listing available states, but agents can work around these with search.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that provides access to the Nager.Date API for retrieving public holiday information across various countries. It enables AI agents to interact with holiday data and date-related endpoints through standardized Model Context Protocol tools.
      -
    • A
      license
      Not graded
      quality
      F
      maintenance
      MCP server for accessing Nager.Date public holidays data. It provides tools to query and retrieve holiday information for various countries through natural language or direct tool calls.
      7 npm
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Real public/bank/school holiday lookup for 206 countries via a rule-based calendar engine (moveable holidays like Easter computed astronomically, not guessed). Priced per call via x402/USDC on Base.
      MIT