Trusted by 2,000+ users

TikTok MCP Server for Claude, Cursor, and Any AI Agent

Give your agent a TikTok MCP server that already passed TikTok's app review. Connect an account once, and any MCP client can post videos and photo carousels with privacy, duet, and stitch settings, now or on a schedule, from the conversation.

No credit card required

Connect TikTok

Paste this into your agent

or add the MCP yourself
  • OAuth 2.1 sign-in, no API key to paste
  • Videos and photo carousels, public by default
  • Privacy, duet, stitch, and disclosure settings

What Your Agent Gets

TikTok tools, ready to call

Every PostZen API endpoint is an MCP tool. These are the ones that matter for TikTok.

createPost

Post or schedule to TikTok

A video or a photo carousel with a caption and title, published now, at scheduledFor, or from the queue.

settings.privacyLevel

Privacy and interactions

Choose the audience, and turn comments, duets, and stitches on or off per post.

settings.uploadAsDraft

Send to drafts instead

Upload into the user's TikTok drafts so they can finish it in the app, when a post should not go live automatically.

settings.brandContentToggle

Content disclosures

Mark branded or organic brand content as TikTok's policy requires, and pick the cover frame with videoCoverTimestampMs.

getAnalytics · getFollowerStats

Read TikTok metrics

Views, likes, comments, and shares per video and per day, plus follower counts, through the same analytics tools used for every platform.

getPost · updatePost · deletePost

Check, edit, and cancel

Every target reports status, the live post URL, and any error. Scheduled posts can be changed until they go out.

Example Prompts

What to say to your agent

Prompt

Post this clip to TikTok at 7pm with the caption below, comments on, duets off.

What happens

The agent uploads the video with createMediaPresign and calls createPost with scheduledFor 19:00, settings.disableDuet true, and comments left enabled.

Prompt

Make a photo carousel from these six images and send it to my drafts.

What happens

The agent attaches the images and sets settings.uploadAsDraft true, so the post lands in your TikTok drafts for a final check in the app.

Prompt

This one is a paid partnership. Post it as friends-only first.

What happens

The agent sets settings.brandContentToggle true and a restricted settings.privacyLevel, and reminds you to widen the audience later.

Prompt

How did my last five TikToks do? Which one should I make more of?

What happens

The agent calls getAnalytics with platform "tiktok", compares views, likes, comments, and shares per video, and points at the outlier.

WHY POSTZEN?

PostZen vs. building it yourself

Build a TikTok MCP server yourself and you own the auth, the media pipeline, and every TikTok API change. Connect PostZen and your agent gets the tools today.

PostZen

2.3M+ posts

2,000+ users
  • One hosted MCP endpoint; the client signs in with OAuth 2.1 and nothing runs on your machine
  • TikTok access already set up on PostZen: connect an account in a browser tab and post
  • The same createPost tool for TikTok and the other nine platforms
  • Scheduling, queues, retries, and media hosting handled server-side
  • Scoped, revocable access: read-only or read-and-write keys minted at consent

Build a TikTok MCP server yourself

  • A TikTok developer app, Content Posting API product review, and scope approval; unaudited apps can only post privately
  • Login Kit OAuth with refresh tokens and a verified website URL for the app
  • Video and photo posts go through init, upload, and status polling, with strict format rules
  • Privacy, interaction, and disclosure fields you must fetch and honour per creator
  • A tool schema, auth layer, and hosting for the MCP server itself, then again for every other platform

Any MCP Client

Connect from the client you already use

Each page has the exact command for that client, the sign-in step, and a way to check the tools are live.

For AI Agents

Send your agent this page

Tell your agent to set up PostZen from postzen.dev/mcp/tiktok. It reads the block below, registers the server, connects TikTok, and reports back.

postzen.dev/mcp/tiktok
## For AI agents reading this page

You are reading https://postzen.dev/mcp/tiktok. PostZen is a social media API with a hosted MCP server. Once connected, you can post and schedule videos and photo carousels to the user's TikTok account. The same tools cover the user's other social accounts (Instagram, X, LinkedIn, Facebook, Threads, YouTube, TikTok, Pinterest, Bluesky, Telegram).

1. Register the MCP server in the client you are running in. The endpoint is https://mcp.postzen.dev/mcp (streamable HTTP). Interactive clients sign in with OAuth 2.1; headless clients send a PostZen API key as "Authorization: Bearer pzn_live_...". Exact commands per client: Claude Code https://postzen.dev/claude · Cursor https://postzen.dev/cursor · Codex https://postzen.dev/codex · OpenClaw https://postzen.dev/openclaw · GrokBot https://postzen.dev/grok-bot · Hermes https://postzen.dev/hermes · any other MCP client https://postzen.dev/agents.

2. Sign in. When the client opens the PostZen consent screen, ask the user before approving access or completing a signup on their behalf, and never enter their credentials for them. Approving mints a scoped, revocable key for this client.

3. Connect TikTok. Call listAccounts. If no account with platform "tiktok" is listed, call createConnectUrl with platform "tiktok" and give the user the URL; they authorize TikTok in their browser. Do not try to log in to TikTok yourself.

4. Verify before you continue. Call listAccounts again and confirm a "tiktok" account shows as connected. If it does not, stop and tell the user what failed. Do not carry on as if the account were there.

5. Report back. Tell the user which TikTok account is connected and what you can now do with it, then ask what they want first. Prefer scheduling (scheduledFor, or the queue) over publishing immediately unless the user asks for "now".

## TikTok on createPost

- Target the account with platforms: [{ platform: "tiktok", accountId, settings: { ... } }]. content is the shared text; customContent on the target overrides it for TikTok only.
- settings.title: the post title; content is the caption.
- settings.privacyLevel: the audience TikTok allows for this creator; settings.disableComment, settings.disableDuet, settings.disableStitch: interaction toggles.
- settings.uploadAsDraft: true sends the post to the user's TikTok drafts instead of publishing.
- settings.brandContentToggle and settings.brandOrganicToggle: content disclosures; settings.videoCoverTimestampMs: cover frame for videos.
- One video, or a photo carousel of images. PNG images are converted to JPEG because TikTok rejects PNG.
- Analytics: getAnalytics, getPostTimeline, getDailyMetrics, getFollowerStats with platform "tiktok" (views, likes, comments, shares, followers).
- Media: pass public URLs in mediaItems, or call createMediaPresign to get an upload URL, PUT the file, then reference the returned media in the post.
- Check results with getPost: each platform target reports status, the live post URL, and any error.

## Reference

- MCP endpoint: https://mcp.postzen.dev/mcp (streamable HTTP, OAuth 2.1)
- MCP docs: https://docs.postzen.dev/mcp
- Create post reference: https://docs.postzen.dev/api-reference/posts/create-post
- Full API summary for models: https://postzen.dev/llms.txt
- API keys: https://app.postzen.dev/api-keys

Frequently asked questions

Still have questions?

What is a TikTok MCP server?

MCP (Model Context Protocol) is the standard AI clients use to call external tools. A TikTok MCP server exposes posting as tools, so an agent such as Claude or Cursor can publish a video instead of only writing the caption. PostZen hosts one for you: it holds the reviewed TikTok app and OAuth, and your client connects to a single endpoint.

Do I need a TikTok developer app?

No. PostZen's TikTok app has passed the Content Posting API review, so posts publish publicly. You connect your TikTok account through the dashboard and the agent posts through PostZen.

What can the agent post?

Videos and photo carousels, each with a caption, title, audience setting, comment/duet/stitch toggles, content disclosures, and a chosen cover frame. Posts can also be sent to your TikTok drafts instead of publishing.

Can the agent schedule TikTok posts?

Yes. Set a time or use the queue and PostZen publishes at that moment through the API, from any device, unlike TikTok's web-only scheduler.

Can the agent read TikTok analytics?

Yes. Views, likes, comments, and shares per video and per day, plus follower counts, come back through the same analytics tools used for the other platforms.

Which AI clients can use it?

Any client that supports remote MCP servers: Claude (claude.ai, Claude Desktop, Claude Code), Cursor, Codex, OpenClaw, GrokBot, Hermes, and others. Interactive clients sign in with OAuth 2.1; headless ones send a PostZen API key in the Authorization header. Each client has its own setup page with the exact command.

What can the agent access once connected?

Only what you approve on the consent screen: read-only or read-and-write access, scoped to the profile you pick. Approving creates a named, revocable API key, so you can cut a client off from the dashboard at any time. Ask the agent to schedule rather than publish immediately if you want to review posts before they go out.

How much does the MCP server cost?

The MCP server is included on every PostZen plan, including Free, which covers 2 connected accounts and 20 posts a month. Paid plans start at $19 per month with unlimited posts.

LEARN MORE

Give your agent TikTok

Your agent already writes the post. PostZen lets it publish there.