How to publish a Markdown article to WeChat 公众号 with wenyan-mcp
Quando usar: You draft in Obsidian/Typora/Claude and hate the WeChat web editor's formatting quirks.
Pré-requisitos
- WeChat Official Account (订阅号 or 服务号) — mp.weixin.qq.com — requires identity verification
- AppID + AppSecret — 公众号后台 → 开发 → 基本配置
- Server IP whitelisted — Same page → IP白名单; add your current IP
Fluxo
-
Pick a themeUse wenyan-mcp to list available themes. Show me the first 3.✓ Copiado→ Theme names with preview description
-
Publish to draftsTake this Markdown article [paste] and publish it to 公众号 drafts using the 'orange-heart' theme. Title: '今天聊聊 MCP'.✓ Copiado→ Draft ID returned; article visible in 草稿箱
-
Review in WeChat and send(in 公众号 后台) Open the draft, preview on mobile, schedule or publish✓ Copiado→ Article live on 公众号
Resultado: Zero copy-paste, on-brand formatting, full control before the send button.
Armadilhas
- IP not whitelisted — every call returns 40164 — Add the current machine's public IP in 公众号后台; 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