loading…
Search for a command to run...
loading…
Enables Claude and other LLMs to read and parse web content, with smart fallback strategies to bypass access restrictions (e.g., paywalls, Cloudflare) and outpu
Enables Claude and other LLMs to read and parse web content, with smart fallback strategies to bypass access restrictions (e.g., paywalls, Cloudflare) and output Markdown.
一个强大的 MCP (Model Context Protocol) 服务器,让 Claude 和其他大语言模型能够读取和解析网页内容。支持突破访问限制,轻松获取微信文章、时代杂志等受保护内容。
# 克隆仓库
git clone https://github.com/zacfire/mcp-web-reader.git
cd mcp-web-reader
# 安装依赖
npm install
# 构建项目
npm run build
# 安装 Playwright 浏览器(必需)
npx playwright install chromium
npm install -g mcp-web-reader
在 Claude Desktop 的配置文件中添加:
Windows: %APPDATA%\Claude\claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"web-reader": {
"command": "node",
"args": ["/absolute/path/to/mcp-web-reader/dist/index.js"]
}
}
}
配置完成后,在 Claude 中可以使用以下命令:
智能获取(推荐)
批量获取
强制使用 Jina Reader
强制使用本地解析
强制使用浏览器模式
✅ 微信公众号文章 - 自动绕过访问限制
✅ 时代杂志、纽约时报 - 突破付费墙和地区限制
✅ Cloudflare 保护网站 - 通过真实浏览器绕过检测
✅ 需要 JavaScript 渲染的页面 - 完整执行页面脚本
✅ 有验证码/人机验证的网站 - 模拟真实用户行为
fetch_url - 智能获取(三层降级:Jina → 本地 → Playwright)fetch_url_with_jina - 强制使用 Jina Readerfetch_url_local - 强制使用本地解析器 fetch_url_with_browser - 强制使用 Playwright 浏览器(突破访问限制)fetch_multiple_urls - 批量获取多个 URL用户请求 URL
↓
1. Jina Reader API (最快,成功率高)
↓ 失败
2. 本地解析器 (Node.js + JSDOM)
↓ 检测到访问限制
3. Playwright 浏览器 (真实浏览器,突破限制)
自动识别以下情况并启用浏览器模式:
# 开发模式(自动重新编译)
npm run dev
# 构建
npm run build
# 测试运行
npm start
# 安装浏览器二进制文件(首次使用必需)
npx playwright install chromium
欢迎提交 Pull Request!
MIT License
Run in your terminal:
claude mcp add web-reader -- npx Security
Low riskAutomated heuristic from public metadata — not a security guarantee.