Overview
What is n8n?
n8n is a workflow automation platform that now supports the Model Context Protocol (MCP) via Server-Sent Events (SSE). It allows users to create MCP servers and client nodes within workflows, integrate AI models like Gemini, and build custom automation tools like Calculator and OpenWeatherMap.
How to use n8n?
Install via npm install n8n -g, upgrade with npm install n8n@latest -g, then run n8n start and open http://localhost:5678 in a browser. Create an account and log in. In version 1.88.0, add MCP nodes: create a workflow with MCP Server Trigger, add tools (e.g., Calculator, OpenWeatherMap with an API key), then create another workflow with Chat Trigger → AI Agent → Chat Model (e.g., Gemini) → MCP Client Tool, pasting the SSE URL from the MCP server.
Key features of n8n
- MCP support via Server-Sent Events (SSE)
- Built-in Calculator tool for arithmetic
- OpenWeatherMap integration (requires free API key)
- Chat Trigger with AI Agent using Gemini models
- Visual workflow builder with drag-and-drop nodes
Use cases of n8n
- Build an MCP server that performs weather lookups and math calculations
- Create an AI-powered chat assistant that can query external APIs
- Automate workflows that combine AI reasoning with real-time data
- Deploy a local automation tool with web-based interface
FAQ from n8n
What runtime does n8n require?
n8n runs on Node.js (installed via npm). The local server starts on port 5678.
How do I upgrade n8n to the latest version?
Run npm install n8n@latest -g followed by n8n --version to confirm.
What transport does the MCP integration use?
The MCP feature uses Server-Sent Events (SSE) for real‑time communication between the MCP server trigger and the MCP client tool.
Where do I get API keys for OpenWeatherMap and Gemini?
For OpenWeatherMap, register at openweathermap.org. For Gemini, obtain an API key from the Gemini platform. Both are entered in the respective node settings.
Is authentication required?
Yes, you must log in to the n8n web interface after creating an account. External services (OpenWeatherMap, Gemini) require their own API keys.