SuperAPI AI Directory

tokportal-mcp

🎖️ 📇 ☁️ - Managed TikTok, Instagram and YouTube accounts run by TokPortal's human account managers, with video upload, scheduling, analytics and webhooks.

Open website

About this tool

Purpose

tokportal-mcp is the official Model Context Protocol (MCP) server for the TokPortal API. TokPortal is a managed social infrastructure API: real TikTok and Instagram brand accounts are created, nurtured, and operated by human account managers in more than 16 countries, and made available as a REST API and MCP server. Using this MCP server, you can run geo-sharded operations across markets without connecting each social account via OAuth, and manage TikTok, Instagram, and YouTube managed accounts through an MCP client. Note that YouTube bundles cannot be created through this API.

Key capabilities

The server provides tool support for TikTok, Instagram, and YouTube managed accounts. Its 93 core tools are available to MCP clients such as Claude, Cursor, VS Code, Windsurf, Codex, Gemini CLI, and others. When AI is enabled for the workspace, there are an additional 7 curated tools covering model discovery, quote generation, media management, and a separate AI USD wallet. Model-specific schemas are fetched on demand rather than exposed as hundreds of tools.

Tools are named tokportal_<snake_case of the operation ID>, for example tokportal_create_bundle, tokportal_list_accounts. Path and query parameters are top-level inputs, and the JSON request body goes in body. Each tool carries title, readOnlyHint, destructiveHint, idempotentHint, and openWorldHint annotations; paid operations and irreversible operations may be destructive even if they do not delete anything.

All tools other than GET accept a top-level dry_run: true, which is sent as X-TokPortal-Dry-Run: true and is never placed in the query or request body. A dry run consumes the normal rate limit but does not consume idempotency_key. Multipart upload tools are likewise generated from OpenAPI, with binary fields exposed as local path inputs (such as file_path) and the remaining form fields according to the schema names.

Mutating operations accept an optional idempotency_key (sent as Idempotency-Key), except for operations involving secrets (credential reveal, verification codes, webhook creation, signed upload URLs, report creation), which are never replayed. When a tool call fails, it returns an error result with a diagnostics object containing request_id, retry_after_seconds, and rate_limit (when those response headers are available).

Version 1.18.0 adds associated analytics: use tokportal_get_analytics_account_insights with { "id": "saved-account-uuid" } to read reach/views/interactions data over the Instagram account period, as well as watch time/completion/traffic data for eligible TikTok posts. Requires Creator or higher; existing tier limits still apply. Accounts that are not connected or not verified return available: false and connected_analytics: null. This is a read-only operation and never triggers a refresh. Missing metrics are omitted, completion rate is a decimal from 0–1, traffic/audience breakdowns are percentages from 0–100, and watch time is in seconds. The same data block also appears in tokportal_get_analytics_account.

Usage

Requires Node.js 20 or higher. The local server runs directly on it. The API key must be in https://app.tokportal.com/developer/api-keys?utm_source=npm&utm_medium=readme&utm_campaign=tokportal-mcp obtain (format is sk_ followed by 64 hexadecimal characters).

This server uses MCP via stdio. Point any MCP client at it to make requests, for example: "Read the available countries, credit prices, and my balance. Preview a USA TikTok account-only bundle with dry_run: true. Show me the immediate and recurring costs, and wait for my GO before any actual purchase."

Preview calls tokportal_create_bundle with { "dry_run": true, "body": { "bundle_type": "account_only", "platform": "tiktok", "country": "USA" } }. It validates the request and returns credits_would_charge and credits_charged: 0, without creating a job. Live-mode creation charges immediately. Preview IDs are synthetic and must never be reused in an actual request. After receiving GO, create the real resources and use their actual IDs.

Programmatic smoke testing using the MCP SDK is also possible. Client configuration examples: configure in Cursor's ~/.cursor/mcp.json (or .cursor/mcp.json in the project), Claude Desktop's claude_desktop_config.json (on macOS ~/Library/Application Support/Claude/, on Windows %APPDATA%\Claude), VS Code's (GitHub Copilot agent mode) .vscode/mcp.json, Windsurf's ~/.codeium/windsurf/mcp_config.json, OpenAI Codex CLI's ~/.codex/config.toml, and Gemini's ~/.gemini/settings.json, replacing sk_your_key_here with your key; each snippet is a local stdio server, and the remote URL variants are listed at the end.

Remote server (Streamable HTTP): any client that supports remote MCP serverscan connect to https://app.tokportal.com/api/ext/mcp,使用 X-API-Key: sk_... header or Authorization: Bearer sk_....

AI generation (phased availability)

AI discovery calls the authenticated GET /ai/status. If unavailable, only the existing catalog is shown; no provider fallback or automatic payment will be attempted. Local AI support requires version 1.16.0 or later and server-side availability. Installing this package does not enable generation, grant spending permission, or activate billing. Version 1.15.1 retains the existing account management tools but does not include AI discovery. Remote availability is controlled server-side.

Generation requires body: { quote_id, max_cost_usd } and an idempotency_key. Reuse the same key after an uncertain response. Quotes expire within 15 minutes; use the returned expiration time. The AI USD wallet is independent of account management credits. AI tools do not accept the legacy dry_run convention; use quote operations instead, which do not start paid provider work. Cancellation is best-effort and refunds are not guaranteed. Creation does not publish: review the returned assets, then use the existing TokPortal scheduling tools.

Version and safety notes

Upgrade before using the sandbox: local tokportal-mcp requires version 1.15.1 or later to support dry_run. Version 1.15.0 advertised the parameter but did not send the sandbox header, so previews could execute real operations. Update the local server or use the remote connector.

This package is in the private TokPortal monorepo from the TokPortal public OpenAPI schema (https://developers.tokportal.com/openapi.json)生成。src/generated.ts regenerated on each release, do not edit manually.

Official documentation:https://developers.tokportal.com;MCP guide:https://developers.tokportal.com/mcp;SDK and CLI:https://developers.tokportal.com/sdks-cli;OpenAPI reference:https://developers.tokportal.com/openapi.json;其他包:@tokportal/node、@tokportal/cli、tokportal(PyPI)、github.com/tokportal/tokportal-go。许可:MIT © TokPortal.

The MCP server sends X-TokPortal-Client: tokportal-mcp/1.18.0 in API requests for observability and support diagnostics. Legacy configurations using a globally installed binary still work.