tokportal-cli
OfficialAllows creating and managing Instagram accounts and video bundles, uploading videos, configuring profiles, and publishing content through TokPortal's managed infrastructure.
Allows creating and managing TikTok accounts and video bundles, uploading videos, configuring profiles, and publishing content through TokPortal's managed infrastructure.
Allows creating and managing YouTube accounts and video bundles, uploading videos, configuring profiles, and publishing content through TokPortal's managed infrastructure.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@tokportal-clicreate a TikTok bundle for USA with 5 videos"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@tokportal/cli
TokPortal is the managed social infrastructure API: real TikTok, Instagram and YouTube accounts created, warmed and operated by human account managers in 16+ countries — exposed as a REST API and an MCP server. No OAuth per account, no 25-posts/day cap, no app review.
Docs https://developers.tokportal.com · API base https://app.tokportal.com/api/ext · OpenAPI https://developers.tokportal.com/openapi.json · MCP remote https://app.tokportal.com/api/ext/mcp · Get an API key https://app.tokportal.com/developer/api-keys?utm_source=npm&utm_medium=readme&utm_campaign=tokportal-cli · llms.txt https://developers.tokportal.com/llms.txt
@tokportal/cli is the official command-line interface for the TokPortal API. One command per API operation, generated from OpenAPI, JSON in / JSON out — ideal for scripts, CI and quick checks. Requires Node 18+.
Install
npm install -g @tokportal/cli
# or without installing:
npx @tokportal/cli get-current-userRelated MCP server: TikTapDown MCP
30-second quickstart
export TOKPORTAL_API_KEY=sk_your_key_here
# who am I / credit balance
tokportal get-current-user
tokportal get-credit-balance
# create a 1-video TikTok bundle in the USA and capture its id (credits are debited here)
BUNDLE_ID=$(tokportal create-bundle --body '{"bundle_type":"account_and_videos","platform":"tiktok","country":"USA","title":"US launch","videos_quantity":1}' | jq -r .data.id)
# upload the video from disk -> public_url
VIDEO_URL=$(tokportal upload-video-direct --file ./launch.mp4 --bundle_id "$BUNDLE_ID" | jq -r .data.public_url)
# configure the account profile + video slot 1, then publish
tokportal configure-bundle-account --id "$BUNDLE_ID" --body '{"username":"mybrand.us","visible_name":"My Brand","biography":"Official account"}'
tokportal configure-bundle-video --id "$BUNDLE_ID" --position 1 --body "{\"video_type\":\"video\",\"video_url\":\"$VIDEO_URL\",\"description\":\"Day 1 #launch\",\"target_publish_date\":\"2026-09-01\"}"
tokportal get-bundle-publish-readiness --id "$BUNDLE_ID"
tokportal publish-bundle --id "$BUNDLE_ID"
# follow progress
tokportal get-bundle --id "$BUNDLE_ID"
tokportal help # list every generated commandReference
npm install -g @tokportal/cli
export TOKPORTAL_API_KEY=sk_your_key_here
tokportal get-current-user
tokportal list-bundles --page 1 --per_page 25
tokportal create-bundle --body '{"bundle_type":"account_and_videos","country":"USA","videos_quantity":5}'
tokportal upload-video-direct --file ./video.mp4 --bundle_id 00000000-0000-0000-0000-000000000000The CLI sends X-TokPortal-Client: tokportal-cli/0.1.2 on API requests for observability and support diagnostics.
Multipart upload commands are generated from OpenAPI too. Use --file <path> for the binary field and pass form fields such as --bundle_id or --auto_publish as regular flags.
Failed API responses are printed with a diagnostics object containing request_id, retry_after_seconds, and rate_limit when those headers are available.
Use --idempotency-key only for eligible mutations. The CLI rejects it locally
for credential reveal, verification-code retrieval, webhook creation, signed
image/video upload URL creation, and analytics report creation because those
responses contain secrets and are never stored for replay.
The CLI is generated from the public OpenAPI schema. Use tokportal help to list generated commands.
Source of truth
This package is generated from the TokPortal public OpenAPI schema
(https://developers.tokportal.com/openapi.json) in the private TokPortal
monorepo. Generated files (src/generated.ts) are overwritten on every release — do not edit
them by hand. See CONTRIBUTING.md for what we accept as PRs
and SECURITY.md for vulnerability reporting.
Links
Documentation: https://developers.tokportal.com
SDKs & CLI guide: https://developers.tokportal.com/sdks-cli
MCP server: https://developers.tokportal.com/mcp ·
tokportal-mcpAPI reference (OpenAPI): https://developers.tokportal.com/openapi.json
Other packages:
@tokportal/node·@tokportal/cli·tokportal(PyPI) ·github.com/tokportal/tokportal-go
MIT © TokPortal
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Public TikTok profiles, videos, comments and keyword search as JSON. No developer account.
Create, schedule and publish social posts to TikTok, Instagram, Facebook and YouTube.
13 TikTok endpoints. Pay per call in USDC via x402.
Generate images, video, music and voice from your CLI or AI agent. On-brand AI media toolkit.
Related MCP Servers
- AlicenseCqualityDmaintenanceMCP server for LamaTok TikTok data API — auto-generates 20+ tools from the live OpenAPI spec (users, videos, hashtags, music, comments). Local stdio via npx -y lamatok-mcp, requires only LAMATOK_KEY.19231MIT
- AlicenseAqualityBmaintenanceTikTok creator toolkit for AI assistants. Four tools: download watermark-free videos by URL, look up curated 15-hashtag sets for 15 niches with strategy tips, retrieve best posting times for 12 countries, and generate viral hook formulas across 8 categories. Stdio transport, runs via npx -y tiktapdown-mcp, no API keys, no signup, free. MIT license.10581MIT
- AlicenseBqualityBmaintenanceProvides 45 MCP tools to search, enrich, and manage Apollo.io B2B data (people, companies, CRM, deals, tasks, sequences, etc.) via stdio or HTTP transport.451MIT

tokportal-mcpofficial
AlicenseCqualityBmaintenanceOfficial MCP server for the TokPortal API, exposing 91 tools to create bundles, upload and publish videos, configure accounts, read analytics, and manage webhooks for real TikTok, Instagram, and YouTube accounts in any MCP client.914,466MIT