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
- A portal with at least one access group
- An account with TikTok for each person who connects
- For the CLI steps: the Metorial CLI, signed in to your portal
Sign-in methods
| Method | Type | What a person provides |
|---|---|---|
| TikTok OAuth (Business) (default) | OAuth | Signs in to TikTok after entering appId and secret |
| TikTok OAuth (Consumer) | OAuth | Signs 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 IDsecret: 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:
| Scope | Name | What it allows |
|---|---|---|
user.info.basic | Basic User Info | Read basic profile info such as avatar, display name, and open ID. |
user.info.profile | User Profile | Read extended profile info such as bio description, verification status, and username. |
user.info.stats | User Stats | Read follower count, following count, likes count, and video count. |
video.list | Video List | Read the list of public videos posted by the user. |
video.upload | Video Upload | Upload video content to TikTok on behalf of the user. |
video.publish | Video Publish | Publish 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:
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
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.
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 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. NeedsadvertiserId,dataLevel,dimensions,metrics,startDateandendDate.get_ad_groups: Retrieve TikTok Ads ad groups for an advertiser. NeedsadvertiserId.get_ads: Retrieve TikTok ads for an advertiser. NeedsadvertiserId.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. NeedsadvertiserId.query_videos: Look up specific TikTok videos by their IDs. NeedsvideoIds.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. NeedspublishId.
Write tools (4)
post_video: Initialize a video post to the authenticated user's TikTok profile. NeedsprivacyLevelandsource.manage_campaign: Create, update, or change the status of TikTok Ads campaigns. NeedsactionandadvertiserId.create_ad_group: Create a new ad group within a TikTok Ads campaign. NeedsadvertiserId,campaignIdandadGroupName.post_photo: Initialize a photo post to the authenticated user's TikTok profile by providing publicly accessible image URLs. NeedsprivacyLevelandphotoImageUrls.
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
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use TikTok there
- Create custom OAuth credentials: the Provider Auth screens in more detail
- Tool permissions: tool filters and what employees see
- TikTok on metorial.com: the integration overview