LABSCO SUMMARY
It stops at the draft, which is the right place to stop.
Nothing reaches your readers — the article lands in the draft box and a person presses the button. The Mermaid handling is what saves real time: diagrams written as code in Markdown come out as images the WeChat editor actually displays, instead of a code block nobody can read. The IP allowlist is the step people forget, and without it the API refuses.
What it is
A Python server that publishes to a WeChat Official Account's draft box. It takes Markdown, handles the rich-text conversion, uploads the images and media it needs, and renders Mermaid code blocks to images so they appear in the finished article.
What you get
- An article saved to your Official Account's draft box, ready to review and publish in the back office
- Full Markdown support with syntax-highlighted code
- Mermaid diagrams rendered to images and uploaded automatically — flowcharts, sequence diagrams, Gantt charts, class diagrams, state diagrams and pie charts
- Image upload and media handling done during the same call
Requirements
A WeChat Official Account with its app ID and secret, supplied as WXMP_APPID and WXMP_SECRET. Before anything works you have to add your server's IP to the IP allowlist in the Official Account back office. Run with uvx wx-article-mcp, or clone, pip install -r requirements.txt and run from source. The package is wx-article-mcp 0.1.5.
Setup effort
One command plus credentials — uvx wx-article-mcp, then supply credentials
USE CASES
Publishing a technical post you wrote in Markdown
Send it straight to drafts instead of pasting into the WeChat editor and repairing the formatting.
Getting diagrams into a WeChat article
Write the diagram as a Mermaid block and let it arrive as an uploaded image.
Drafting from the conversation
Have the assistant write the article and file it, then review it in the back office before publishing.
BEFORE YOU INSTALL
What to know first
Requires
- uvx on PATH
- WXMP_SECRET in your environment
- WXMP_APPID in your environment
Where it runs
All 4 documented clients run the server on your machine.
INSTALLATION
Connect your client
Server setup
uvx wx-article-mcpMCP Clients
Windsurf, Cursor, Claude Desktop, Cline
{
"mcpServers": {
"wx-article-mcp": {
"command": "uvx",
"args": [
"wx-article-mcp"
],
"env": {
"WXMP_APPID": "<YOUR_WXMP_APPID>",
"WXMP_SECRET": "<YOUR_WXMP_SECRET>"
}
}
}
}