
Wechat Writer Mcp
io.github.datoushiwoPublished by GitHub account datoushiwov0.1.1Updated Oct 24, 2026
面向技术博主的 AI 内容加工流水线 MCP —— 从原始素材到公众号草稿箱
Overview
A local MCP server that turns raw markdown or web sources into formatted WeChat Official Account drafts, saving them to the draft box only.
- What you can do
- Import source material from a local markdown file or a web URL, returning markdown plus title and word-count metadata. Reformat markdown for WeChat, producing adapted HTML, three title candidates and a summary suggestion. Estimate originality by scoring the article and comparing it with your own past drafts. Save the finished title and HTML into the WeChat draft box and return a media ID and backend link.
- When to use it
- Useful for technical bloggers who write in markdown and want an assistant to handle WeChat formatting, title options and draft creation. It suits a review-then-publish workflow where you finish and send the post manually in the WeChat backend.
- Requirements
- Runs locally via npx or a local npm install, so Node.js is needed. Requires a WeChat Official Account AppID and AppSecret (WECHAT_APP_ID, WECHAT_APP_SECRET), plus adding your outbound IP to the account's IP whitelist. Optional settings cover cover-image directory, default author and API timeout.
Installation
In SourceWeft
- Open Wechat Writer Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
wechat-writer-mcp
面向技术博主的 AI 内容加工流水线 MCP —— 从原始素材到公众号草稿箱,只存草稿,不自动发布。
⚡ 快速开始
一键启动
MCP 配置
立即体验
🛠️ 核心功能
- 4 个专业工具 - 导入素材、智能排版、原创检测、存入草稿箱
- 官方 API - 基于微信公众号草稿箱 API,完全合规
- 内容加工 - 段落切分、代码块处理、超链接转脚注、头尾模板、标题候选
- 安全第一 - 永远只存草稿箱,永远不自动群发/发布
- 即插即用 - 支持 Claude Code、Cursor、Claude Desktop
📦 工具列表
💡 使用流程
⚙️ 安装配置
方式一:npx 直接运行(推荐)
方式二:本地安装
环境变量
前置条件
- 公众号 AppID/AppSecret:mp.weixin.qq.com → 开发 → 基本配置
- IP 白名单:将你的出口 IP 添加到公众号后台 → 开发 → 基本配置 → IP 白名单
客户端配置
Claude Code
在 ~/.claude/mcp.json 或项目下 .claude/mcp.json 中添加:
Cursor
在 Cursor Settings → MCP 中添加,配置同上。
Claude Desktop
编辑 ~/Library/Application Support/Claude/claude_desktop_config.json:
⚠️ 注意事项
- 安全:AppSecret 永远不要提交到 Git,
.env已在.gitignore中 - 权限:只调用
draft/add,永远不调用freepublish/submit或mass/send - 查重:
estimate_originality只与你自己的历史草稿比对,不能替代微信官方查重 - 封面:默认从
~/Pictures/wechat-covers/随机选取,无封面时自动生成占位图 - 模板:可自定义
templates/wechat-header.html和templates/wechat-footer.html
🗺️ Roadmap
- v0.1 - MVP:4 个核心 tool + 公众号草稿箱 API
- 自定义排版主题
- 封面图片 AI 推荐
- 掘金同步发布(v2)
- 发布后数据反馈
- 多标题 A/B 建议
🤝 贡献
欢迎提 Issue 和 PR。
📄 License
MIT
让 AI 帮你搞定公众号排版,你只管写内容。 ✍️
Source: README.md at commit 829c7cc
Tools
0Version history
1- v0.1.1LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts