Skip to main content
Glama

TikTok MCP examples

Allow any AI agent to use the full TikTok interface through this self-hosted MCP. With this MCP you can:

  • Post/schedule videos

  • Manage profile; pfp, display name, and bio

  • Find viral tiktok hooks

  • Track analytics from TikTok Studio

Works with any MCP-compatible agent or CLI(Claude Code, Codex, Hermes Agent, etc.). Maintained by Palmyr

--

You can connect unlimited number of accounts. The agent will keep all TikTok sessions, media, browser profiles, and analytics local.

Tools

Tool

What it does

tiktok_connect

Return a shareable QR login link

tiktok_connect_status

Check whether login completed

tiktok_accounts

List local accounts and session state

tiktok_post

Post or natively schedule a video

tiktok_operation_status

Poll an asynchronous browser job

tiktok_follow

Follow a user

tiktok_like

Like a video

tiktok_delete

Delete a video

tiktok_update_profile

Update a display name or bio

tiktok_update_avatar

Update a profile image

tiktok_analytics

Collect and save post metrics locally

tiktok_series

Read saved performance history and growth

tiktok_hooks

Analyze caption hooks from local history

tiktok_niches

List suggested hook-analysis niches

tiktok_scheduled

List scheduled posts recorded locally

tiktok_cancel_scheduled

Cancel a scheduled post

Related MCP server: tiktok-mcp

Quick start

You need Node.js 18.18+ and Chrome, Edge, or Brave. Add this server to your agent's MCP configuration:

{
  "mcpServers": {
    "tiktok": {
      "command": "npx",
      "args": ["-y", "github:0xArtex/tiktok-mcp"]
    }
  }
}

Restart the agent, then ask:

Connect my TikTok account as [my-brand]

The MCP returns a shareable connect_url. Send it to the human who owns the account; they open it, scan the live TikTok QR, and confirm login while the agent polls the connection.

Important: make sure the agent's VPS/browser and the human's phone to be in the same country or a nearby region, since TikTok may refuse geographically distant QR logins. If they are different, we suggest to use a temporarily VPN/proxy while scanning.

If no installed browser is detected, install Playwright's Chromium once:

npx playwright install chromium

On a Linux VPS without a desktop display, install Xvfb so TikTok receives a headed browser while the human uses the remote link:

sudo apt-get install -y xvfb

Hosted HTTP API

Don't want to run the browser/runtime yourself? Use our hosted x402 API at https://tiktok.palmyr.ai/v1 with AgentCash, Agentic Market, or any x402 client. It is an HTTP API, not a remote MCP server.

npx agentcash@latest add https://tiktok.palmyr.ai
npx agentcash@latest discover https://tiktok.palmyr.ai
npx agentcash@latest check https://tiktok.palmyr.ai/v1/post

AgentCash handles the x402 challenge and USDC payment.

The paid hosted automation API is optional.

Local configuration

Setting

Default

Description

TIKTOK_MCP_DATA_DIR

~/.tiktok-mcp

Local profiles, job state, and analytics

TIKTOK_BROWSER_PATH

auto-detected

Chrome-family browser executable

TIKTOK_HEADLESS

headed on desktop

Set true for headless operation

TIKTOK_CONNECT_RELAY_URL

https://tiktok.palmyr.ai

Ephemeral QR hand-off origin

Development

git clone https://github.com/0xArtex/tiktok-mcp.git
cd tiktok-mcp
npm install
npm test

License

MIT

A
license - permissive license
B
quality
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    B
    quality
    Not graded
    maintenance
    A comprehensive MCP server that enables AI assistants to search, download, and analyze TikTok content while also performing active tasks like publishing videos and interacting with posts. It provides full automation capabilities for TikTok through browser session management and anti-detection features.
    12
    2
  • F
    license
    B
    quality
    C
    maintenance
    MCP server for TikTok that enables searching videos, users, hashtags, and fetching trending content, user profiles, and video details via official API or public scraping.
    8
  • A
    license
    A
    quality
    C
    maintenance
    MCP server for QPost that lets AI agents schedule and publish video/image posts to YouTube, TikTok, and Instagram via QPost's REST API.
    7
    68
    MIT

View all related MCP servers

Related MCP Connectors

  • MCP server for QPost — lets AI agents publish video and image posts to YouTube, TikTok, Instagram.

  • Connect any AI agent to 11+ social platforms: schedule, publish & track posts via hosted MCP.

  • Managed LinkedIn MCP server for AI agents: search, connect, message and enrich on accounts you own.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/0xArtex/tiktok-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server