toktokdata.live

v0.3.1
io.github.MKK-Platform/toktokdata Checked 3 days ago Published 3 days ago

TikTok LIVE rankings, creators, LIVE sessions, gifters and agencies from toktokdata.live

Values you need

VariableWhat it is
TOKTOKDATA_API_KEYrequired secret toktokdata.live API key (Settings > API keys), ttk_live_...
TOKTOKDATA_BASE_URLoptional API base URL Default: https://api.toktokdata.live
TOKTOKDATA_MCP_MAX_WAIT_SECONDSoptional How long a tool waits while fresh data is collected Default: 40

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add toktokdata -e 'TOKTOKDATA_API_KEY=<TOKTOKDATA_API_KEY>' -- npx -y --package=@toktokdata.live/mcp@0.3.1 toktokdata-mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "toktokdata": {
      "args": [
        "-y",
        "--package=@toktokdata.live/mcp@0.3.1",
        "toktokdata-mcp"
      ],
      "command": "npx",
      "env": {
        "TOKTOKDATA_API_KEY": "<TOKTOKDATA_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "toktokdata": {
      "args": [
        "-y",
        "--package=@toktokdata.live/mcp@0.3.1",
        "toktokdata-mcp"
      ],
      "command": "npx",
      "env": {
        "TOKTOKDATA_API_KEY": "<TOKTOKDATA_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "TOKTOKDATA_API_KEY",
      "id": "toktokdata-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "toktokdata": {
      "args": [
        "-y",
        "--package=@toktokdata.live/mcp@0.3.1",
        "toktokdata-mcp"
      ],
      "command": "npx",
      "env": {
        "TOKTOKDATA_API_KEY": "${input:toktokdata-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.toktokdata]
command = "npx"
args = ["-y", "--package=@toktokdata.live/mcp@0.3.1", "toktokdata-mcp"]
env = { "TOKTOKDATA_API_KEY" = "<TOKTOKDATA_API_KEY>" }

For AI agents

  1. Ask the user for: TOKTOKDATA_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: rankings_official, rankings_regions, rankings_history, rankings_day_bars, creators_search, creators_get, creators_analysis, creators_changes, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json