Provides tools for managing WeChat Official Accounts, enabling capabilities such as creating and listing drafts, uploading images, and publishing articles.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@WeChat Official Account MCP Serverlist my recent WeChat drafts"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
微信公众号 MCP Server
微信公众号管理工具,支持文章发布、草稿管理等功能。
安装
配置
复制 .env.example 为 .env,填入你的配置:
环境变量
变量 | 说明 |
| 微信公众号AppID |
| 微信公众号AppSecret |
| Token缓存目录 (默认: ~/.cache/wechat-mcp) |
使用
启动MCP服务器:
可用工具
create_draft- 创建草稿upload_image- 上传图片list_drafts- 列出草稿publish_draft- 发布草稿(需要权限)
Token缓存
使用 diskcache 实现本地缓存,避免频繁请求access_token。
Docker 部署
构建镜像
使用 Docker Compose(推荐)
使用 Docker Run
环境变量
变量 | 说明 | 必填 |
| 微信公众号AppID | 是 |
| 微信公众号AppSecret | 是 |
| Token缓存目录 | 否 (默认: /app/.cache) |
健康检查
服务运行在 8080 端口,MCP 客户端可连接进行健康检查。