# HasData TikTok [Health: Active]

**Category:** 🌐 Social Media  
**Repository:** https://github.com/HasData/tiktok-mcp  
**GitHub Stars:** 12  
**npm Downloads (last month):** 313  
**Views:** 9  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/hasdata-tiktok

## Description
Public TikTok profiles, videos, comments and keyword search as JSON. No developer account.

## Tools
Capabilities this server exposes over MCP:

- **hasdata_tiktok_comments_getTikTokComments** — Get 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 profile endpoint and hasdataPostsLink to the posts endpoint). The first page of top-level comments also returns `post` with the video's description, author, music, cover and video URLs, duration, hashtags, and its like, comment, share, play, and save counts. Supports token-based pagination via nextPageToken. Use for sentiment analysis, engagement research, or building comment datasets from a video discovered via the posts or search APIs.
- **hasdata_tiktok_posts_getTikTokPosts** — Get 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 videos plus a `nextPageToken`; pass that token back to walk the account history one page at a time. Use to monitor competitor content, track engagement of creator videos, or build datasets of account content for vetting and analytics.
- **hasdata_tiktok_profile_getTikTokProfile** — Get 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 influencer reach before outreach, monitor competitor accounts, or build datasets of creator metadata for vetting and analytics.
- **hasdata_tiktok_search_getTikTokSearch** — Search 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 carries a hasdataLink to their profile endpoint and a hasdataPostsLink to their posts endpoint. Supports token-based pagination via nextPageToken. Use for content discovery, trend research, influencer discovery, or building datasets from a keyword.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "hasdata-tiktok": {
    "command": "npx",
    "args": ["-y","@hasdata/tiktok-mcp"],
    "env": {
      "HASDATA_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `HASDATA_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What HasData TikTok does

HasData TikTok exposes public TikTok data to MCP-compatible AI clients. Its four tools cover profile lookup, videos published by an account, comments on a public video, and keyword search for videos or users. Responses are structured JSON, making the data suitable for agent workflows and downstream processing.

Profile lookups return account metadata such as the nickname, biography, bio link, avatar URLs, verification and privacy flags, creation time, and follower, following, like, video, and friend counts. Account post results include descriptions, hashtags, mentions, engagement counts, media URLs, music, duration, and timestamps. Search results can represent either videos or users and include author or creator details.

The comments tool accepts a numeric video ID and can also retrieve replies for a specified comment. Comment records include text, likes, timestamps, reply counts, and author information. The first page of top-level comments also includes details about the associated video.

## How it works

The hosted endpoint is:

`https://mcp.hasdata.com/mcp?apis=tiktok`

It uses streamable HTTP and authenticates with the `x-api-key` header. Each successful tool call consumes credits; the documented free allowance is 1,000 credits per month, equivalent to 100 TikTok calls. Pagination requires another call for each additional page, so broad account crawls or long comment collections use credits progressively.

The server reads public data visible to signed-out visitors. It does not sign in to TikTok, publish content, or perform account actions. Agents can follow links returned in search and content results to move from a creator or video to related profile, post, or comment requests.

## Setup and configuration

Create a HasData API key and configure the remote URL and `x-api-key` header in an MCP client. Clients that support remote HTTP connections can use the endpoint directly. Claude Desktop's configuration-file route uses a stdio launcher instead: the npm package `@hasdata/tiktok-mcp` can be run with `npx`, while the PyPI package `hasdata-tiktok-mcp` can be launched with `uvx`. Both launcher options read the key from `HASDATA_API_KEY`.

The repository gives client-specific examples for Claude Code, Claude Desktop, Cursor, Windsurf, Cline, VS Code, Codex CLI, and Gemini CLI. OAuth-capable clients can add the same remote URL as a connector and authenticate without placing the key in a configuration file.

## Tools and capabilities

- `hasdata_tiktok_profile_getTikTokProfile` retrieves public profile metadata by username.
- `hasdata_tiktok_posts_getTikTokPosts` walks an account's videos page by page using `nextPageToken`.
- `hasdata_tiktok_comments_getTikTokComments` reads top-level comments or replies for a public video.
- `hasdata_tiktok_search_getTikTokSearch` searches for videos or users by keyword and supports pagination.

These tools support creator vetting, competitor monitoring, influencer discovery, trend research, sentiment analysis, engagement comparisons, and dataset construction from public TikTok content.

## Limitations and notes

The tools are read-only and limited to public TikTok information. They do not provide login, posting, or other account operations. Video comments require the numeric video ID; retrieving replies additionally requires the relevant comment ID. Post, comment, and search history must be traversed page by page with the returned continuation token. API usage is credit-based, and each additional page consumes another call.

_Full upstream README: https://allmcps.com/mcp/hasdata-tiktok/readme_

