Douyin Creator Platform MCP Server
Automates the Douyin Creator Platform to manage login states and publish image-text content via the MCP protocol. It enables users to check authentication status, manage cookies, and automate article publishing with titles, text, and images.
README
抖音创作者平台 MCP Server
通过 MCP 协议自动化操作抖音创作者平台,实现图文发布、登录状态检查与 Cookie 管理。 刚开始写,后续继续完善,下载打包zip, AI选择添加skill直接调用
功能特性
- ✅ 图文发布:自动填写标题、正文、上传头图、选择配乐
- ✅ 登录检查:验证 Cookie 有效性,确认登录状态
- ✅ Cookie 管理:自动保存登录状态,支持切换账号
- ✅ 扫码登录:首次使用扫码登录,后续自动保持登录
环境要求
- Python 3.8+
- Playwright
安装部署
# 安装依赖
pip install -r requirements.txt
# 安装浏览器
playwright install chromium
# 启动服务
python main.py
服务启动后:
- MCP 端点:
http://127.0.0.1:18061/mcp - 健康检查:
http://127.0.0.1:18061/health
工具列表
1. check_douyin_login_status
检查抖音创作者平台的登录状态。
参数:无
返回:
logged_in:是否已登录current_url:当前页面 URLcookie_count:Cookie 数量
2. publish_douyin_article
发布图文文章到抖音创作者平台。
参数:
title:文章标题(建议 10-30 字)content:文章正文(必须 ≥100 字)image:头图路径(支持绝对路径和相对路径)
3. clear_douyin_cookies
清除本地保存的抖音登录 Cookie,用于切换账号。
使用流程
首次使用
- 调用
check_douyin_login_status检查登录状态 - 如未登录,调用
publish_douyin_article触发扫码登录 - 用抖音 APP 扫码完成登录
- Cookie 自动保存,后续无需再扫码
日常发布
- 调用
check_douyin_login_status确认登录状态 - 调用
publish_douyin_article发布文章
注意事项
- 文章内容必须 ≥100 字
- 首次使用需要图形界面环境(弹出浏览器扫码)
- 头图文件必须存在
- 合理控制发布频率
文件结构
douyin-mcp-server/
├── skill.md # 技能说明
├── main.py # MCP 服务主程序
├── requirements.txt # Python 依赖
├── README.md # 本文件
└── image/ # 图片资源
└── 2.jpg
许可证
MIT License
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.