cloudscraper-mcp
Enables AI agents to bypass Cloudflare protection and scrape web content, returning clean Markdown with smart chunking and file export.
README
<div align="center">
CloudScraper MCP Server
A Model Context Protocol server that enables AI agents to bypass Cloudflare protection and scrape web content
</div>
<div align="center">
Quick Start
</div>
Clone the repository and install dependencies:
git clone https://github.com/yourusername/cloudscraper-mcp-server.git
cd cloudscraper-mcp-server
uv sync
Add to Claude Code:
claude mcp add cloudscraper-mcp \
--type stdio \
--command "uv" \
--args "run" "server.py" \
--directory "/path/to/cloudscraper-mcp-server"
Add to VSCode / any MCP-compatible IDE:
{
"mcpServers": {
"cloudscraper-mcp": {
"type": "stdio",
"command": "uv",
"args": ["run", "server.py"],
"cwd": "/path/to/cloudscraper-mcp-server"
}
}
}
<div align="center">
Features
</div>
- Cloudflare Bypass — Automatically handles Cloudflare protection so AI agents can reach pages that block standard requests
- Content Cleaning — Converts HTML to clean, LLM-friendly Markdown
- Smart Chunking — Automatically splits large responses into 10k-token chunks with continuation tokens
- Binary Handling — Base64-encodes non-text content so agents can handle images and downloads
- File Export — Save scraped content directly to disk via
scrape_url_to_file - Docker Support — Containerized deployment via DOCKER.md
Three tools are available: scrape_url (returns content as a string), scrape_url_raw (returns content plus response metadata), and scrape_url_to_file (saves content to disk).
<div align="center">
Configuration
</div>
<div align="center">
Transport Protocols
</div>
<div align="center">
| Transport | Best For | Configuration |
|---|---|---|
| stdio | Claude Code, VSCode, Direct AI integration | Default mode, no environment variables needed |
| http | n8n, Web apps, API integrations, Remote access | Requires MCP_TRANSPORT=http |
</div>
Run with HTTP transport:
MCP_TRANSPORT=http MCP_HOST=0.0.0.0 MCP_PORT=8000 uv run server.py
<div align="center">
Environment Variables
</div>
<div align="center">
| Variable | Default | Options | Description |
|---|---|---|---|
MCP_TRANSPORT |
stdio | stdio, http | Transport protocol selection |
MCP_HOST |
0.0.0.0 | Any valid IP | Host binding for HTTP mode |
MCP_PORT |
8000 | Any valid port | Port for HTTP mode |
</div>
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
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.