web-scraping

web-scraping is a skill for Claude Code, Codex from cotdp/scraper-mcp. It costs 57 tokens per session (1,241 once invoked), scanned A, original, MIT.

A toolkit for extracting information from web pages. It can turn pages into Markdown, return raw HTML or plain text, and collect links from one or more URLs.

In plain words
What is it for?
Use it to collect article content, inspect page structure, extract clean text, convert pages for AI analysis, harvest links, or process several web pages with retries.
Why use it?
It removes the need to manually copy page content or inspect every link when mapping and analyzing websites. CSS selectors can limit extraction to the relevant part of a page.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/cotdp/scraper-mcp/web-scraping
Any agent
npx skills add cotdp/scraper-mcp --skill web-scraping
Clone the repo
git clone --depth 1 https://github.com/cotdp/scraper-mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for web-scraping

README.md
[![agentmods](https://agentmods.dev/badge/skills/cotdp/scraper-mcp/web-scraping.svg)](https://agentmods.dev/skills/cotdp/scraper-mcp/web-scraping)
Your own site
<a href="https://agentmods.dev/skills/cotdp/scraper-mcp/web-scraping"><img src="https://agentmods.dev/badge/skills/cotdp/scraper-mcp/web-scraping.svg" alt="Measured on agentmods" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,241 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00057 $0.01241
Opus 5 $0.00028 $0.00620
Sonnet 5 $0.00011 $0.00248
Haiku 4.5 $0.00006 $0.00124

Measured 4d ago against content hash b47d0548535b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

web-scraping scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/web-scraping/SKILL.md · 231 lines

How it starts

The opening of the file, as written. The whole thing — 231 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Web Scraping Skill

Toolkit for efficient web content extraction using the scraper MCP server tools.

When to Use This Skill

  • Extracting content from web pages for analysis
  • Converting web pages to markdown for LLM consumption
  • Extracting plain text from HTML documents
  • Harvesting links from web pages
  • Batch processing multiple URLs concurrently

Available Tools

Tool Purpose Best For
mcp__scraper__scrape_url Convert HTML to markdown LLM-friendly content extraction
mcp__scraper__scrape_url_html Raw HTML content DOM inspection, metadata extraction
mcp__scraper__scrape_url_text Plain text extraction Clean text without formatting
mcp__scraper__scrape_extract_links Link harvesting Site mapping, crawling

Tool Usage

1. Markdown Conversion (Recommended for LLMs)

Convert web pages to clean markdown format:

mcp__scraper__scrape_url(
    urls=["https://example.com/article"],
    css_selector=".article-content",
    timeout=30,
    max_retries=3
)

Response includes:

  • content: Markdown-formatted text
  • url: Final URL (after redirects)
  • status_code: HTTP status
  • metadata: Headers, timing, retry info

2. Raw HTML Extraction

Get unprocessed HTML for DOM analysis:

mcp__scraper__scrape_url_html(
    urls=["https://example.com"],
    css_selector="meta",
    timeout=30
)

Use cases:

  • Extracting meta tags and Open Graph data
  • Inspecting page structure
  • Getting specific HTML elements

3. Plain Text Extraction

Extract readable text without HTML markup:

mcp__scraper__scrape_url_text(
    urls=["https://example.com/page"],
    strip_tags=["script", "style", "nav", "footer"],
    css_selector="#main-content"
)

Parameters:

  • strip_tags: HTML elements to remove before extraction (default: script, style, meta, link, noscript)

4. Link Extraction

Harvest all links from a page:

mcp__scraper__scrape_extract_links(
    urls=["https://example.com"],
    css_selector="nav.primary"
)

Read the full file on GitHub · 231 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 231 lines · 57 tokens per session scan A b47d0548535b

Subscribe to this mod's changes

web-scraping is a skill published in the GitHub repository cotdp/scraper-mcp (7 stars, last pushed 3mo ago), licensed MIT. It adds 57 tokens to every session and 1,241 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.