Post to Facebook from Claude Code
Claude Code is Anthropic's coding agent. It runs in your terminal and in VS Code and JetBrains; developers use it to work on code and to call tools over MCP. A video posted as a Reel on your Facebook Page, or a text-only Page post.
Connect Claude Code to Kreatix
Sign in with Kreatix
No key to copy: paste the address, sign in to Kreatix and press Allow.
- Run once in a terminal: claude mcp add --transport http --scope user kreatix https://api.kreatix.cc/mcp
- Start claude and type /mcp. Finish the sign-in for kreatix in your browser: sign in to Kreatix and press Allow. From a plain shell, claude mcp login kreatix does the same.
- Check with claude mcp list: kreatix should show Connected.
claude mcp add --transport http --scope user kreatix https://api.kreatix.cc/mcpWith 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.
- Run once in a terminal: claude mcp add --transport http --scope user kreatix https://api.kreatix.cc/mcp --header "Authorization: Bearer YOUR_KEY"
- Check with claude mcp list: kreatix should show Connected.
claude mcp add --transport http --scope user kreatix https://api.kreatix.cc/mcp --header "Authorization: Bearer YOUR_KEY"What Claude Code 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 inside a claude session, or as a one-liner from the terminal: claude -p "Which of my Kreatix pages got the most views this week?" --allowedTools "mcp__kreatix__get_stats"
claude -p "Post this on my Facebook page tomorrow at 9:00: We're open this Sunday from 10:00 to 18:00."claude -p "Share this Instagram Reel link on all my Facebook pages tonight at 20:00."claude -p "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 Claude Code
- --scope user makes Kreatix available in every project. Without it, the server is only added for the current project.
- claude -p can't ask for permission or open the sign-in. Sign in once with /mcp first, then allow the tools the run may use with --allowedTools, such as "mcp__kreatix__get_stats", or "mcp__kreatix__*" for all seven.
- Kreatix marks its reading tools (list_channels, list_groups, list_posts, get_stats) read-only, so Claude Code can run them in parallel, for example your stats and your queue at once.
- 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 Claude Code?
Connect Claude Code 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. Claude Code 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.
I already added Kreatix on claude.ai. Do I add it again?
Not if Claude Code is logged in with the same claude.ai account (not an API key). Connectors from claude.ai show up in /mcp on their own.
How do I remove Kreatix completely?
Run claude mcp remove kreatix, then delete the key Claude Code used in Kreatix under Settings > AI agent. Removing the server in Claude Code doesn't revoke the key on Kreatix's side.
Kreatix schedules one video to every page you run, each with its own platform settings.
Start free, then connect Claude Code