# n8n Webhook Trigger

> n8n Webhook Trigger is an open-source MCP server for browser automation. MCP server that lets AI agents trigger n8n workflows via webhooks with JSON payloads. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted
- **Website:** https://autafy.ca
- **Repository:** https://github.com/autafyai-code/autafy-n8n-mcp
- **MCP Registry name:** io.github.autafyai-code/autafy-n8n-mcp
- **Categories:** [browser automation](https://ai-powered.com/categories/browser-automation)
- **Listing updated:** 2026-11-30

## About

This package bridges an AI client and an n8n instance. An agent calls a single tool with a JSON body, the server posts it to an n8n webhook endpoint, and the workflow's output comes back to the conversation. It is designed to run over stdio, so it can be launched directly from clients such as Claude Desktop or Cursor with a short configuration entry.

The webhook address can be supplied per call or set once as a default through an environment variable, so the agent does not need to carry the URL in every request. An optional bearer token can be attached to each request, which lets a workflow reject calls that do not carry the secret.

It suits people who already build automations in n8n and want an agent to start those flows with structured data, such as lead details or form fields, rather than writing custom API code.

## Features

- **Single webhook trigger tool:** Exposes one tool that sends a JSON payload to an n8n webhook and returns the execution output.
- **Default webhook setting:** An environment variable can hold a default webhook URL so individual calls can omit it.
- **Optional bearer authentication:** A secret can be sent as an Authorization header on every webhook request.
- **Simple stdio setup:** Runs through npx with no clone or install step, using a short JSON client configuration.

## Good for

- Let an agent start an n8n lead-qualification workflow with contact details
- Pass structured form or CRM data from a chat session into an existing n8n flow
- Keep webhook URLs and tokens out of prompts by setting them as environment variables
- Connect an AI client to n8n without writing custom API integration code

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add autafy-n8n-mcp --env N8N_WEBHOOK_SECRET='<N8N_WEBHOOK_SECRET>' -- npx -y autafy-n8n-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "autafy-n8n-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "autafy-n8n-mcp"
      ],
      "env": {
        "N8N_WEBHOOK_SECRET": "<N8N_WEBHOOK_SECRET>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "autafy-n8n-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "autafy-n8n-mcp"
      ],
      "env": {
        "N8N_WEBHOOK_SECRET": "<N8N_WEBHOOK_SECRET>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "autafy-n8n-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "autafy-n8n-mcp"
      ],
      "env": {
        "N8N_WEBHOOK_SECRET": "<N8N_WEBHOOK_SECRET>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "autafy-n8n-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "autafy-n8n-mcp"
      ],
      "env": {
        "N8N_WEBHOOK_SECRET": "<N8N_WEBHOOK_SECRET>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add autafy-n8n-mcp --env N8N_WEBHOOK_SECRET='<N8N_WEBHOOK_SECRET>' -- npx -y autafy-n8n-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.autafy-n8n-mcp]
command = "npx"
args = ["-y", "autafy-n8n-mcp"]
env = { N8N_WEBHOOK_SECRET = "<N8N_WEBHOOK_SECRET>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "autafy-n8n-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "autafy-n8n-mcp"
      ],
      "env": {
        "N8N_WEBHOOK_SECRET": "<N8N_WEBHOOK_SECRET>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e N8N_WEBHOOK_SECRET='<N8N_WEBHOOK_SECRET>' autafy-n8n-mcp npx -- -y autafy-n8n-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "autafy-n8n-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "autafy-n8n-mcp"
      ],
      "env": {
        "N8N_WEBHOOK_SECRET": "<N8N_WEBHOOK_SECRET>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "autafy-n8n-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "autafy-n8n-mcp"
      ],
      "env": {
        "N8N_WEBHOOK_SECRET": "<N8N_WEBHOOK_SECRET>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "autafy-n8n-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "autafy-n8n-mcp"
      ],
      "env": {
        "N8N_WEBHOOK_SECRET": "<N8N_WEBHOOK_SECRET>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "autafy-n8n-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "autafy-n8n-mcp"
      ],
      "env": {
        "N8N_WEBHOOK_SECRET": "<N8N_WEBHOOK_SECRET>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "autafy-n8n-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "autafy-n8n-mcp"
      ],
      "env": {
        "N8N_WEBHOOK_SECRET": "<N8N_WEBHOOK_SECRET>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "autafy-n8n-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "autafy-n8n-mcp"
      ],
      "env": {
        "N8N_WEBHOOK_SECRET": "<N8N_WEBHOOK_SECRET>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "autafy-n8n-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "autafy-n8n-mcp"
      ],
      "env": {
        "N8N_WEBHOOK_SECRET": "<N8N_WEBHOOK_SECRET>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "autafy-n8n-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "autafy-n8n-mcp"
      ],
      "env": {
        "N8N_WEBHOOK_SECRET": "<N8N_WEBHOOK_SECRET>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 name doesn't say. From the server's own tool labels and tool names; not verified by us.

- `trigger_n8n_workflow`: Sends a JSON payload to an n8n webhook endpoint and returns the execution output.

## FAQ

### How is the server started?

It can be run with npx using the npm package autafy-n8n-mcp, which requires Node.js 18 or later, or from a local clone with node index.js.

### Are the environment variables required?

No. Both N8N_WEBHOOK_SECRET and N8N_DEFAULT_WEBHOOK are optional.

### What does the tool return?

The trigger_n8n_workflow tool returns the execution output from the n8n workflow.

### Is n8n Webhook Trigger free?

Yes. n8n Webhook Trigger is open source, so you can use and self-host it for free.

### How do I add n8n Webhook Trigger to Claude Code?

Run this command in your terminal: claude mcp add autafy-n8n-mcp --env N8N_WEBHOOK_SECRET='<N8N_WEBHOOK_SECRET>' -- npx -y autafy-n8n-mcp

### What are the best alternatives to n8n Webhook Trigger?

The closest alternatives to n8n Webhook Trigger are n8n MCP Server, Node Mantis, SideButton MCP Server and Ainative Browser MCP.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [n8n MCP Server](https://ai-powered.com/mcp/n8n-mcp-server): n8n MCP Server is an open-source MCP server for browser automation.
- [Node Mantis](https://ai-powered.com/mcp/node-mantis): Node Mantis is a freemium MCP server for browser automation.
- [SideButton MCP Server](https://ai-powered.com/mcp/sidebutton-mcp-server): SideButton MCP Server is an open-source MCP server for browser automation.
- [Ainative Browser MCP](https://ai-powered.com/mcp/ainative-browser-mcp): Ainative Browser MCP is an MCP server for browser automation.

---
Source: https://ai-powered.com/mcp/n8n-webhook-trigger
