/ Annuaire / Playground / wenyan-mcp
● Communauté caol64 ⚡ Instantané

wenyan-mcp

par caol64 · caol64/wenyan-mcp

Write in Markdown, publish to WeChat 公众号 drafts — wenyan-mcp handles the formatting WeChat's editor mangles.

文颜 MCP converts Markdown to WeChat-compatible formatted HTML and uploads to your 公众号 draft folder. Supports custom CSS themes. Requires a registered WeChat Official Account and IP whitelisting — once set up, publishing is one prompt.

Pourquoi l'utiliser

Fonctionnalités clés

Démo en direct

Aperçu en pratique

wenyan.replay ▶ prêt
0/0

Installer

Choisissez votre client

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "wenyan": {
      "command": "npx",
      "args": [
        "-y",
        "wenyan-mcp"
      ],
      "_inferred": true
    }
  }
}

Ouvrez Claude Desktop → Settings → Developer → Edit Config. Redémarrez après avoir enregistré.

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "wenyan": {
      "command": "npx",
      "args": [
        "-y",
        "wenyan-mcp"
      ],
      "_inferred": true
    }
  }
}

Cursor utilise le même schéma mcpServers que Claude Desktop. La config projet l'emporte sur la globale.

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "wenyan": {
      "command": "npx",
      "args": [
        "-y",
        "wenyan-mcp"
      ],
      "_inferred": true
    }
  }
}

Cliquez sur l'icône MCP Servers dans la barre latérale Cline, puis "Edit Configuration".

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "wenyan": {
      "command": "npx",
      "args": [
        "-y",
        "wenyan-mcp"
      ],
      "_inferred": true
    }
  }
}

Même format que Claude Desktop. Redémarrez Windsurf pour appliquer.

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "wenyan",
      "command": "npx",
      "args": [
        "-y",
        "wenyan-mcp"
      ]
    }
  ]
}

Continue utilise un tableau d'objets serveur plutôt qu'une map.

~/.config/zed/settings.json
{
  "context_servers": {
    "wenyan": {
      "command": {
        "path": "npx",
        "args": [
          "-y",
          "wenyan-mcp"
        ]
      }
    }
  }
}

Ajoutez dans context_servers. Zed recharge à chaud à la sauvegarde.

claude mcp add wenyan -- npx -y wenyan-mcp

Une seule ligne. Vérifiez avec claude mcp list. Supprimez avec claude mcp remove.

Cas d'usage

Usages concrets : wenyan-mcp

How to publish a Markdown article to WeChat 公众号 with wenyan-mcp

👤 Chinese tech/finance/creative bloggers on 微信公众号 ⏱ ~15 min intermediate

Quand l'utiliser : You draft in Obsidian/Typora/Claude and hate the WeChat web editor's formatting quirks.

Prérequis
  • WeChat Official Account (订阅号 or 服务号) — mp.weixin.qq.com — requires identity verification
  • AppID + AppSecret — 公众号后台 → 开发 → 基本配置
  • Server IP whitelisted — Same page → IP白名单; add your current IP
Déroulement
  1. Pick a theme
    Use wenyan-mcp to list available themes. Show me the first 3.✓ Copié
    → Theme names with preview description
  2. Publish to drafts
    Take this Markdown article [paste] and publish it to 公众号 drafts using the 'orange-heart' theme. Title: '今天聊聊 MCP'.✓ Copié
    → Draft ID returned; article visible in 草稿箱
  3. Review in WeChat and send
    (in 公众号 后台) Open the draft, preview on mobile, schedule or publish✓ Copié
    → Article live on 公众号

Résultat : Zero copy-paste, on-brand formatting, full control before the send button.

Pièges
  • 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 ![alt](local-path.png) — wenyan-mcp uploads them to WeChat's material library automatically
Combiner avec : filesystem

Maintain consistent brand styling across WeChat posts with wenyan

👤 Content teams, corporate marketers ⏱ ~10 min intermediate

Quand l'utiliser : Multiple authors contribute and output style drifts across posts.

Déroulement
  1. Register a company theme
    Register a new wenyan-mcp theme called 'acme-corp' from this CSS: [paste]. Confirm it's saved.✓ Copié
    → Theme shows in list_themes
  2. Force all posts to use it
    From now on, when I ask you to publish a WeChat article, always use the 'acme-corp' theme unless I say otherwise.✓ Copié
    → Applied on subsequent publishes

Résultat : Every author publishes visually consistent articles with zero CSS knowledge.

Combinaisons

Associez-le à d'autres MCPs pour un effet X10

wenyan + filesystem

Publish an article that lives as a .md file on disk, with local image paths

Read ./posts/2026-04-agent-week.md and publish it to WeChat drafts using the 'acme-corp' theme.✓ Copié
wenyan + firecrawl

Scrape a public tech post and republish a localized summary

Summarize the latest Anthropic blog post into 800 words of Chinese, then publish to WeChat drafts.✓ Copié

Outils

Ce que ce MCP expose

OutilEntréesQuand appelerCoût
list_themes Pick a style before publishing 0
register_theme name: str, css: str Add a new brand style 0
delete_theme name: str Retire an old style 0
publish markdown: str, title: str, theme?: str, author?: str, digest?: str, cover?: str The payoff tool — pushes to drafts WeChat API calls (free within quota)

Coût et limites

Coût d'exécution

Quota d'API
WeChat publish API: 100 drafts/day per account; material upload: 500/day
Tokens par appel
Varies with article length; typical 2000-token post is fine
Monétaire
Free — WeChat API is free with a verified account
Astuce
Batch images into one article upload; each image counts against daily material quota

Sécurité

Permissions, secrets, portée

Stockage des identifiants : WECHAT_APP_ID, WECHAT_APP_SECRET in env vars — never commit
Sortie de données : All API calls to api.weixin.qq.com

Dépannage

Erreurs courantes et correctifs

40164 invalid IP

Add the machine's current public IP to 公众号 IP whitelist; the error returns the IP it saw

Vérifier : curl ifconfig.me to confirm your egress IP
40001 invalid credential / access_token

AppSecret wrong or access_token expired — wenyan caches it; restart the MCP to force refresh

Images not showing in the draft

Local paths must resolve; wenyan uploads them — if they're on a remote CDN, it downloads first

45009 api freq out of limit

You've hit daily material upload quota — wait until 0:00 Beijing time or reduce images

Alternatives

wenyan-mcp vs autres

AlternativeQuand l'utiliserCompromis
md2wx / Doocs md-editorYou want a web editor you copy-paste fromManual — no agent workflow
WeChat Official editorSimple posts, no brand CSSNotoriously fiddly with Markdown

Plus

Ressources

📖 Lire le README officiel sur GitHub

🐙 Voir les issues ouvertes

🔍 Parcourir les 400+ serveurs MCP et Skills