MetorialDocs

Set up TikTok in Metorial for Claude, ChatGPT and Cursor

Share TikTok with your team in Claude, ChatGPT and Cursor through Metorial: OAuth sign-in, 13 tools (9 read-only).

To give your team TikTok in Claude, ChatGPT, Cursor and other AI clients, an admin shares the TikTok integration in a Metorial portal, and each person signs in to TikTok with their own account. Interact with TikTok's consumer and business API ecosystems. The integration has 13 tools, 9 read-only and 4 write, plus 2 triggers.

What you'll learn

  • How an admin shares TikTok in a portal and how each person connects
  • How to keep the 9 read-only tools and reject the other 4

Before you start

Sign-in methods

MethodTypeWhat a person provides
TikTok OAuth (Business) (default)OAuthSigns in to TikTok after entering appId and secret
TikTok OAuth (Consumer)OAuthSigns in to TikTok

The portal and metorial setup use TikTok OAuth (Business) unless someone picks another method.

TikTok OAuth (Business)

Before the sign-in, setup asks for:

  • appId: TikTok Business App ID
  • secret: TikTok Business App Secret

People sign in to TikTok and approve the permissions it lists.

TikTok OAuth (Consumer)

People sign in to TikTok and approve the scopes you allow. The integration can request:

ScopeNameWhat it allows
user.info.basicBasic User InfoRead basic profile info such as avatar, display name, and open ID.
user.info.profileUser ProfileRead extended profile info such as bio description, verification status, and username.
user.info.statsUser StatsRead follower count, following count, likes count, and video count.
video.listVideo ListRead the list of public videos posted by the user.
video.uploadVideo UploadUpload video content to TikTok on behalf of the user.
video.publishVideo PublishPublish video content to the user's TikTok profile.

Setup settings

Whichever method you pick, setup also asks for:

  • apiType (optional): Which TikTok API ecosystem to use. "consumer" for TikTok for Developers (login, content posting, video display). "business" for TikTok API for Business (advertising, campaign management). One of "consumer", "business".

Use your own TikTok OAuth app

With your own OAuth app, people see your company's name on the TikTok consent screen, and the client ID and secret belong to you.

Start the credentials in Metorial

In the dashboard, select Settings, then Organization Settings. Under Integrations and MCP, select Provider Auth, then Create Auth Credentials. Choose TikTok and copy the Redirect URI.

Register the app with TikTok

Create an OAuth app or client in TikTok and add the redirect URI from Metorial as its redirect or callback URL. The vendor documents this in OAuth documentation.

Finish in Metorial

Copy the app's client ID and client secret. Back in Metorial, enter a Name, the Client ID and the Client Secret, review Scopes, and select Create. Then pick these credentials for the TikTok integration.

Admin: share TikTok in a portal

In the dashboard

Open Shared Resources

Open Workforce, choose the portal, and select Shared Resources under Access.

Share a new integration

Select Share a Resource, then New Integration, and choose TikTok. Under Auth Method, keep TikTok OAuth (Business) or pick another. For how members connect, choose Each person connects, so everyone signs in to TikTok as themselves.

Limit the tools

Under Tool Filters, set the write and destructive groups to Reject if agents should only read from TikTok.

Choose who gets it

Add the access groups that should see TikTok. When a person asks for access from the portal, the request appears under Access Requests.

With the CLI

The CLI cannot create the per-user TikTok integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search tiktok

Employee: connect TikTok

In the portal

Open TikTok in the catalog

Sign in to your portal and open TikTok. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. A TikTok sign-in tab opens. Sign in and approve the permissions listed.

Confirm

The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.

With the CLI

metorial catalog search tiktok
metorial setup <catalog-item-id>

catalog search prints the catalog item ID. metorial setup uses TikTok OAuth (Business). To connect with TikTok OAuth (Consumer) instead, find its ID with metorial catalog get <catalog-item-id> and add --auth-method <auth-method-id>.

Add it to your AI client

metorial install adds your TikTok connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.

metorial list tiktok
metorial client list
metorial install <client-identifier> <integration-id>

For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.

Make it read-only

Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 9 read-only tools, such as get_ads and list_videos, and lose the 4 write tools, such as post_photo or post_video.

Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.

Check it worked

metorial list tiktok
metorial tools <integration-id>
metorial call <integration-id> get_creator_info -d '{}'

metorial tools lists the 13 tools, minus any you rejected. get_creator_info takes no input. It retrieves the authenticated creator's posting capabilities and constraints.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (9)

  • get_user_profile: Retrieve the authenticated TikTok user's profile information including display name, avatar, bio, verification status, follower/following counts, and video count.
  • get_ad_report: Pull advertising performance reports from TikTok Ads Manager. Needs advertiserId, dataLevel, dimensions, metrics, startDate and endDate.
  • get_ad_groups: Retrieve TikTok Ads ad groups for an advertiser. Needs advertiserId.
  • get_ads: Retrieve TikTok ads for an advertiser. Needs advertiserId.
  • list_videos: Retrieve a paginated list of the authenticated user's public TikTok videos, sorted by creation time (newest first).
  • get_campaigns: Retrieve TikTok Ads campaigns for an advertiser. Needs advertiserId.
  • query_videos: Look up specific TikTok videos by their IDs. Needs videoIds.
  • get_creator_info: Retrieve the authenticated creator's posting capabilities and constraints.
  • get_publish_status: Check the status of a previously initiated content post on TikTok. Needs publishId.

Write tools (4)

  • post_video: Initialize a video post to the authenticated user's TikTok profile. Needs privacyLevel and source.
  • manage_campaign: Create, update, or change the status of TikTok Ads campaigns. Needs action and advertiserId.
  • create_ad_group: Create a new ad group within a TikTok Ads campaign. Needs advertiserId, campaignId and adGroupName.
  • post_photo: Initialize a photo post to the authenticated user's TikTok profile by providing publicly accessible image URLs. Needs privacyLevel and photoImageUrls.

Triggers

TikTok has 2 triggers, which fire on events in TikTok:

  • business_webhook: Receives webhook notifications from TikTok API for Business.
  • consumer_webhook: Receives webhook notifications from TikTok for Developers.

Next steps