
HasData TikTok
com.hasdata由 hasdata.com 發布官方發布者v1.0.7更新於 Oct 24, 2026
Public TikTok profiles, videos, comments and keyword search as JSON. No developer account.
發布方自己的服務:HasData Airbnb
概覽
HasData 託管的 TikTok 伺服器,為助理提供四個唯讀工具:公開個人檔案、帳號影片、影片留言與回覆、關鍵字搜尋。
- 可以做什麼
- 依使用者名稱查詢公開 TikTok 個人檔案,回傳簡介、連結以及已解析的粉絲、按讚和影片數
- 逐頁瀏覽某帳號的影片,含每支影片的播放、按讚、留言和分享數
- 讀取影片的頂層留言,或某則留言底下的回覆
- 依關鍵字搜尋 TikTok 的影片或創作者,結果含粉絲數和簡介
- 結果可串接:個人檔案、影片、影片 id 與留言 id 互相連結,助理可從關鍵字走到創作者、影片再到留言
- 適用情境
- 適合需要調查 TikTok 公開內容的情境,例如創作者分析、判斷某支影片留言的情緒,或圍繞某個主題尋找創作者。它避開了未涵蓋一般公開內容讀取的 TikTok 開發者計畫。
- 執行需求
- 需要 HasData API 金鑰:遠端端點以 x-api-key 標頭傳入,npm 或 PyPI 的 stdio 啟動器以 HASDATA_API_KEY 環境變數傳入。需要 MCP 用戶端,不需 TikTok 開發者帳號或 OAuth,需要能連線到託管端點。呼叫以點數計費。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 HasData TikTok,將其新增到工作區。
- 連接 x-api-key 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
交給代理程式安裝
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/com.hasdata%2Ftiktok/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。
{
"mcpServers": {
"hasdata-tiktok": {
"type": "http",
"url": "https://mcp.hasdata.com/mcp?apis=tiktok",
"headers": {
"x-api-key": "<YOUR_API_KEY>"
}
}
}
}README
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.
[Glama score] [tool contract] [MCP] [Tools]
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.
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 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:
Python instead of Node? Swap the launcher for the PyPI package, which uvx runs without a manual install:
Cursor
~/.cursor/mcp.json for every project, or .cursor/mcp.json for one:
Windsurf
~/.codeium/windsurf/mcp_config.json. Windsurf calls the field serverUrl, not url:
Cline
VS Code
.vscode/mcp.json in the workspace:
Codex CLI
~/.codex/config.toml:
Gemini CLI
~/.gemini/settings.json:
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
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.
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.
Get TikTok posts
hasdata_tiktok_posts_getTikTokPosts
A page of an account's videos by handle, newest first.
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.
Get TikTok comments
hasdata_tiktok_comments_getTikTokComments
The comments on a public video, or the replies under one comment.
Each comment carries text, likes, createTime, replyCount and an author, and every author carries a hasdataLink to its profile and a hasdataPostsLink to its videos. pagination.total reports the video's whole comment count, so you know the depth before you page. A comment with a non-zero replyCount has replies you reach by calling again with its id as commentId.
Search TikTok
hasdata_tiktok_search_getTikTokSearch
A keyword search over videos or creators.
With type: video the response holds videos in the same shape the posts tool returns, each with its author. With type: user it holds creators, each with username, nickname, signature (the bio), avatarUrl, followers, and the same hasdataLink and hasdataPostsLink to chain into a profile or its videos. A verified flag is present on accounts that carry one.
Prompts and resources
The server ships 2 prompts, ready-made workflows a client can offer instead of making the user compose a tool call.
Alongside them the server exposes one resource, the accepted values of the single parameter that takes a fixed list. Reading it is cheaper than learning the vocabulary from a rejected call, and it costs no credits.
Its URI is hasdata://tiktok/type.
Both lists are served without an API key, so a client can read them before a user has signed up.
Errors and failure paths
Your client almost never sees an HTTP error code from a tool call. The MCP layer answers 200 and puts the failure inside the result, with isError set to true and the reason as text. The agent reads a message where you might expect a status line.
A wrong key surfaces as tool output, not as a failed connection. tools/list accepts any non-empty key and returns all four tools, so the client completes its handshake and shows green. The first tool call then comes back with isError: true and the text HasData API error: 401 Unauthorized. Watch for that string, because nothing earlier in the flow reports the problem.
A missing key is the one real HTTP error. Authorization runs before any tool, and the connection itself fails with 401. CORS headers are present, and a browser client reads the status and not an opaque network failure.
An argument that breaks a tool's schema is rejected before it becomes a scrape. The server answers with isError: true and the text MCP error -32602: Input validation error, naming the offending field. Nothing is fetched and nothing is charged.
A call that succeeds and finds nothing is the case that trips people up. A handle that does not exist comes back as an ordinary result with requestMetadata.status set to ok and the data key simply missing. Nothing in the body says the result was empty. Test for the field you need, not for an error.
An identifier the platform rejects returns 400 with requestMetadata.status set to error.
Results that carry data also carry a requestMetadata.id worth quoting in support.
Pricing, free tier and limits
Every TikTok tool costs 10 credits per successful call. Response size does not change the price. A full page of videos costs the same as a profile with one field.
The free tier is 1,000 credits every month with no card, which is 100 TikTok calls. It renews with the billing cycle, so a low-volume agent runs on the free tier indefinitely.
Paid plans start at $59 a month for 200,000 credits, which is 20,000 calls. The unit price falls with volume, from $2.95 per 1,000 calls on the entry plan to $1.19 on Basic and $0.83 across the Growth tiers. Current figures live on the pricing page.
Your plan also sets concurrency. The free tier allows 5 requests at a time, Startup 5, Basic 15, and the Growth tiers run from 50 to 500. Handle the overflow case defensively in anything unattended, because an agent that fans out will reach the ceiling before you do.
A request that comes back non-200 is not billed. A successful call that finds nothing is still a call.
Tool selection
The apis query parameter decides which tools your agent sees. Fewer tools means less context spent on tool definitions, and fewer chances for the model to reach for the wrong one.
The parameter takes provider names like tiktok and individual API names like tiktok_search. Misspelled names are ignored. If every name is wrong the request fails with 400, and the body lists both what it did not recognise and every valid value. Drop the parameter and the same endpoint exposes all 57 HasData tools.
How it compares
TikTok's own developer program does not cover general reading of public content. The Research API is gated behind an application and open to approved academic and nonprofit researchers in a limited set of regions. The Display API returns only the content of the account that signs in over OAuth. Neither fits an agent that needs to read an arbitrary public profile, its videos, or a video's comments.
Most other TikTok MCP servers wrap a single unofficial endpoint. This one covers the four reads an agent actually chains, profile to posts to comments, plus search, so a whole research pass runs against one server.
What this server does not do. No posting, no direct messages, no follower-only or private content, no analytics for accounts you do not own. It reads what a signed-out visitor can see.
FAQ
Is there an official TikTok MCP server?
TikTok does not publish one. Every option is built by somebody else. This one is maintained by HasData and reads public pages, which is why it needs no TikTok developer account.
What is a TikTok MCP server?
A server that exposes TikTok data as tools an AI client can call. The client sends a tool call over the Model Context Protocol, the server fetches the data and returns structured JSON, and the model works with the result and never sees a page of HTML. This one exposes four tools and runs remotely. The client connects to a URL and starts no local process.
Do I need a TikTok API key or a developer account?
No. The only credential is your HasData key. There is no developer application to file and no OAuth consent screen, because the tools read public TikTok pages and not the TikTok developer APIs.
Do I need to host or run anything?
No. This is a remote MCP server on streamable HTTP. Nothing to install, no container to keep warm, no process to restart.
Is the data live or cached?
Live. Each call fetches at request time and carries its own requestMetadata.id. Counters like plays and likes track the page, so they move as the page moves.
Can I read a private account?
No. The tools return what a signed-out visitor sees. A private account's videos are not public, so they are not in any response.
Can I read comment replies, not just top-level comments?
Yes. Call the comments tool with a comment's id as commentId and it returns that comment's replies. A comment's replyCount tells you whether there are any.
Can I use this together with other HasData APIs?
Yes. The apis parameter takes a list, and ?apis=tiktok,instagram gives your agent the four TikTok tools plus Instagram. Drop the parameter and you get everything.
Compliance and personal data
HasData accesses publicly available data only. A platform's terms may restrict automated access, and you are responsible for your own compliance. Where the data you collect includes personal information, make sure you have a lawful basis for it under GDPR, CCPA or the equivalent rules in your jurisdiction.
HasData links
Development
This repository is configuration and documentation for a remote server. There is no build step and nothing to containerize.
The tests in test/ assert the tool contract, the part that can break without a commit here. They check that ?apis=tiktok returns exactly four tools, that every tool still declares its required parameter, that no name changed, and that the key in use is actually accepted. That last check calls a tool for real and costs 10 credits, which is the price of a canary that can fail for the right reason.
The same suite runs in CI on every push and once a week on a schedule, because the upstream tool list can change without anyone touching this repository. A failure means the tool list moved, the key stopped working, or the endpoint was unreachable, and the assertion message says which.
Contributing
Corrections to the tool tables and the response samples are the most useful contribution, because those are the parts that drift. Include the call you made and the response you got. Pull requests from forks run the suite without a key, and the live checks skip instead of going red.
License
MIT. See LICENSE.
來源:README.md,提交 685070f
工具
0版本歷史
3- v1.0.7最新Sep 24, 2026
- v1.0.6Sep 22, 2026
- v1.0.5Sep 16, 2026
評分
已滿足適用檢查項的 85%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通必需25 分
- 已宣告認證方式必需10 分
- 已列出工具必需15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
其他 Hasdata 整合

HasData Airbnb
com.hasdata官方發布者
由 HasData 託管的 Airbnb MCP 伺服器,提供兩個唯讀工具,讓助理依地點或地圖區域搜尋房源,並以 JSON 讀取房源詳情。

HasData Google Flights Deals
com.hasdata官方發布者
HasData 託管伺服器,提供一個 Google Flights Deals 工具,把自然語言描述的旅行想法變成帶日期的票價、航空公司、轉機次數與訂票連結。

HasData ChatGPT
com.hasdata官方發布者
HasData 託管伺服器,讓助理匿名向 ChatGPT 提問,並取回 Markdown 答案及其引用的網頁來源。

HasData Google Hotels
com.hasdata官方發布者
HasData 託管伺服器,提供一個 Google Hotels 工具,讓助理搜尋飯店與度假短租,並查看某房源在各訂房網站的價格。

HasData Zillow
com.hasdata官方發布者
由 HasData 提供的託管服務,讓助理以結構化 JSON 搜尋 Zillow 待售、出租與已售物件,並讀取完整物件詳情。