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.
npx agentmods add instructions/cotdp/scraper-mcp/claude-mdgit clone --depth 1 https://github.com/cotdp/scraper-mcpWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.01882 | $0.01882 |
| Opus 5 | $0.00941 | $0.00941 |
| Sonnet 5 | $0.00376 | $0.00376 |
| Haiku 4.5 | $0.00188 | $0.00188 |
Grade A, and why
scraper-mcp CLAUDE.md scanned grade A with 1 finding 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 2d 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- **`extract_links()`**: Extracts all `<a>` tags with URL resolution using `urllib.parse.urljoin()` How it starts
The opening of the file, as written. The whole thing — 197 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Project Overview
A Model Context Protocol (MCP) server for efficient web scraping. Built with Python using FastMCP, providing AI tools with standardized web scraping capabilities through four main tools: raw HTML scraping, markdown conversion, text extraction, and link extraction. All tools support both single URL and batch operations with intelligent retry logic.
Development Commands
Environment Setup
# Install dependencies (uses uv package manager)
uv pip install -e ".[dev]"
Running the Server
# Run locally with default settings
python -m scraper_mcp
# Run with specific transport and port
python -m scraper_mcp streamable-http 0.0.0.0 8000
# Run with Docker
docker-compose up -d
docker-compose logs -f
docker-compose down
Testing
# Run all tests with coverage
pytest
# Run specific test file
pytest tests/test_server.py
# Run specific test class
pytest tests/test_server.py::TestScrapeUrlTool
# Run specific test function
pytest tests/test_server.py::TestScrapeUrlTool::test_scrape_url_success
# Run with verbose output
pytest -v
# Run without coverage report
pytest --no-cov
Code Quality
# Type checking
mypy src/
# Linting
ruff check .
# Auto-fix linting issues
ruff check . --fix
# Format code
ruff format .
Architecture
Provider Pattern
The server uses an extensible provider architecture for different scraping backends:
ScraperProvider(providers/base.py): Abstract interface definingscrape()andsupports_url()methodsRequestsProvider(providers/requests_provider.py): Default HTTP scraper usingrequestslibrary with exponential backoff retry logic- Future extensibility: Easy to add Playwright, Selenium, or Scrapy providers for JavaScript-heavy sites or specialized scraping
The get_provider() function in server.py routes URLs to appropriate providers. Currently defaults to RequestsProvider for all HTTP/HTTPS URLs.
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.
- 2d ago First seen · 197 lines · 1,882 tokens per session scan A f606f0d111a5
scraper-mcp CLAUDE.md is an instructions file published in the GitHub repository cotdp/scraper-mcp (7 stars, last pushed 3mo ago), licensed MIT. It adds 1,882 tokens to every session, about $0.0094 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other instructions, from other repositories
browser-use CLAUDE.md
Claude Code instructions for browser-use/browser-use, covering claude.md, high-level architecture, core components, event-driven browser management and cdp integration.
nanobrowser CLAUDE.md
Instructions for nanobrowser/nanobrowser, covering claude.md, project overview, development commands, workspace tips and architecture.
stealth-browser-mcp AGENTS.md
Instructions for vibheksoni/stealth-browser-mcp, covering agent instructions, start here, recommended proxy services, environment and validation.
cloakbrowser-mcp AGENTS.md
Instructions for swimmwatch/cloakbrowser-mcp, covering agents.md, about the project, golden rules, project layout and daily commands.
substack-gateway-oss CLAUDE.md
Instructions for jakub-k-slys/substack-gateway-oss, covering claude.md, commands, install dependencies (dev included, all workspace members), run the server (dev mode with reload) and lint.
browser-debugger-cli CLAUDE.md
Instructions for szymdzum/browser-debugger-cli, covering claude.md, agent-friendly discovery (start here), essential patterns, commandrunner (src/commands/shared/commandrunner.ts) and error handling.