让你的 AI 应用能够读取微信公众号文章。提供 REST API 和 MCP 协议两种接入方式。
最简单的方式:直接在浏览器访问以下 URL,即可获得 AI 可读的文章页面。
https://api.readgzh.site/rd?url=https://mp.weixin.qq.com/s/你的文章ID返回一个精简的 HTML 页面,AI 可以直接读取全文内容。
提交微信文章链接,系统自动抓取内容并缓存,返回文章 ID 和短链接。
curl -X POST https://api.readgzh.site/rd \
-H "Content-Type: application/json" \
-d '{"url": "https://mp.weixin.qq.com/s/xxxxx"}'{
"success": true,
"articleId": "abc123-...",
"slug": "s/article-title",
"cached": false,
"data": {
"title": "文章标题",
"author": "作者名",
"content": "文章纯文本内容...",
"publishTime": "2025-01-01",
"sourceUrl": "https://mp.weixin.qq.com/s/..."
}
}通过 slug 或 ID 获取已缓存的文章内容(返回 HTML)。
# 通过 slug
GET https://api.readgzh.site/rd?s=article-title
# 通过 ID
GET https://api.readgzh.site/rd?id=abc123-...长文章会自动拆分为约 40KB 的分块。通过 part 参数逐段读取。 响应头 X-Total-Parts 和 X-Current-Part 指示总块数和当前块。
# 读取第 1 部分
GET https://api.readgzh.site/rd?s=article-title&part=1
# 读取第 2 部分
GET https://api.readgzh.site/rd?s=article-title&part=2添加 mode=summary 参数,返回 AI 生成的 300-500 字结构化摘要(JSON 格式)。 摘要结果会自动缓存,后续请求直接返回。此功能为 Pro 专属。
GET https://api.readgzh.site/rd?s=article-title&mode=summary \
-H "Authorization: Bearer sk_live_你的Pro_Key"{
"success": true,
"title": "文章标题",
"author": "作者名",
"summary": "📌 核心观点:...
📋 关键要点:...
🏷️ 标签:...",
"content_url": "https://readgzh.site/article-slug",
"total_parts": 3,
"content_length": 12000
}GET 请求直接传入微信链接,自动抓取并返回可读 HTML。适合让 AI 直接访问。
GET https://api.readgzh.site/rd?url=https://mp.weixin.qq.com/s/xxxxx返回精简的 HTML 页面,无需额外处理即可被 AI 直接读取。
你可以将 ReadGZH 集成为 ChatGPT 的自定义 Action,让你的 GPTs 能直接读取微信文章。
粘贴以下 URL 导入 API 定义:
https://readgzh.site/.well-known/openapi.yamlsk_live_...,可在 控制台 创建)在 GPTs 的 Instructions 中添加以下内容:
当用户分享微信公众号文章链接(mp.weixin.qq.com)时,
使用 readgzh.read action 读取文章全文内容,
然后根据用户需求进行总结、翻译或分析。保存后,在 GPTs 对话中发送一个微信文章链接,GPTs 会自动调用 ReadGZH 读取全文。
支持 Model Context Protocol (MCP), 可直接在 Claude Desktop、Cursor 等工具中使用。
Claude Desktop / Cline / Continue 等支持 MCP 的客户端,添加以下配置即可:
{
"mcpServers": {
"readgzh": {
"url": "https://api.readgzh.site/mcp-server"
}
}
}配置文件位置:Claude Desktop(macOS)~/Library/Application Support/Claude/claude_desktop_config.json, Cursor ~/.cursor/mcp.json, Cline 在 VS Code 设置中搜索 cline.mcpServers。
readgzh.read读取微信文章全文
参数: url: 微信文章链接
readgzh.search按关键词搜索已缓存文章
参数: query: 搜索关键词
readgzh.list列出最近缓存的文章
参数: limit: 返回数量(可选)
readgzh.list_by_account列出某个公众号已缓存的文章(仅限 ReadGZH 缓存范围,非全量存档)
参数: account: 公众号名称;limit: 返回数量(可选)
readgzh.get通过 slug 获取文章详情
参数: slug: 文章短链接
配置完成后,你可以在 Claude 中这样使用:
💬 你:
请帮我读一下这篇微信文章 https://mp.weixin.qq.com/s/xxxxx
🤖 Claude:
好的,让我来读取这篇文章...(自动调用 ReadGZH 读取全文)
ReadGZH 提供原生 OpenClaw Skill 支持, 可直接在 OpenClaw 中使用微信文章读取能力。
OpenClaw 原生支持 MCP 协议。只需在 OpenClaw 的 MCP 配置中添加 ReadGZH 服务即可:
{
"mcpServers": {
"readgzh": {
"url": "https://api.readgzh.site/mcp-server"
}
}
}配置完成后,OpenClaw 会自动发现 ReadGZH 提供的文章读取、搜索、列表等工具。
如果 ReadGZH 已发布到 ClawHub,可直接一键安装:
clawhub install readgzh或者手动下载安装:
mkdir -p ~/.openclaw/workspace/skills/readgzh
curl -o ~/.openclaw/workspace/skills/readgzh/SKILL.md \
https://readgzh.site/.well-known/SKILL.md安装后重启 OpenClaw,当用户提到「微信」「公众号」或分享 mp.weixin.qq.com 链接时,Skill 会自动触发。
如需使用带鉴权的 API(更高配额),在 Skill 配置中添加 API Key:
api_key: "sk_live_你的Key"💬 你:
帮我读一下这篇微信文章 https://mp.weixin.qq.com/s/xxxxx
🤖 OpenClaw:
正在使用 ReadGZH 读取文章...(自动调用 readgzh skill)
ReadGZH 提供标准 REST API 和 OpenAPI 规范,可无缝接入主流国内 AI 平台。
https://readgzh.site/.well-known/openapi.yamlhttps://readgzh.site/.well-known/openapi.yamlhttps://api.readgzh.site/rd?url={{微信文章链接}}Authorization: Bearer sk_live_你的Key💡 通用原则:任何支持 OpenAPI/Swagger 导入或 HTTP 请求的 AI 平台, 都可以通过 ReadGZH 的 API 接入微信文章读取能力。 API Key 可在 开发者控制台 免费获取。
API 调用需持有有效授权(API Key)。未授权请求受严格 IP 频率限制(每日仅 10 次), 且不保证服务稳定性。前往 开发者控制台 免费创建 Key,即享每日 30 积分。不写代码的用法见 如何让 AI 读取微信公众号文章。
在请求中添加 Authorization 头:
curl "https://api.readgzh.site/rd?url=https://mp.weixin.qq.com/s/xxxxx" \
-H "Authorization: Bearer sk_live_你的Key"401未提供 API Key 或 Key 无效
402API Key 积分已用完。响应包含 pricing_url 和 dashboard_url 引导充值
403功能需要 Pro 套餐(如 ?mode=summary)
429未授权请求超出严格频率限制(每日 10 次),请注册获取 API Key