wechat-mp-publisher远程微信公众号发布技能。通过 HTTP MCP 解决家用宽带 IP 变动问题,支持大文件上传、多主题排版与一键发布。
Install via ClawdBot CLI:
clawdbot install MISAKIGA/wechat-mp-publisher核心痛点解决:家用宽带 IP 频繁变动,无法固定添加到公众号白名单?
本技能通过远程 wenyan-mcp 服务中转,让你的本地 OpenClaw 也能稳定发布文章,无需本地 IP 权限!
TOOLS.md。jq、mcporter 和 wenyan-cli。在技能根目录下复制 wechat.env.example 为 wechat.env 并填入公众号凭证:
cp wechat.env.example wechat.env
nano wechat.env
内容示例:
export WECHAT_APP_ID="wx..."
export WECHAT_APP_SECRET="cx..."
# Optional: 指定 MCP 配置文件 (默认 $HOME/.openclaw/mcp.json)
# export MCP_CONFIG_FILE="/path/to/your/mcp.json"
确保你的 mcp.json 指向远程 MCP 实例:
{
"mcpServers": {
"wenyan-mcp": {
"name": "公众号远程助手",
"transport": "sse",
"url": "http://<your-remote-server-ip>:3000/sse",
"headers": {
"X-API-Key": "<optional-api-key>"
}
}
}
}
直接对我说:
"帮我把 path/to/article.md 发布到公众号,使用默认主题。"
我会自动:
wechat.env 获取凭证mcporter, jq)我们提供了封装好的脚本 scripts/publish-remote.sh,体验与本地 CLI 一致:
# 赋予执行权限
chmod +x scripts/publish-remote.sh
# 发布文章 (自动加载 wechat.env)
./scripts/publish-remote.sh ./my-post.md
# 指定主题 (lapis)
./scripts/publish-remote.sh ./my-post.md lapis
与标准 wenyan-cli 一致,头部必须包含元数据:
---
title: 我的精彩文章
cover: https://example.com/cover.jpg
---
# 正文开始
...
提示:cover 推荐使用图床链接,以确保远程服务器能正确下载封面。
| 现象 | 原因 | 解决方案 |
| :--- | :--- | :--- |
| Dependencies Missing | 缺少 jq 或 mcporter | 请确保系统已安装这些工具 |
| Config Not Found | 未找到 wechat.env | 请按照步骤 1 创建并配置 |
| IP not in whitelist | 远程服务器 IP 未加白 | 登录公众号后台 -> 基本配置 -> IP 白名单,添加 MCP 服务器的公网 IP |
Generated Mar 1, 2026
Freelance writers working from various locations like home, cafes, or while traveling can use this skill to publish articles to WeChat Official Accounts without worrying about IP changes. It ensures consistent access by relying on a remote server with a fixed IP, eliminating the need to update IP whitelists manually.
Marketing agencies with team members distributed across different offices or remote settings can leverage this skill to manage WeChat Official Account content. It centralizes publishing through a remote MCP server, allowing seamless collaboration and reducing downtime due to IP restrictions.
Online tutors and educators who create instructional materials can use this skill to publish lessons or updates to WeChat Official Accounts from any internet connection. The remote setup bypasses home broadband IP limitations, ensuring reliable delivery of educational content to students.
Small businesses, such as local shops or event organizers, can utilize this skill to promote events or announcements on WeChat Official Accounts without needing IT expertise. The skill's dependency checks and easy configuration help non-technical users maintain a stable publishing workflow.
Offer this skill as part of a subscription-based service that provides remote MCP server hosting and maintenance. Users pay a monthly fee for reliable IP management, compliance support, and automated dependency checks, targeting small businesses and freelancers.
Provide consulting services to help clients configure and deploy this skill, including setting up remote servers, integrating with existing workflows, and troubleshooting. This model appeals to organizations lacking technical resources, generating revenue through one-time or ongoing support contracts.
Distribute the skill as a free open-source tool with basic functionality, while offering premium features such as advanced analytics, priority support, or custom integrations for a fee. This model attracts a broad user base and monetizes through upselling to power users or enterprises.
💬 Integration Tip
Ensure the remote MCP server's IP is added to the WeChat Official Account whitelist, and use environment variables for secure credential management to avoid exposing sensitive data.
iMessage/SMS CLI for listing chats, history, watch, and sending.
Use when you need to control Discord from Clawdbot via the discord tool: send messages, react, post or upload stickers, upload emojis, run polls, manage threads/pins/search, fetch permissions or member/role/channel info, or handle moderation actions in Discord DMs or channels.
Use when you need to control Slack from Clawdbot via the slack tool, including reacting to messages or pinning/unpinning items in Slack channels or DMs.
Send WhatsApp messages to other people or search/sync WhatsApp history via the wacli CLI (not for normal user chats).
Build or update the BlueBubbles external channel plugin for Clawdbot (extension package, REST send/probe, webhook inbound).
OpenClaw skill for designing Telegram Bot API workflows and command-driven conversations using direct HTTPS requests (no SDKs).