Skip to content
VS Code

n8n Webhook Trigger for VS Code

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

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

client:VS Code transport:stdio runtime:npm

Install n8n Webhook Trigger in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "n8n-default-webhook",
      "description": "N8N_DEFAULT_WEBHOOK",
      "password": true
    },
    {
      "type": "promptString",
      "id": "n8n-webhook-secret",
      "description": "N8N_WEBHOOK_SECRET",
      "password": true
    }
  ],
  "servers": {
    "autafy-n8n-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "autafy-n8n-mcp"
      ],
      "env": {
        "N8N_DEFAULT_WEBHOOK": "${input:n8n-default-webhook}",
        "N8N_WEBHOOK_SECRET": "${input:n8n-webhook-secret}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

n8n Webhook Trigger in other clients