HasData

TikTok MCP Server

Connect your AI agents to HasData's TikTok MCP server. Scrape follower counts, video engagement, and comment threads in structured JSON over streamable HTTP.

https://mcp.hasdata.com/api/mcp?apis=tiktok
Transport
Streamable HTTP
Auth
OAuth or API key
Tools
4 TikTok tools
Price
10 credits / call
Get API Key Read the docs 1,000 free credits. No credit card required.
Data teams at
ClientsClients
Playground

See the TikTok MCP server in action

Select a sample prompt to inspect the tool it chooses and the JSON payload your agent receives.

TikTok · 4 tools Enter to send
How big is @nasa on TikTok?
tiktok_profile · 200 OK sample call
1,479,575 followers and 7,289,226 likes, off 39 videos.
Verified, English, and the account was created on 20 July 2026.
It follows 23 accounts. Bio reads "Making the seemingly impossible, possible.✨"
tiktok_profile { "handle": "@nasa" }
{
"url": "https://api.hasdata.com/scrape/tiktok/profile?handle=nasa",
"status": 200,
"json": { "profile": {
"id": "7664638705177150477", "username": "nasa", "nickname": "NASA",
"verified": true, "language": "en", "createTime": "2026-07-20T15:55:49.000Z",
"followers": 1479575, "follows": 23, "likes": 7289226, "videos": 39
} }
}
How big is @nasa on TikTok?
tiktok_profile · 200 OK sample call
1,479,575 followers and 7,289,226 likes, off 39 videos.
Verified, English, and the account was created on 20 July 2026.
It follows 23 accounts. Bio reads "Making the seemingly impossible, possible.✨"
tiktok_profile { "handle": "@nasa" }
{
"url": "https://api.hasdata.com/scrape/tiktok/profile?handle=nasa",
"status": 200,
"json": { "profile": {
"id": "7664638705177150477", "username": "nasa", "nickname": "NASA",
"verified": true, "language": "en", "createTime": "2026-07-20T15:55:49.000Z",
"followers": 1479575, "follows": 23, "likes": 7289226, "videos": 39
} }
}
What has @nasa posted on TikTok recently?
tiktok_posts · 200 OK sample call
Thirty-one videos on the first page. Three newest:
"When the President calls in the middle of your workday" · 1 m 32 s · 30 August
"We just launched a new telescope into space" · 27 s · 30 August
"Something big just landed on TikTok." · 25 s · 21 July, the first post on the account
Per-video like and view counts are not part of this response. The comment tool is where the engagement numbers live.
tiktok_posts { "handle": "@nasa" }
{
"url": "https://api.hasdata.com/scrape/tiktok/posts?handle=nasa",
"status": 200,
"json": {
"posts": [
{ "id": "7679847738871270670", "duration": 92,
"description": "When the President calls in the middle of your workday",
"createTime": "2026-08-30T15:32:00.000Z" }
],
"pagination": { "nextPageToken": "…" }
}
}
Who else is posting about space launches on TikTok?
tiktok_search · 200 OK sample call
Twenty videos, with hashtags already parsed out.
"Amazing launch of SpaceX Falcon Heavy Roman Space Telescope" · 2 m 38 s
#spacex #launch #falconheavy
"NASA just launched Hubble 2.0, the Nancy Grace Roman" · #space #astronomy #nasa #telescope
A 2022 clip filmed from a passenger flight also ranks · #spacex #falcon9 #capecanaveral
tiktok_search { "keyword": "space launch", "type": "video" }
{
"url": "https://api.hasdata.com/scrape/tiktok/search?keyword=space+launch&type=video",
"status": 200,
"json": { "videos": [
{ "id": "7679789244587445535", "duration": 158,
"description": "Amazing launch of SpaceX Falcon Heavy Roman Space Telescope‼️",
"hashtags": ["spacex", "launch", "falconheavy"] }
] }
}
What are people saying under @nasa's video about the President's call?
tiktok_comments · 200 OK sample call
587 comments in total, 27 on the first page.
"Didn't he cut 12 billion dollars in funding to NASA?" · 546 likes
"Well well well" · 27 likes · 4 replies
Likes and reply counts come per comment, and the reply count is the id you pass back to read the thread underneath.
tiktok_comments { "videoId": "7679847738871270670" }
{
"url": "https://api.hasdata.com/scrape/tiktok/comments?videoId=7679847738871270670",
"status": 200,
"json": {
"comments": [
{ "id": "7679863058638914335", "likes": 546, "replyCount": 0,
"text": "Didn't he cut 12 billion dollars in funding to NASA?",
"createTime": "2026-08-30T16:32:09.000Z" }
],
"pagination": { "count": 27, "total": 587, "hasMore": true, "nextPageToken": "30" }
}
}
Tools

The TikTok tools your agent can call

4 tools

Typed parameters, required flags, and structured JSON fields for each tool. Three of the four page with a nextPageToken, so an agent walks an account or a comment thread instead of taking one screenful.

+ hasdata_tiktok_profile_getTikTokProfile One public profile by handle 1 param 10 creditsTry
Parameters of hasdata_tiktok_profile_getTikTokProfile
ParameterTypeRequiredExample
handlestringrequired"@nasa"
response
  • id
  • username
  • nickname
  • biography
  • verified
  • followers
  • follows
  • likes
  • videos
+ hasdata_tiktok_posts_getTikTokPosts An account's videos, page by page 2 params 10 creditsTry
Parameters of hasdata_tiktok_posts_getTikTokPosts
ParameterTypeRequiredExample
handlestringrequired"@nasa"
nextPageTokenstringoptional"eyJjdXJzb3I…"
response
  • id
  • description
  • createTime
  • url
  • duration
  • coverUrl
  • playUrl
+ hasdata_tiktok_search_getTikTokSearch Keyword search for videos or users 3 params 10 creditsTry
Parameters of hasdata_tiktok_search_getTikTokSearch
ParameterTypeRequiredExample
keywordstringrequired"space launch"
typeenumoptional"video"
nextPageTokenstringoptional"eyJjdXJzb3I…"
response
  • id
  • description
  • createTime
  • duration
  • hashtags
  • mentions
  • url
+ hasdata_tiktok_comments_getTikTokComments Comments on a video, or replies to one 3 params 10 creditsTry
Parameters of hasdata_tiktok_comments_getTikTokComments
ParameterTypeRequiredExample
videoIdstringrequired"7401234567890123456"
commentIdstringoptional"7401299887766554433"
nextPageTokenstringoptional"eyJjdXJzb3I…"
response
  • id
  • text
  • createTime
  • likes
  • replyCount
  • author

Every call is 10 credits. Failed calls are not billed.

Connect

One endpoint, any MCP client

Config blocks for Claude Desktop, Cursor, VS Code, Windsurf and Claude Code, in each one’s native format. Authenticate with browser OAuth or an x-api-key header.

Claude Code

zsh — hasdata-tiktok
$claude mcp add --transport http hasdata-tiktok \
> https://mcp.hasdata.com/api/mcp?apis=tiktok \
> --header "x-api-key: YOUR_API_KEY"
· One line, no restart. Run /mcp to confirm 4 tools.
Check the tools are thereIn the session
/mcp
hasdata-tiktok · connected · 4 tools

Cursor

~/.cursor/mcp.json
{
"mcpServers": { "hasdata-tiktok": {
"url": "https://mcp.hasdata.com/api/mcp?apis=tiktok",
"headers": { "x-api-key": "YOUR_API_KEY" }
} }
}
· Add this entry to ~/.cursor/mcp.json. Servers already in the file stay as they are.
· Project-level config also works at .cursor/mcp.json
Check the tools are thereAfter saving the file
Settings → MCP
hasdata-tiktok · 4 tools enabled

Claude Desktop

Recommended · OAuth connector
1.Settings → Connectors → Add custom connector
2.Paste https://mcp.hasdata.com/api/mcp?apis=tiktok
3.Sign in with HasData
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": { "hasdata-tiktok": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://mcp.hasdata.com/api/mcp?apis=tiktok",
"--header", "x-api-key:YOUR_API_KEY"]
} }
}
· Add this entry to ~/Library/Application Support/Claude/claude_desktop_config.json. Servers already in the file stay as they are.
· The config file only takes stdio servers, so a static key rides the mcp-remote bridge. On Windows the file lives at %APPDATA%\Claude\claude_desktop_config.json.
Check the tools are thereReopen the app
Settings → Connectors
hasdata-tiktok · connected · 4 tools

VS Code / Copilot

.vscode/mcp.json
{
"servers": { "hasdata-tiktok": {
"type": "http",
"url": "https://mcp.hasdata.com/api/mcp?apis=tiktok",
"headers": { "x-api-key": "YOUR_API_KEY" }
} }
}
· Add this entry to .vscode/mcp.json. Servers already in the file stay as they are.
· Agent mode picks the server up on save.
Check the tools are thereAgent mode
Ctrl/⌘ + Shift + P → MCP: List Servers
hasdata-tiktok · running · 4 tools

Windsurf

~/.codeium/windsurf/mcp_config.json
{
"mcpServers": { "hasdata-tiktok": {
"serverUrl": "https://mcp.hasdata.com/api/mcp?apis=tiktok",
"headers": { "x-api-key": "YOUR_API_KEY" }
} }
}
· Add this entry to ~/.codeium/windsurf/mcp_config.json. Servers already in the file stay as they are.
· Windsurf reads serverUrl, not url. Header auth only.
Check the tools are thereIn Cascade
Cascade → MCP servers
hasdata-tiktok · 4 tools

Codex CLI

~/.codex/config.toml
[mcp_servers.hasdata-tiktok]
url = "https://mcp.hasdata.com/api/mcp?apis=tiktok"
env_http_headers = { "x-api-key" = "HASDATA_API_KEY" }
· Add this entry to ~/.codex/config.toml. Servers already in the file stay as they are.
· TOML, not JSON. Codex reads the key from the HASDATA_API_KEY environment variable, so export it in the shell that starts Codex.
Check the tools are thereIn the terminal
codex mcp list
hasdata-tiktok · 4 tools

Raw HTTP / curl

zsh — hasdata-tiktok
$curl -N https://mcp.hasdata.com/api/mcp?apis=tiktok \
> -H "x-api-key: YOUR_API_KEY" \
> -H "Content-Type: application/json" \
> -H "Accept: application/json, text/event-stream" \
> -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
· Fallback for any client not listed. Streamable HTTP wants both Accept types, and leaving one out returns 406.
Check the tools are thereCall it yourself
curl … tools/list
{ "tools": [ … 4 items ] }
Scope

TikTok plus whatever else you need

Name the services in the query string and the server exposes only their tools. Every one draws from the same key and the same balance.

TikTok 4 tools See the full MCP server →
https://mcp.hasdata.com/api/mcp?apis=tiktok,youtube,instagram
10tools in your server
Build vs Buy

Free on GitHub, paid in hours

Anyone can clone a free MCP to scrape TikTok. Whether that stays free depends on the shape of your project.

Scenario

A script I run once

Self-hosted from GitHubyour machine, your upkeep
$0/ mo, runs locally
+ 3–6 h onceof someone’s time
Setup (clone, wire, run)3–6 h once
Markup changesnot yet
Retries and concurrencynot needed
Proxy and hosting$0
Nothing to own. You get the answer and delete the folder.
mcp.hasdata.comFree tier
$0/ mo
+ 0 hof someone’s time
Setup one line
Parser upkeep included
Retries and concurrency included
~25 calls 250 of 1,000 credits
The free tier renews every month. No card.
leans self-hosted
Take the free repo
Nothing has to keep working tomorrow, so upkeep never appears. Both cost nothing, so take whichever is already in front of you.

A weekly report

Self-hosted from GitHubyour machine, your upkeep
$0–40/ mo
+ 2–4 h / moof someone’s time
Setup (proxy, hosting, wiring)3–6 h once
Markup changes2–4 h / mo
Retries and concurrency2–4 h once
Proxy and hosting$0–40 / mo
Someone looks at it when the numbers come back wrong, which is how you find out.
mcp.hasdata.comFree tier
$0/ mo
+ 0 hof someone’s time
Setup one line
Parser upkeep included
Retries and concurrency included
~100 calls a month 1,000 of 1,000 credits
Exactly the free tier, so a heavier month moves you to Startup.
dead even
Either works
The repo is free if you have somewhere to run it, ours is free up to the credit ceiling. The two to four hours a month decide it.

A pipeline in production

Self-hosted from GitHubyour machine, your upkeep
$40–120/ mo
+ 6–10 h / moof someone’s time
Setup (proxy, hosting, wiring)3–6 h once
Markup changes2–4 h / mo
Retries, concurrency, rate limits4–8 h once
Proxy and hosting$40–120 / mo
Someone owns this permanently, and it is never the top of their list.
mcp.hasdata.comStartup, 200K credits, 5 concurrent
$49/ mo
+ 0 hof someone’s time
Setup one line
Parser upkeep included
Retries and concurrency included
5,000 calls 50K of 200K credits
A quarter of the plan used, and the rest is headroom.
leans hosted
Use the hosted server
The proxy and hosting bill alone is in the range of the whole plan, and that is before anyone spends the six to ten hours.

A feature in my product

Self-hosted from GitHubyour machine, your upkeep
$300+/ mo
+ on-callof someone’s time
Setup (proxy, hosting, wiring)3–6 h once
Markup changes, plus on-call2–4 h / mo
Retries, concurrency, rate limitsongoing
Proxy and hosting$300+ / mo
The thing your customers touch depends on one volunteer's spare evening.
mcp.hasdata.comBasic, 1M credits, 15 concurrent
$99/ mo
+ 0 hof someone’s time
Setup one line
Parser upkeep included
Retries and concurrency included
50,000 calls 500K of 1M credits
Same endpoint at ten calls and at ten million. One invoice.
leans hosted
Use the hosted server
A third of the price, and nobody has to carry a pager for a dependency your customers touch.
Pricing

One balance, every interface

A flat monthly price against a known credit ceiling. Move up a plan when you outgrow it.

Free
$0 /mo
Free forever
100 tool calls / month
1,000 credits / month
1 concurrent request
Every MCP tool on every plan
Failed calls are not billed
One balance across MCP and REST
Community support
Start free
Startup
$49 /mo
$2.46 / 1k tool calls
20K tool calls / month
200K credits / month
5 concurrent requests
Every MCP tool on every plan
Failed calls are not billed
One balance across MCP and REST
Email support
Get started
Basic
Recommended
$99 /mo
$0.99 / 1k tool calls
100K tool calls / month
1M credits / month
15 concurrent requests
Every MCP tool on every plan
Failed calls are not billed
One balance across MCP and REST
Priority email support
Get started
Growth
$208 /mo
$0.69 / 1k tool calls
3M credits / month
50 concurrent requests
Every MCP tool on every plan
Failed calls are not billed
One balance across MCP and REST
Dedicated account manager
Get started
Monthly tool call volume
Free 100K 500K 2M
Best fit
Basic
tool calls / mo
100K
Concurrency
15
$ / 1k tool calls
$0.99
$99 /mo
Get Started
Enterprise
Custom price based on required volume

Past 20M credits a month, or terms the self-serve plans do not cover. We shape the contract around your workload.

Credits rollover
Unused credits carry into the next billing period.
Concurrency 2000+
Parallel request limits set to your peak load.
#1 request priority
Highest speed, always first in the queue.
Personal manager
A direct line to the founding team.
SSO
SAML single sign-on for the whole team.
SOC-2 compliance
Security review, DPA, and audit reports.
Talk to sales Quote within one business day
FAQ

Before you wire it in

Do I need a TikTok account or developer access?

No. The only credential is your HasData key. Every tool reads the public pages a signed-out visitor sees, so there is no developer programme to apply for.

How is this different from TikTok's own APIs?

The Research API is application-gated to approved researchers in eligible regions, and the Display API only reaches an account that has authorised you. Neither is a self-serve way to read public profiles and videos at large, which is what these four tools do.

How do I read a whole account rather than one page?

The posts tool returns a <code>nextPageToken</code>. Hand it back on the next call and you get the following page. Search and comments page the same way, so an agent can walk history without guessing an offset.

Can I get replies to a specific comment?

Yes. Pass that comment’s id as <code>commentId</code> and the comments tool returns its replies instead of the video’s top level.

How fresh is the data? Is anything cached?

Every tool call fetches the page at that moment, so play and like counts are the ones on screen right now. Nothing is served from a cache.

What about personal data?

A profile and a comment are personal data even when they are public. HasData reads publicly available pages only, and you are responsible for having a lawful basis for what you collect and store under GDPR, CCPA or the equivalent rules where you operate.

How many calls can run in parallel?

One on the free tier, five on Startup, fifteen on Basic, and fifty on Growth. The larger Growth volumes raise it to 200, 300 and 500.

What happens when I run out of credits?

Nothing is charged on top of the plan. Calls stop until the billing cycle renews.

Does it work with Claude Desktop, Cursor, VS Code and Claude Code?

Yes, all four, plus anything else that speaks MCP over streamable HTTP. Claude Desktop connects through OAuth, and the rest take the URL and an API key header.

Is HasData affiliated with TikTok?

No. HasData is an independent service and is not affiliated with, endorsed by, or sponsored by TikTok Ltd. TikTok is a trademark of its respective owner.