n8n Webhook Trigger
MCP server that lets AI agents trigger n8n workflows via webhooks with JSON payloads
n8n Webhook Trigger is an open-source MCP server for browser automation. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, Self-hosted
- Runs
- Locally
- Version
- 1.0.2
- Listing updated
Similar MCP servers
Install
You install MCP servers on a computer. Send yourself the link.
Add with the CLI
Run in a terminal
claude mcp add autafy-n8n-mcp --env N8N_WEBHOOK_SECRET='<N8N_WEBHOOK_SECRET>' -- npx -y autafy-n8n-mcpAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"autafy-n8n-mcp": {
"command": "npx",
"args": [
"-y",
"autafy-n8n-mcp"
],
"env": {
"N8N_WEBHOOK_SECRET": "<N8N_WEBHOOK_SECRET>"
}
}
}
}Add to claude_desktop_config.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.
Add to ~/.cursor/mcp.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.
Add to ~/.copilot/mcp-config.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.
Add with the CLI
Run in a terminal
codex mcp add autafy-n8n-mcp --env N8N_WEBHOOK_SECRET='<N8N_WEBHOOK_SECRET>' -- npx -y autafy-n8n-mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.autafy-n8n-mcp]
command = "npx"
args = ["-y", "autafy-n8n-mcp"]
env = { N8N_WEBHOOK_SECRET = "<N8N_WEBHOOK_SECRET>" }Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"autafy-n8n-mcp": {
"command": "npx",
"args": [
"-y",
"autafy-n8n-mcp"
],
"env": {
"N8N_WEBHOOK_SECRET": "<N8N_WEBHOOK_SECRET>"
}
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.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
Antigravity
Add to ~/.gemini/config/mcp_config.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 (formerly Windsurf)
Add to ~/.config/devin/mcp_config.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
Add to cline_mcp_settings.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
Add to Zed settings.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
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "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.
Junie
Add to ~/.junie/mcp/mcp.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
Add to ~/.kiro/settings/mcp.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.
Using several servers? Build one config file with the MCP config generator.
Configuration
N8N_DEFAULT_WEBHOOKOptional default n8n webhook URL, used when a tool call does not include webhook_urlN8N_WEBHOOK_SECRETOptional token sent as an Authorization: Bearer header on each webhook request
About n8n Webhook Trigger
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.
Tools this server provides (1)
Taken from the project documentation; the running server may differ.
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.
What it does
- 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
Pricing
Open source
Free and open source; no paid plan listed.
Prices change. Check autafy.ca before you buy.
More servers for the same service
n8n Webhook Trigger 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.