
TikTok Shop
io.github.Buer2333Published by GitHub account Buer2333v0.3.0Updated Oct 27, 2026
Read-only TikTok Shop Partner API: orders, finance, products and analytics across shops.
The publisher's own server: Tiktokporn
Overview
Read-only TikTok Shop Partner API server that lets an assistant query orders, finance, products and analytics across multiple shops.
- What you can do
- List configured shops and inspect or refresh their access tokens
- Query shop orders, order details, returns and cancellations
- Read settlement statements and shop transactions
- Browse the product catalog and product details
- Pull shop, hourly, product, SKU, video and customer-service performance analytics
- Read video GMV and platform bestsellers for videos, creators and products
- When to use it
- For TikTok Shop sellers and agencies who want an assistant to answer questions about sales, orders, settlements and affiliate performance directly from the official Partner API, across several shops, without browser scraping.
- Requirements
- Runs locally as a Python package (pip or uvx). Needs a shops.json credentials file, by default under ~/.config/tiktok-mcp/ or at the path in TIKTOK_SHOP_CONFIG, containing app_key, app_secret, access_token, refresh_token, shop_id and shop_cipher per shop, obtained from a TikTok Shop Partner Center app. The bestsellers tools need a shop with the Bestsellers scope, optionally named in TIKTOK_SHOP_BESTSELLERS_SHOP. Network access to the TikTok Shop API.
Installation
In SourceWeft
- Open TikTok Shop in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
tiktok-shop-mcp
A Model Context Protocol (MCP) server for the TikTok Shop Partner API — query orders, finance, products, analytics, and affiliate performance across multiple shops from Claude, or any other MCP client.
Built for sellers and agencies who operate TikTok Shops and want their AI assistant to answer questions like "what did the US shop sell yesterday?", "which SKUs are trending this week?", or "pull the settlement statements for June" — directly against the official API, with no browser scraping.
Features
- Multi-shop — configure any number of shops in one JSON file; every tool takes an optional
seller_name(partial match) to pick the shop - 22 tools covering orders, finance, product catalog, shop/video/SKU analytics, affiliate best-sellers, and returns/cancellations
- Human-friendly dates — pass
start_date=2026-07-01+ an IANA timezone instead of unix timestamps; the server handles conversion - Token lifecycle — inspect expiry and refresh access tokens (single shop or all shops) without leaving the conversation
- Resilient by default — all requests go through
mcp-retry(exponential backoff + jitter on 429/5xx/network errors) - Read-only against your shop — no tool edits listings, creates products, or uploads files. The only thing the server writes is your own
shops.json, when it refreshes tokens, with owner-only (0600) permissions. For defense in depth, authorize the Partner Center app with read scopes only
Tools
Installation
Or from source, into a virtualenv, with the direct dependencies pinned to the versions the tests run against:
requirements.txt pins the direct runtime dependencies to exact versions,
including mcp-retry, which wraps every API call and so sees your tokens.
Transitive dependencies (pydantic, starlette, and so on) are not pinned; for a
fully reproducible install, generate a lock file with pip-compile --generate-hashes. Bump a pin only after reading what changed in that release.
Compatibility
Works with both mcp 1.x and 2.x. mcp 2.0 renamed FastMCP to MCPServer
(mcp.server.mcpserver) and turned mcp.server.fastmcp into a raising stub;
server.py imports via a try-v2-except-v1 shim. Tests pass on 1.28.1 and 2.1.1;
requirements.txt pins 2.1.1.
Configuration
Credentials live in a JSON file outside the repo (default ~/.config/tiktok-mcp/shops.json, override with the TIKTOK_SHOP_CONFIG env var). The server never reads a shops.json from the project folder, so a copy there can't be picked up and synced or committed by accident. Keep the file owner-only:
The setup scripts leave token backups (shops.json.bak.* and a recovery/ folder) next to it; delete them once your shops are working. A small shops.json.lock file also lives there; it is how the server, the cron refresher, and the setup scripts avoid writing the file at the same time, so leave it be.
You get app_key / app_secret by creating an app on the TikTok Shop Partner Center, then authorize your shop(s) to obtain tokens. shop_id / shop_cipher are returned by the authorized-shops endpoint; the bundled probe_authorized_shops.py script can fetch them for you.
The three *_bestselling tools need a shop whose app has the Bestsellers scope. The lists are platform-wide, so one such shop is enough: set TIKTOK_SHOP_BESTSELLERS_SHOP to its seller_name (partial match OK) and the tools use it whenever seller_name is omitted. Without it they fall back to the first shop in shops.json.
Claude Code
Claude Desktop / other MCP clients
Example prompts
- "List my shops and when their tokens expire"
- "Orders for MY SHOP US on 2026-07-18, Eastern time"
- "Which creators drove the most GMV for us in the last 7 days?"
- "Compare yesterday's hourly GMV curve with the day before"
- "Refresh tokens for all shops"
Architecture
All tools return structured JSON. Errors come back as {"error": true, "message": …, "suggestion": …} so the model can self-correct (e.g. refresh an expired token and retry).
Disclaimer
This is an independent open-source project, not affiliated with or endorsed by TikTok. Use of the TikTok Shop API is subject to TikTok's own terms.
License
Source: README.md at commit 8f2abb9
Tools
0Version history
1- v0.3.0LatestOct 19, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Other Tik-Tok integrations
Tiktokporn
porn.tik-tokOfficial publisher
A remote MCP server that lets an assistant search and browse an adult video site's public catalog of videos, creators and hashtags.

Best Time to Post: Instagram, TikTok & YouTube
Published by GitHub account Nero-Engine
Best Time to Post: Instagram, TikTok & YouTube's hosted MCP server; credential required; Streamable HTTP.

YouTube & TikTok Transcripts
Published by GitHub account heyitsgautham
YouTube & TikTok Transcripts's hosted MCP server; credential required; Streamable HTTP.

TikTok Pages MCP by InsightfulPipe
com.insightfulpipe
Hosted TikTok Pages MCP server that lets an assistant read a creator's profile and video metrics and start video or photo posts.

TikTok Ads MCP by InsightfulPipe
com.insightfulpipe
Hosted TikTok Ads MCP server that lets an AI assistant read TikTok advertising data and manage campaigns, ad groups, ads and audiences.