Write and schedule
Drafts posts, gives each platform its own text, and schedules them for any date and time.
Claude Code + PostNinja
Add PostNinja to Claude Code with a single command, then ask it to plan your week, write launch posts from your changelog, or schedule a thread straight from your repo. Posts go out on time even after you close the terminal.
Setup
In PostNinja, go to Settings → API and create a key. It starts with pn_ and is shown once, so copy it somewhere safe.
Run this in your terminal. Add --scope user to make it available in every project.
claude mcp add --transport http postninja https://postninja.app/api/mcp \
--header "Authorization: Bearer pn_YOUR_KEY".mcp.json in your project
{
"mcpServers": {
"postninja": {
"type": "http",
"url": "https://postninja.app/api/mcp",
"headers": { "Authorization": "Bearer ${POSTNINJA_API_KEY}" }
}
}
}Replace pn_YOUR_KEY with a key from Settings → API.
Claude Code finds the PostNinja tools on its own. Try:
Tools
Drafts posts, gives each platform its own text, and schedules them for any date and time.
Builds multi-post X threads and posts photos or videos as Instagram Stories.
Lists upcoming posts, drafts and what went out, with links to the live posts.
Moves, edits or deletes drafts and scheduled posts when plans change.
Uploads images to attach to posts. Larger files and video go through the REST API.
Reads each account's status and error, so it can tell you what didn't go out and why.
Connect your accounts in PostNinja once. From then on Claude Code can post to any of them, and PostNinja publishes at the time you set.
FAQ
Run /mcp inside Claude Code. postninja should be listed as connected, with tools like list_accounts and create_post.
Yes. Use the .mcp.json version, which reads POSTNINJA_API_KEY from your environment, and keep the key in your shell profile or a secrets manager.
That depends on Claude Code's own settings; most ask before each tool call. If you'd rather review everything, ask it to save posts as drafts, then schedule them from the PostNinja calendar.
PostNinja only stores a hash of each key and shows its first characters so you can tell keys apart. A key works for one workspace, and you can revoke it any time under Settings → API.
Every account you've connected: X, Instagram, Threads, Facebook Pages, TikTok, YouTube Shorts and Pinterest.
No. They're ordinary posts on your plan. As always, X posts use credits (10 each, 80 with a link) because X charges for every post; other platforms are unlimited.
Connect Claude Code to PostNinja in a couple of minutes. Plans from $15 a month.