Skip to main content

scraping-mcp

MCP (Model Context Protocol) server for Scraping — lets LLM agents (Cursor, Claude Desktop, Claude Code, Zed) call our scraping tools directly.

Install

pip install scraping-mcp
# or with pipx for isolation:
pipx install scraping-mcp

Requires Python 3.11+.

Hosted alternative (no install)

If you don't want to install Python locally, point your MCP client at the hosted instance:

{
  "mcpServers": {
    "scraping": {
      "url": "https://api.scraping.io/mcp/",
      "transport": "http",
      "headers": {
        "Authorization": "Bearer fc_live_..."
      }
    }
  }
}

The hosted version exposes the same 7 tools as the stdio package.

Setup

Get an API key at dashboard/keys.

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) / %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "scraping": {
      "command": "scraping-mcp",
      "env": {
        "SCRAPING_API_KEY": "fc_live_abc123...",
        "SCRAPING_BASE_URL": "https://api.scraping.io"
      }
    }
  }
}

Restart Claude Desktop. Tools will appear as "scraping".

Cursor

Create .cursor/mcp.json in the repo root:

{
  "mcpServers": {
    "scraping": {
      "command": "scraping-mcp",
      "env": { "SCRAPING_API_KEY": "fc_live_abc123..." }
    }
  }
}

Claude Code

Add to ~/.claude.json (user scope):

{
  "mcpServers": {
    "scraping": {
      "command": "scraping-mcp",
      "env": { "SCRAPING_API_KEY": "fc_live_abc123..." }
    }
  }
}

Tools

Tool Description
scrape(url, format?, cookies?, timeout_s?) Scrape single URL. Returns markdown or {status:pending, task_id} on timeout.
crawl(urls[], cookies?, timeout_s?) Batch-scrape up to 500 URLs. Returns items or {status:pending, crawl_id} on timeout.
cancel_crawl(crawl_id) Cancel pending URLs of a crawl batch + refund credits.
get_scrape_status(task_id) Check status of a scrape task.
get_crawl_status(crawl_id, include_items?) Check status + items of a crawl batch.
map(url, max_urls?, include_subdomains?) List a site's URLs (sitemap.xml + robots.txt + fallback crawl). 1 credit.
get_balance() Current credit balance.

Examples

Agent: "Scrape the README at https://github.com/hashicorp/terraform"
-> calls scrape(url="https://github.com/hashicorp/terraform")
-> returns {status: "finished", result: {markdown: "# Terraform..."}}

Agent: "Scrape these 50 docs pages and summarize"
-> calls crawl(urls=[...50 urls...])
-> returns {status: "finished", total: 50, items: [...]}

Agent: "Check my credit balance"
-> calls get_balance()
-> returns {balance: 87}

Environment variables

Name Required Default Description
SCRAPING_API_KEY yes — Your API key (starts with fc_live_)
SCRAPING_BASE_URL http://localhost:8000 Scraping API endpoint
SCRAPING_SCRAPE_TIMEOUT_S 60 Scrape tool wait-timeout
SCRAPING_CRAWL_TIMEOUT_S 600 Crawl tool wait-timeout
SCRAPING_REQUEST_TIMEOUT_S 30 Individual HTTP request timeout

Troubleshooting

Server not starting: Check SCRAPING_API_KEY is set in MCP client config env. Logs go to stderr — Claude Desktop / Cursor show them in their MCP logs.

"connection refused": Verify SCRAPING_BASE_URL points to a running Scraping API. For local dev: docker compose up in the monorepo.

Agent receives {status: "pending", task_id}: Timeout exceeded. Agent should call get_scrape_status(task_id) (or get_crawl_status) to retrieve the result once ready. Scrape typically takes 2-20 seconds; heavy sites (JS-rendered via L3) can take 30-60 seconds.

License

MIT.

Links

Metadata

Release files for scraping-mcp 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scraping-mcp 0.2.0
File Size Uploaded Provenance Actions
scraping_mcp-0.2.0.tar.gz 15.0 kB With provenance Details for scraping_mcp-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for scraping-mcp 0.2.0
File Interpreter ABI Platform Actions
scraping_mcp-0.2.0-py3-none-any.whl Python 3 none any Details for scraping_mcp-0.2.0-py3-none-any.whl

Total release size: 29.1 kB

Release files / scraping_mcp-0.2.0.tar.gz

Download URL scraping_mcp-0.2.0.tar.gz
Size 15.0 kB
Tags Source
SHA-256 checksum
How to use checksums
cced1494a921e4cc681a1e817c16f388d6ab49d6fba64f30677035fd2aa89792
BLAKE2b-256 checksum
How to use checksums
195c157b189281a14f8863bbf40b098cc38448bc8e3b90b5c12de61f9ff2a7c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 25, 2026.

Transparency log

Release files / scraping_mcp-0.2.0-py3-none-any.whl

Download URL scraping_mcp-0.2.0-py3-none-any.whl
Size 14.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
96a3f970ffd6dd97d24a41762f0b8a8cc584b97142ce93c6c3dbf158a6ba6297
BLAKE2b-256 checksum
How to use checksums
b153f138936af678711919b539d4ca6657514a443256724a850b6cd024b8a84b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 25, 2026.

Transparency log

Security for scraping-mcp 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for scraping_mcp-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page