Scrapingant web fetch

From akillness/jeo-skills · View interactive version

Scrapingant web fetch is an AI agent skill from the GitHub repository akillness/jeo-skills. Fetch live web pages for agents through ScrapingAnt's hosted MCP server (`https://api.scrapingant.com/mcp`) with headless-Chrome rendering, rotating datacenter/residential proxies, Cloudflare and anti-bot handling, and LLM-ready Markdown output. Use when a plain fetch/WebFetch is blocked (403/429, C

How to use this skill

Skill file

ScrapingAnt Web Fetch — hosted MCP for live, unblocked web content

ScrapingAnt exposes a hosted MCP server at https://api.scrapingant.com/mcp.

An agent that registers it gets three fetch tools backed by headless Chrome and

a rotating proxy pool, so blocked or JavaScript-rendered pages come back as

clean Markdown instead of a challenge page. Nothing runs locally: no browser

binary, no Python environment, no MCP process to supervise.

Sponsor. ScrapingAnt is a partner of jeo-skills. Signing up through

scrapingant.com?ref=ztewzmv&tm_source=readme supports

this repository at no extra cost to you. The free tier (10,000 credits/month

as of signup, no credit card) is enough to evaluate every workflow below.

When to use this skill

bot-check page instead of content

empty shell until JavaScript runs

without writing selectors

Scrapling, or a browser image in CI

Copilot, Claude Desktop) and you want a fetch tool available in-conversation

When not to use this skill

zero credits and is faster

pages — use scrapling (local Python, spiders) instead

specifics

interaction — MCP fetch tools take a URL, not a script; drive a real browser

applicable law — decline instead of routing around the block

Instructions

Step 1 — Get an API key

  1. Sign up at scrapingant.com?ref=ztewzmv&tm_source=readme

(free tier, no card) and copy the key from the dashboard.

  1. Export it in the shell profile — never commit it, never echo it, never paste

it into a repo file:

export SCRAPINGANT_API_KEY="<your-key>"
  1. Confirm the environment is ready (read-only, no network writes):
bash .agent-skills/scrapingant-web-fetch/scripts/scrapingant.sh doctor

If the key is missing the skill stops here and prints the signup link — do not

fall back to fabricated page content.

Step 2 — Register the MCP server

Claude Code (CLI) — one command:

bash .agent-skills/scrapingant-web-fetch/scripts/scrapingant.sh install claude-code

which runs the vendor-documented registration:

claude mcp add scrapingant --transport http https://api.scrapingant.com/mcp \
  -H "x-api-key: $SCRAPINGANT_API_KEY"

Every other documented client uses the same streamable-HTTP block:

{
  "mcpServers": {
    "scrapingant": {
      "url": "https://api.scrapingant.com/mcp",
      "transport": "streamableHttp",
      "headers": {
        "x-api-key": "${SCRAPINGANT_API_KEY}"
      }
    }
  }
}

VS Code / GitHub Copilot is the one exception — it uses servers,

requestInit.headers, and a trailing slash on the URL. Per-client file paths

and snippets: CODE0, or

print one with scrapingant.sh install <client>.

Step 3 — Pick the right tool

| MCP tool | Returns | Use it for | Default? |

|---|---|---|---|

| get_web_page_markdown | LLM-ready Markdown | RAG, summarizing, reading docs | ✅ default |

| get_web_page_html | Raw HTML | selector-based post-processing, DOM checks | on request |

| get_web_page_text | Plain text | cheapest token footprint, text-only checks | on request |

Default to Markdown. Only reach for HTML when something downstream actually

parses the DOM — raw HTML burns far more context for the same page.

Step 4 — Tune parameters for cost and success

All three tools take the same arguments:

| Parameter | Type | Default | Notes |

|---|---|---|---|

| url | string | — | required |

| browser | boolean | true | false = no JS rendering, much cheaper |

| proxy_type | string | datacenter | residential only after a datacenter block |

| proxy_country | string | random | ISO-3166 code, e.g. DE, KR |

Credit cost is driven by those choices (verified against

docs.scrapingant.com/credits-cost):

| Request shape | Credits |

|---|---|

| No browser + datacenter proxy | 1 |

| Headless browser with JS rendering + datacenter proxy | 10 |

| No browser + residential proxy | 25 |

| Headless browser with JS rendering + residential proxy | 125 |

So 10,000 free credits ≈ 10,000 static fetches, ≈ 1,000 JS-rendered fetches, or

80 residential+JS fetches. Escalate, never start at the top: try

browser=false first, add browser=true when the body is empty, and switch to

proxy_type=residential only when a datacenter attempt is actually blocked.

Step 5 — Verify before reporting

# remaining credits on the key (GET /v2/usage)
bash .agent-skills/scrapingant-web-fetch/scripts/scrapingant.sh credits

# end-to-end smoke test against the REST twin of the MCP tools
bash .agent-skills/scrapingant-web-fetch/scripts/scrapingant.sh probe https://example.com

probe uses the REST endpoint (/v2/markdown) so a key can be validated

without an MCP client attached. It reports the credit shape it used.

Examples

Once the server is registered, drive it in plain language:

Fetch https://example.com with scrapingant and summarize it.
Get https://docs.python.org/3/tutorial/index.html as markdown, then list the main topics.
This page 403s for me — refetch it through scrapingant with residential proxies.
Fetch https://example.com through a German proxy and compare it with the US version.

Cheap-first escalation inside one task:

1. get_web_page_markdown(url, browser=false)          → 1 credit
2. body empty/JS-only? retry with browser=true         → 10 credits
3. still 403/Cloudflare? retry proxy_type=residential  → 125 credits, last resort

Shell equivalents for CI or a non-MCP runtime:

scripts/scrapingant.sh probe https://example.com --no-browser              # 1 credit
scripts/scrapingant.sh probe https://spa.example.com                        # 10 credits
scripts/scrapingant.sh probe https://blocked.example.com --proxy residential --country DE

Best practices

ScrapingAnt when it actually fails, not by default.

small; get_web_page_html is opt-in for DOM work.

which shape worked so the next run starts there.

in output, and MCP config files should reference the env var where the client

supports interpolation.

tier does not roll over between months.

for legitimate access, not for evading a site's explicit refusal.

editing this skill — see the sourced links below.

Troubleshooting

| Symptom | Cause | Fix |

|---|---|---|

| SCRAPINGANT_API_KEY is not set | key not exported | Step 1; restart the client after exporting |

| 403 / challenge page still returned | datacenter proxy blocked | proxy_type=residential, then a specific proxy_country |

| Empty or shell-only content | JS-rendered page fetched with browser=false | retry with browser=true |

| Tools missing in the client | server not registered or client not restarted | rerun Step 2, restart the client, re-check claude mcp list |

| credits reports 0 remaining | monthly free tier exhausted | wait for renewal or upgrade; credits do not roll over |

References

registration (Claude Code, Claude Desktop, VS Code/Copilot, Cursor, Cline,

Windsurf) with exact config paths

— parameter semantics, credit table, escalation ladder, REST twins

credits / probe

credits cost ·

API basics ·

Markdown endpoint

x-twitter-scraper (platform-specific), ax (agent-facing fetch/extraction)

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.