# n8n workflows that design and schedule your social posts

[All AI connectors](https://margin.design/agents) · [Agent setup playbook](https://margin.design/get-started.md)

Add Margin to an n8n AI Agent with the MCP Client Tool node and one OAuth sign-in. A schedule, a new RSS item or a form submission becomes an on-brand post, carousel or story on your Margin canvas, scheduled for your accounts and waiting in your calendar for a last look.

## Things you can just ask

- **Chat Trigger:** "Make three Threads and Bluesky posts from this product update and schedule them across next week." — Designs each image on your Margin canvas and puts the posts in your calendar, one day apart.
- **Batch:** "Make one scheduled post for each row of this sheet, at the date and time in its row." — Creates up to 30 scheduled posts or drafts in one call, each visible in your Margin calendar.
- **Reporting:** "Summarize last week's numbers for each network in Margin, in five lines." — Reads per-network numbers and hands the summary to your next node, such as Slack or email.

## How it works

n8n reaches Margin through the MCP Client Tool node on an AI Agent, and signs in once with an MCP OAuth2 credential: no API keys. Posting right away always needs a person's yes, so workflows schedule posts or save drafts, which wait in your Margin calendar.

01. **Add the MCP Client Tool to your AI Agent:** On your workflow's AI Agent node, add a tool and choose MCP Client Tool. Set Endpoint to https://margin.design/mcp and Server Transport to HTTP Streamable.
02. **Sign in with MCP OAuth2:** Set Authentication to MCP OAuth2 and create a credential, leaving automatic client registration on. Press Connect my account, sign in to Margin, pick the organizations and press Allow.
03. **Write the job and pick a trigger:** Put the job in the AI Agent's prompt and start it with a Schedule, RSS or Form trigger. Raise Max Iterations from its default of 10: a design takes several tool calls.


## Leave it running

### New article → Instagram carousel (RSS Feed Trigger)

> A new article was published: {{ $json.title }} ({{ $json.link }}). Turn it into a 5-slide 1080 × 1350 Instagram carousel on the Blog canvas in Margin, using our brand board. Write a caption and schedule the post for 10:00 tomorrow, our time.

### A LinkedIn post on quiet days (Schedule Trigger · weekdays 8:00)

> Read today's Margin calendar. If nothing is scheduled on LinkedIn, pick the topic that did best on LinkedIn this month, design one 1200 × 1500 card on our brand board on the Daily canvas, and schedule it for 12:00 today. Otherwise do nothing.

### Event form → promo set (Form Trigger)

> A teammate sent the event form: {{ $json['Event name'] }} on {{ $json['Date'] }}. {{ $json['Details'] }}. Design an Instagram post, a 1080 × 1920 Story and a LinkedIn post for it on the Events canvas with our brand board, and save all three as drafts in Margin.

## Why teams use Margin

- **Real designs, not only captions:** Through Margin, the agent in your workflow builds editable frames at each network's exact size on a canvas your team can open, comment on and fix.
- **Automated, still in sight:** Scheduled posts and drafts wait in your Margin calendar, where anyone can edit or cancel them before they go out. Posting right away always waits for a person's yes.
- **A month of posts in one call:** Margin makes up to 30 scheduled posts or drafts at once, and reads each network's numbers and best times so the next run can do better.
- **Your model, your bill:** The chat model you connect in n8n writes and designs. Margin doesn't sell AI credit packs; your assistant's own plan does the thinking. One workflow can feed Instagram, LinkedIn, Facebook, Pinterest and the rest of your accounts.

## Margin's settings for the MCP Client Tool

Set these on the node, then press Connect my account in the new MCP OAuth2 credential and sign in to Margin in the window that opens: pick the organizations n8n may open and press Allow.

```sh
Endpoint:          https://margin.design/mcp
Server Transport:  HTTP Streamable
Authentication:    MCP OAuth2
Tools to Include:  All
```

## Frequently asked questions

### Can an n8n workflow post to Instagram right away?

Not without a person. Posting right away always asks the person first, so an unattended workflow schedules posts or saves drafts. They wait in your Margin calendar, where anyone can edit or cancel them before they go out. TikTok direct posts always need a person's answers and yes.

### Is this the same as n8n's own MCP server?

No. n8n's MCP server lets other agents run your workflows. Here n8n is the MCP client: the MCP Client Tool gives your AI Agent Margin's design and posting tools.

### Does it work on n8n Cloud and self-hosted n8n?

Yes, with an MCP Client Tool node that offers HTTP Streamable and MCP OAuth2; if yours shows an SSE Endpoint field, add a new one. Self-hosted n8n needs an https address or localhost, the only places Margin sends a sign-in back to.

## Next steps

- Get started: https://margin.design/signin
- Full agent setup playbook: https://margin.design/get-started.md
- MCP endpoint: https://margin.design/mcp

## Sources

Checked on 26 Nov 2026.

- [n8n docs: MCP Client Tool](https://docs.n8n.io/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.toolmcp/)
- [n8n docs: MCP credentials](https://docs.n8n.io/integrations/builtin/credentials/mcp/)
- [n8n docs: Tools Agent](https://docs.n8n.io/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.agent/tools-agent/)
- [n8n source: MCP Client Tool node](https://github.com/n8n-io/n8n/blob/master/packages/@n8n/nodes-langchain/nodes/mcp/McpClientTool/McpClientTool.node.ts)

