/ 目录 / 演练场 / wechat-article-publisher-skill
● 社区 iamzifei ⚡ 即开即用

wechat-article-publisher-skill

作者 iamzifei · iamzifei/wechat-article-publisher-skill

Publishes Markdown or HTML articles to your WeChat Official Account as drafts via a third-party relay API — no browser automation.

Automates publishing to 微信公众号 drafts. Uses an API key from wx.limyai.com (a third-party relay you authorize against your WeChat account) rather than wrangling cookies. Parses Markdown/HTML, auto-uploads images, saves as a draft for you to preview before hitting publish in the official backend.

为什么要用

核心特性

实时演示

实际使用效果

wechat-article-publisher-skill.replay ▶ 就绪
0/0

安装

选择你的客户端

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "wechat-article-publisher-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/iamzifei/wechat-article-publisher-skill",
        "~/.claude/skills/wechat-article-publisher-skill"
      ],
      "_inferred": true
    }
  }
}

打开 Claude Desktop → Settings → Developer → Edit Config。保存后重启应用。

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "wechat-article-publisher-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/iamzifei/wechat-article-publisher-skill",
        "~/.claude/skills/wechat-article-publisher-skill"
      ],
      "_inferred": true
    }
  }
}

Cursor 使用与 Claude Desktop 相同的 mcpServers 格式。项目级配置优先于全局。

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "wechat-article-publisher-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/iamzifei/wechat-article-publisher-skill",
        "~/.claude/skills/wechat-article-publisher-skill"
      ],
      "_inferred": true
    }
  }
}

点击 Cline 侧栏中的 MCP Servers 图标,然后选 "Edit Configuration"。

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "wechat-article-publisher-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/iamzifei/wechat-article-publisher-skill",
        "~/.claude/skills/wechat-article-publisher-skill"
      ],
      "_inferred": true
    }
  }
}

格式与 Claude Desktop 相同。重启 Windsurf 生效。

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "wechat-article-publisher-skill",
      "command": "git",
      "args": [
        "clone",
        "https://github.com/iamzifei/wechat-article-publisher-skill",
        "~/.claude/skills/wechat-article-publisher-skill"
      ]
    }
  ]
}

Continue 使用服务器对象数组,而非映射。

~/.config/zed/settings.json
{
  "context_servers": {
    "wechat-article-publisher-skill": {
      "command": {
        "path": "git",
        "args": [
          "clone",
          "https://github.com/iamzifei/wechat-article-publisher-skill",
          "~/.claude/skills/wechat-article-publisher-skill"
        ]
      }
    }
  }
}

加入 context_servers。Zed 保存后热重载。

claude mcp add wechat-article-publisher-skill -- git clone https://github.com/iamzifei/wechat-article-publisher-skill ~/.claude/skills/wechat-article-publisher-skill

一行命令搞定。用 claude mcp list 验证,claude mcp remove 卸载。

使用场景

实战用法: wechat-article-publisher-skill

Publish a Markdown article to WeChat as a draft

👤 Bloggers who write in Markdown and also want to post to 公众号 ⏱ ~10 min beginner

何时使用: You've written a post and want it as a WeChat draft without manual formatting.

前置条件
  • wx.limyai.com API key + authorized WeChat account — Sign up on wx.limyai.com, authorize via QR, export the WECHAT_API_KEY
  • Skill installed — git clone https://github.com/iamzifei/wechat-article-publisher-skill ~/.claude/skills/wechat-article-publisher-skill
步骤
  1. Set the API key and pick the account
    export WECHAT_API_KEY=... then ask Claude: 'publish my post.md to WeChat as a draft'.✓ 已复制
    → Claude lists authorized accounts, you pick one
  2. Review the draft in the WeChat backend
    The skill confirms draft saved — open mp.weixin.qq.com and verify formatting.✓ 已复制
    → Draft appears with images in place

结果: A polished draft you only need to review and click publish on.

注意事项
  • Markdown tables render poorly — Pre-convert tables to image or use simpler layouts — WeChat's renderer is limited
  • Images on external CDNs get blocked — Skill auto-uploads local images; be explicit about paths
搭配使用: filesystem · superseo-skill

Repurpose a blog post as a WeChat draft with formatted images

👤 Content teams reaching Chinese audiences ⏱ ~30 min beginner

何时使用: You have an English blog post and want a Chinese WeChat version.

步骤
  1. Translate + adapt first
    Translate post.md to Chinese, adapt examples for WeChat audience.✓ 已复制
    → Chinese post.md
  2. Publish as draft
    Now use wechat-article-publisher-skill to save it as a draft.✓ 已复制
    → Draft saved, preview URL returned

结果: Localized WeChat draft ready to schedule.

组合

与其他 MCP 搭配,撬动十倍杠杆

wechat-article-publisher-skill + filesystem

Read the post.md + images from a folder and publish in one step

Take posts/2025-01-rag.md and publish to WeChat — auto-find hero image.✓ 已复制
wechat-article-publisher-skill + superseo-skill

Optimize title + hook before posting

Run superseo featured-snippet-optimizer on the intro first, then publish.✓ 已复制

工具

此 MCP 暴露的能力

工具输入参数何时调用成本
validate_key WECHAT_API_KEY First run each session 1 API call
upload_image local image path Per image in the article 1 API call per image
save_draft title, body (md|html), thumb_media_id, account_id Final step 1 API call

成本与限制

运行它的成本

API 配额
Depends on wx.limyai.com plan — typically free tier covers a handful of posts/day
每次调用 Token 数
Small — skill drives an HTTP flow
费用
Free skill; relay API has its own pricing
提示
Batch image uploads in one run to avoid repeated rate hits

安全

权限、密钥、影响范围

最小权限: Draft write on your authorized WeChat Official Account
凭据存储: WECHAT_API_KEY in env var. Never paste into chat logs.
数据出站: Content + images go through wx.limyai.com -> WeChat. Trust is transitive on the relay.
切勿授予: Publish (the skill is draft-only by design)

故障排查

常见错误与修复

401 Unauthorized

WECHAT_API_KEY expired or not set. Re-issue at wx.limyai.com.

验证: curl -H 'Authorization: Bearer $WECHAT_API_KEY' https://wx.limyai.com/health
Images not uploading

Check local paths are absolute and the process has read access

验证: ls -l path/to/image
Formatting breaks in WeChat preview

Simplify Markdown (no nested lists, limit inline HTML) — WeChat's renderer is strict

替代方案

wechat-article-publisher-skill 对比其他方案

替代方案何时用它替代权衡
Manual copy-paste in mp.weixin.qq.comOccasional posts, no automation needTedious, inconsistent formatting

更多

资源

📖 阅读 GitHub 上的官方 README

🐙 查看未解决的 issue

🔍 浏览全部 400+ MCP 服务器和 Skills