New MCP server: let ChatGPTClaudeClaude CodeCodexCursorOpenClaw or any AI agent schedule your posts See how it works

Claude Code + TikTok

Post to TikTok from Claude Code

Through iHatePosting, Claude Code can publish videos and photo posts directly, or send them to your TikTok app inbox to finish there. Register iHatePosting in Claude Code with a single terminal command and a browser sign-in, then ask it for the post you want.

Setup takes about a minute. A post must have an attachment: one video, one picture or several pictures.

TikTokClaude Code15 networks

Posting to TikTok from Claude Code

Add iHatePosting to Claude Code once, connect TikTok, and then describe the post. Setup takes about a minute.

Step 1

Add iHatePosting to Claude Code once

Register iHatePosting in Claude Code with a single terminal command and a browser sign-in. Then connect TikTok in iHatePosting if you have not already.

terminal
claude mcp add --transport http ihateposting https://app.ihateposting.com/mcp/oauth
Step 2

Ask for the TikTok post

Describe the post in plain language. Claude Code writes it, applies the settings and schedules it.

Claude Code
> Publish clip.mp4 to TikTok for everyone with comments on and duets off, tomorrow at 18:00. Claude Code: Done. Scheduled on TikTok.

What Claude Code can do on TikTok

On TikTok, Claude Code can publish videos and photo posts directly, or send them to your TikTok app inbox to finish there.

Direct publishing

Publish a video or a photo post straight to your account.

Upload to inbox

Send the media to the TikTok app, where you finish and publish it within 24 hours.

Privacy level

Choose who can watch: everyone, mutual friends, followers or only you.

Interaction settings

Allow or block comments, duets and stitches on videos.

Disclosures

Label a post as AI-generated, or as branded content.

How Claude Code gets a post onto TikTok

You say what you want and Claude Code makes the calls. A typical conversation goes like this.

Find your TikTok channel

Which TikTok accounts do I have in iHatePosting?

What happens

  • Claude Code lists your channels and finds TikTok
  • It also reads the channel's rules and settings

Compose your content

Post the four photos to TikTok as a photo post for followers only, with the title Behind the scenes.

What happens

  • Claude Code drafts the text for TikTok
  • It uploads any media you mention

Schedule and publish

Yes, schedule it for tomorrow at 9:00.

What happens

  • Claude Code schedules the post in iHatePosting
  • iHatePosting publishes it to TikTok at that time

TikTok settings reference

Say the option in your own words and Claude Code fills in the matching field. This is every TikTok setting it can use.

FieldTypeRequiredDescription
content_posting_methodstringYesDIRECT_POST publishes the post. UPLOAD only sends the media to the TikTok app inbox, and TikTok then ignores every other setting here
privacy_levelstringYesPUBLIC_TO_EVERYONE, MUTUAL_FOLLOW_FRIENDS, FOLLOWER_OF_CREATOR or SELF_ONLY. Applied only when content_posting_method=DIRECT_POST. Ignored by TikTok on UPLOAD.
titlestringNoUsed as the title of the post. The only setting TikTok keeps when content_posting_method=UPLOAD.
duetbooleanYesVideo posts only, and only when content_posting_method=DIRECT_POST. TikTok has no duet setting for photo posts.
stitchbooleanYesVideo posts only, and only when content_posting_method=DIRECT_POST. TikTok has no stitch setting for photo posts.
commentbooleanYesApplied only when content_posting_method=DIRECT_POST. Ignored by TikTok on UPLOAD.
autoAddMusicstringYesPhoto posts only, and only when content_posting_method=DIRECT_POST. Ignored by TikTok on UPLOAD. "yes" lets TikTok auto-add its recommended music.
brand_content_togglebooleanYesApplied only when content_posting_method=DIRECT_POST. Ignored by TikTok on UPLOAD.
brand_organic_togglebooleanYesApplied only when content_posting_method=DIRECT_POST. Ignored by TikTok on UPLOAD.
video_made_with_aibooleanNoLabels the post as AI generated. Video posts only, and only when content_posting_method=DIRECT_POST. TikTok has no AI-generated label for photo posts, and discards it on UPLOAD.

Common configurations

Each case below is a request Claude Code understands, followed by the TikTok options it sets.

Public video

Publish it for everyone with comments on

  • Applies: content_posting_method: DIRECT_POST, privacy_level: PUBLIC_TO_EVERYONE, comment: true

Only me

Publish it so only I can see it

  • Applies: privacy_level: SELF_ONLY

Finish it in the app

Send it to my TikTok inbox, I will review it there

  • Applies: content_posting_method: UPLOAD

TikTok requests to try in Claude Code

Post a video

Publish clip.mp4 to TikTok for everyone with comments on and duets off, tomorrow at 18:00.

A photo post

Post the four photos to TikTok as a photo post for followers only, with the title Behind the scenes.

Review in the app

Send teaser.mp4 to my TikTok inbox so I can edit it in the app before publishing.

TikTok limits and gotchas to know

A few of TikTok's rules shape how Claude Code writes your request, so it helps to know them.

  • A post must have an attachment: one video, one picture or several pictures.
  • UPLOAD does not publish. The media waits in your TikTok app inbox for 24 hours, and every setting but the title is ignored.
  • duet, stitch and the AI label apply to videos only; TikTok has no such setting for photo posts.
  • A caption can hold up to 2,000 characters, and the title up to 90.
  • A picture can be at most 1,080 pixels on its shorter side.
  • Every post must carry all eight required settings, even one that goes to your TikTok app inbox.

What is Claude Code?

Claude Code is Anthropic's agentic tool for software work. It lives in a terminal, with extensions for popular editors, understands the code around it, runs commands and can call MCP tools such as iHatePosting.

That makes it a natural place to announce a release: it can read the changelog, write the copy and schedule it in iHatePosting without you leaving the project.

How iHatePosting works with Claude Code

Once connected, iHatePosting hands Claude Code its tools: your channels, posts, media and each channel's settings (14 tools in all). Claude Code calls them while you describe what you want.

  • iHatePosting MCP server (sign in): claude mcp add --transport http ihateposting https://app.ihateposting.com/mcp/oauth
  • iHatePosting plugin: /plugin marketplace add iHatePostingOrg/iHatePosting-Agent
  • iHatePosting skill (command line): npx skills add iHatePostingOrg/iHatePosting-Agent
Set up Claude Code
# iHatePosting MCP server (sign in) claude mcp add --transport http ihateposting https://app.ihateposting.com/mcp/oauth

TikTok and the other platforms Claude Code reaches

Ask for TikTok and other channels in a single message; every channel still applies its own settings.

Frequently asked questions

Start free for 30 days

Register iHatePosting in Claude Code with a single terminal command and a browser sign-in, connect TikTok in iHatePosting, then ask Claude Code for the post in plain language. It schedules the post and iHatePosting publishes it at the time you set.

Hand your TikTok posts to Claude Code

Start free for 30 days.