/ Verzeichnis / Playground / wenyan-mcp
● Community caol64 ⚡ Sofort

wenyan-mcp

von 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.

Warum nutzen

Hauptfunktionen

Live-Demo

In der Praxis

wenyan.replay ▶ bereit
0/0

Installieren

Wählen Sie Ihren 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
    }
  }
}

Öffne Claude Desktop → Settings → Developer → Edit Config. Nach dem Speichern neu starten.

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

Cursor nutzt das gleiche mcpServers-Schema wie Claude Desktop. Projektkonfiguration schlägt die globale.

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

Klicken Sie auf das MCP-Servers-Symbol in der Cline-Seitenleiste, dann "Edit Configuration".

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

Gleiche Struktur wie Claude Desktop. Windsurf neu starten zum Übernehmen.

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

Continue nutzt ein Array von Serverobjekten statt einer Map.

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

In context_servers hinzufügen. Zed lädt beim Speichern neu.

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

Einzeiler. Prüfen mit claude mcp list. Entfernen mit claude mcp remove.

Anwendungsfälle

Praxisnahe Nutzung: wenyan-mcp

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

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

Wann einsetzen: You draft in Obsidian/Typora/Claude and hate the WeChat web editor's formatting quirks.

Voraussetzungen
  • WeChat Official Account (订阅号 or 服务号) — mp.weixin.qq.com — requires identity verification
  • AppID + AppSecret — 公众号后台 → 开发 → 基本配置
  • Server IP whitelisted — Same page → IP白名单; add your current IP
Ablauf
  1. Pick a theme
    Use wenyan-mcp to list available themes. Show me the first 3.✓ Kopiert
    → 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'.✓ Kopiert
    → Draft ID returned; article visible in 草稿箱
  3. Review in WeChat and send
    (in 公众号 后台) Open the draft, preview on mobile, schedule or publish✓ Kopiert
    → Article live on 公众号

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

Fallstricke
  • 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
Kombinieren mit: filesystem

Maintain consistent brand styling across WeChat posts with wenyan

👤 Content teams, corporate marketers ⏱ ~10 min intermediate

Wann einsetzen: Multiple authors contribute and output style drifts across posts.

Ablauf
  1. Register a company theme
    Register a new wenyan-mcp theme called 'acme-corp' from this CSS: [paste]. Confirm it's saved.✓ Kopiert
    → 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.✓ Kopiert
    → Applied on subsequent publishes

Ergebnis: Every author publishes visually consistent articles with zero CSS knowledge.

Kombinationen

Mit anderen MCPs für 10-fache Wirkung

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.✓ Kopiert
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.✓ Kopiert

Werkzeuge

Was dieses MCP bereitstellt

WerkzeugEingabenWann aufrufenKosten
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)

Kosten & Limits

Was der Betrieb kostet

API-Kontingent
WeChat publish API: 100 drafts/day per account; material upload: 500/day
Tokens pro Aufruf
Varies with article length; typical 2000-token post is fine
Kosten in €
Free — WeChat API is free with a verified account
Tipp
Batch images into one article upload; each image counts against daily material quota

Sicherheit

Rechte, Secrets, Reichweite

Credential-Speicherung: WECHAT_APP_ID, WECHAT_APP_SECRET in env vars — never commit
Datenabfluss: All API calls to api.weixin.qq.com

Fehlerbehebung

Häufige Fehler und Lösungen

40164 invalid IP

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

Prüfen: 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

Alternativen

wenyan-mcp vs. andere

AlternativeWann stattdessenKompromiss
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

Mehr

Ressourcen

📖 Offizielle README auf GitHub lesen

🐙 Offene Issues ansehen

🔍 Alle 400+ MCP-Server und Skills durchsuchen