NextDeck blog

Schedule Instagram, Threads and TikTok posts from Claude with MCP

AI agents are good at the tedious half of social media: turning a folder of screenshots and a few notes into an Instagram caption, a short Threads post and a TikTok title, then putting it all on a calendar. What they can't do on their own is post. The Model Context Protocol (MCP) fixes that: it lets an agent call tools in other apps, and NextDeck has an MCP server built in.

This guide connects Claude Code to NextDeck, so you can say "schedule these three screenshots for Tuesday at 9:30 on Instagram, Threads and TikTok" and have it done.

What you need

Connect Claude Code

One command adds the server:

claude mcp add --transport http nextdeck \
    https://nextdeck.app/mcp \
    --header "Authorization: Bearer nd_…"

Other MCP clients need the same two things: the URL https://nextdeck.app/mcp and an Authorization: Bearer header with your key. Each key can be revoked on its own in Settings, so give each agent or machine its own.

What the agent can do

ToolWhat it does
list_projects, list_accountsFind where to post: projects and the connected accounts in each
upload_mediaUpload a photo from a URL or as base64
create_post, update_postDraft a post, with a shared text, hashtags and per-platform overrides
validate_postCheck it against every platform's limits and see the final text for each
schedule_post, unschedule_postPut it on the calendar or take it off
publish_post_nowPost right away, or retry only the accounts that failed
get_post_stats, get_account_insightsViews, likes, comments, shares and follower totals
tiktok_creator_info, update_tiktok_settingsA TikTok account's posting options and settings

A typical session

> Schedule the three new screenshots in ./launch for
  Tuesday 9:30 on Instagram, Threads and TikTok. Write
  a caption for each and use the topic "Indie Dev" on Threads.

● upload_media ×3
● create_post
● validate_post   Photo 2 is 1170×2532; Instagram needs between 4:5 and 1.91:1.
  (crops photo 2 to 4:5 and uploads it again)
● update_post
● validate_post   no problems
● schedule_post   Tue 9:30 AM

The useful part is validate_post. The agent gets the same checks as the web composer (photo counts, aspect ratios, caption lengths, the Threads topic rules, TikTok's privacy choice), so it fixes problems before the post is scheduled rather than finding out at 9:30 on Tuesday.

Prompts that work well

Keeping a human in the loop

Posts are public, and they can't be cleanly taken back. A few habits keep an agent safe:

Prefer plain HTTP?

The same actions are in NextDeck's REST API at https://nextdeck.app/api/v1, with the same API key, for scripts, cron jobs and automation tools that don't speak MCP.