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.
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.
- 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
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.
One command plus a key — uvx wx-article-mcp, then supply credentials
