Labsco
MCP SERVER

WeChat Public Account Article Saver

by jeweis

Send a Markdown article — Mermaid diagrams and all — straight into your WeChat Official Account drafts.

CMS & Blog Publishing
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 a key — uvx wx-article-mcp, then supply credentials