Repository avatar
Other Tools
v1.0.2
active

autafy-n8n-mcp

io.github.autafyai-code/autafy-n8n-mcp

Trigger n8n workflows by sending a JSON payload to a webhook URL and returning the response.

Documentation

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 an Authorization: Bearer header on each webhook request.
  • N8N_DEFAULT_WEBHOOK: a webhook URL to use when the tool call does not include webhook_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


Maintained by Autafy AI Automation (Edmonton, AB) — creators of AIDA, the self-hosted personal AI agent.

NPM
autafy-n8n-mcp
Install Command
npm install autafy-n8n-mcp