How to run Meta ads from Cursor
Cursor makes Meta ads from the same repo as your landing page: it sets the headlines in the font files your site ships, adds a matching hero variant per angle as a diff, and launches the campaign after you approve each tool call.
By Grace Kong·Updated ·5 min read
Make Meta ads that match your landing page
TL;DR
Setup is one url entry in .cursor/mcp.json. It holds no secret, so it is safe to commit, and each teammate signs in with OAuth (Cursor docs).
Build to 4:5 at 1440 x 1800 for Feed and 9:16 at 1440 x 2560 for Stories and Reels; Instagram Reels show only 44 characters of primary text (Meta Ads Guide).
Ratio tolerance is 1% on Instagram and Stories, so a file cropped by a few pixels can be rejected.
At $1.09 per US link click (October 2026, US benchmarks), 50 clicks a week costs about $55 per ad set, enough to leave learning on clicks but not on purchases.
Set up Hypesonic in Cursor
Add https://www.hypesonic.com/mcp as a remote MCP server named Hypesonic: in Cursor that is a url entry in mcp.json, and sign-in is OAuth.
Put this in .cursor/mcp.json for one project, or ~/.cursor/mcp.json for every project:
{
"mcpServers": {
"hypesonic": { "url": "https://www.hypesonic.com/mcp" }
}
}- Cursor signs you in with OAuth (authorization code flow with PKCE, Proof Key for Code Exchange) the first time the agent connects.
- A URL-only entry holds no secret, so it is safe to commit; each teammate signs in with their own account.
- Cursor asks for approval before using MCP tools by default. MCP follows the same run modes as terminal commands, and in Auto-review mode allowlisted tools run at once, so do not allowlist a tool that spends money.
Source: Cursor docs, Model Context Protocol.
You sign in to your Meta ad account through Hypesonic, with no developer app of your own. Setup for every agent: connect the Hypesonic MCP.
The exact request to type
Point it at the files: the product page, the fonts and the output folder.
Use Hypesonic to make 6 static Meta ads for the product in /app/products/standing-desk. Use our fonts in /public/fonts and the logo in /public/logo.svg. 3 angles x 2 hooks. 4:5 and 9:16. Save to /ads/meta/standing-desk. Add a hero variant per angle to the landing page behind ?v=angle1..3. Draft the Meta campaign paused, one ad set per angle, $30 a day each. Show me before launch.
What Cursor does, step by step
Because Cursor has a terminal, it can finish Hypesonic's static ad playbook end to end.
- Reads the playbook.
playbook_getonmeta-static-ads: picture layers from image models, headlines typeset in HTML in the brand's own font files, rendered by a headless browser. That last step needs a shell, which Cursor has. - Uploads references.
asset_uploadreturns an upload URL; Cursor sends your product photos from the repo with a PUT, so the product in every ad is the real one. - Quotes the layers with
runandestimate: true, then generates after you approve the tool call. A static ad usually costs about $0.20 to $0.75 to make. - Renders the ads to PNG in your folder, using the font files the site already ships, so type matches the page.
- Edits the landing page with one hero variant per angle, as a normal code diff you review.
- Drafts the campaign in your Meta ad account, paused, with one ad set per angle, and launches on your yes.
What you get back
Files and a diff, not just links.
- PNG ads in
/ads/meta/standing-desk, named by angle, hook and size. - A diff on the landing page with the hero variants.
- A short README in the folder with each ad's headline, primary text options and run IDs, if you ask for one.
- The campaign plan, then live IDs. Later, the agent pulls spend and results for the campaign.
Meta specs the agent builds to
Text limits are where most ads get cut off.
| Placement | Ratio and size | Primary text | Headline |
|---|---|---|---|
| Facebook Feed | 4:5, 1440 x 1800 | 50 to 150 | 27 |
| Instagram Feed | 4:5, 1440 x 1800 | 125 | 40 |
| Facebook and Instagram Stories | 9:16, 1440 x 2560 | 125 | 40 (Facebook) |
| Instagram Reels | 9:16, 1440 x 2560 | 44 | Not listed |
| Marketplace | 1:1, at least 1080 x 1080 | 125 | 40 |
Source: Meta Ads Guide, image ads, checked Nov 30, 2026. Images are JPG or PNG up to 30 MB; video MP4, MOV or GIF up to 4 GB.
For Stories and Reels, keep text and logos out of the top 14%, the bottom 35% and 6% on each side (Meta). Ratio tolerance is 1% on Instagram and Stories, so a 1440 x 1800 file cropped by a few pixels can be rejected.
Tracking and budget, from the same editor
A clean pixel and enough budget per ad set decide whether the test means anything.
Cursor can fix the event code on the landing page itself. Meta's own Ads MCP, which also works in Cursor at https://mcp.facebook.com/ads, includes signals tools that report Event Match Quality and manage pixel event rules (Meta for Developers).
An ad set leaves the learning phase after about 50 results in a week (Meta). At $1.09 per US link click (Shopify, citing Birch, Oct 2026), 50 landing-page clicks a week costs about $55 per ad set, so $30 a day per angle clears it for clicks but not for purchases (our math).
Where Cursor is strong and weak for Meta ads
Best when the ad and the website change together.
- Strong: one change touches ad, landing page and tracking code, reviewed as a diff.
- Strong: the full static playbook runs here, including browser typesetting in your real fonts; images returned by MCP tools show in the chat for review.
- Weak: an approval prompt on each tool call slows big batches; allowlist read-only tools, never paid ones.
- Weak: Cursor is a code editor. For marketers who never open the repo, a chat agent may be easier.
Questions
Can Cursor run Facebook ads?
With an MCP server that launches Meta campaigns, such as Hypesonic or Meta's own Ads MCP, yes. Cursor asks for approval before each MCP tool call by default.
How do I add an MCP server in Cursor?
Add an mcpServers entry with a url to .cursor/mcp.json for one project or ~/.cursor/mcp.json for all, then sign in when Cursor prompts.
Is it safe to commit .cursor/mcp.json?
Yes when entries hold only URLs and each person signs in with OAuth. Keep API keys and tokens out of the file.
What size should Facebook ad images be?
4:5 at 1440 x 1800 for Feed and 9:16 at 1440 x 2560 for Stories and Reels, as JPG or PNG up to 30 MB.
Sources
- 1Cursor docs, Model Context Protocol · accessed Nov 30, 2026
- 2Meta Ads Guide, image ads · accessed Nov 30, 2026
- 3Meta Ads Guide, Instagram Reels video · accessed Nov 30, 2026
- 4Meta for Developers, signals and datasets tools · accessed Nov 30, 2026
- 5Meta Business Help, about the learning phase · accessed Nov 30, 2026
- 6Shopify, how much do Facebook ads cost · Nov 2026
Make Meta ads that match your landing page
Keep reading
- IntegrationsCursor for marketing: what marketers do in Cursor, and how to add ad toolsRead
- Ad specsWhat are the Meta ad specs for every placement?Read
- IntegrationsMeta Ads MCP: what Meta's official server can and can't doRead
- GuidesCan ChatGPT run Facebook ads? How to run Meta ads from ChatGPTRead
- GuidesHow to make UGC video ads with CursorRead
- AI adsAI static ads: formats that work, Meta specs and cost per adRead