About n8n
This README describes using n8n 1.88.0 to create an MCP Server Trigger and connect it to an AI Agent workflow. The example adds Calculator and OpenWeatherMap tools and tests arithmetic and weather queries.
Key features
- 01MCP Server Trigger setup
- 02Calculator tool example
- 03OpenWeatherMap tool example
- 04SSE endpoint configuration
- 05AI Agent workflow example
Use cases
- 01Expose calculator and weather tools through an MCP endpoint
- 02Test a workflow with arithmetic and weather questions
MCP support
The guide uses n8n's MCP Server Trigger to publish tools over SSE, then connects an AI Agent workflow to that endpoint with an MCP Client Tool.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEn8n
全面瞭解 n8n v1.88.0 的重磅更新 —— MCP Server

安裝
npm install n8n -g
升級
npm install n8n@latest -g
執行
n8n start
瀏覽器開啟 http://localhost:5678
登入
創建帳號並登入
支持 MCP
在 n8n 1.88.0 版本中,允許使用 SSE(Server-Sent Events)技術進行發佈的功能主要與新加入的 MCP(Model Context Protocol)節點相關。
n8n --version
建立 MCP Server Trigger
點選右邊介面搜尋 MCP Server Trigger
建立一個 MCP 服務器
Tools 新增節點 Calculator
Tools 新增節點 OpenWeatherMap
去申請 https://openweathermap.org/ 的免費服務
請去註冊並取得 API 金鑰 (API Key)

新增完上面的兩個節點後
備份 ‵MCP Server Trigger‵ 的 Production URL
創建新的工作流
點擊左上角的加號,創建新的工作流
新增 Chat Trigger
新增 AI Agent
新增 Chat Model
新增 Gemini 的 AI 大語言模型
輸入 Gemini 的 API Key
模型可以選 models-2.0-flash
新增 Tool MCP Clinet Tool
SSE 欄位貼上剛剛備份的 Production URL
PS: 我電腦上 localhost 要改成 127.0.0.1 才能連上
測試
輸入 查詢 Taichung 的天氣?
輸入 8 加 9 等於多少?
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.