tokportal-mcp
OfficialThis server exposes the full TokPortal MCP API for operating managed TikTok/Instagram accounts: create and publish content bundles, manage accounts, warming, credits, analytics, comments, webhooks, and more.
Workspace & coverage: get the authenticated user, update safe workspace settings, view/reactivate/pause TokPortal Coverage per account.
Credits & reference data: check credit balance, list transactions and credit pricing, list supported countries and platforms.
Bundles: create single or bulk bundles (account-only/videos-only/account-and-videos), list/get/update/publish/unpublish, check publish readiness, add video/edit slots, configure account profile, request corrections, finalize, and import from CSV.
Video slots: list/configure/get/patch slots, bulk configure, publish individual or all videos, reset/unschedule/finalize/request corrections, and fix broken downloads.
Delivered accounts: list/search accounts, get account details, list account bans/bundles, update commenting profile, request profile edits, refresh analytics, and reveal credentials/verification code under managed policy.
Warming: order Advanced Niche Warming (rewarm), configure/generate warming terms, and list/get warming sessions.
Webhooks: inspect event catalog, create/list/update/delete endpoints, test endpoints, list deliveries, and retry deliveries.
Uploads: create presigned or direct uploads for videos/images, and import images from URL.
Analytics: dashboards, time series, account/post drilldowns, post analytics, comments, raw snapshots, and CSV/HTML reports.
Comments: create/approve/dispute/cancel comment tasks (single or batch), list/get tasks and verification events.
Ad codes: request and poll TikTok Spark Codes / Instagram Partner Codes for finalized videos.
Allows managing Instagram accounts through TokPortal's managed social infrastructure, including account creation, warming, posting content, analytics, and webhooks.
Allows managing TikTok accounts through TokPortal's managed social infrastructure, including account creation, warming, posting videos, analytics, and webhooks.
Allows managing YouTube accounts through TokPortal's managed social infrastructure, including account creation, warming, uploading videos, analytics, and webhooks.
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-mcpCreate a TikTok account in the US with 3 video slots and advanced warming on 'home workout'"
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.
langchain-tokportal
LangChain / LangGraph integration for TokPortal.
TokPortal is the managed social infrastructure API: real TikTok and Instagram 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.
This package gives your agents two ways to drive TokPortal:
Mode | What you get | When to use |
Native tools ( | 6 hand-written | Simple sync agents, no MCP dependency at runtime |
MCP tools ( | Every tool of the remote TokPortal MCP server (90+ operations: uploads, warming, analytics, webhooks, comments, bans…) loaded through | Full API surface, async agents |
Installation
pip install langchain-tokportal
# optional, for the LangGraph example below
pip install langchain langchain-openaiGet an API key at https://app.tokportal.com/developer and export it:
export TOKPORTAL_API_KEY=sk_...Related MCP server: social0-mcp
Quick start (native tools)
from langchain_tokportal import TokPortalToolkit
toolkit = TokPortalToolkit.from_api_key() # reads TOKPORTAL_API_KEY
tools = toolkit.get_tools()
for tool in tools:
print(tool.name)
# tokportal_get_credit_balance
# tokportal_create_bundle
# tokportal_configure_bundle_video
# tokportal_publish_bundle
# tokportal_get_bundle
# tokportal_list_accounts
print(tools[0].invoke({})) # -> {"data": {"balance": ...}}Every tool returns a JSON string (the raw TokPortal data envelope, or an
{"error": {...}} object with status, code, request_id and retryable
so the model can self-correct).
LangGraph agent example (langchain.agents.create_agent, LangChain 1.x)
import asyncio
from langchain_openai import ChatOpenAI
from langchain.agents import create_agent
from langchain_tokportal import TokPortalToolkit
SYSTEM = (
"You operate TokPortal, a managed social infrastructure API. "
"Always check the credit balance before creating bundles. "
"A bundle must be published for a human account manager to start working on it."
)
async def main() -> None:
toolkit = TokPortalToolkit.from_api_key()
# "native" = 6 SDK tools, "mcp" = full remote MCP tool set, "all" = both
tools = await toolkit.aget_tools("mcp")
agent = create_agent(ChatOpenAI(model="gpt-4.1"), tools, system_prompt=SYSTEM)
result = await agent.ainvoke(
{
"messages": [
(
"user",
"Order one new TikTok account in the US with 3 video slots and "
"advanced warming on the terms 'home workout', 'protein snacks', "
"'gym motivation'. Publish it and tell me the bundle id.",
)
]
}
)
print(result["messages"][-1].content)
asyncio.run(main())Sync-only code paths can call toolkit.get_mcp_tools() (wraps asyncio.run).
Using the MCP connection directly
from langchain_mcp_adapters.client import MultiServerMCPClient
from langchain_tokportal import mcp_connection
client = MultiServerMCPClient({"tokportal": mcp_connection("sk_...")})
tools = await client.get_tools()mcp_connection() returns a Streamable-HTTP connection dict pointing at
https://app.tokportal.com/api/ext/mcp with Authorization: Bearer <api_key>.
Tool reference (native)
Tool | REST operation |
|
|
|
|
|
|
|
|
|
|
|
|
Typical flow: get_credit_balance → create_bundle (draft) → configure_bundle_video × N → publish_bundle → poll get_bundle or subscribe to webhooks.
Resources
API docs: https://developers.tokportal.com
MCP server: https://developers.tokportal.com/mcp (remote
https://app.tokportal.com/api/ext/mcp, stdionpx -y tokportal-mcp)Python SDK: https://github.com/tokportal/tokportal-python
Support: team@tokportal.com
License
MIT
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 Servers
- AlicenseNot gradedqualityCmaintenanceSocial media API and MCP server for AI agents that enables publishing to X, Instagram, LinkedIn, Reddit, Bluesky, and Threads from a single endpoint.1MIT
- AlicenseAqualityBmaintenanceMCP server to manage social media accounts from AI assistants, enabling post creation, scheduling, publishing, and media uploads across multiple platforms.131661MIT
- AlicenseAqualityCmaintenanceMCP server for QPost that lets AI agents schedule and publish video/image posts to YouTube, TikTok, and Instagram via QPost's REST API.768MIT
- AlicenseNot gradedqualityCmaintenanceA hosted MCP server that lets AI agents generate content, upload media, create drafts, schedule posts, and publish to TikTok, Instagram, Facebook, and YouTube.MIT
Related MCP Connectors
Connect any AI agent to 11+ social platforms: schedule, publish & track posts via hosted MCP.
MCP server for QPost — lets AI agents publish video and image posts to YouTube, TikTok, Instagram.
Managed LinkedIn MCP server for AI agents: search, connect, message and enrich on accounts you own.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/tokportal/langchain-tokportal'
If you have feedback or need assistance with the MCP directory API, please join our Discord server