toutiao_mcp_server
MCP server from chemany/toutiao_mcp_server
claude mcp add --transport stdio chemany-toutiao_mcp_server python start_server.py \ --env TOUTIAO_BASE_URL="https://mp.toutiao.com/ (optional override)" \ --env SELENIUM_HEADLESS="True/False (optional, default depends on config)"
How to use
This MCP server implements a complete 今日头条 content management platform built on the FastMCP framework. It provides user authentication management, content publishing for articles and micro-posts, data analytics, and multi-platform publishing compatibility with Xiaohongshu data formats. The server exposes HTTP APIs for logging in, checking login status, publishing content (articles and micro posts), and a set of multi-platform publishing helpers that can convert and publish Xiaohongshu-formatted data to 今日头条. Use the included multi-platform publisher to push content to both Xiaohongshu and 今日头条 from a unified data source, benefiting from image handling, URL downloading, and batch operations. The server also supports generating reports and analytics to monitor performance and engagement metrics over time.
How to install
Prerequisites:
- Python 3.8 or newer
- Chrome browser (for Selenium-based automated login)
- Supported OS: Windows/macOS/Linux
Installation steps:
- Clone the repository and navigate to the project folder
git clone <repository-url>
cd toutiao_mcp_server
- Create or install Python dependencies
python -m pip install --upgrade pip
pip install -r requirements.txt
- Ensure Chrome WebDriver dependencies are available (webdriver-manager will handle downloads during runtime)
- Optional: copy and customize configuration
cp config.example.py config_local.py
- Start the MCP server
python start_server.py
You can customize the port and log level when starting the server:
python start_server.py --port 8080 --log-level DEBUG
Additional notes
Tips and common considerations:
- First run may require manual login to initialize cookies; subsequent starts will attempt to reuse saved cookies.
- The system supports image formats JPG, PNG, GIF, and WebP, with automatic compression enabled by default.
- For multi-platform publishing, ensure both Xiaohongshu MCP server and 今日头条 MCP server are up and reachable; the integration_example.py demonstrates batch publishing across platforms.
- If you enable Selenium headless mode, ensure the environment has all necessary dependencies for headless Chrome.
- API endpoints support batch operations and return structured results including success/failure details and tallied statistics.
- Review and adjust SELENIUM_CONFIG and CONTENT_CONFIG in your local config to fit your environment and publishing policies.
Related MCP Servers
mcp-vegalite
MCP server from isaacwasserman/mcp-vegalite-server
github-chat
A Model Context Protocol (MCP) for analyzing and querying GitHub repositories using the GitHub Chat API.
nautex
MCP server for guiding Coding Agents via end-to-end requirements to implementation plan pipeline
pagerduty
PagerDuty's official local MCP (Model Context Protocol) server which provides tools to interact with your PagerDuty account directly from your MCP-enabled client.
futu-stock
mcp server for futuniuniu stock
mcp -boilerplate
Boilerplate using one of the 'better' ways to build MCP Servers. Written using FastMCP