Data source: Nager.Date
https://context.gnist.ai/mcp/nager-date/
AuthenticationAll requests require a Gnist-API-Key header (or api_key query parameter).
Free tier: 100 calls/day. Get your API key.
Tools (5)
check_holidayCheck whether a given date is a public holiday in a country.
Args:
date: Date to check in ISO 8601 format (YYYY-MM-DD).
country_code: ISO 3166-1 alpha-2 country code (e.g. 'NO', 'US', 'DE').
region_code: Optional ISO 3166-2 region code (e.g. 'US-CA', 'DE-BY').
Returns:
Dictionary with is_holiday (bool) and holiday_names (list of matching names).
| Parameter | Type | Required | Description |
|---|---|---|---|
date | string | required | Date to check in ISO 8601 format (YYYY-MM-DD). |
country_code | string | required | ISO 3166-1 alpha-2 country code (e.g. 'NO', 'US', 'DE'). |
region_code | any | optional | Optional ISO 3166-2 region code (e.g. 'US-CA', 'DE-BY'). |
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "check_holiday",
"arguments": {
"date": "example",
"country_code": "NO"
}
}
}list_public_holidaysList all public holidays for a country in a given year.
Args:
country_code: ISO 3166-1 alpha-2 country code (e.g. 'NO', 'US', 'DE').
year: The year (e.g. 2026).
Returns:
Dictionary with count and holidays list. Each holiday has date, name,
local_name, global flag, counties, and types.
| Parameter | Type | Required | Description |
|---|---|---|---|
country_code | string | required | ISO 3166-1 alpha-2 country code (e.g. 'NO', 'US', 'DE'). |
year | integer | required | The year (e.g. 2026). |
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "list_public_holidays",
"arguments": {
"country_code": "NO",
"year": 1
}
}
}get_next_business_dayFind the next business day on or after a given date, skipping weekends and holidays.
Args:
date: Starting date in ISO 8601 format (YYYY-MM-DD).
country_code: ISO 3166-1 alpha-2 country code (e.g. 'NO', 'US', 'DE').
Returns:
Dictionary with next_business_day date and days_skipped count.
| Parameter | Type | Required | Description |
|---|---|---|---|
date | string | required | Starting date in ISO 8601 format (YYYY-MM-DD). |
country_code | string | required | ISO 3166-1 alpha-2 country code (e.g. 'NO', 'US', 'DE'). |
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "get_next_business_day",
"arguments": {
"date": "example",
"country_code": "NO"
}
}
}count_business_daysCount business days between two dates (inclusive of start, exclusive of end).
Args:
start_date: Start date in ISO 8601 format (YYYY-MM-DD).
end_date: End date in ISO 8601 format (YYYY-MM-DD). Not included in the count.
country_code: ISO 3166-1 alpha-2 country code (e.g. 'NO', 'US', 'DE').
Returns:
Dictionary with business_days count and calendar_days in the range.
| Parameter | Type | Required | Description |
|---|---|---|---|
start_date | string | required | Start date in ISO 8601 format (YYYY-MM-DD). |
end_date | string | required | End date in ISO 8601 format (YYYY-MM-DD). Not included in the count. |
country_code | string | required | ISO 3166-1 alpha-2 country code (e.g. 'NO', 'US', 'DE'). |
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "count_business_days",
"arguments": {
"start_date": "example",
"end_date": "example",
"country_code": "NO"
}
}
}report_feedbackReport a bug, feature request, or general feedback for this data source.
Use this when something doesn't work as expected, when you'd like
a new feature, or when you have suggestions for improvement.
Args:
feedback: Describe the issue or suggestion.
feedback_type: One of 'bug', 'feature_request', or 'general'.
| Parameter | Type | Required | Description |
|---|---|---|---|
feedback | string | required | |
feedback_type | string | optional | (default: "general") |
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "report_feedback",
"arguments": {
"feedback": "example"
}
}
}Quick Start
curl -X POST "https://context.gnist.ai/mcp/nager-date/" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "Gnist-API-Key: YOUR_API_KEY" \
-d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "check_holiday", "arguments": {"date": "example", "country_code": "example"}}}'
import httpx
resp = httpx.post(
"https://context.gnist.ai/mcp/nager-date/",
headers={"Gnist-API-Key": "YOUR_API_KEY", "Content-Type": "application/json"},
json={
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "check_holiday",
"arguments": {
"date": "example",
"country_code": "example"
}
}
},
)
print(resp.json())