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.
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
typefilter matched no holiday (the country may use a different type label). - A
countyfilter 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
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.