TikTok GMV Max

v0.2.1
io.github.Buer2333/tiktok-gmvmax-mcp Checked 4 days ago Published 1 month ago

Read-only TikTok Business API: GMV Max campaigns and reports, ads, BC balances.

Values you need

VariableWhat it is
TIKTOK_APP_IDrequired TikTok Business API app ID
TIKTOK_SECRETrequired secret TikTok Business API app secret
TIKTOK_ACCESS_TOKENrequired secret Long-lived Business API access token
TIKTOK_ACCESS_TOKEN_2optional secret Optional second token, tried on permission errors

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add tiktok-gmvmax-mcp -e 'TIKTOK_ACCESS_TOKEN=<TIKTOK_ACCESS_TOKEN>' -e 'TIKTOK_APP_ID=<TIKTOK_APP_ID>' -e 'TIKTOK_SECRET=<TIKTOK_SECRET>' -- uvx --from tiktok-gmvmax-mcp==0.2.1 tiktok-ads-mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "tiktok-gmvmax-mcp": {
      "args": [
        "--from",
        "tiktok-gmvmax-mcp==0.2.1",
        "tiktok-ads-mcp"
      ],
      "command": "uvx",
      "env": {
        "TIKTOK_ACCESS_TOKEN": "<TIKTOK_ACCESS_TOKEN>",
        "TIKTOK_APP_ID": "<TIKTOK_APP_ID>",
        "TIKTOK_SECRET": "<TIKTOK_SECRET>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "tiktok-gmvmax-mcp": {
      "args": [
        "--from",
        "tiktok-gmvmax-mcp==0.2.1",
        "tiktok-ads-mcp"
      ],
      "command": "uvx",
      "env": {
        "TIKTOK_ACCESS_TOKEN": "<TIKTOK_ACCESS_TOKEN>",
        "TIKTOK_APP_ID": "<TIKTOK_APP_ID>",
        "TIKTOK_SECRET": "<TIKTOK_SECRET>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "TIKTOK_ACCESS_TOKEN",
      "id": "tiktok-access-token",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "TIKTOK_APP_ID",
      "id": "tiktok-app-id",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "TIKTOK_SECRET",
      "id": "tiktok-secret",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "tiktok-gmvmax-mcp": {
      "args": [
        "--from",
        "tiktok-gmvmax-mcp==0.2.1",
        "tiktok-ads-mcp"
      ],
      "command": "uvx",
      "env": {
        "TIKTOK_ACCESS_TOKEN": "${input:tiktok-access-token}",
        "TIKTOK_APP_ID": "${input:tiktok-app-id}",
        "TIKTOK_SECRET": "${input:tiktok-secret}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.tiktok-gmvmax-mcp]
command = "uvx"
args = ["--from", "tiktok-gmvmax-mcp==0.2.1", "tiktok-ads-mcp"]
env = { "TIKTOK_ACCESS_TOKEN" = "<TIKTOK_ACCESS_TOKEN>", "TIKTOK_APP_ID" = "<TIKTOK_APP_ID>", "TIKTOK_SECRET" = "<TIKTOK_SECRET>" }

For AI agents

  1. Ask the user for: TIKTOK_APP_ID, TIKTOK_SECRET, TIKTOK_ACCESS_TOKEN. 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: get_business_centers_tool, get_identities_tool, get_authorized_ad_accounts_tool, get_campaigns_tool, get_ad_groups_tool, get_ads_tool, get_reports_tool, get_gmvmax_campaigns_tool, ….
  5. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json