Instagram in n8n: insights, comments and DMs through MCP
Connect n8n to Instagram through Saypage's MCP server and an API key: daily insight reports, new leads to a sheet, an AI agent on your account.
n8n has no node that reads Instagram insights, answers comments or runs comment-to-DM. Saypage does all of that through the official Instagram API, and it is an MCP server, so n8n reaches it with its own MCP nodes and an API key: an AI Agent that works on your Instagram account, or any Saypage tool called as a plain step in a workflow. It works on n8n Cloud and on self-hosted n8n.
What you need#
- n8n, Cloud or self-hosted, version 1.104 or later (for the HTTP Streamable transport).
- An Instagram professional account, Business or Creator, connected to Saypage.
- A Saypage account and an API key. Create your account, connect Instagram, then create a key on your account's API keys page.
Step 1: create an API key#
On your Saypage account, open API keys and create one. Name it after the workflow, such as "n8n daily report".
- Read only is enough for reports and for copying your leads: insights, posts, comments, automations' activity, collected emails.
- Full access lets a workflow change things: reply to a comment, publish a page or a post. Give it only to a workflow that needs it.
Copy the key (it starts with sp_): Saypage shows it once. More in Saypage API keys.
Step 2: create the credential#
In n8n, create a Bearer Auth credential, paste the key as the Bearer Token, and name it Saypage. Every Saypage node uses this one credential.
Step 3: pick the node#
n8n has two MCP nodes, and Saypage works with both:
| Node | Use it when | Settings |
|---|---|---|
| MCP Client Tool, under an AI Agent | The agent decides which Saypage tools to call from a prompt: "summarize yesterday", "which comments need an answer" | Endpoint https://api.saypage.ai/mcp, transport HTTP Streamable, authentication Bearer Auth with the Saypage credential, Tools to Include: the ones the agent needs |
| MCP Client, a regular node | One known tool, every run, with no model: copy your collected emails, fetch the insights | Server Transport HTTP Streamable, MCP Endpoint URL https://api.saypage.ai/mcp, Authentication Bearer Auth, then pick the Tool in the list n8n fetches from Saypage |
With the MCP Client Tool, choose Selected in Tools to Include and tick only what the agent needs. An agent with fewer tools makes fewer mistakes, and a read-only key keeps it from changing anything whatever it decides.
Three workflows to start with#
A daily Instagram brief in Slack or by email#
- Schedule Trigger, every morning.
- AI Agent with your chat model and an MCP Client Tool on Saypage, with
get_instagram_insightsandlist_instagram_postsselected. Prompt: "Give me yesterday's Instagram brief: reach, views, new followers, the best post and why, and one idea for today." - Slack or Gmail, with the agent's output.
A read-only key is enough.
Every email your automations collect, in a sheet#
Saypage's DM automations can ask for an email address before sending the link. To keep a copy in Google Sheets or your newsletter tool:
- Schedule Trigger, every hour.
- MCP Client on Saypage, tool
list_emails. - Remove Duplicates (or the sheet's own matching), then Google Sheets, Mailchimp or Brevo.
A weekly look at your automations#
- Schedule Trigger, every Monday.
- AI Agent with
list_automationsandget_automation_activity. Prompt: "For each automation, how many people got the DM this week and how many tapped the link? Flag the ones that sent nothing." - Send the answer where your team reads it.
Why a key and not OAuth?#
n8n's MCP OAuth2 credential registers itself on n8n Cloud by dynamic client registration, which Saypage's sign-in doesn't offer: it registers apps with a client ID metadata document instead. An API key works everywhere in n8n, and you choose exactly what it may do.
What a workflow can do#
What a workflow can do depends on your Saypage plan, and on the key: a read-only key only reads, on any plan.
| A workflow can… | Saypage plan |
|---|---|
| Read your posts, Reels and insights | Free and every plan |
| Read your comments, and reply to them with a full-access key | Creator ($19 a month) and Premium |
| Read your automations' activity and the emails they collected | Creator and Premium |
| Publish pages and posts, with a full-access key | Creator and Premium |
Each paid plan starts with a 7-day free trial. Every tool and what it changes: MCP tools reference.
What it can't do#
Saypage only does what the official Instagram API allows. A workflow can't read or answer your DM inbox, send DMs outside your automations, message your followers in bulk, change your bio, delete a published post, or act on someone else's account. DM automations themselves run inside Saypage: set them up from your AI assistant, and read their results from n8n.
Questions#
Can n8n send Instagram DMs with Saypage?#
Not directly. Saypage sends a DM only to someone who wrote your keyword, replied to your story or messaged you, within Instagram's 24-hour window, through an automation you set up. n8n can read who got each DM and what they did, with get_automation_activity and list_contacts.
Is it free?#
Adding Saypage is free, and on Saypage's Free plan a workflow reads your posts and insights. Comments, automations, collected emails, pages and posting start with Creator, at $19 a month, with 7 days free. See Plans and limits.
Does it work on n8n Cloud?#
Yes. The API key goes in a Bearer Auth credential, which works the same on n8n Cloud and self-hosted n8n.
The node can't list Saypage's tools. What's wrong?#
Check the transport (HTTP Streamable, not SSE), the URL (https://api.saypage.ai/mcp, with /mcp) and the key: a key that was revoked, or pasted with a space, gets 401 Unauthorized.
Can I use several Instagram accounts?#
Yes, if they are connected to the same Saypage account (up to 3 on Creator and 8 on Premium): tell the agent which handle you mean. A key belongs to one Saypage account.
Is it safe for my Instagram account?#
Saypage connects to Instagram through its official login and passed Meta App Review for every permission it uses. It never sees your Instagram password and never reads your DMs. See Privacy and safety.
Next#
Try it in your chat.
7 days free, two minutes to set up. Create your account, connect n8n and Instagram, then ask for a plan to sell more from your Reels.