Hey everyone

I’ve been exploring the new AI Agent node in n8n and wanted to share something cool I built:
What it does
I’ve connected a custom MCP-compatible weather tool to n8n via the Agent node. It supports:
• Current weather
• Multi-day forecasts
• Sunrise/sunset
• Rain timing windows
The agent understands natural language like:
“What’s the weather in Boca Raton today?”
“5-day forecast for Miami?”
…and automatically calls the external weatherTool via MCP to respond.
⸻
How it works
• Hosted MCP server: https://mcp-weathertrax.jaredco.com
• MCP manifest + tool schema support
• n8n setup using:
• OpenAI Chat Model
• AI Agent node
• HTTP Request Tool (connected via tool socket)
• Schema auto-loaded via /.well-known/tool-manifest.json
⸻
Screenshots
(Screenshots attached)
Example response from the tool:
{
“summary”: “It is currently 82°F and Partly cloudy in Boca Raton.”,
“temp_high”: 82,
“temp_low”: 82,
“condition”: “Partly cloudy”,
“wind”: “11 mph SE”,
“feels_like”: 89,
“humidity”: 74,
“uv_index”: 0,
“visibility”: 16,
“pressure”: 1020,
“cloud_cover”: 50,
“units”: {
“temperature”: “°F”,
“distance”: “miles”,
“speed”: “mph”,
“pressure”: “mb”
}
}
You can download a working n8n sample workflow : https://tinyurl.com/4jhy83hy
How to Use the MCP Weather Tool in n8n (for Developers)
What This Is
A working example of a custom external MCP tool integrated into the n8n Agent node, powered by a real-time weather API. It supports:
- current weather
- multi_day forecasts
- Sunrise/sunset timing
- Rain prediction windows
Prerequisites
- n8n v1.97+ (Self-hosted or Cloud)
- An Agent node set up
- Basic understanding of custom tools in n8n
Step 1: Download the Sample Workflow
Download the sample workflow JSON here:
[Download JSON] https://tinyurl.com/4jhy83hy
Step 2: Import into n8n
- Open the n8n Editor
- Use the ☰ menu → Import Workflow
- Upload or paste the JSON
- Click Import
Step 3: Configure the Agent Node
In the Agent node:
- Choose your model (e.g., GPT-4 or Claude)
- Set this System Message :
You are a helpful assistant that answers weather-related questions using a custom weather tool when appropriate. If the user asks about the current weather, forecasts, rain, sunrise/sunset times, or other weather conditions, use the weatherTool.
The tool requires:
- a location (city name, ZIP code, or place name)
- a query_type (such as “current”, “multi_day”, “forecast”, “sunrise_sunset”, or “rain_check”)
Optionally:
- a date (YYYY-MM-DD) for specific days
- num_days (for multi-day forecasts)
Return structured weather results using the tool’s output fields like summary, temp_high, condition, or forecast. If the user asks a non-weather-related question, just respond directly without calling the tool.
- Scroll down and add a Tool:
- Type: External Tool
- Tool Name: weatherTool
- Tool URL: https://mcp-weathertrax.jaredco.com
- Toggle on:
Use list-tools to auto-load the schema
Try Asking
- “What’s the weather in Miami right now?”
- “Will it rain in San Francisco on Saturday?”
- “Give me the 5-day forecast for Boston.”
- “When does the sun rise in Denver on Friday?”
How It Works
The Agent interprets natural language → fills in tool input (like location and query_type) → sends to your MCP server → gets structured weather info back. All handled via the n8n Agent interface.
Request for Feedback
Are you experimenting with external tools + Agent nodes in n8n ?
Would love to hear:
- What you’re building
- What tripped you up
- Ideas for improvement
Reply below or message me — happy to help you get your own tool up and running.