huimei 0.5.0
pip install huimei
Released:
MCP Server & CLI for social media automation โ let AI agents publish to TikTok, Instagram, YouTube, Douyin, XHS, Bilibili and 15+ platforms via Model Context Protocol
Navigation
Verified details
These details have been verified by PyPIMaintainers
๐ Avatar for edward.aming from gravatar.comedward.aming
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: HuiMei Team
- Tags mcp , mcp-server , social-media , automation , cli , ai-agent , model-context-protocol , claude , chatgpt , llm-tools , agentic , ai-automation , ai-workflow , computer-use , tiktok , instagram , youtube , twitter , x , threads , linkedin , douyin , xiaohongshu , xhs , bilibili , kuaishou , weibo , zhihu , wechat , toutiao , baijiahao , playwright , rpa , browser-automation , cross-posting , content-publishing , social-media-management , creator-tools , multi-platform , scheduling , marketing-automation
- Requires: Python >=3.10
-
Provides-Extra:
dev
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Project description
HuiMei ๆ งๅช โ Chinese Social Media Automation CLI & MCP Server
๐ PyPI version
๐ Python
๐ License: MIT
The first MCP Server for Chinese social media โ let AI agents publish to Douyin, XHS, Bilibili, Kuaishou, Weibo, and 6 more platforms through one unified interface.
Why HuiMei?
- ๐ Only MCP Server for Chinese social media โ Covers 11 platforms including ๆ้ณ (Douyin), ๅฐ็บขไนฆ (XHS), B็ซ (Bilibili), ๅฟซๆ (Kuaishou), ๅพฎๅ (Weibo), and more. No other tool does this.
- ๐ CLI + MCP dual interface โ Humans use the terminal (
huimei publish), AI agents use the MCP protocol. Same engine, two entry points. - ๐ Local-first execution โ Playwright runs on your device. Cookies are encrypted and stored locally. Your credentials never leave your machine.
- ๐ Hybrid execution โ Cloud for convenience, local for safety. Auto mode gives you the best of both โ tries your local browser first, falls back to cloud if offline.
- โก Zero-config worker โ Login once, CLI stays connected. Your WebUI can dispatch tasks to your local machine with no extra setup.
Supported Platforms
| Platform ID | Name | Video | Image |
|---|---|---|---|
douyin |
ๆ้ณ (Douyin) | โ | โ |
xhs |
ๅฐ็บขไนฆ (Xiaohongshu/RED) | โ | โ |
bilibili |
B็ซ (Bilibili) | โ | โ |
ks |
ๅฟซๆ (Kuaishou) | โ | โ |
weibo |
ๅพฎๅ (Weibo) | โ | โ |
tencent |
่ง้ขๅท (WeChat Channels) | โ | โ |
tk |
TikTok | โ | โ |
toutiao |
ๅคดๆก (Toutiao) | โ | โ |
baijiahao |
็พๅฎถๅท (Baijiahao) | โ | โ |
weixingongzhonghao |
ๅพฎไฟกๅ ฌไผๅท (WeChat MP) | โ | โ |
zhihu |
็ฅไน (Zhihu) | โ | โ |
Installation
Option 1: pip (recommended)
pipinstallhuimei playwrightinstallchromium
Option 2: pipx (isolated environment)
pipxinstallhuimei playwrightinstallchromium
Option 3: One-line install script
curl-fsSLhttps://raw.githubusercontent.com/huimei-engine/huimei-cli/main/install.sh|bash
Quick Start
# Log in to your account huimeilogin # List supported platforms huimeiplatforms # List linked social media accounts huimeiaccountlist # Check CLI and connection status huimeistatus
Execution Modes
HuiMei supports three execution modes, configurable via WebUI (Profile โ Publish Settings) or CLI:
| Mode | Description | Best For |
|---|---|---|
| โ๏ธ Cloud | Server-side engine publishes | Zero-config, batch publishing |
| ๐ป Local | CLI opens local browser | Residential IP, lower risk |
| ๐ Auto (default) | CLI-first, cloud fallback | Best of both worlds |
# Switch via CLI huimeilogin--serverprod# Connect to production # Or change in WebUI: Profile โ Publish Settings
When using Local or Auto mode, the CLI background worker automatically:
- Connects to backend via WebSocket
- Receives publish tasks from WebUI
- Downloads media files from cloud storage
- Opens local browser with your cookies
- Executes the publish automation
- Reports results back to WebUI
No manual worker management needed โ it starts on login and reconnects automatically.
MCP Server Integration
MCP (Model Context Protocol) allows AI agents to call external tools as if they were native functions. HuiMei ships a built-in MCP server so agents like Claude, Hermes, and GPT can manage your social media directly.
Claude Code / Claude Desktop
Add to your MCP config (~/.claude/claude_code_config.json or Claude Desktop settings):
{ "mcpServers":{ "huimei":{ "command":"huimei-mcp-server", "args":[] } } }
Hermes Agent
Add to your Hermes config:
mcp_servers: huimei: command:huimei-mcp-server
Available MCP Tools
| Tool | Description |
|---|---|
huimei_login |
Launch browser login flow for a platform |
huimei_status |
Check CLI status and backend connectivity |
huimei_logout |
Log out and clear local session |
huimei_platforms |
List all supported platforms and capabilities |
huimei_accounts |
List all linked social media accounts |
huimei_publish |
Create a publish task (video/image to platforms) |
Architecture
โโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ CLI (Your Device) โโโโWSโโโถโ Java Backend (Cloud) โ
โ โโโHTTPโโโถโ โ
โ โธ Playwright browser โ โ โธ Account management โ
โ โธ Encrypted cookies โ โ โธ Task scheduling โ
โ โธ Residential IP โ โ โธ Execution routing โ
โ โธ MCP Server โ โ โธ Settings sync โ
โ โธ Background worker โ โ โธ Subscription billing โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโ
"The Arm" "The Brain"
CLI is the arm, Backend is the brain. The CLI executes browser automation locally. All business logic, scheduling, and orchestration happen on the backend.
Use Cases
๐น Content Creators โ Write once, publish everywhere. Record a video, add your caption, and distribute to all 11 platforms with a single command.
๐ค AI Agents โ Let Claude or GPT manage your social media via MCP. Your agent can check account status, schedule posts, and publish content autonomously.
๐ Marketing Teams โ Automate matrix account publishing across dozens of accounts and platforms. Integrate into your existing CI/CD or content pipeline.
๐ Settings Sync โ Settings changed in WebUI instantly sync to CLI via WebSocket.
Links
- Homepage: huimei.smaroot.tech
- PyPI: pypi.org/project/huimei
- Documentation: huimei.smaroot.tech/docs
- Changelog: CHANGELOG.md
License
MIT ยฉ 2026 Beijing HuiGen ZhiYan Technology Co., Ltd (ๅไบฌๆ งๆ นๆบ็ ็งๆๆ้่ดฃไปปๅ ฌๅธ)
Project details
Verified details
These details have been verified by PyPIMaintainers
๐ Avatar for edward.aming from gravatar.comedward.aming
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: HuiMei Team
- Tags mcp , mcp-server , social-media , automation , cli , ai-agent , model-context-protocol , claude , chatgpt , llm-tools , agentic , ai-automation , ai-workflow , computer-use , tiktok , instagram , youtube , twitter , x , threads , linkedin , douyin , xiaohongshu , xhs , bilibili , kuaishou , weibo , zhihu , wechat , toutiao , baijiahao , playwright , rpa , browser-automation , cross-posting , content-publishing , social-media-management , creator-tools , multi-platform , scheduling , marketing-automation
- Requires: Python >=3.10
-
Provides-Extra:
dev
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file huimei-0.5.0.tar.gz.
File metadata
- Download URL: huimei-0.5.0.tar.gz
- Upload date:
- Size: 57.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78b89a473d7fb7319936d2c42e811d4001b123b51e2fb0c74a05f2bcf3e209f0
|
|
| MD5 |
7469cdd7d8b7153e8d4f2b9d06c5ae63
|
|
| BLAKE2b-256 |
00ea57d800071186e6c2a5f104c661d7bcb18a1075c6750e6ce4e031ea9e5a2b
|
File details
Details for the file huimei-0.5.0-py3-none-any.whl.
File metadata
- Download URL: huimei-0.5.0-py3-none-any.whl
- Upload date:
- Size: 72.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b7ae2179b7a7c9ad26fef71a3cd358c9e210e079476ad87856cf8597d33f2fe
|
|
| MD5 |
a7727e7ff349a94e54363b48b4c4ba0f
|
|
| BLAKE2b-256 |
7424f47b82a1fba8203a8b469b66dae640b853f03795ecd3dd15bffd1f98ee13
|
