A TikTok MCP server for your AI assistant
SocialHolmes serves public TikTok data - creator profiles, video feeds, single videos, comments, replies, followers, search, sounds and hashtags - to any MCP client over HTTP at https://api.socialholmes.com/mcp. It is billed per result at $0.125 per 1,000.
What you get
Every row comes back as structured JSON. These are the fields on a row, taken from the endpoint's recorded example response in the reference. Every field we collect is in the row itself, including the extra fields the platform sends, so a live row can carry more than the recorded example.
TikTok profile — one profile per row
id username url full_name biography is_verified is_private follower_count following_count media_count like_count digg_count profile_pic_url sec_uid region video_count
TikTok posts — one video per row
id url type caption taken_at duration region play_count like_count comment_count share_count save_count download_count cover_url media_urls hashtags music is_pinned is_ad author origin_cover play
TikTok comments — one comment per row
id text created_at like_count reply_count video_id language author
TikTok endpoints the assistant can call
Through the scrape tool an assistant can reach TikTok profile, posts, video, comments, replies, hashtag, search, search_users, search_hashtags, sound, sound_videos, followers, following, liked, reposts and stories. The list_platforms tool shows the exact endpoints and parameters your account can use, so the assistant does not have to guess.
Paged endpoints take a limit, which is both the number of rows you want and the most the run can bill. The most you can ask for in one run is 10,000.
What this is good for
Trend and hashtag work is the common one. An assistant can run the hashtag endpoint for a tag, read play, like, comment, share and save counts per video, and group them in a table or chart. The search_hashtags endpoint finds related tags along with their view counts.
Comment analysis is the second. Ask for the comments on a video, then for replies to a particular comment, and have the assistant cluster questions, complaints or repeated claims. Report only what the rows contain, which is also what the server's own instructions tell the model to do.
Limits worth knowing
There is no creator-discovery tool for TikTok. find_creators answers for Instagram and YouTube only; for TikTok, use the search_users endpoint, which matches a name or handle fragment.
Everything is public data. Nothing private, nothing behind a follow request, and no credentials of yours are involved. Runs are read at the moment you ask rather than served from a stored copy, which is why you get a run id back rather than the data in the same breath.
Example request
Your assistant makes calls like this one through the scrape tool. You can make the same call yourself over REST with the same key. This one fetches a creator's video feed.
The call returns a run id straight away; poll GET /api/public/v1/runs/:id until it succeeds, then read the rows from GET /api/public/v1/runs/:id/results. Reading results again does not cost anything more.
curl -X POST https://api.socialholmes.com/api/public/v1/scrape/tiktok/posts \
-H "Authorization: Bearer $SOCIALHOLMES_KEY" \
-H "Content-Type: application/json" \
-d '{"parameters": {"username": "khaby.lame"}, "limit": 25}'
import os
import requests
run = requests.post(
"https://api.socialholmes.com/api/public/v1/scrape/tiktok/posts",
headers={"Authorization": f"Bearer {os.environ['SOCIALHOLMES_KEY']}"},
json={"parameters": {"username": "khaby.lame"}, "limit": 25},
).json()
print(run["id"], run["status"])
const response = await fetch("https://api.socialholmes.com/api/public/v1/scrape/tiktok/posts", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.SOCIALHOLMES_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ parameters: { username: "khaby.lame" }, limit: 25 }),
})
const run = await response.json()
console.log(run.id, run.status)
require "net/http"
require "json"
response = Net::HTTP.post(
URI("https://api.socialholmes.com/api/public/v1/scrape/tiktok/posts"),
{ parameters: { username: "khaby.lame" }, limit: 25 }.to_json,
"Authorization" => "Bearer #{ENV.fetch('SOCIALHOLMES_KEY')}",
"Content-Type" => "application/json"
)
run = JSON.parse(response.body)
puts run["id"], run["status"]
<?php
$ch = curl_init("https://api.socialholmes.com/api/public/v1/scrape/tiktok/posts");
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer " . getenv("SOCIALHOLMES_KEY"),
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode(["parameters" => ["username" => "khaby.lame"], "limit" => 25]),
]);
$run = json_decode(curl_exec($ch), true);
echo $run["id"], " ", $run["status"];
package main
import (
"bytes"
"encoding/json"
"fmt"
"net/http"
"os"
)
func main() {
body, _ := json.Marshal(map[string]any{
"parameters": map[string]string{"username": "khaby.lame"},
"limit": 25,
})
req, _ := http.NewRequest("POST", "https://api.socialholmes.com/api/public/v1/scrape/tiktok/posts", bytes.NewReader(body))
req.Header.Set("Authorization", "Bearer "+os.Getenv("SOCIALHOLMES_KEY"))
req.Header.Set("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
var run map[string]any
json.NewDecoder(res.Body).Decode(&run)
fmt.Println(run["id"], run["status"])
}
Use it from an AI assistant over MCP
The same account and API key work as an MCP server at https://api.socialholmes.com/mcp, over HTTP with no package to install. In Claude Code:
claude mcp add --transport http socialholmes https://api.socialholmes.com/mcp \
--header "Authorization: Bearer sh_<your key>"
Cursor, Codex and Claude Desktop connect the same way; the MCP setup guide has the config for each. Then ask in plain language:
Pull the last 200 TikTok videos under #climatestrike and chart posting by week. Then get the comments on the most-viewed one.
Pricing
$0.125 per 1,000 results, billed per row delivered. There is no subscription, and a run that returns nothing costs nothing. See the full pricing.
Questions people ask
What is the TikTok MCP server URL?
Does it work with Claude, Cursor and Codex?
Do I need a TikTok account or developer app?
Can I use the same key for the REST API?
Can it find TikTok creators by topic?
What does it cost?
Reference and related pages
- TikTok hashtag in the API reference
- TikTok search hashtags in the API reference
- TikTok sound videos in the API reference
- TikTok followers in the API reference
- TikTok profile in the API reference
- TikTok posts in the API reference
- TikTok comments in the API reference
- TikTok data on SocialHolmes
- MCP setup guide
Try it on your own targets
Get an API key, run a small limit first, and pay only for the rows you get back.