Add an MCP Client Node
- In your n8n workflow, add an MCP Client node
- Set Transport to
Streamable HTTP - Set URL to
https://mcp.actionlayer.dev/mcp - Under Headers, add:
- Key:
Authorization - Value:
Bearer YOUR_API_KEY
- Key:
- Click Test connection — you should see 13 tools listed
Example Workflow: Draft Reply on Inbound Email
This workflow triggers when a new thread needs review and submits a draft:Step 1 — Receive the webhook
Configure ActionLayer to POST to your n8n webhook URL whendraft.needs_review fires.
Step 2 — Get the thread
Add an MCP Client node:- Tool:
get_thread - Input:
{"thread_id": "{{ $json.thread_id }}"}
Step 3 — Generate a reply with AI
Use n8n’s built-in AI node or HTTP Request to your preferred LLM. Pass the thread messages as context.Step 4 — Submit the draft
Add an MCP Client node:- Tool:
submit_draft - Input: