Skip to content
Back to search

wexin-read-mcp

能够让大模型阅读微信公众号文章,使用浏览器模拟绕过反爬虫。

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/bwkyd--wexin-read-mcp/badge.svg)](/listings/bwkyd--wexin-read-mcp)

HTML

<a href="/listings/bwkyd--wexin-read-mcp"><img src="/api/listings/bwkyd--wexin-read-mcp/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

These steps run a script from the network that findsafeskills does not scan.

# 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 快路)。

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 111 lines · 2 findings marked

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. # Weixin MCP - 微信文章阅读器
  2. 一个极简的MCP,让大模型能够阅读微信公众号文章。
  3. ## 核心功能
  4. - 🎭 **浏览器模拟**:使用 Playwright 完整模拟浏览器环境
  5. - 📝 **内容提取**:自动提取标题、作者、发布时间、正文内容
  6. - ⚡ **简洁实现**:最少的代码实现核心功能
  7. ## 工作流程
  8. 1. 用户发送URL和需求给大模型
  9. 2. 大模型调用MCP工具
  10. 3. MCP获取文章内容发送给大模型
  11. 4. 大模型根据文章内容输出自然语言
  12. ## 技术栈
  13. - **Python 3.10+**
  14. - **fastmcp** - MCP框架
  15. - **[url-md](https://github.com/Bwkyd/url-md)** (Rust 单二进制) - 反爬 + Markdown 抽取一步到位
  16. - **pyyaml** - frontmatter 解析
  17. > **v0.3.0 升级说明**:抓取层从 `agent-browser` 4 次子进程 + BeautifulSoup 解析,简化为 **单次调用 `url-md md <url>`**。url-md 内部已处理反爬 / 微信正文抽取 / Markdown 转换 / frontmatter 生成。依赖减少,`content` 字段升级为 Markdown(保留图片引用 / 列表 / 标题层级)。MCP 协议接口零变化,现有 Claude/Cursor 配置无需调整。
  18. >
  19. > **v0.2.0 升级说明**: 原 Playwright 方案被微信加强反爬打穿 ([issue #3](https://github.com/Bwkyd/wexin-read-mcp/issues/3))。抓取层改为委托给 [agent-browser](https://github.com/vercel-labs/agent-browser)(Apache-2.0 开源 Rust 项目)。v0.3.0 起已迁移到 url-md。
  20. ## 快速开始
  21. ### 1. 安装 url-md (v0.3.0 起必需)
  22. ```bash
  23. # macOS / Linux
  24. curl -fsSL https://raw.githubusercontent.com/Bwkyd/url-md/main/install.sh | bash
    • Note: Pipes a downloaded script directly into a shell (curl | sh / wget | bash)
    • Line 35 on GitHub
  25. # Windows (PowerShell)
  26. irm https://raw.githubusercontent.com/Bwkyd/url-md/main/install.ps1 | iex
  27. # 验证
  28. url-md --version
  29. ```
  30. > 6 秒从零到可用。7 MB 单二进制,无需 Chrome 等外部依赖(微信永久链走 reqwest 快路)。
  31. ### 2. 安装 Python 依赖
  32. ```bash
  33. pip install -r requirements.txt
  34. ```
  35. ### 3. 配置
  36. ```json
  37. {
  38. "mcpServers": {
  39. "weixin-reader": {
  40. "command": "python",
  41. "args": [
  42. "C:/Users/你的用户名/Desktop/wx-mcp/wx-mcp-server/src/server.py"
  43. ]
  44. }
  45. }
  46. }
  47. ```
  48. **注意**: 请将路径替换为你的实际项目路径。
  49. ## 使用示例
  50. 在Claude中直接使用:
  51. ```
  52. 请帮我总结这篇文章:https://mp.weixin.qq.com/s/nEJhdxGea-KLZA_IGw9R5A
  53. ```
  54. Claude会自动调用`read_weixin_article`工具获取文章内容并进行分析。
  55. ![alt text](tu/0c7bbf3b419c36325c8e3e00fad207c6.png)
  56. ## 功能说明
  57. ### `read_weixin_article(url: str)`
  58. 读取微信公众号文章内容。
  59. **参数**:
  60. - `url`: 微信文章URL,格式: `https://mp.weixin.qq.com/s/xxx`
  61. **返回**:
  62. ```json
  63. {
  64. "success": true,
  65. "title": "文章标题",
  66. "author": "作者名",
  67. "publish_time": "2025-11-05",
  68. "content": "# 文章正文\n\n![封面](https://...)\n\n段落内容...",
  69. "cover_url": "https://mmbiz.qpic.cn/.../wx_fmt=jpeg",
  70. "error": null
  71. }
  72. ```
  73. > v0.3.0 起 `content` 字段是 Markdown 格式(v0.2.0 及以前是纯文本)。如果下游 agent/prompt 已按纯文本处理,可在返回前自行去除 Markdown 语法,或保留 Markdown 让 LLM 原生理解更好。
  74. ## 注意事项
  75. - ⚠️ 仅用于个人学习和研究
  76. - ⚠️ 遵守微信公众平台服务协议
  77. - ⚠️ 不建议高频爬取(建议间隔 > 2秒)
  78. - ⚠️ 不用于商业用途

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.