cloudscraper-mcp
Can be used with n8n via HTTP transport for web scraping automation workflows.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@cloudscraper-mcpscrape https://example.com"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
CloudScraper MCP Server
A Model Context Protocol server that enables AI agents to bypass Cloudflare protection and scrape web content
Quick Start
Clone the repository and install dependencies:
git clone https://github.com/yourusername/cloudscraper-mcp-server.git
cd cloudscraper-mcp-server
uv syncAdd 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"
}
}
}Features
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_fileDocker 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).
Configuration
Transport Protocols
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 |
Run with HTTP transport:
MCP_TRANSPORT=http MCP_HOST=0.0.0.0 MCP_PORT=8000 uv run server.pyEnvironment Variables
Variable | Default | Options | Description |
| stdio | stdio, http | Transport protocol selection |
| 0.0.0.0 | Any valid IP | Host binding for HTTP mode |
| 8000 | Any valid port | Port for HTTP mode |
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/LLMTooling/cloudscraper-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server