Reference
Data source: Nager.Date
MCP Protocol
Endpoint
https://context.gnist.ai/mcp/nager-date/
claude_desktop_config.json
{
"mcpServers": {
"gnist-nager-date": {
"url": "https://context.gnist.ai/mcp/nager-date/",
"headers": {
"Gnist-API-Key": "YOUR_API_KEY"
}
}
}
}
Shell
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"}}}'
REST API
API Root
https://context.gnist.ai/rest/nager-date/
5 endpoints available:
GET /rest/nager-date/check_holidayGET /rest/nager-date/list_public_holidaysGET /rest/nager-date/get_next_business_dayGET /rest/nager-date/count_business_daysGET /rest/nager-date/report_feedback
Shell
curl "https://context.gnist.ai/rest/nager-date/check_holiday?date=example&country_code=example" \ -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx
resp = httpx.get(
"https://context.gnist.ai/rest/nager-date/check_holiday",
headers={"Gnist-API-Key": "YOUR_API_KEY"},
params={
"date": "example",
"country_code": "example"
},
)
print(resp.json())
Command Line
Command
gc nager-date
CLI documentation will be available when the GnistAI SDK is published.
Install
pip install gnistai
Available Tools (5)
check_holidayCheck whether a given date is a public holiday in a country.
| 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'). |
list_public_holidaysList all public holidays for a country in a given year.
| 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). |
get_next_business_dayFind the next business day on or after a given date, skipping weekends and holidays.
| 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'). |
count_business_daysCount business days between two dates (inclusive of start, exclusive of end).
| 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'). |
report_feedbackReport a bug, feature request, or general feedback for this data source.
| Parameter | Type | Required | Description |
|---|---|---|---|
feedback | string | required | |
feedback_type | string | optional | (default: "general") |