Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words

TikTok Agent Publisher

by davidmosiahversion 0.1.5i★ 3iRuns on your computerRepository ↗
Registry nameio.github.davidmosiah/tiktok-agent-publisher

How to install

What it does

Local-first TikTok Content Posting API for AI agents: OAuth checks, dry-run and live uploads.

  • Connects Runs on your computer
  • Account or key Needs TIKTOK_CLIENT_SECRET
  • Category Marketing & social media

Use together with

Skills that teach the AI this kind of work; they work alongside this one

scroll-world

A skill that turn any brand into a scrollable 3D world landing page

by oso95★ 11,0551 skills

Skill · How-to guide

social-auto-upload

自动化上传视频到社交媒体:抖音、小红书、视频号、tiktok、youtube、bilibili

by dreammis★ 16,657 (whole repo)4 skills

Skill · How-to guide

native-subtitle-quote-image

保留视频内嵌字幕,精确取帧并生成 3:4 社交长图的 Agent Skill

by chengyi-ai★ 2,8881 skills

Skill · How-to guide

Why it ranks here

Lists are ordered by a usage score (out of 100) built from these parts

Popularity7/80GitHub stars or weekly downloads: the larger counts 60, the smaller 20
Freshness12/12Full marks for a release or code change within 30 days
Still answering0/8The cloud endpoint answered at the last check
Usage score19/100

Quality: Passed 3/3 basic checks (shown, not used for ordering) · Momentum: No data yet (Used only on the Trending tab)

Install

Pick the AI app you use, then copy the settings.

Let your AI install it with one sentence

Please install TikTok Agent Publisher. Follow https://mcp.popnx.com/i/davidmosiah-tiktok-agent-publisher.md, show me the commands and wait for my OK before running them.

Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads

Passed 3/3 checks · Runs on your computer · ✓ Commands checked Nov 14, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude, with some setup first

You need a TikTok Agent Publisher key (create it on the maker’s site) · Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone

Let AI install it

Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server TikTok Agent Publisher for Claude on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "tiktok-agent-publisher": { "command": "npx", "args": [ "-y", "tiktok-agent-publisher" ], "env": { "TIKTOK_CLIENT_SECRET": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For TIKTOK_CLIENT_SECRET, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the TikTok Agent Publisher tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Sign up and create a TikTok Agent Publisher key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    Open the TikTok Agent Publisher site ↗

  3. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  4. Paste these settings and save the file

    {
      "mcpServers": {
        "tiktok-agent-publisher": {
          "command": "npx",
          "args": [
            "-y",
            "tiktok-agent-publisher"
          ],
          "env": {
            "TIKTOK_CLIENT_SECRET": "your-value"
          }
        }
      }
    }

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Quit Claude and open it again

  6. Try it

    Use TikTok Agent Publisher and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using TikTok Agent Publisher or shows a TikTok Agent Publisher tool in the answer, you are connected

2 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • TIKTOK_DRY_RUN Set to false only when the agent should perform live TikTok upload operations. Defaults to dry-run behavior.
  • TIKTOK_CLIENT_KEY TikTok developer app client key. Optional until OAuth or live upload flows are used.

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

ChatGPT cannot connect TikTok Agent Publisher yet

TikTok Agent Publisher runs on your computer, but ChatGPT can only connect servers that run on the web

What you can do instead

A · Use an app that can connect TikTok Agent Publisher

  • You need a TikTok Agent Publisher key (create it on the maker’s site) · Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • You need a TikTok Agent Publisher key (create it on the maker’s site) · Install Node.js on your computer first (one time)
  • You need a TikTok Agent Publisher key (create it on the maker’s site) · Install Node.js on your computer first (one time)
  • You need a TikTok Agent Publisher key (create it on the maker’s site) · Install Node.js on your computer first (one time)

B · Others in Marketing & social media that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code, with some setup first

You need a TikTok Agent Publisher key (create it on the maker’s site) · Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server TikTok Agent Publisher for Claude Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user tiktok-agent-publisher --env TIKTOK_CLIENT_SECRET=your-value -- npx -y tiktok-agent-publisher 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For TIKTOK_CLIENT_SECRET, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the TikTok Agent Publisher tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Sign up and create a TikTok Agent Publisher key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    Open the TikTok Agent Publisher site ↗

  3. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  4. Paste this command and press Enter

    claude mcp add --scope user tiktok-agent-publisher --env TIKTOK_CLIENT_SECRET=your-value -- npx -y tiktok-agent-publisher

    Replace “your-value” with your key before pressing Enter

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Type /mcp in Claude Code

    You should see TikTok Agent Publisher listed as connected

  6. Try it

    Use TikTok Agent Publisher and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using TikTok Agent Publisher or shows a TikTok Agent Publisher tool in the answer, you are connected

2 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • TIKTOK_DRY_RUN Set to false only when the agent should perform live TikTok upload operations. Defaults to dry-run behavior.
  • TIKTOK_CLIENT_KEY TikTok developer app client key. Optional until OAuth or live upload flows are used.

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor, with some setup first

You need a TikTok Agent Publisher key (create it on the maker’s site) · Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server TikTok Agent Publisher for Cursor on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "tiktok-agent-publisher": { "command": "npx", "args": [ "-y", "tiktok-agent-publisher" ], "env": { "TIKTOK_CLIENT_SECRET": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For TIKTOK_CLIENT_SECRET, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the TikTok Agent Publisher tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Sign up and create a TikTok Agent Publisher key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    Open the TikTok Agent Publisher site ↗

  3. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  4. Fill in your key

    In the TikTok Agent Publisher settings, TIKTOK_CLIENT_SECRET is empty; add your key and save

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Open the AI chat in Cursor in Agent mode

  6. Try it

    Use TikTok Agent Publisher and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using TikTok Agent Publisher or shows a TikTok Agent Publisher tool in the answer, you are connected

2 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • TIKTOK_DRY_RUN Set to false only when the agent should perform live TikTok upload operations. Defaults to dry-run behavior.
  • TIKTOK_CLIENT_KEY TikTok developer app client key. Optional until OAuth or live upload flows are used.

Descriptions are as written by the maker.

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code, with some setup first

You need a TikTok Agent Publisher key (create it on the maker’s site) · Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server TikTok Agent Publisher for VS Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "tiktok-agent-publisher": { "type": "stdio", "command": "npx", "args": [ "-y", "tiktok-agent-publisher" ], "env": { "TIKTOK_CLIENT_SECRET": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For TIKTOK_CLIENT_SECRET, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the TikTok Agent Publisher tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Sign up and create a TikTok Agent Publisher key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    Open the TikTok Agent Publisher site ↗

  3. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  4. Fill in your key

    In the TikTok Agent Publisher settings, TIKTOK_CLIENT_SECRET is empty; add your key and save

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Open the AI chat in VS Code in Agent mode

  6. Try it

    Use TikTok Agent Publisher and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using TikTok Agent Publisher or shows a TikTok Agent Publisher tool in the answer, you are connected

2 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • TIKTOK_DRY_RUN Set to false only when the agent should perform live TikTok upload operations. Defaults to dry-run behavior.
  • TIKTOK_CLIENT_KEY TikTok developer app client key. Optional until OAuth or live upload flows are used.

Descriptions are as written by the maker.

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use TikTok Agent Publisher💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

Claude Code

claude mcp add --scope user tiktok-agent-publisher --env TIKTOK_CLIENT_SECRET=your-value -- npx -y tiktok-agent-publisher

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "tiktok-agent-publisher": {
      "command": "npx",
      "args": [
        "-y",
        "tiktok-agent-publisher"
      ],
      "env": {
        "TIKTOK_CLIENT_SECRET": "your-value"
      }
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "tiktok-agent-publisher": {
      "command": "npx",
      "args": [
        "-y",
        "tiktok-agent-publisher"
      ],
      "env": {
        "TIKTOK_CLIENT_SECRET": "your-value"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "tiktok-agent-publisher": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "tiktok-agent-publisher"
      ],
      "env": {
        "TIKTOK_CLIENT_SECRET": "your-value"
      }
    }
  }
}

Values you fill in

  • TIKTOK_DRY_RUN env
    Set to false only when the agent should perform live TikTok upload operations. Defaults to dry-run behavior.
  • TIKTOK_CLIENT_KEY secret env
    TikTok developer app client key. Optional until OAuth or live upload flows are used.
  • TIKTOK_CLIENT_SECRET secret required env
    TikTok developer app client secret. Keep local and do not expose it to agents.

Descriptions are as written by the maker.

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Downloads per weeki
73/wk
Connection
Runs on your computer
Latest versioni
0.1.5
Published to registryi
May 30, 2026
Code last changedi
Nov 2, 2026
Maker
davidmosiah
Packages
npm: tiktok-agent-publisher
Website
github.com
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 19, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account davidmosiah, which owns the repo

  • ✓ Pass

    Still maintained

    Code last changed 17 days ago

  • ✓ Pass

    Has a licence

    Uses MIT

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Published vulnerabilities (OSV.dev)

No entries on OSV.dev for tiktok-agent-publisher@0.1.5

Checks only this package version, not every dependency · checked Nov 15, 2026

What we check → · JSON

Makers: ask for a re-check or report wrong info
For makers: add a badge to your README

If you made this, paste this code into your README. The badge links back to this page.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/davidmosiah-tiktok-agent-publisher.svg)](https://mcp.popnx.com/en/servers/davidmosiah-tiktok-agent-publisher)

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

User reviews

No reviews yet

Sign in to write a review

Compared with others in Marketing & social mediai

  • More stars than 93% of the other 4175 servers in this category
  • Published to the registry more recently than 8% of the other 4175 servers in this category
  • Basic checks equal to or better than 99% of the other 4175 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is TikTok Agent Publisher safe?

It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

You need to fill in: TIKTOK_CLIENT_SECRET

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed 17 days ago, and the latest version (0.1.5) reached the registry 6 months ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.

What can I use instead?

In the same category: Relaticle, ChatbotX, X (Twitter) MCP Server by Xquik, Betterlytics, BibiGPT YouTube Video Summarizer

Similar alternatives

Same category, other makers, commands already checked. Official ones first, then by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

ChatbotX

Omnichannel customer messaging, CRM contacts, flows, sequences, broadcasts, and AI automation.

by ChatbotXIOGrowing★ 1.1K Stars for the whole repoUpdated 13 days ago

Runs in the cloud✓ service owner · chatbotx.io

Betterlytics

Query your Betterlytics web analytics from AI agents: traffic, funnels, journeys, errors, uptime.

by betterlyticsGrowing★ 196Updated 4 months ago

Runs in the cloud✓ service owner · betterlytics.io
Compared with similar ones
This one
TikTok Agent Publisher
RelaticleChatbotXX (Twitter) MCP Server by XquikBetterlyticsBibiGPT YouTube Video Summarizer
Runs whereInstalls on your computerRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to install
Needs a keyYesNoNoNoYesNo
Add with + in ClaudeNoNoNoNoNoNo
Basic checks3/34/44/44/44/44/4
LicenseMITAGPL-3.0NOASSERTIONMITAGPL-3.0MIT
PriceNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registry

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

TikTok Agent Publisher

Agent-first TikTok Content Posting API CLI + MCP. Dry-run safe, OAuth readiness checks, structured output for any agent runtime.

⭐ If this agent-first tool helps your workflow, please star the repo. Stars make this tooling easier for other builders to discover and help Delx keep shipping open infrastructure.

🧱 Part of the Delx agent stack — 15 open-source MCP servers across body, reach and coordination.


Local-first TikTok Content Posting API tooling for AI agents. It gives Codex, Claude, Cursor, Hermes, OpenClaw and other MCP clients a safe way to check readiness, build OAuth URLs, dry-run publish flows and upload TikTok videos only when live mode is explicitly enabled.

Use it when an agent needs to publish or inspect TikTok content without browser automation, hidden state or token leakage.

Why It Exists

Most social publishing scripts are built for humans at a terminal. Agents need a different contract:

  • a manifest that explains install/runtime rules
  • a connection status tool before write operations
  • privacy boundaries that never return token values
  • dry-run by default
  • structured JSON outputs for planning, retries and audit trails

This repo packages that contract around TikTok's official Content Posting API.

Install

npm install -g tiktok-agent-publisher

Or run without installing:

npm exec --yes --package=tiktok-agent-publisher -- tiktok-agent-publisher doctor

First Post (Dry-Run) Walkthrough

No TikTok credentials are required to try this. With no .env, dry-run is on by default, so every command below returns structured JSON without touching the live API. This is the exact sequence an agent should follow before its first real post. The outputs are real CLI runs, lightly trimmed.

1. Check readiness. doctor reports mode and what is still missing — never any token values.

$ tiktok-agent-publisher doctor

{ "ok": true, "dry_run": true, "configured": { "client_key": false, "client_secret": false, "access_token": false, "refresh_token": false, "public_media_base_url": false, "supabase_storage": false }, "missing": [ "TIKTOK_CLIENT_KEY", "TIKTOK_CLIENT_SECRET", "TIKTOK_ACCESS_TOKEN", "TIKTOK_REFRESH_TOKEN" ], "ready_for_live_publish": false, "ready_for_direct_video_upload": false, "next_steps": [ "Current mode is dry-run. Use dry-run to validate agent workflow before live posting." ] }

2. Confirm the privacy boundaries. privacy-audit states what stays local and what is sent to TikTok, so the agent can reason about the contract before any write.

$ tiktok-agent-publisher privacy-audit

{ "project": "tiktok-agent-publisher", "secrets_returned_to_agent": false, "token_storage": "Environment variables or local .env with user-only file permissions; tokens are never returned by tools.", "safety_rules": [ "Dry-run is the default.", "Only post content the user owns or has permission to publish.", "Use explicit confirmation before live direct posting." ] }

3. Build the publish payload (dry-run). This validates the job shape and caption without uploading anything. result.platformPostId is a synthetic dryrun_* id and raw.dryRun is true, so you can wire up retries and audit logging safely.

$ tiktok-agent-publisher publish-video \

--video ./short.mp4 \ --caption "First agent post — testing the dry-run flow" \ --title "Hello from an agent" { "ok": true, "dry_run": true, "job": { "id": "tiktok_1780082349025", "platform": "tiktok", "status": "queued", "caption": "First agent post — testing the dry-run flow", "mediaPaths": ["./short.mp4"], "metadata": { "title": "Hello from an agent" } }, "result": { "provider": "tiktok_official", "platformPostId": "dryrun_1780082349025", "raw": { "dryRun": true, "jobId": "tiktok_1780082349025" } } }

4. Poll status (dry-run). publish-status returns a DRY_RUN status so the polling loop can be exercised end to end.

$ tiktok-agent-publisher publish-status --publish-id dryrun_1780082349025

{ "dryRun": true, "publishId": "dryrun_1780082349025", "status": "DRY_RUN" }

5. List recent videos (dry-run). Returns an empty, well-formed list — the same shape the live API returns, so post-publish confirmation code works unchanged.

$ tiktok-agent-publisher list-videos --max-count 5

{ "dryRun": true, "videos": [], "cursor": null, "has_more": false }

Going live. Fill in TIKTOK_CLIENT_KEY / TIKTOK_CLIENT_SECRET (and complete OAuth — see auth-url), confirm doctor reports ready_for_live_publish: true, then set TIKTOK_DRY_RUN=false. The same five commands then operate against the real Content Posting API.

CLI

tiktok-agent-publisher manifest --client codex

tiktok-agent-publisher doctor tiktok-agent-publisher privacy-audit tiktok-agent-publisher auth-url --redirect-uri http://localhost:8787/callback tiktok-agent-publisher publish-video --video ./short.mp4 --caption "Launch copy" tiktok-agent-publisher publish-status --publish-id tiktok-agent-publisher list-videos --max-count 10

Dry-run is enabled by default. Set TIKTOK_DRY_RUN=false only after doctor is clean and you are ready for live API calls.

MCP

Stdio:

tiktok-agent-mcp

HTTP (v2 stateless)

Default is stdio. Optional Streamable HTTP — no session id, JSON responses, loopback only:

npx -y -p tiktok-agent-publisher tiktok-agent-mcp --http

GET http://127.0.0.1:3031/health

POST http://127.0.0.1:3031/mcp (sessionless)

Env: TIKTOK_MCP_HOST, TIKTOK_MCP_PORT, TIKTOK_MCP_TRANSPORT=http.

Hermes-style config:

mcp_servers:

tiktok: command: npx args: ["-y", "tiktok-agent-publisher"] sampling: enabled: false

Recommended first calls:

  1. tiktok_connection_status
  2. tiktok_privacy_audit
  3. tiktok_publish_video

Agent Surfaces

ToolPurpose
tiktok_agent_manifestInstall/runtime guidance for Codex, Claude, Cursor, Hermes and OpenClaw
tiktok_connection_statusDry-run, OAuth and media-hosting readiness without token values
tiktok_privacy_auditLocal file, token and live-publish boundaries
tiktok_publish_videoDry-run or live video publish flow
tiktok_publish_statusPublish-status polling
tiktok_list_videosRecent video list for post-publish checks

Copy-Paste Agent Prompt

Use tiktok-agent-publisher. First call tiktok_connection_status and tiktok_privacy_audit.

If dry-run is enabled, build the publish payload only. Do not request or print token values.

Configuration

Copy .env.example to .env and fill only the values you need. Do not commit .env, token files or .agent-data/.

For video inbox uploads, a local file can be uploaded directly through TikTok's upload URL. Photo and pull-from-url workflows can use Supabase Storage or another public media host.

Safety Model

  • Tokens are read from environment or local .env; tool responses never include token values.
  • Live publishing is disabled unless TIKTOK_DRY_RUN=false.
  • OAuth PKCE verifier is persisted locally in .agent-data/ and not returned in MCP output.
  • The package uses TikTok's official API surfaces; it does not automate a browser session.

Development

npm install

npm test npm run check


📧 Contact & Support

  • 📨 support@delx.ai — general questions, integration help, partnerships
  • 🐛 Bug reports / feature requests — GitHub Issues
  • 🐦 Updates — @delx369 on X
  • 🌐 Site — wellness.delx.ai