How to publish a Markdown article to WeChat WeChat Official Account with wenyan-mcp
When to use: You draft in Obsidian/Typora/Claude and hate the WeChat web editor's formatting quirks.
Prerequisites
- WeChat Official Account (subscription or service account) — mp.weixin.qq.com — requires identity verification
- AppID + AppSecret — WeChat Official Account dashboard → Development → Basic configuration
- Server IP whitelisted — Same page → IP allowlist; add your current IP
Flow
-
Pick a themeUse wenyan-mcp to list available themes. Show me the first 3.✓ Copied→ Theme names with preview description
-
Publish to draftsTake this Markdown article [paste] and publish it to WeChat Official Account drafts using the 'orange-heart' theme. Title: 'Talking about MCP today'.✓ Copied→ Draft ID returned; article visible in the drafts folder
-
Review in WeChat and send(in WeChat Official Account dashboard) Open the draft, preview on mobile, schedule or publish✓ Copied→ Article live on WeChat Official Account
Outcome: Zero copy-paste, on-brand formatting, full control before the send button.
Pitfalls
- IP not whitelisted — every call returns 40164 — Add the current machine's public IP in WeChat Official Account dashboard; if your IP changes often, use a static egress proxy
- Images break because they point to external URLs — Use
— wenyan-mcp uploads them to WeChat's material library automatically