Leverage this specialized n8n workflow template to transform the Canada Holidays API into a powerful Machine-Controlled Plane (MCP) server tool for AI agents. This n8n workflow provides 6 endpoints for querying holiday and province data.
Download this n8n workflow template and start using it instantly.
This sophisticated n8n workflow establishes a dedicated tool server using the Machine-Controlled Plane (MCP) framework, specifically designed for AI agents. It eliminates the need for manual API construction within the AI environment by packaging the Canada Holidays API into six callable functions. By utilizing a specialized n8n trigger, this setup allows AI agents to dynamically request information—like all holidays in a given year or details for a specific province—and receive raw, structured data responses directly from the API. This robust n8n workflow ensures high efficiency and accuracy when fetching complex geographic and temporal data, making it an essential component for any AI-powered regional planning or informational service. Utilizing the built-in functionality of the n8n platform, this n8n template speeds up development significantly.
The core of this automation is the specialized MCP n8n trigger node, which acts as the communication endpoint.
year, provinceId). These parameters are injected into the respective n8n node using the $fromAI() expression.https://canada-holidays.ca endpoint, dynamically using the injected parameters.This architecture ensures that the entire process is handled reliably within the n8n platform, providing a seamless operational interface for the AI agent.
To deploy this specialized n8n workflow and create your own MCP server, follow these steps:
/webhook/canada-holidays-mcp). This is the endpoint the AI agent must call.This n8n workflow utilizes several key nodes to establish the MCP server functionality:
Canada Holidays MCP Server (MCP Trigger n8n node):
Function: Acts as the primary server endpoint and listens for tool-use requests from an AI agent. It is the central n8n trigger for this automation.
Key Configuration: Path is set to canada-holidays-mcp.
Get API Root / Get API Schema (HTTP Request Tool n8n node):
Function: Handles general informational API calls about the service.
Key Configuration: URL is hardcoded to the base API path or schema path.
List All Holidays (HTTP Request Tool n8n node):
Function: Retrieves a list of all public holidays, allowing filtering by year, federal, and optional status.
Key Configuration: Query parameters use the dynamic expression ={{ $fromAI('parameterName', 'description', 'type', defaultValue) }}. This ensures the AI agent provides the necessary input data.
Get Holiday by ID (HTTP Request Tool n8n node):
Function: Fetches details for a specific holiday using a holiday ID.
Key Configuration: The URL path includes a dynamic path parameter: .../holidays/{{ $fromAI('holidayId', ...) }}.
List All Provinces / Get Province by ID (HTTP Request Tool n8n node):
Function: Manages requests for Canadian province data, either listing all or querying a single province using its abbreviation (provinceId). All n8n node functionality here is driven by AI input.
Deploy a robust n8n workflow to connect AI agents with the Beanstream Payments API. This powerful n8n workflow provides 15 payment, profile, and reporting management tools via an n8n MCP trigger.

Deploy a custom DALL-E 3 image generation API using this powerful n8n workflow. Instantly integrate AI image creation into any application by hitting a simple webhook n8n trigger.

Use this free n8n workflow to instantly configure Telegram bot webhooks. Input your API token and URL to automate setup using a simple n8n form.

Use this n8n workflow to connect AI agents to U.S. EPA Clean Air Act data via the ECHO database. Expose specialized data retrieval tools using the n8n Multi-Component Processor (MCP) trigger.

A hacker by nature, programmer by trade ⚒️ I'm looking to collaborate on things that save human labor 📫 How to reach me Github👇 -> Discord







































