CS

cyberchitta/scrapling-fetch-mcp

效率工作流

本页由 AI 翻译,技术细节请以原文为准。 查看原文

130 stars 26 forks 质量 83 趋势 20Apache-2.0

cyberchitta/scrapling-fetch-mcp 是从 https://github.com/cyberchitta/scrapling-fetch-mcp. 导入的 MCP 服务器候选

概览

cyberchitta/scrapling-fetch-mcp 是从 https://github.com/cyberchitta/scrapling-fetch-mcp. 导入的 MCP 服务器候选

概述(AI 翻译)

帮助AI助手从机器人保护网站获取内容。使用抓取(patchright + curl-cffi)绕过反自动化措施,返回干净的HTML或Markdown。

优化于低量检索文档和参考资料。不适合大批量抓取或数据采集。

需求:Python 3.10+,uv

克劳德代码技能

最简单的使用方式是作为Claude Code技能。安装后,Claude会自动获取机器人保护的URL——无需手动命令。

安装到你的项目中(推荐——仅在本项目上下文中加载):

或者为所有项目安装(加载到上下文中):

当你第一次调用/s-fetch时,Claude会读出 [skills/s-fetch/references/install.md并运行一次性设置 (安装工具并下载浏览器二进制文件)。之后,只需 自然地问:

Claude 桌面(MCP 服务器)

如果 /s-fetch 技能已经安装了该工具,请跳到下面的配置。

否则先安装:

注意:浏览器安装需要下载数百MB,必须完成才能首次使用。如果服务器最初超时,请等待几分钟再试。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

scrapling-fetch-mcp

Helps AI assistants fetch content from bot-protected websites. Uses Scrapling (patchright + curl-cffi) to bypass anti-automation measures, returning clean HTML or Markdown.

Optimized for low-volume retrieval of documentation and reference materials. Not designed for high-volume scraping or data harvesting.

Requirements: Python 3.10+, uv

Claude Code Skill

The easiest way to use this is as a Claude Code skill. Once installed, Claude will automatically fetch bot-protected URLs when you ask — no manual commands needed.

Install into your project (recommended — only loads in this project’s context):

git clone --depth=1 https://github.com/cyberchitta/scrapling-fetch-mcp /tmp/scrapling-fetch-mcp
cp -r /tmp/scrapling-fetch-mcp/skills/s-fetch .claude/skills/
rm -rf /tmp/scrapling-fetch-mcp

Or install for all projects (loads into context everywhere):

git clone --depth=1 https://github.com/cyberchitta/scrapling-fetch-mcp /tmp/scrapling-fetch-mcp
cp -r /tmp/scrapling-fetch-mcp/skills/s-fetch ~/.claude/skills/
rm -rf /tmp/scrapling-fetch-mcp

The first time you invoke /s-fetch, Claude will read skills/s-fetch/references/install.md and run the one-time setup (installs the tool and downloads browser binaries). After that, just ask naturally:

"Fetch the docs at https://example.com/api"
"Find all mentions of 'authentication' on that page"
"Get me the installation instructions from their homepage"

Claude Desktop (MCP Server)

If the /s-fetch skill has already installed the tool, skip to the config below.

Otherwise install first:

uv tool install git+https://github.com/cyberchitta/scrapling-fetch-mcp
uvx --from git+https://github.com/cyberchitta/scrapling-fetch-mcp scrapling install

Note: Browser installation downloads hundreds of MB and must complete before first use. If the server times out initially, wait a few minutes and try again.

Upgrading: after uv tool upgrade scrapling-fetch-mcp, re-run the scrapling install line above. A new Scrapling release can need newer browser binaries, and until they are installed the stealth and max-stealth modes fail with Executable doesn't exist.

Add this to your Claude Desktop MCP settings and restart:

MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "scrapling-fetch": {
      "command": "uvx",
      "args": ["scrapling-fetch-mcp"]
    }
  }
}

How It Works

Two tools, used automatically by Claude:

  • Page fetching — retrieves complete pages with pagination support
在 GitHub 查看完整 README

安装

uvx scrapling-fetch-mcp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "scrapling-fetch": { "command": "uvx", "args": ["scrapling-fetch-mcp"] } } }