aparajithn/agent-scraper-mcp
FreeNot checkedWeb scraping: clean content extraction, CSS-selector scraping, Playwright screenshots, link and metadata extraction, and Google search.
About
Web scraping: clean content extraction, CSS-selector scraping, Playwright screenshots, link and metadata extraction, and Google search.
README
The #1 most requested utility for AI agents — professional web scraping, screenshots, and content extraction via MCP + REST API.
Features
🌐 Clean Content Extraction — Extract readable text/markdown from any webpage (like Readability)
🎯 Structured Scraping — Extract specific data using CSS selectors
📸 Screenshots — Capture full-page or viewport screenshots with Playwright
🔗 Link Extraction — Get all links from a page with optional regex filtering
📋 Metadata Extraction — Extract title, description, Open Graph tags, favicon, etc
🔍 Google Search — Search Google and get results programmatically
Quick Start
MCP Configuration
Add to your MCP settings file (cline_mcp_settings.json or similar):
{
"mcpServers": {
"agent-scraper": {
"url": "https://agent-scraper-mcp.onrender.com/mcp"
}
}
}
REST API
Base URL: https://agent-scraper-mcp.onrender.com
Scrape URL (Clean Content)
curl -X POST https://agent-scraper-mcp.onrender.com/api/v1/scrape_url \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/article",
"format": "markdown"
}'
Response:
{
"success": true,
"url": "https://example.com/article",
"title": "Article Title",
"content": "# Article Title\n\nClean markdown content...",
"format": "markdown"
}
Scrape Structured Data
curl -X POST https://agent-scraper-mcp.onrender.com/api/v1/scrape_structured \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/product",
"selectors": {
"title": "h1.product-title",
"price": ".price",
"reviews": ".review-text"
}
}'
Response:
{
"success": true,
"url": "https://example.com/product",
"data": {
"title": "Product Name",
"price": "$29.99",
"reviews": ["Great product!", "Worth the money"]
}
}
Screenshot URL
curl -X POST https://agent-scraper-mcp.onrender.com/api/v1/screenshot_url \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com",
"width": 1280,
"height": 720,
"full_page": false
}'
Response:
{
"success": true,
"url": "https://example.com",
"image": "iVBORw0KGgoAAAANSUhEUgAA...",
"width": 1280,
"height": 720,
"full_page": false
}
Extract Links
curl -X POST https://agent-scraper-mcp.onrender.com/api/v1/extract_links \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com",
"filter": "https://example.com/blog/.*"
}'
Extract Metadata
curl -X POST https://agent-scraper-mcp.onrender.com/api/v1/extract_meta \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com"}'
Search Google
curl -X POST https://agent-scraper-mcp.onrender.com/api/v1/search_google \
-H "Content-Type: application/json" \
-d '{
"query": "python web scraping",
"num_results": 10
}'
Pricing
Free Tier
- 50 requests per IP per day
- All tools included
- No credit card required
Paid Tier (HTTP 402 / x402 Payment)
After free tier exhausted:
- Scraping tools: $0.005/request (scrape_url, scrape_structured, extract_links, extract_meta, search_google)
- Screenshot tool: $0.01/request (higher due to compute cost)
Payment via the x402 protocol (HTTP 402) in USDC on Base:
- Wallet address (
payTo):0x8E844a7De89d7CfBFe9B4453E65935A22F146aBB
When you exceed the free tier, the server responds with HTTP 402 carrying machine-readable payment requirements (x402 v1), so x402-aware clients pay and retry automatically:
from x402_fetch import x402_fetch # pip install x402-fetch
response = x402_fetch("https://agent-scraper-mcp.onrender.com/api/v1/scrape_url", method="POST",
body={"url": "https://example.com", "format": "markdown"})
To pay manually, attach an X-Payment header containing a base64-encoded
JSON envelope with an EIP-3009 TransferWithAuthorization (USDC on Base)
signed with the payer's EIP-712 key for the exact price, addressed to the
wallet above, with an unused nonce. Payments are verified cryptographically
(signature recovery + amount/recipient/deadline/replay checks) before the
request is served — applies to both the REST API and MCP tools/call.
Collecting revenue (server operator)
With X402_SETTLER_PRIVATE_KEY set, every verified payment is executed
on-chain within seconds: the EIP-3009 transferWithAuthorization is submitted
to the USDC contract on Base and the USDC moves from the payer to
X402_WALLET_ADDRESS. The settler key does not need to be the receiving
wallet's key — any address may execute the authorization, so a dedicated
gas-only burner key can submit the transactions while funds land in the main
wallet. It only needs a small ETH balance on Base for gas. Additional env vars:
X402_RPC_URL (default https://mainnet.base.org) and
X402_SETTLE_MIN_MICROUSD (default 0 — settle each payment immediately;
raise it to batch small payments). Failed settlements are retried with
backoff and, if all retries fail, the full authorization is written to the
logs (CRITICAL) for manual redemption — no payment is silently lost.
Tools Reference
1. scrape_url
Extract clean, readable content from any webpage (like Readability).
Parameters:
url(string, required): URL to scrapeformat(string, optional): Output format —text,markdown, orhtml(default:markdown)
Returns: {success, url, title, content, format}
2. scrape_structured
Extract specific data using CSS selectors.
Parameters:
url(string, required): URL to scrapeselectors(object, required): Dict ofname → CSS selector
Returns: {success, url, data}
Example selectors:
{
"title": "h1.post-title",
"author": ".author-name",
"price": "span.price",
"images": "img.product-image"
}
3. screenshot_url
Capture a screenshot of any webpage.
Parameters:
url(string, required): URL to screenshotwidth(int, optional): Viewport width (default: 1280)height(int, optional): Viewport height (default: 720)full_page(bool, optional): Capture full scrollable page (default: false)
Returns: {success, url, image, width, height, full_page}
Image is base64-encoded PNG.
4. extract_links
Extract all links from a webpage.
Parameters:
url(string, required): URL to scrapefilter(string, optional): Regex pattern to filter URLs
Returns: {success, url, links, count}
Links array contains {text, href} objects.
5. extract_meta
Extract metadata from a webpage.
Parameters:
url(string, required): URL to scrape
Returns: {success, url, meta}
Meta object includes:
title: Page titledescription: Meta descriptioncanonical: Canonical URLfavicon: Favicon URLog: Open Graph tagstwitter: Twitter Card tags
6. search_google
Search Google and get results.
Parameters:
query(string, required): Search querynum_results(int, optional): Number of results (default: 10)
Returns: {success, query, results, count}
Results array contains {title, url, snippet} objects.
Development
Local Setup
# Clone repo
git clone https://github.com/aparajithn/agent-scraper-mcp.git
cd agent-scraper-mcp
# Install dependencies
pip install -e ".[dev]"
# Install Playwright browsers
playwright install chromium --with-deps
# Run server
uvicorn src.main:app --reload --port 8080
Test MCP Protocol
# Initialize
curl -X POST http://localhost:8080/mcp -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"test","version":"1.0.0"}}}'
# List tools
curl -X POST http://localhost:8080/mcp -d '{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}'
# Call scrape_url
curl -X POST http://localhost:8080/mcp -d '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"scrape_url","arguments":{"url":"https://example.com","format":"markdown"}}}'
Docker
# Build
docker build -t agent-scraper-mcp .
# Run
docker run -p 8080:8080 -e PUBLIC_HOST=localhost agent-scraper-mcp
Deployment
Deployed on Render (free tier):
- Service:
agent-scraper-mcp - Runtime: Docker
- Region: Ohio
- Auto-deploy from GitHub:
aparajithn/agent-scraper-mcp
Environment variables:
PUBLIC_HOST:agent-scraper-mcp.onrender.comX402_WALLET_ADDRESS:0x8E844a7De89d7CfBFe9B4453E65935A22F146aBB
Tech Stack
- Python 3.11 — Modern async/await
- FastAPI — REST API framework
- FastMCP — MCP protocol implementation (Streamable HTTP)
- Playwright — Browser automation for screenshots
- httpx — Fast async HTTP client
- BeautifulSoup4 — HTML parsing
- readability-lxml — Content extraction (like Firefox Reader View)
License
MIT License — see LICENSE for details.
Support
- Issues: GitHub Issues
- Email: [email protected]
- Docs: https://agent-scraper-mcp.onrender.com/docs
Built for AI agents by AI engineers 🤖
Installing aparajithn/agent-scraper-mcp
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/aparajithn/agent-scraper-mcpFAQ
Is aparajithn/agent-scraper-mcp MCP free?
Yes, aparajithn/agent-scraper-mcp MCP is free — one-click install via Unyly at no cost.
Does aparajithn/agent-scraper-mcp need an API key?
No, aparajithn/agent-scraper-mcp runs without API keys or environment variables.
Is aparajithn/agent-scraper-mcp hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install aparajithn/agent-scraper-mcp in Claude Desktop, Claude Code or Cursor?
Open aparajithn/agent-scraper-mcp on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Playwright
Browser automation, scraping, screenshots
by MicrosoftPuppeteer
Browser automation and web scraping.
by modelcontextprotocolGarmin Connect
An MCP server for Garmin Connect that provides access to fitness activities, health statistics, and sleep data by routing requests through a headless browser to
by etweisbergHiggsfield Unlimited
MCP server for Higgsfield AI that enables unlimited-mode image, video, audio generation, uploads, and job management via multiple parallel accounts, using brows
by nukIeeropentabs-dev/opentabs
Plugin-based server and Chrome extension that gives AI agents access to web apps through your authenticated browser session, with a plugin SDK.
by opentabs-devhlydecker/ucsc-genome-mcp
Interact with the UCSC Genome Browser API to find genomes, chromosomes and more.
by hlydecker34892002/bilibili-mcp-js
Search Bilibili content, with LangChain integration examples.
by 34892002achiya-automation/safari-mcp
Native Safari browser automation without a Chrome dependency.
by achiya-automationagent-infra/mcp-server-browser
Browser automation using Puppeteer, supporting local and remote browser connections.
by bytedanceapireno/DOMShell
Browse the web with filesystem commands (ls, cd, grep, click) by mapping Chrome's accessibility tree to a virtual filesystem via an extension.
by apirenoCompare aparajithn/agent-scraper-mcp with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All browse MCPs
