Connect PrimaryAPI’s MCP server and your agent can search TikTok, read profiles, videos and comments, follow hashtags and trends, and pull transcripts, all with one key.
Server URL
claude mcp add --transport http primaryapi \
https://api.primaryapi.com/mcp \
--header "Authorization: Bearer $PRIMARYAPI_API_KEY"Run it in a terminal. Your shell fills in the key from the environment.
Ask your agent
Search TikTok for videos about home espresso posted this month and rank them by likes.
Pull the comments on this TikTok and tell me the questions people ask most: <video URL>
Get the transcript of this TikTok and rewrite it as a product description: <video URL>
Which hashtags are trending on TikTok in the US, and what are the latest videos under the top one?
Find the best performing TikTok ads for running shoes and describe how they open.
TikTok APIs
Your agent runs each one with run_api and its name. Prices are in credits, from 1 credit per call, and a call that fails costs nothing.
TikTok is a trademark of its owner. PrimaryAPI is not affiliated with TikTok.
How it works
Connected to the server, the agent lists the TikTok APIs or searches for what it needs, reads the chosen API’s input schema, and runs it with your key. You set the key’s spend limit, so it can only spend what you allow.
What an MCP server is, and every tool it has · TikTok in the API reference
// Find every TikTok API. No key needed.
{
"name": "list_apis",
"arguments": {
"platform": "tiktok"
}
}
// Run one with your key.
{
"name": "run_api",
"arguments": {
"sku": "tiktok.search_keyword",
"input": {
"query": "dogs",
"sortBy": "relevance",
"datePosted": "all-time"
}
}
}Yes. It can search videos by keyword, sorted by relevance, likes or date and limited to a posting window, and it can search for accounts and hashtags too.
Yes. It can read the captions TikTok already has for a public video, or transcribe the speech of a video that has none, both as text with timed segments.
Yes. TikTok Shop products, reviews, stores and creator showcases have their own APIs, and the same MCP server and key reach them.
No. PrimaryAPI runs this MCP server and is not affiliated with TikTok. It gives your agent public TikTok data through PrimaryAPI’s APIs, next to every other platform in the catalog.
No. Your agent uses one PrimaryAPI key for every TikTok API on this page and for the rest of the catalog. There is no TikTok app to register.
Connecting and browsing are free. Each TikTok API above has its own price in credits, and you only pay when data comes back.
Create an account, make a key with a spend limit, and add one URL to your MCP client.