HasData TikTok
概览
作者提供的说明(英文原文)
Public TikTok profiles, videos, comments and keyword search as JSON. No developer account.
PopNx MCP 的三大支柱
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
- 用户评价i暂无评价评价功能将在后续阶段与账户功能一起开放
- 我们的基础检查i3 项中通过 3 项依据公开信息检查;尚未扫描代码
- 使用情况i非常新↓ 91/周 · ★ –
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 电脑或云端
- 传输方式: stdio, Streamable HTTP
- 分类: 营销与社交媒体
- 你需要填写:HASDATA_API_KEY, x-api-key
安装
选择你使用的 AI 应用,然后复制设置。
安装之前
- 基础检查:3 项中通过 3 项
- 在作者的服务器上运行:你向它提出的内容会经过他们的服务器。
- 可以做 4 件事(工具) hasdata_tiktok_comments_getTikTokComments, hasdata_tiktok_posts_getTikTokPosts, hasdata_tiktok_profile_getTikTokProfile, hasdata_tiktok_search_getTikTokSearch
- 需要你自己填写:
HASDATA_API_KEY,x-api-key
标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
这个地址需要在请求的 header 中放入密钥,而添加连接器的菜单无法设置。请改用 Claude Code、Cursor 或 VS Code。
或者在你的电脑上运行
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"tiktok": {
"command": "npx",
"args": [
"-y",
"@hasdata/tiktok-mcp"
],
"env": {
"HASDATA_API_KEY": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add --transport http tiktok 'https://mcp.hasdata.com/mcp?apis=tiktok' --header 'x-api-key: your-value'或者在你的电脑上运行
claude mcp add tiktok --env HASDATA_API_KEY=your-value -- npx -y @hasdata/tiktok-mcp运行前请先填写空着的值。
或者自己复制设置
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"tiktok": {
"url": "https://mcp.hasdata.com/mcp?apis=tiktok",
"headers": {
"x-api-key": "your-value"
}
}
}
}或者在你的电脑上运行
或者自己复制设置
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"tiktok": {
"command": "npx",
"args": [
"-y",
"@hasdata/tiktok-mcp"
],
"env": {
"HASDATA_API_KEY": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
或者自己复制设置
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"tiktok": {
"type": "http",
"url": "https://mcp.hasdata.com/mcp?apis=tiktok",
"headers": {
"x-api-key": "your-value"
}
}
}
}或者在你的电脑上运行
或者自己复制设置
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"tiktok": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@hasdata/tiktok-mcp"
],
"env": {
"HASDATA_API_KEY": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个地址需要在请求的 header 中放入密钥,而添加连接器的菜单无法设置。请改用 Claude Code、Cursor 或 VS Code。
你的选择通过 Cookie 保存在这台设备上,无需账户。
需要你填写的值
- HasData API key, created at app.hasdata.com. 1,000 free credits every month, no card.
x-api-key机密 必填 HTTP headerHasData API key, created at app.hasdata.com. 1,000 free credits every month, no card.
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它能做什么
工具名称和描述与服务器在 2026年11月9日 报告的完全一致。这些内容由作者撰写,不是我们写的;我们以纯文本形式显示。
hasdata_tiktok_comments_getTikTokCommentsGet TikTok Comments Fetches the comments on a public TikTok video by its numeric video id, or the replies to a specific comment when commentId is given. Each comment returns text, like count, timestamp, reply count, and author (username, nickname, avatar, plus hasdataLink to the
hasdata_tiktok_posts_getTikTokPostsGet TikTok Posts Fetches a page of videos for a public TikTok account by username (handle) and returns each video with description, hashtags, mentions, like/comment/share/play/collect counts, cover and playable video URLs, music, duration, and timestamp. Returns a page of ~30 vid
hasdata_tiktok_profile_getTikTokProfileGet TikTok Profile Fetches a public TikTok profile by username (handle) and returns nickname, biography, bio link, avatar URLs, verified/private flags, account creation time, and followers, follows, likes, videos, and friends counts. Use to enrich CRM/lead records, verify influen
hasdata_tiktok_search_getTikTokSearchSearch TikTok Searches TikTok by keyword and returns either videos (with description, hashtags, mentions, like/comment/share/play counts, cover and playable video URLs, music, and author) or users (nickname, bio, avatar, verified flag, follower count). Each author and each user c
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月9日
- ✓ 通过
作者与仓库一致
注册名称已通过域名 hasdata.com 验证(注册中心会核实域名所有权)
- … 尚未检查
仍在维护
我们还没有从 GitHub 读取这个仓库
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- ✓ 通过
端点有响应
在 576 毫秒内响应(HTTP 200)
- – 不适用
使用 OAuth 登录
无需登录
- ✓ 通过
工具描述中没有隐藏指令
已读取 4 个工具描述,未发现针对 AI 的隐藏指令
与“营销与社交媒体”中的其他服务器比较i
- 星标数多于此分类中其他 3631 个服务器的 0%
- 发布到注册中心的时间比此分类中其他 3631 个服务器的 38% 更新
- 基础检查结果等于或优于此分类中其他 3631 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
HasData TikTok 安全吗?
它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
你需要填写:HASDATA_API_KEY, x-api-key
它在我的电脑上运行还是在云端?
两种方式都可以:安装在你的电脑上,或者连接云端版本。
它还在维护吗?
GitHub 仓库最后更新于–,最新版本(1.0.7)于2个月前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。它通过 URL 连接,所以接受远程 MCP 服务器的应用也可以使用,例如开启开发者模式的 ChatGPT。
有什么可以替代它?
同一分类中有:MCP YouTube Transcript, Google Analytics MCP, BibiGPT YouTube Video Summarizer
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Google Analytics MCP
GA4 MCP server for AI agents: schema discovery, server-side aggregation, analysis-ready defaults.
BibiGPT YouTube Video Summarizer
AI video summarizer: summarize and transcribe YouTube, Bilibili, TikTok and podcast videos.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
TikTok MCP Server
A hosted TikTok 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
- Prompts and resources
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.
Claude Code
claude mcp add --transport http tiktok "https://mcp.hasdata.com/mcp?apis=tiktok" \
--header "x-api-key: HASDATA_API_KEY"
Claude Desktop
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" } } } }
Cursor
~/.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" } } } }
Windsurf
~/.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" } } } }
Cline
{
"mcpServers": { "tiktok": { "url": "https://mcp.hasdata.com/mcp?apis=tiktok", "type": "streamableHttp", "headers": { "x-api-key": "HASDATA_API_KEY" }, "disabled": false } } }
VS Code
.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" } } } }
Codex CLI
~/.codex/config.toml:
[mcp_servers.tiktok]
url = "https://mcp.hasdata.com/mcp?apis=tiktok"
[mcp_servers.tiktok.headers] "x-api-key" = "HASDATA_API_KEY"
Gemini CLI
~/.gemini/settings.json:
{
"mcpServers": { "tiktok": { "httpUrl": "https://mcp.hasdata.com/mcp?apis=tiktok", "headers": { "x-api-key": "HASDATA_API_KEY" } } } }
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, "lik
只显示了开头部分;其余内容请在仓库中阅读