Skip to content

n8n

The n8n-nodes-wcp package adds two native n8n nodes that let you trigger workflows on sync events and control WCP from any n8n automation.

In your n8n instance, go to Settings → Community nodes → Install and enter:

n8n-nodes-wcp

Or if you run n8n via Docker, add the package to your environment:

Terminal window
docker run -it --rm \
-e N8N_COMMUNITY_PACKAGES_ENABLED=true \
-e N8N_COMMUNITY_PACKAGES_INSTALL_MISSING=true \
-v n8n_data:/home/node/.n8n \
n8nio/n8n

Before using any WCP node, create a WCP API credential:

  1. In n8n, go to Credentials → New credential → WCP API
  2. Set Base URL to your WCP instance (e.g., https://workflowcontextprotocol.info or http://localhost:8000)
  3. Save

Listens for real-time WCP events via WebSocket. Triggers a workflow every time the selected event fires.

EventWhen it fires
sync_completeA sync run finished successfully
sync_errorA sync run failed
conflict_resolvedA conflict was resolved (manual or auto)
conflict_dismissedA conflict was dismissed
scan_completeA capability scan finished
link_deletedA sync link was deleted
All EventsEvery event from WCP

The node outputs the raw event JSON. For sync_complete:

{
"type": "sync_complete",
"summary": {
"synced": 12,
"errors": 0,
"conflicts": 1,
"duration_ms": 3420
}
}
[WCP Trigger: sync_error] → [Slack: send message "WCP sync failed: {{$json.error}}"]

Executes operations against your WCP instance. Connect it to any trigger in n8n.

OperationDescription
Run SyncTrigger a sync and wait for the result
Run Sync (Background)Trigger a sync without waiting
Get StatusGet current sync engine status
List ConnectionsList all registered MCP connections
Scan CapabilitiesScan all MCP servers for capabilities
List ConflictsList pending conflicts
Resolve ConflictResolve a conflict by choosing a winning app
List LinksList all sync links
List LogsList recent sync logs
[Schedule Trigger: */5 * * * *] → [WCP: Run Sync] → [IF: errors > 0] → [Email: alert]

Example: Auto-resolve conflicts on a schedule

Section titled “Example: Auto-resolve conflicts on a schedule”
[Schedule Trigger: hourly]
→ [WCP: List Conflicts]
→ [Split In Batches]
→ [WCP: Resolve Conflict (winning_app = "notion")]
[Webhook: GitHub push event]
→ [WCP: Run Sync]
→ [Slack: "Synced {{$json.summary.synced}} items after push to main"]

If you want to modify the nodes or test before publishing:

Terminal window
cd n8n-nodes-wcp
npm install
npm run build

The compiled files end up in dist/. Link to your local n8n:

Terminal window
npm link
cd ~/.n8n/custom
npm link n8n-nodes-wcp

Restart n8n for the nodes to appear.