Toktik — TikTok LIVE data

v0.1.1
com.toktikhq/mcp Checked 4 days ago Published 19 days ago

TikTok LIVE rankings, gifters, creators, follow lists, agencies and LIVE Pro data from Toktik.

A Model Context Protocol server for the Toktik Developer API. Add it to Claude, Cursor, VS Code, Windsurf, Trae, Cherry Studio, Gemini CLI or any other MCP client and your AI can read TikTok LIVE rankings, creators, gifters, follow lists, the LIVE agency directory, creators worth recruiting and LIVE Pro creators for you, with your own API key. Full guide: https://toktikhq.com/docs/mcp 1. Create an API key in Toktik → Developer (the Free plan works). Give it the scopes of the tools you want: rank:read, gifter:read, creator:read, agencies:read, live-pro:read, trend:read. 2.

Summary extracted from the README.

@toktikhq/mcp

A Model Context Protocol server for the Toktik Developer API. Add it to Claude, Cursor, VS Code, Windsurf, Trae, Cherry Studio, Gemini CLI or any other MCP client and your AI can read TikTok LIVE rankings, creators, gifters, follow lists, the LIVE agency directory, creators worth recruiting and LIVE Pro creators for you, with your own API key.

Full guide: https://toktikhq.com/docs/mcp

Setup

  1. Create an API key in Toktik → Developer (the Free plan works). Give it the scopes of the tools you want: rank:read, gifter:read, creator:read, agencies:read, live-pro:read, trend:read.
  2. Add the server to your MCP client. Node.js 24 or newer is needed.

Claude Desktop (claude_desktop_config.json), Cursor (~/.cursor/mcp.json), Windsurf (~/.codeium/windsurf/mcp_config.json), Trae, Cherry Studio (Import from JSON) or Gemini CLI (~/.gemini/settings.json):

{
  "mcpServers": {
    "toktik": {
      "command": "npx",
      "args": ["-y", "@toktikhq/mcp"],
      "env": { "TOKTIK_API_KEY": "ttk_live_your_key" }
    }
  }
}

VS Code (.vscode/mcp.json; VS Code asks for the key once):

{
  "inputs": [{ "type": "promptString", "id": "toktik-api-key", "description": "Toktik API key", "password": true }],
  "servers": {
    "toktik": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@toktikhq/mcp"],
      "env": { "TOKTIK_API_KEY": "${input:toktik-api-key}" }
    }
  }
}

Claude Code:

claude mcp add toktik -e TOKTIK_API_KEY=ttk_live_your_key -- npx -y @toktikhq/mcp

Tools

Tool Returns
rankings_official TikTok's official LIVE ranking board for a region
rankings_movers Biggest rank gainers and losers since the previous period
rankings_history Past periods of a board, newest first
rankings_regions Regions with ranking boards, and the boards each one has
gifters_list Top gifters in the last 24 hours, 7 or 30 days
gifters_get One gifter's profile and the creators they gift to
gifters_for_creator The gifters behind one creator
creators_search Find creators by name or handle, or browse by region, followers and LIVE now
creators_get A creator's profile
creators_changes A creator's recent name, handle and bio changes
creators_analysis A summary of a creator from what Toktik has observed
creators_following The accounts a creator follows
creators_followers A sample of a creator's most recent followers
gifters_history One gifter's coins over time, split by creator (Pro plan and above)
gifters_live_for_creator The gifters of a creator's current LIVE session (or the one that just ended), ranked by coins
agencies_list TikTok's LIVE agency directory, by region, name or services
agencies_get One agency in full, with the contact details it published on TikTok
agencies_regions The agency directory's regions, each with its agency count
recruit_list Creators worth recruiting: today's score, 30-day diamonds, followers, live now first
recruit_creator_days One creator's diamonds day by day over the last 30 days (Scale plan and above)
live_pro_list LIVE Pro creators in a country, with who is live now
trends_list Trending hashtags or sounds for a region

Each tool is one read of the /v1 API: it spends the same credits and follows the same plan limits. A follow list is collected from TikTok in steps of up to 150 accounts, 4,000 credits each; a page past what is collected, or a read after 12 hours, collects another step, so ask for the pages you need rather than a whole large list. The first read of a new creator or follow list can return {"status":"resolving"|"collecting","retryAfterSeconds":N} — "not ready yet", never billed; the tool tells the AI to call again after retryAfterSeconds. Every request carries the user-agent toktik-mcp/<version>. The realtime LIVE stream, videos and comments are not part of this server; use the SDKs for those.

Environment

  • TOKTIK_API_KEY (required) — your Developer API key (ttk_live_…). Missing → the server exits with code 1.
  • TOKTIK_BASE_URL (optional) — defaults to https://api.toktikhq.com.

The server speaks newline-delimited JSON-RPC 2.0 over stdio (MCP revisions 2025-06-18, 2025-03-26, 2024-11-05). stdout carries only protocol messages; the ready line and errors go to stderr. A wrong key, a missing scope, no credits or a rate limit come back as a readable tool error, never with your key in it.

License

MIT