Back to Templates

Real-time Weather Forecasts with GPT-4o-mini and MCP Weather Tool

Created by

Created by: JaredCo || jaredco

JaredCo

Last update

Last update 3 days ago

Categories

Share


🌦️ What It Does

This workflow uses the n8n Agent node to call a live hosted Model Context Protocol (MCP) server that returns real-time weather forecasts.

  • Supports current or 5-day forecasts
  • Hosted MCP tool — no API key needed for weather data
  • Based on OpenWeatherMap
  • Workflow is fully preconfigured and ready to run

⚙️ How It Works

  1. The Agent node sends a tool call to the MCP weather tool
  2. The server replies with a short forecast
  3. Output is returned to n8n and can be used however you like

🧪 Setup Steps

  1. Clone or download the GitHub repo:

Github: weathertrax-mcp-agent-demo

  1. Open the file: n8n-weather-agent.json

  2. In n8n:

    • Go to Import Workflow → Paste JSON
    • Paste the contents of n8n-weather-agent.json
  3. ✅ The Agent node is already configured:

    • The system prompt is included
    • The tool endpoint is pre-set
  4. All you need to do is:

    • Add your OpenAI API key to the existing OpenAI Account credential
    • OR switch to another model provider

Then hit run and you're done ✅


🔗 Full project link:

Github: weathertrax-mcp-agent-demo GitHub repo