Skip to main content

tiktok-erp-mcp

TikTok Shop 一键上架 MCP 服务。把 Seller Open Platform 的 Product API 封装成 MCP 工具, 供智能体完成「草稿 → 审核 → 上架」闭环。凭据(AppKey/AppSecret/店铺 token)只在 server 端使用, 调用方只传业务参数(user_id / shop_cipher / draft_id),永远不碰凭据。

工具清单

工具 说明
list_shops 列出当前用户已授权店铺(返回 shop_cipher 等展示字段,不含 token)
get_categories 获取类目树,精确匹配 category_id(叶子类目)
create_product_draft 生成上架草稿(save_mode=AS_DRAFT,无真实上架效果)
get_draft 查询草稿详情
update_draft 修改草稿内容(仅 draft 状态可改)
submit_for_review 草稿提交人工审核(draft → submitted)
publish_draft 上架(前置:status=approved),用 save_mode=LISTING 进入平台审核

状态机:draft → submitted → approved → published

启动(STDIO MCP)

uvx tiktok-erp-mcp

环境变量

变量 必填 说明
TIKTOK_APP_KEY 开放平台应用 AppKey
TIKTOK_APP_SECRET 应用 AppSecret
TIKTOK_SANDBOX true/false,默认 true
TIKTOK_BASE_URL API 域名,默认生产域名
TIKTOK_DB_PATH SQLite 路径,默认 ~/.tiktok_erp_mcp/tokens.db
TIKTOK_ENCRYPTION_KEY Fernet 密钥,留空则明文存 token(仅限 demo)

安全说明

  • access_token 只存 server 端 SQLite,LLM 只拿到 shop_cipher(密文),永远看不到 token。
  • 生产环境请务必设置 TIKTOK_ENCRYPTION_KEY(Fernet),demo/沙箱可留空明文。

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tiktok_erp_mcp-0.1.0.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tiktok_erp_mcp-0.1.0-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file tiktok_erp_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: tiktok_erp_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for tiktok_erp_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 266fe11c7637f50d5dd8bba7631b7c332ab41fd7b1d3f757f8bc1ba2f704d927
MD5 011ac8ad0bffc5f170125c1ee40155e8
BLAKE2b-256 d831c626ef915b8251e74b6523675c58375a26f4883aff8b09767e6a98f665cd

See more details on using hashes here.

File details

Details for the file tiktok_erp_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: tiktok_erp_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for tiktok_erp_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 557ddf52c3208266469f574abe38adb200940e60114ab6e78e2e5b205c4bb400
MD5 6ae2868a458463579b6d4cd8bf1df3e9
BLAKE2b-256 721ffce2ffb8e458bd83b1a530802137eb0eee0e93956e6bd305eb107d1a6f72

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page