Featured

Deploy OpenClaw in 60 seconds β€” 20% off logoDeploy OpenClaw in 60 seconds β€” 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger β†’
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger β†’
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free β†’
6,000+ web scrapers for your AI agent, start free logo6,000+ web scrapers for your AI agent, start free

Apify gives your agent live web data: 6,000+ prebuilt scrapers and actors, MCP-ready. Sign up free with $5 in usage credits.

Try Apify free β†’
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data β€” no proxies, no parsers, no maintenance.

Start building free β†’
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it β€” secured from day one.

Get it set up for you β†’
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free β†’
Reach 48,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here β†’

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

agent-scraper-mcp MCP server](https://glama.ai/mcp/servers/@aparajithn/agent-scraper-mcp/badges/score.svg)](https://glama.ai/mcp/servers/@aparajithn/agent-scraper-mcp) 🐍 ☁️ - Web scraping MCP server for AI agents.

README.md

Agent Scraper MCP Server

The #1 most requested utility for AI agents β€” professional web scraping, screenshots, and content extraction via MCP + REST API.

![License: MIT](https://opensource.org/licenses/MIT) ![Smithery](https://smithery.ai/server/@aparajithn/agent-scraper-mcp) ![Glama](https://glama.ai/mcp/servers/agent-scraper-mcp)

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: ``json { "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: ``json { "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: ``json { "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 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 HTTP 402 with crypto wallet:

  • Wallet address: 0x8E844a7De89d7CfBFe9B4453E65935A22F146aBB
  • Include X-Payment header with payment proof

Tools Reference

1. scrape_url

Extract clean, readable content from any webpage (like Readability).

Parameters:

  • url (string, required): URL to scrape
  • format (string, optional): Output format β€” text, markdown, or html (default: markdown)

Returns: {success, url, title, content, format}

---

2. scrape_structured

Extract specific data using CSS selectors.

Parameters:

  • url (string, required): URL to scrape
  • selectors (object, required): Dict of name β†’ CSS selector

Returns: {success, url, data}

Example selectors: ``json { "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 screenshot
  • width (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 scrape
  • filter (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 title
  • description: Meta description
  • canonical: Canonical URL
  • favicon: Favicon URL
  • og: Open Graph tags
  • twitter: Twitter Card tags

---

6. search_google

Search Google and get results.

Parameters:

  • query (string, required): Search query
  • num_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.com
  • X402_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

---

Built for AI agents by AI engineers πŸ€–

See related servers & alternatives β†’

Related MCP servers

Browse all β†’

Related guides

Hand-picked reading to help you choose and use Search servers.