How to connect Instagram to Cursor and Grok Build
Add Saypage to Cursor, now Grok Build, with one mcp.json entry: your agent reads your Instagram and publishes the pages it builds.
Cursor can't reach Instagram by itself. Saypage is an MCP server that gives its agent Instagram tools, through the official Instagram API: your insights, your comments, posting, Reels, your pages on yourname.saypage.page and your comment-to-DM automations. Since SpaceX bought Cursor's maker in August 2026, Cursor's documentation calls the product Grok Build; the setup below is the same, in the same mcp.json file, and the Grok Build terminal reads that file too.
What you need#
- Cursor (Grok Build), with its agent.
- 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:
- Read only for questions and reports: insights, posts, comments, pages and their statistics.
- Full access to let the agent publish pages, reply to comments and post, always after you approve it.
Copy the key (it starts with sp_): Saypage shows it once. More in Saypage API keys.
Step 2: add Saypage to mcp.json#
Open ~/.cursor/mcp.json (create it if it doesn't exist) to have Saypage in every project, or .cursor/mcp.json in one project only, and add Saypage:
{
"mcpServers": {
"saypage": {
"url": "https://api.saypage.ai/mcp",
"headers": {
"Authorization": "Bearer ${env:SAYPAGE_API_KEY}"
}
}
}
}
${env:SAYPAGE_API_KEY} reads the key from an environment variable, so it stays out of the file. Set the variable where Cursor starts (export SAYPAGE_API_KEY="sp_…" in your shell profile, then start Cursor from a terminal), or paste the key itself in place of ${env:SAYPAGE_API_KEY} in your personal ~/.cursor/mcp.json. Never commit a key in a project's file.
If mcp.json already lists servers, add the "saypage" block next to them, inside "mcpServers".
Step 3: turn it on and check#
Open Customize in the sidebar: saypage is in the list of MCP servers, with a toggle to turn it on or off. Then ask the agent "Get started with Saypage." Saypage's tools show under Available Tools, and the agent asks you before each call unless you allow it.
Not there? The MCP Logs in the Output panel (Cmd+Shift+U on a Mac, Ctrl+Shift+U elsewhere) show why: a missing variable gives 401 Unauthorized.
Why a key and not a sign-in?#
Saypage's sign-in registers apps with a client ID metadata document, as the latest MCP specification recommends, and doesn't offer the older dynamic client registration. Cursor's documentation describes sign-in by dynamic registration, or with a client ID you set yourself, so an API key is the reliable way, and you choose exactly what it may do.
What the agent does well with Saypage#
- Ship the page you're building. Write a landing page, a menu or a link in bio in your project, then ask the agent to put it on Saypage: you get a private preview, and it goes online on your address once you approve it.
- Build from your numbers. "Read my last 20 Reels' insights and design a page around the three that sold best."
- Use your files. The agent uploads photos and videos from your project as it builds a page or a post.
What the agent can do with your Instagram#
What it can do depends on your Saypage plan, and on the key: a read-only key only reads, on any plan.
| Ask the agent to… | Saypage plan |
|---|---|
| Read your posts, Reels and insights, and say what to post next | Free and every plan |
| Find the comments you haven't answered, draft replies, hide spam | Creator ($19 a month) and Premium |
| Publish photo posts, carousels, Reels and stories, once you turn publishing on | Creator and Premium |
| Build pages and put them online on your address | Creator and Premium |
| Send a link by DM to everyone who comments a keyword | Creator and Premium |
Each paid plan starts with a 7-day free trial. The full list of tools is in the MCP tools reference.
What it can't do#
Saypage only does what the official Instagram API allows. The agent can't read or answer your DM inbox, message your followers in bulk, change your bio, delete a published post, or act on someone else's account.
Questions#
Is Cursor now called Grok Build?#
Cursor's documentation now lives at docs.grok.com under the name Grok Build, after SpaceX bought Anysphere, Cursor's maker, in August 2026. The ~/.cursor/mcp.json file and its format didn't change, so this setup works in both.
Does it work in Cursor's Cloud Agents?#
Not with this file: Cloud Agents don't read ~/.cursor/mcp.json. They use the servers set up for your account or your team on Cursor's website.
Is it free?#
Adding Saypage is free, and on Saypage's Free plan the agent reads your posts and insights. Comments, posting, pages and DM automations start with Creator, at $19 a month, with 7 days free. See Plans and limits.
Can I turn Saypage off without removing it?#
Yes: use its toggle in Customize. A server that's off doesn't load and doesn't show in chat.
What if my key leaks?#
Revoke it on your account's API keys page: it stops working at once. Then create a new one. See Saypage API keys.
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 Cursor (Grok Build) and Instagram, then ask for a plan to sell more from your Reels.