Web Scraper MCP Server
Click on "Deploy 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., "@Web Scraper MCP Serverscrape the article from 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.
Web Scraper MCP Server
A Model Context Protocol (MCP) server that provides web scraping capabilities using FastMCP. It allows AI agents to fetch, clean, and extract readable content from web pages, optionally including links and images.
Features
๐ Fetches and parses web pages
๐งน Cleans and normalizes extracted text
๐ Optionally extracts links
๐ผ๏ธ Optionally extracts image URLs
โก Async HTTP requests using
httpx๐ง Exposed as an MCP tool (
scrape_url)๐ณ Dockerized for easy deployment
Related MCP server: markfetch-mcp
Project Structure
.
โโโ .env.example
โโโ .gitignore
โโโ Dockerfile # Container image definition
โโโ Makefile # Common development and deployment commands
โโโ README.md # This file
โโโ docker-compose.yml # Compose file for easy local development
โโโ main.py # MCP server and scraping logic
โโโ requirements.txt # Dependencies filemain.py
This file contains the MCP server implementation.
Key Components
FastMCP Server
Runs an MCP-compatible HTTP server
Exposes tools to AI agents
scrape_urlToolFetches and extracts content from a given URL
Tool Signature
scrape_url(
url: str,
include_links: bool = True,
include_images: bool = False,
clean_text: bool = True
) -> strBehavior
Validates URLs before fetching
Removes
<script>and<style>tagsExtracts readable text
Optionally appends:
All links (
<a href>)All images (
<img src>)
Returns a formatted plain-text result
Configuration (Environment Variables)
Variable | Default | Description |
|
| Bind address |
|
| Server port |
|
| Logging level |
Dockerfile
The Dockerfile builds a lightweight containerized version of the MCP server.
Highlights
Based on
python:3.12-slimOptimized for production use
Sets helpful defaults:
No bytecode
Unbuffered output
Reduced pip noise
Example Build & Run
docker build -t mcp-web-scraper .
docker run -p 9292:9292 mcp-web-scraperMakefile
The Makefile provides shortcuts for common tasks.
Common Targets
Target | Description |
| Remove local virtual environment |
| Start development environment with Docker Compose |
| Stop development Docker Compose stack |
| Apply Terraform infrastructure |
Example Usage
make dev-compose
make dev-down
make cleanRunning Locally (Without Docker)
pip install -r requirements.txt
python main.pyThe server will start at:
http://localhost:9292MCP Integration
This server is designed to be consumed by MCP-compatible clients or agents, enabling them to:
Read web pages
Extract structured textual content
Use scraped data as model context
This server cannot be deployed
Maintenance
Related MCP Connectors
Web scraping for AI agents. Converts URLs to clean, LLM-ready Markdown with anti-bot bypass.
Read a URL as clean markdown, screenshot a website, url to PDF. Web access for agents, no signup.
Clean Markdown and AI-readability scoring for any URL. Built for AI agents.
Web scraping for AI agents. Extract text and metadata from any URL worldwide. $0.005/page.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables web scraping of URLs, including extracting text, links, images, metadata, taking screenshots, and using CSS selectors for structured data extraction.68 npmMIT
- AlicenseAqualityDmaintenanceEnables AI agents to fetch any web page as clean markdown or screenshot it, turning URLs into LLM-ready context.21 npmMIT

spidra-mcp-serverofficial
AlicenseAqualityBmaintenanceEnables AI assistants to scrape pages, batch-process URLs, and crawl entire websites with AI-powered extraction.1232 npmMIT- AlicenseNot gradedqualityCmaintenanceEnables AI agents to fetch and extract clean, readable content from web pages, and search within pages for specific queries, without needing a full browser.1MIT