Nager.Date MCP Server

Nager.Date MCP Server

Provides public holidays, long weekends, and country data for 202 countries via the Nager.Date API, with client-side filtering and timezone-aware checks.

Category
Visit Server

README

Nager.Date MCP Server

MCP server wrapping the Nager.Date API — public holidays for 202 countries with local names, types, long weekends, and regional subdivisions.

Tools

  • get_holidays(country, year?, type?, county?) — All holidays for a country/year. Filter by type (Public, Bank, School, Observance, etc.) or subdivision (e.g. GB-SCT, DE-BY). Includes day-of-week.
  • get_next_holidays(country, county?) — Upcoming holidays from today forward.
  • get_long_weekends(country, year?) — Long weekends with bridge day suggestions.
  • is_today_holiday(country, county?, offset?) — Quick yes/no: is today a public holiday? Optional UTC offset for timezone.
  • list_countries(query?) — All 202 supported countries; optional case-insensitive substring filter on name/code.
  • get_country_info(country) — Country metadata: official name, region, borders.
  • get_worldwide_holidays() — Every holiday happening today, globally.

Return shape convention

get_holidays and get_next_holidays normally return a plain list of holiday objects. When a filter produces a result that could mislead, they instead return a dict {"holidays": [...], "note": "..."} where note explains the caveat:

  • A type filter matched no holiday (the country may use a different type label).
  • A county filter matched no regional holiday, so only national/global holidays are shown (often a typo'd subdivision code).

LLM consumers should handle both shapes: if the result is a dict, surface the note and read the holidays from result["holidays"]; if it's a list, use it directly. Error and no-data cases return a plain string message.

Features

  • No API key required — uses the free public API
  • In-memory TTL cache (24h for static data, 1h for "next" endpoints, 7d for country info)
  • Country code normalization (lowercase accepted)
  • Day-of-week enrichment on all holiday results
  • Client-side filtering by holiday type and subdivision
  • Friendly error messages (no crashes on invalid input, including valid-format country codes the API has no data for)

Install

cd nager-date-mcp
pip install -e .

Configure (Hermes)

Add to your Hermes config.yaml under mcp_servers:

mcp_servers:
  nager-date:
    command: python
    args: ["-m", "nager_date_mcp.server"]

Or for Claude Desktop / other MCP clients:

{
  "mcpServers": {
    "nager-date": {
      "command": "python",
      "args": ["-m", "nager_date_mcp.server"]
    }
  }
}

Development

pip install -e ".[dev]"
python -m pytest tests/ -v

API Details

  • Source: https://date.nager.at/api/v3/
  • Auth: None
  • Rate limits: None observed (Cloudflare CDN, 7-day cache headers)
  • Year range: 1976–2076
  • Countries: 202 (ISO 3166-1 alpha-2)
  • Subdivisions: ISO 3166-2 (e.g. GB-ENG, GB-SCT, DE-BY, CA-ON)
  • Holiday types: Public, Bank, School, Authorities, Optional, Observance

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured