# MCP server on n8n for AI agents to access Canada Holidays API with dynamic parameters
This automation template transforms the external Canada Holidays API into an MCP-compatible interface, allowing AI agents to query holiday and province data with dynamic parameters. Responses preserve the original structure of canada-holidays.ca API. Ideal for integration into localized HR systems, calendar apps, and SaaS products.
## Who it´s for
- AI agent developers needing to integrate reference holiday data via MCP.
- Automation specialists building HR or calendar systems for Canada.
- SaaS product owners requiring accurate Canadian public holiday data.
## What the automation does
- Receives requests from AI agents via MCP trigger.
- Forwards requests to canada-holidays.ca API.
- Supports six operations: API info, list/get holidays, list/get provinces.
- Dynamically populates parameters using $fromAI() expressions from AI input.
- Returns structured, MCP-compatible responses.
## What´s included
- Ready-to-use n8n workflow.
- Logic for handling MCP requests.
- Integrations with Canada Holidays API and AI Agent (via MCP).
- Basic textual instructions for launch and adaptation.
## Requirements for setup
- n8n account with access to HTTP nodes and environment variables.
- Access to an MCP server capable of receiving AI agent requests.
- Network access to call external API:
https://canada-holidays.ca.
## Benefits and outcomes
- Simplifies AI agent integration with authoritative holiday data.
- Enables flexibility through dynamic parameters (year, holiday type, province, etc.).
- Preserves response structure for easy parsing in agents.
- Accelerates development of features related to Canadian holidays and working days.
- Supports both federal and provincial holiday levels.
- Fully automated — no manual intervention required.
## Important: template only
Important: you are purchasing a ready-made automation workflow template only. Rollout into your infrastructure, connecting specific accounts and services, 1:1 setup help, custom adjustments for non-standard stacks and any consulting support are provided as a separate paid service at an individual rate. To discuss custom work or 1:1 help, contact via chat