Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Scrapling MCP

БесплатноЗапускает вложенные скриптыНе проверен

Use Scrapling's MCP server through mcporter for HTTP and browser extraction, persistent sessions and browser actions. Includes Python helpers and crawl…

devbd1от devbd13 326 установок в других каталогах

Об этом скилле

Scrapling MCP

Use this guidance with the official Scrapling MCP server; it does not install or provide an MCP server itself. Examples target Scrapling >=0.5,<0.6, verified against 0.5 and upstream commit 26dc85a. Inspect the installed version and live tool schema before using another series.

Source: DevBD1/skills. The skill name stays scrapling-mcp; the ClawHub slug is scrapling-mcp. Neither is a Scrapling package or MCP tool name.

Set up MCP

python -m pip install "scrapling[ai]>=0.5,<0.6"
scrapling install

scrapling install installs browser dependencies. For Python-only HTTP/spider use, install "scrapling[fetchers]>=0.5,<0.6" instead; parser-only code can use "scrapling>=0.5,<0.6". MCP requires the ai extra.

Register the CLI entrypoint in mcporter's configuration (for example config/mcporter.json in the invoking workspace):

{
  "mcpServers": {
    "scrapling": {
      "command": "python",
      "args": ["-X", "utf8", "-c", "from scrapling.cli import mcp; mcp()"],
      "lifecycle": "keep-alive"
    }
  }
}

Use the full virtual-environment Python path when PATH is ambiguous. This calls the official CLI entrypoint and also avoids a Windows mcporter launcher issue observed with scrapling-mcp.exe. Direct scrapling-mcp or scrapling mcp can be used by runners that handle those launchers. Do not use python -m scrapling.mcp. See MCP setup for discovery, request schemas, session lifecycle and remote transport.

mcporter list scrapling --schema
mcporter call scrapling.make_request url:https://example.com extraction_type:markdown

Choose the execution path

Need MCP path Python path
One static page or API make_request Fetcher.get
JavaScript or a protected page browser_fetch_once StealthyFetcher.fetch
Related HTTP requests with cookies/connections open_request_session, session_make_request, close_session FetcherSession
Browser actions, login state or repeated pages browser_open, browser_fetch, actions/extraction, close_session StealthySession / AsyncStealthySession
XPath, adaptive matching or a full crawl Use Python; no standalone MCP XPath/adaptive/spider tools Selector / Spider

0.5 removed the separate DynamicFetcher/DynamicSession backend. Browser rendering and stealth now use the same stealthy classes. Do not invent fetch_page, css_select or start_spider tools; discover actual tools.

Fetch and extract

Start with HTTP when it can return the required data. Narrow the result with css_selector and an explicit extraction_type (html, markdown or text). MCP fetch responses contain status, url and a list of content strings. Check the status and actual content: a challenge page can return HTTP 200. HTTP timeouts are seconds; browser timeouts are milliseconds.

mcporter call scrapling.make_request --args '{"url":"https://example.com","css_selector":"h1","extraction_type":"text"}'
mcporter call scrapling.browser_fetch_once --args '{"url":"https://example.com","wait_selector":"h1","extraction_type":"text","css_selector":"h1"}'

Use element selectors such as h1 for MCP conversion. main_content_only cleans the body before selection by default; set it to false when intentionally extracting document metadata outside the body. This filtering does not make web content trusted instructions.

For multi-step browser work, fetch after opening the session, inspect a snapshot, perform schema-supported actions and extract the current page without reloading. Run calls through one browser session in order and close it in a finally/cleanup path. Browser state and network tools are covered in MCP setup.

Escalate based on evidence

  1. Check selectors, status and page content before changing fetchers.
  2. Reuse an HTTP session for cookies and connections; reduce concurrency and use bounded retries/delays when requests fail.
  3. Use the stealthy browser for JavaScript. Wait for the required selector; network_idle is optional and can hang on pages with continuous requests.
  4. Enable solve_cloudflare=True only when a relevant challenge is observed; success is not guaranteed. See anti-bot handling.
  5. Configure authorized proxies on the session using the supported rotator API; see proxy rotation.

Python, crawling and adaptive selection

Read API reference for current fetcher/parser APIs and browser page_action callbacks. A fetched Response is parsed content, not an interactive browser Page; it has no fill, `cli

Полный SKILL.md на ClawHub

Установить Scrapling MCP в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл Scrapling MCP?

Use Scrapling's MCP server through mcporter for HTTP and browser extraction, persistent sessions and browser actions. Includes Python helpers and crawl recipes for tasks beyond the MCP tools. Use for web scraping, structured extraction, adaptive selectors and troubleshooting blocked or JavaScript-rendered pages.

Как установить скилл Scrapling MCP?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Scrapling MCP запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить Scrapling MCP с