Wafle-Scraper
Enables AI agents to scrape web pages safely with incognito browsing, rate limiting, and ethical CAPTCHA handling.
README
Wafle-Scraper — Universal MCP Server for Safe Web Scraping
Wafle-Scraper is an MCP server that lets AI agents (OpenCode, Claude, Cursor) extract data from the web safely and responsibly.
Safety First
| Rule | Enforcement |
|---|---|
| No private data | Every browser session is incognito — no cookies, no localStorage, no saved passwords |
| Only what you ask | The scraper never mines extra data beyond your explicit request |
| No localhost | Internal/private IPs are blocked by default |
| Rate limited | Minimum 2 seconds between requests — never floods servers |
| CAPTCHA = human only | No automated CAPTCHA solving. If one appears, you solve it interactively |
| User-Agent rotation | Each request looks like a real browser |
Quick Start
pip install wafle-scraper
playwright install chromium
wafle-scraper
Configuration
OpenCode / Claude Desktop / Cursor
{
"mcpServers": {
"wafle-scraper": {
"command": "wafle-scraper",
"description": "Web scraping & browser automation — incognito, audited, safe"
}
}
}
CLI Options
wafle-scraper # MCP stdio mode (default for agents)
wafle-scraper --http --port 8000 # HTTP SSE mode
wafle-scraper --version # Show version
MCP Tools
| Tool | Description | Safety |
|---|---|---|
scrape_url |
Extract text from a static URL (requests + BeautifulSoup) | ✅ Read-only, no JS |
scrape_browser |
Navigate a page in isolated incognito browser and extract text | ✅ Incognito, no cookies |
scrape_reddit |
Fetch public posts from a subreddit via official API | ✅ API, no scraping |
extract_emails |
Find email addresses on a public page | ✅ Only what you ask |
browser_interact |
Click, type, scroll, extract, screenshot in live browser | ✅ You control the actions |
Browser Backend (Playwright)
- Incognito always:
storage_state=None, fresh context per session - No permissions: No camera, mic, location access
- Anti-detection: Rotating UA, viewport, locale, timezone
- Natural delays: Human-like timing between actions
- Gradual scroll: Loads lazy content naturally
CAPTCHA Handling
Wafle-Scraper does NOT solve CAPTCHAs automatically. When a CAPTCHA is detected:
- The scraper pauses
- Prompts you to open the URL in your browser
- You solve the CAPTCHA manually
- Type
doneand the scraper continues
This is the only ethical and reliable approach without paid services.
Security
- Blocked:
localhost,127.0.0.1, private IPs,file://,chrome:// - Rate limiting (configurable, default 2s min interval)
- Scope enforcement — only processes what you explicitly request
- User-Agent rotation
- Browser isolation — Playwright contexts are fully sandboxed
Requirements
- Python 3.10+
- Playwright with Chromium installed (
playwright install chromium) - Windows, macOS, Linux
Installation from Source
git clone https://github.com/creandoaldia/wafle-scraper.git
cd wafle-scraper
pip install -e .
playwright install chromium
License
MIT
Why "Wafle-Scraper"?
Part of the WAFLE ecosystem (Web AI Framework for Language Ecosystems). Wafle-Scraper gives WAFLE agents the ability to read the live web — safely, transparently, and under your control.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.