autafy-n8n-mcp
一個輕量級的 Model Context Protocol (MCP) 伺服器,讓 AI 代理程式(AIDA、Claude Desktop、Cursor 及其他 MCP 用戶端)觸發 n8n 工作流程,並傳遞結構化的 JSON 負載。
文件
autafy-n8n-mcp — Built by Autafy
A lightweight Model Context Protocol (MCP) server that lets AI agents (AIDA, Claude Desktop, Cursor, Gemini CLI) trigger and pass structured JSON payloads to n8n workflows.
Quick Setup
Add the server to your MCP client configuration (claude_desktop_config.json, .cursor/mcp.json, or AIDA).
Option 1: run with npx
Requires Node.js 18 or later. npx downloads the package from npm, so no clone or install step is needed.
{
"mcpServers": {
"n8n": {
"command": "npx",
"args": ["-y", "autafy-n8n-mcp"],
"env": {
"N8N_WEBHOOK_SECRET": "optional-bearer-token"
}
}
}
}
Option 2: run from a local clone
git clone https://github.com/autafyai-code/autafy-n8n-mcp.git
cd autafy-n8n-mcp
npm install
Then point your client at index.js:
{
"mcpServers": {
"n8n": {
"command": "node",
"args": ["/path/to/autafy-n8n-mcp/index.js"],
"env": {
"N8N_WEBHOOK_SECRET": "optional-bearer-token"
}
}
}
}
Both environment variables are optional:
N8N_WEBHOOK_SECRET: when set, it is sent as anAuthorization: Bearerheader on each webhook request.N8N_DEFAULT_WEBHOOK: a webhook URL to use when the tool call does not includewebhook_url. Set it to your n8n webhook URL so the agent does not need the URL in every request.
Tools
trigger_n8n_workflow: Sends a JSON payload to any n8n webhook endpoint and returns the execution output.
Ready-to-Use n8n Template
- Qualify inbound leads with OpenRouter, Google Sheets and Gmail: Import this official n8n template and point
trigger_n8n_workflowto its webhook URL to score inbound leads automatically.
Maintained by Autafy AI Automation (Edmonton, AB) — creators of AIDA, the self-hosted personal AI agent.