mcp-n8n-voice-orchestrator
You can trigger self-hosted n8n webhook workflows from Claude with idempotency protection.
Call the single MCP tool
dispatch_idempotent_n8n_workflowwithworkflowId,idempotencyKey,channel, andpayload.Target an n8n webhook path/ID appended to
N8N_WEBHOOK_BASE_URL.Send
X-Idempotency-KeyandX-Source-Channelheaders to n8n.Forward the JSON payload with an added
timestamp.Support channels:
vapi_voice,twilio_sms, andwhatsapp_cloud.Enable webhook de-duplication via the example n8n workflow and Postgres
webhook_lockstable, not the MCP server itself.
Provides tools to invoke self-hosted n8n webhook workflows, exposing them as validated MCP tools for deterministic automation and voice/messaging orchestration.
Integrates with Twilio for voice and messaging pipelines, supporting missed-call recovery, outbound dispatches, and multi-channel session handoff.
Integrates with WhatsApp Cloud API for messaging workflows, including follow-up triggers and multi-channel session handoff.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-n8n-voice-orchestrator trigger the missed-call recovery workflow for +14155551234 and send a WhatsApp follow-up"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-n8n-voice-orchestrator
A small Model Context Protocol (MCP) server that lets Claude (Desktop, Code, or the API) trigger self-hosted n8n webhook workflows with an idempotency key, plus a reference n8n workflow and Postgres schema for de-duplicating voice and messaging webhooks.
Status: early (v1.x). One MCP tool, one example workflow, one SQL schema. Feedback and PRs welcome.
The problem
Voice and messaging automations often receive overlapping webhooks. For example, a Vapi end-of-call report and an inbound WhatsApp message can arrive within a few hundred milliseconds of each other. Without a lock, both can trigger an outbound message, and the lead gets double-texted.
This repo shows one way to handle it:
Claude calls an MCP tool with a stable
idempotencyKey(a call ID or message ID).The server forwards it to your n8n webhook with an
X-Idempotency-Keyheader.The n8n workflow tries to insert that key into Postgres/Supabase. Only the first delivery succeeds, so only one branch continues.
Related MCP server: n8n MCP Server
What is in the repo
Path | What it does |
| MCP server (stdio). Exposes one tool, |
| Example n8n workflow: webhook in, Postgres insert with |
| The |
| Environment variables for the server. |
The lock itself lives in the n8n workflow and database. The MCP server only forwards the key.
Quick start
git clone https://github.com/Code-With-Vishal/mcp-n8n-voice-orchestrator.git
cd mcp-n8n-voice-orchestrator
npm install
cp .env.example .env
npm run buildOr install from npm:
npm i mcp-n8n-voice-orchestratorRun
state-machine/schema.sqlin your Postgres or Supabase database.Import
workflows/vapi-missed-call-recovery.jsoninto n8n and attach your Postgres credentials.Set
N8N_WEBHOOK_BASE_URL(and optionallyN8N_API_KEY) in.env.
Claude Desktop config
{
"mcpServers": {
"n8n-voice-orchestrator": {
"command": "node",
"args": ["/absolute/path/to/mcp-n8n-voice-orchestrator/dist/index.js"],
"env": {
"N8N_WEBHOOK_BASE_URL": "http://localhost:5678/webhook"
}
}
}
}Tool reference
dispatch_idempotent_n8n_workflow
Field | Type | Notes |
| string | n8n webhook path, appended to |
| string | Stable ID for the event, such as a call ID or message ID |
|
| Sent as |
| object | Forwarded as the JSON body, with a |
Roadmap
Tests for the dispatch handler
More example workflows (lead qualification, session handoff)
CLI to generate MCP tool definitions from n8n workflow JSON
Contributing
Issues and pull requests are welcome, especially anonymized n8n workflows that handle webhook de-duplication.
License
MIT
Available Tools
1 tooldispatch_idempotent_n8n_workflowC
Dispatches a deterministic, lock-verified webhook payload to a self-hosted n8n workflow from Vapi, Twilio, or WhatsApp Cloud API.
Inputs: channel (required), payload (required), workflowId (required), idempotencyKey (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only a single tool, there is no possibility of confusing it with another; its purpose as a workflow dispatcher is unmistakable.
The lone name follows a clear snake_case verb_noun pattern (dispatch_idempotent_n8n_workflow), though with one tool there is no pattern to actually be consistent across.
A single tool is too thin for an orchestration server; dispatch is the only operation, leaving no room for status, verification, or management operations.
The surface offers fire-and-forget dispatch with no way to check workflow status, list available workflows, or handle failures, which are significant gaps for an orchestration role.
Maintenance
Related MCP Connectors
26 pay-per-call AI agent tools for marketing, sales, content, research, verification, and integration testing. Agents pay per call via x402 micropayments (USDC on Base), raw JSON in and out. Includes delivery-acceptance receipts (ACCEPT/REJECT/REVIEW), a webhook capture/replay/conformance lab, and n8n workflow validation with bounded JSON-Patch repair.
Open-source Zapier/n8n alternative as an MCP server: agents build, run and debug your workflows.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
One MCP endpoint for Claude, GPT & Gemini: 100+ tools + no-code connectors + agent workers.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables Claude Desktop to integrate with n8n workflow automation platform through a centralized MCP server. Provides seamless connection to n8n instances for workflow management and automation tasks.128 npmMIT
- AlicenseBqualityDmaintenanceEnables users to manage workflows, monitor executions, and perform administrative tasks in n8n through natural language conversations with Claude. It provides over 40 tools to control self-hosted or cloud n8n instances via the Model Context Protocol.42MIT
- AlicenseNot gradedqualityDmaintenanceProduction-ready MCP server that brings N8N workflow automation to both Claude.ai and ChatGPT. Supports multi-tenant OAuth/SSE integration with dynamic N8N instance configuration.128 npmMIT
- FlicenseAqualityDmaintenanceWraps the n8n self-hosted REST API to let Claude and MCP-compatible LLMs manage workflows, executions, credentials, and more via natural language.39-