Wexin Read MCP enables large language models to read and analyze WeChat public account articles by providing browser automation and content extraction capabilities. The server uses Playwright to simulate a browser environment and BeautifulSoup to parse HTML, automatically extracting article metadata (title, author, publish time) and body content from WeChat article URLs. This solves the problem of integrating WeChat article content into AI workflows, allowing models like Claude to summarize and analyze articles shared via direct URL input.
一个极简的MCP,让大模型能够阅读微信公众号文章。
v0.3.0 升级说明:抓取层从
agent-browser4 次子进程 + BeautifulSoup 解析,简化为 单次调用url-md md <url>。url-md 内部已处理反爬 / 微信正文抽取 / Markdown 转换 / frontmatter 生成。依赖减少,content字段升级为 Markdown(保留图片引用 / 列表 / 标题层级)。MCP 协议接口零变化,现有 Claude/Cursor 配置无需调整。v0.2.0 升级说明: 原 Playwright 方案被微信加强反爬打穿 (issue #3)。抓取层改为委托给 agent-browser(Apache-2.0 开源 Rust 项目)。v0.3.0 起已迁移到 url-md。
# macOS / Linux
curl -fsSL https://raw.githubusercontent.com/Bwkyd/url-md/main/install.sh | bash
# Windows (PowerShell)
irm https://raw.githubusercontent.com/Bwkyd/url-md/main/install.ps1 | iex
# 验证
url-md --version
6 秒从零到可用。7 MB 单二进制,无需 Chrome 等外部依赖(微信永久链走 reqwest 快路)。
pip install -r requirements.txt
{
"mcpServers": {
"weixin-reader": {
"command": "python",
"args": [
"C:/Users/你的用户名/Desktop/wx-mcp/wx-mcp-server/src/server.py"
]
}
}
}
注意: 请将路径替换为你的实际项目路径。
在Claude中直接使用:
请帮我总结这篇文章:https://mp.weixin.qq.com/s/nEJhdxGea-KLZA_IGw9R5A
Claude会自动调用read_weixin_article工具获取文章内容并进行分析。

read_weixin_article(url: str)读取微信公众号文章内容。
参数:
url: 微信文章URL,格式: https://mp.weixin.qq.com/s/xxx返回:
{
"success": true,
"title": "文章标题",
"author": "作者名",
"publish_time": "2025-11-05",
"content": "# 文章正文\n\n\n\n段落内容...",
"cover_url": "https://mmbiz.qpic.cn/.../wx_fmt=jpeg",
"error": null
}
v0.3.0 起
content字段是 Markdown 格式(v0.2.0 及以前是纯文本)。如果下游 agent/prompt 已按纯文本处理,可在返回前自行去除 Markdown 语法,或保留 Markdown 让 LLM 原生理解更好。