tiktok-mcp
TikTok MCP server by HasData: public profiles, videos, comments and keyword search as JSON, over streamable HTTP.
Install / Use
claude mcp add HasData -- npx -y github:HasData/tiktok-mcpIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
AI & Machine LearningSupported Platforms
Our assessment of tiktok-mcp
tiktok-mcp scores 81/100 on our quality scale, 736th of 965 AI & Machine Learning skills we index.
Its MCP Server is 24 KB long, well organised into 30 sections with 16 code examples: a thorough specification that gives an agent plenty to work with.
It has 10 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated yesterday, so tiktok-mcp is actively maintained.
- Our last check on 2026-09-25 found the source still online.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 97/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-09-24. Automated pattern scan on 2026-09-24. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
tiktok-mcp compared with similar skills
All 4 of these similar skills score higher than tiktok-mcp; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| tiktok-mcp (this skill)by HasData | 81 | 10 | 1d ago | MCP Server |
| claude-memby thedotmack | 100 | 100.6k | today | CLAUDE.md |
| Agent-Reachby Panniantong | 100 | 97.2k | 6d ago | CLAUDE.md |
| Understand-Anythingby Egonex-AI | 100 | 86.2k | 2d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 75.3k | today | CLAUDE.md |
Frequently asked questions
- How do I install tiktok-mcp?
- Run
claude mcp add HasData -- npx -y github:HasData/tiktok-mcp. The install tabs above show the steps for each supported agent. - Which AI agents does tiktok-mcp work with?
- It is written for Claude Code, Claude Desktop, Cursor and Windsurf, as a MCP Server file. Other agents that read the same format can often use it too.
- Is tiktok-mcp safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It is MIT-licensed and scores 97/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is tiktok-mcp still maintained?
- The repository was last updated yesterday, so tiktok-mcp is actively maintained.
Skill content
View source on GitHubTikTok MCP Server
<!-- mcp-name: com.hasdata/tiktok -->A hosted Model Context Protocol (MCP) server that gives Claude, Cursor, Windsurf and any other MCP client four read-only TikTok tools. Look up a public profile, walk an account's videos, read the comments on a video, and search TikTok for videos or creators, all as structured JSON, with no TikTok developer account and no OAuth.
It reads public data that a signed-out visitor can see. It does not sign in, post, or act as an account.
1,000 free credits every month, no card required, which is 100 TikTok calls.
https://mcp.hasdata.com/mcp?apis=tiktok
Contents
- What you need
- Quick start
- Example prompts
- Tools
- Errors and failure paths
- Pricing, free tier and limits
- Tool selection
- How it compares
- FAQ
- HasData links
- Development
- Contributing
- License
What you need
An MCP client and a HasData API key from the dashboard, free to create. This is a remote server, so the simplest path is a URL and an x-api-key header, with no container to run and no TikTok developer account anywhere in the flow. A client that only speaks stdio reaches it through a thin launcher, published as @hasdata/tiktok-mcp on npm and hasdata-tiktok-mcp on PyPI, shown below.
Quick start
The server URL is the same for every client. We run it hands-on in Claude Code and Claude Desktop. The other blocks follow each client's own documented format for a remote server.
| Field | Value |
| :--- | :--- |
| URL | https://mcp.hasdata.com/mcp?apis=tiktok |
| Transport | HTTP, streamable |
| Auth header | x-api-key: HASDATA_API_KEY |
Clients with OAuth support can add the same URL as a connector and sign in without putting a key in a config file.
<details> <summary><b>Claude Code</b></summary>claude mcp add --transport http tiktok "https://mcp.hasdata.com/mcp?apis=tiktok" \
--header "x-api-key: HASDATA_API_KEY"
</details>
<details>
<summary><b>Claude Desktop</b></summary>
Settings, then Connectors, then Add custom connector, then paste https://mcp.hasdata.com/mcp?apis=tiktok and sign in.
For the config-file route, Claude Desktop loads only local (stdio) servers, so it reaches a remote server through a stdio launcher. The @hasdata/tiktok-mcp package is that launcher, and it reads the key from the environment. Add this to claude_desktop_config.json:
{
"mcpServers": {
"tiktok": {
"command": "npx",
"args": ["-y", "@hasdata/tiktok-mcp"],
"env": { "HASDATA_API_KEY": "YOUR_KEY" }
}
}
}
Python instead of Node? Swap the launcher for the PyPI package, which uvx runs without a manual install:
{
"mcpServers": {
"tiktok": {
"command": "uvx",
"args": ["hasdata-tiktok-mcp"],
"env": { "HASDATA_API_KEY": "YOUR_KEY" }
}
}
}
</details>
<details>
<summary><b>Cursor</b></summary>
~/.cursor/mcp.json for every project, or .cursor/mcp.json for one:
{
"mcpServers": {
"tiktok": {
"url": "https://mcp.hasdata.com/mcp?apis=tiktok",
"headers": { "x-api-key": "HASDATA_API_KEY" }
}
}
}
</details>
<details>
<summary><b>Windsurf</b></summary>
~/.codeium/windsurf/mcp_config.json. Windsurf calls the field serverUrl, not url:
{
"mcpServers": {
"tiktok": {
"serverUrl": "https://mcp.hasdata.com/mcp?apis=tiktok",
"headers": { "x-api-key": "HASDATA_API_KEY" }
}
}
}
</details>
<details>
<summary><b>Cline</b></summary>
{
"mcpServers": {
"tiktok": {
"url": "https://mcp.hasdata.com/mcp?apis=tiktok",
"type": "streamableHttp",
"headers": { "x-api-key": "HASDATA_API_KEY" },
"disabled": false
}
}
}
</details>
<details>
<summary><b>VS Code</b></summary>
.vscode/mcp.json in the workspace:
{
"servers": {
"tiktok": {
"type": "http",
"url": "https://mcp.hasdata.com/mcp?apis=tiktok",
"headers": { "x-api-key": "HASDATA_API_KEY" }
}
}
}
</details>
<details>
<summary><b>Codex CLI</b></summary>
~/.codex/config.toml:
[mcp_servers.tiktok]
url = "https://mcp.hasdata.com/mcp?apis=tiktok"
[mcp_servers.tiktok.headers]
"x-api-key" = "HASDATA_API_KEY"
</details>
<details>
<summary><b>Gemini CLI</b></summary>
~/.gemini/settings.json:
{
"mcpServers": {
"tiktok": {
"httpUrl": "https://mcp.hasdata.com/mcp?apis=tiktok",
"headers": { "x-api-key": "HASDATA_API_KEY" }
}
}
}
</details>
Example prompts
Prompts, not code. Paste one in and the agent picks the tool itself. Each is annotated with the calls it takes, because in MCP the model decides how many calls to make and every successful call costs 10 credits.
Take @mrbeast. Pull the profile, then walk the first two pages of videos and give me the median play count across them.
Three calls, 30 credits. The profile is one call, and each page of videos is another.
Search TikTok for creators around "cold brew coffee" and rank the top ten by followers, each with their bio.
One call, 10 credits. A user search already carries follower count and bio, so no per-profile follow-up is needed.
Here is a video URL. Read its top comments and tell me the overall sentiment and the three most-liked replies.
One call, 10 credits. The numeric id in the URL is all the comments tool needs.
Take that same video, then expand the replies under its most-liked comment.
Two calls, 20 credits. Top-level comments first, then a second call with that comment's id for its replies.
Search "asmr" videos, then pull the author profile of the three with the highest play counts.
Four calls, 40 credits. One search, then one profile each. Every author in a search result carries a link straight to its profile endpoint, so the agent never has to guess a handle.
Paging costs a call each time. A creator audit that reads a profile then walks five pages of videos is six calls and 60 credits. The free tier goes further on narrow questions than on open-ended crawls.
Tools
| Tool | What it returns |
| --- | --- |
| hasdata_tiktok_comments_getTikTokComments | Fetches the comments on a public TikTok video by its numeric video id, or the replies to a specific comment when commentId is given. 10 credits a call |
| hasdata_tiktok_posts_getTikTokPosts | A page of ~35 videos plus a nextPageToken; pass that token back to walk the account history one page at a time. 10 credits a call |
| hasdata_tiktok_profile_getTikTokProfile | Fetches a public TikTok profile by username (handle) and returns nickname, biography, bio link, avatar URLs, verified/private flags, account creation time, and…. 10 credits a call |
| hasdata_tiktok_search_getTikTokSearch | Searches TikTok by keyword and returns either videos (with description, hashtags, mentions, like/comment/share/play counts, cover and playable video URLs, music, and…. 10 credits a call |
Four tools, all read-only. Samples below are trimmed from real calls, and the numbers in them move as TikTok updates. Read them as shapes. Each tool name links to its endpoint reference, which carries the full field list.
The samples are the payload, not the whole response. A tools/call result carries one text block, and that text is itself JSON holding url, status, text and json, with the scraped data under json. From a raw JSON-RPC response the path is result.content[0].text, parsed, then .json. A chat client unwraps that for you and code talking to the endpoint directly does not.
Handles, video ids and comment ids chain together. A profile links to its posts, every post carries its own video id for the comments tool, and every author in comments and search results carries a hasdataLink to its profile and a hasdataPostsLink to its videos. An agent walks from a keyword to a creator to a video to its comments without ever constructing a URL.
Get TikTok profile
hasdata_tiktok_profile_getTikTokProfile
One public account by handle.
| Parameter | Type | Required | Notes |
| :--- | :--- | :--- | :--- |
| handle | string | yes | The username, with or without the leading @ |
Returns username, nickname, biography, bioLink, verified, language, createTime, the avatar URLs, and the followers, follows, likes, videos and friends counts as integers. The counts are already parsed, so followers > 1000000 compares numbers, not display strings.
A handle that does not exist still comes back with
requestMetadata.statusset took, theprofileobject simply absent. Check that the object is there before readingusernameor any other field, or an agent doingprofile.usernamethrows on nothing.
{
"username": "mrbeast",
"nickname": "MrBeast",
"verified": true,
"biography": "Checkout My New Book!👇",
"bioLink": "http://themostdangerousgames.com",
"createTime": "2018-10-20T19:26:16.000Z",
"followers": 138387571,
"follows": 354,
"likes": 1427086888,
"videos": 466,
"friends": 285
}
Get TikTok posts
hasdata_tiktok_posts_getTikTokPosts
A page of an account's videos by handle, newest first.
| Parameter | Type | Required | Notes |
| :--- | :--- | :--- | :--- |
| handle | string | yes | The username, with or without the leading @ |
| nextPageToken | string | | The pagination.nextPageToken from the previous response. Omit it for the first page |
One call returns about thirty videos plus pagination, which carries hasMore and the nextPageToken you feed back to walk the account history one page at a time. Each video carries id, description, url, duration, the cover and playable video URLs, music, and the likes, comments, shares, plays, collects and reposts counts as integers.
hashtagsandmentionsare present only on videos that carry them, and how often that happens follows the account rather than the endpoint. Sampled feeds ranged from no tagged posts at all to every post tagged. Test for the key before you read it, and read an absent array as an account that does not tag.
{
"id": "7677375185028271391",
"description": "would you take the car or nah?",
"url": "https://www.tiktok.com/@mrbeast/video/7677375185028271391",
"createTime": "2026-08-23T23:36:59.000Z",
"duration": 41,
"likes": 129500,
"comments": 6670,
"shares": 2033,
"plays": 1100000,
"collects": 4986,
"music": { "title": "original sound", "authorName": "MrBeast",
Truncated for display — read the full file on GitHub.
Related Skills
claude-mem
100.6kPersistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Agent-Reach
97.2kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
Understand-Anything
86.2kGraphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.
headroom
75.3kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
