Post to Facebook from Cursor
Cursor is an AI code editor with a built-in agent, plus a command line agent. Developers use it to write code, and its agent can call MCP tools such as Kreatix. A video posted as a Reel on your Facebook Page, or a text-only Page post.
Connect Cursor to Kreatix
Sign in with Kreatix
No key to copy: paste the address, sign in to Kreatix and press Allow.
- Open ~/.cursor/mcp.json (create the file if it isn't there) and add Kreatix with only its url, as in the snippet.
- Save the file and restart Cursor.
- Follow Cursor's sign-in prompt for kreatix, or run agent mcp login kreatix with the Cursor CLI. Sign in to Kreatix and press Allow.
- Open Customize > MCPs in the sidebar and check that kreatix is on.
{
"mcpServers": {
"kreatix": {
"url": "https://api.kreatix.cc/mcp"
}
}
}With a key
For setups without sign-in. The key works like a password, so keep it to yourself.
- In Kreatix, open Settings > AI agent and create a key. It is shown once.
- Add Kreatix with its url and an Authorization header to ~/.cursor/mcp.json (create the file if it isn't there), as in the snippet.
- Save the file and restart Cursor.
- Open Customize > MCPs in the sidebar and check that kreatix is on.
{
"mcpServers": {
"kreatix": {
"url": "https://api.kreatix.cc/mcp",
"headers": {
"Authorization": "Bearer YOUR_KEY"
}
}
}
}What Cursor can do on Facebook
A video posted as a Reel on your Facebook Page, or a text-only Page post.
| Setting | Values | Needed | What it does |
|---|---|---|---|
media_url | URL | No | The video, posted as a Reel: a link from your Kreatix library or a public YouTube, TikTok, Instagram or Facebook post. Leave it out for a text-only post. |
caption | string (max 5000) | No | The Reel's description, or the whole post when there is no video. A text-only post needs it. |
cover_url | URL | No | Set as the Reel's cover once Facebook has finished processing the video. If that takes too long, the cover is skipped. |
Ask in plain words
Ask in Cursor's agent chat, for example "Use Kreatix to move tonight's posts on my brand group to 21:00." From a terminal, the Cursor CLI takes one-off prompts: agent -p "Which of my Kreatix pages got the most views this week?"
- Post this on my Facebook page tomorrow at 9:00: We're open this Sunday from 10:00 to 18:00.
- Share this Instagram Reel link on all my Facebook pages tonight at 20:00.
- Cancel the Facebook post planned for Friday.
Facebook rules to know
- Videos go out as Facebook Reels.
- A text-only post needs a caption.
- The cover is added after Facebook finishes processing the video; if that takes too long, it is skipped.
- When Facebook blocks a post as spam (code 368) or hits a rate limit, Kreatix does not retry: retrying makes the block worse.
- Kreatix posts to the Facebook Pages you manage.
Tips for Cursor
- Put Kreatix in ~/.cursor/mcp.json, not in a project's .cursor/mcp.json: project files are meant to be committed and shared with your team.
- To keep the key out of the file, write "Authorization": "Bearer ${env:KREATIX_API_KEY}". Cursor fills in ${env:NAME} in url and headers.
- Cursor asks before each MCP tool call. Click the arrow next to the tool name to check the pages, caption and time before you approve.
- The agent checks the pages, caption and time with you before it posts. It cannot delete pages, read messages or change your account, and you can remove it any time in Settings > AI agent.
Questions
How do I post to Facebook from Cursor?
Connect Cursor to Kreatix once, as shown above. Then ask it to post: name your Facebook pages or a page group, the video or text and the time. Cursor shows you the plan and posts after you say yes.
Can the agent post text without a video to Facebook?
Yes. Leave media_url out and the caption goes out as a Page post. Facebook, LinkedIn and X are the networks that take text-only posts.
Does a Facebook video go out as a Reel or a regular video?
As a Reel. Kreatix uploads it through Facebook's Reels flow and, if you gave a cover, sets it once Facebook has finished processing the video.
What if Facebook blocks the post as spam?
Kreatix does not send it again on its own, because repeating is what Facebook's block (code 368) punishes. The post shows as failed with Facebook's reason, and the fix is to wait.
Can my agent post to 20 Facebook Pages at once?
Yes: up to 50 pages in one schedule_post call, or a whole group with group_id. Each page counts as one post toward the key's hourly limit, 100 an hour by default.
How do I know Kreatix connected?
Open Customize > MCPs in the sidebar and look for kreatix with its toggle on. If it is missing, open the Output panel (Cmd+Shift+U on Mac), choose MCP Logs and look for an error.
Does the Cursor CLI need its own setup?
No. The CLI reads the same mcp.json as the editor. Run agent mcp list to see kreatix.
Kreatix schedules one video to every page you run, each with its own platform settings.
Start free, then connect Cursor