web-scraper-mcp
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., "@web-scraper-mcpScrape https://news.ycombinator.com and give me the top 5 headlines as JSON"
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
x402 Payment-Protected Web Scraping & Content Extraction API
Universal web scraper for AI agents to extract content, parse HTML, and get structured data from any publicly accessible webpage.
π Features
π Universal Scraping - Extract content from any public webpage
π Multiple Formats - Output as text, markdown, HTML, or JSON
π― CSS Selectors - Target specific elements with precision
π Metadata Extraction - Get title, description, OG tags, and more
π Structured Data - Extract links, images, headings in JSON format
π³ x402 Micropayments - Pay $0.004 USDC per scrape on Base Mainnet
π€ MCP Compatible - Works with Claude and other AI agents
Related MCP server: Website Scraper MCP Server
π‘ Live Endpoint
Base URL: https://web-scraper-mcp.vercel.app (will be updated after deployment)
Scrape Webpage
GET /api/scrape?url={URL}&format={FORMAT}Parameters:
url(required): URL of the webpage to scrapeformat(optional): Output format -text,markdown,html,json(default: markdown)
Example:
curl "https://web-scraper-mcp.vercel.app/api/scrape?url=https://example.com&format=markdown"Extract Elements
GET /api/extract?url={URL}&selector={SELECTOR}Parameters:
url(required): URL of the webpageselector(required): CSS selector (e.g.,article,.content,#main)
Example:
curl "https://web-scraper-mcp.vercel.app/api/extract?url=https://example.com&selector=article"Get Metadata
GET /api/metadata?url={URL}Parameters:
url(required): URL to analyze
Example:
curl "https://web-scraper-mcp.vercel.app/api/metadata?url=https://example.com"Response (402 Payment Required):
{
"error": "Payment Required",
"message": "This endpoint requires x402 payment",
"payment": {
"scheme": "exact",
"network": "eip155:8453",
"price": "$0.004",
"currency": "USDC",
"payTo": "0xf081ee84c0d85278a6242bc265f0b312021ebeb1"
},
"instructions": "Include payment proof in X-Payment-Proof header"
}π Discovery Endpoints
Bazaar Discovery:
/.well-known/x402MCP Metadata:
/mcp/toolsHealth Check:
/health
π° Payment Details
Network: Base Mainnet (Chain ID: eip155:8453)
Currency: USDC
Price: $0.004 per scrape
Protocol: x402 "exact" scheme
Payment Address:
0xf081ee84c0d85278a6242bc265f0b312021ebeb1
π€ Use with AI Agents
This MCP server is designed to work with Claude Code and other AI agents that support the Model Context Protocol (MCP) and x402 payments.
AI agents can:
Discover the service on x402 Bazaar
Pay via CDP Facilitator
Scrape any public webpage
Extract specific content with CSS selectors
Get clean markdown or structured JSON
Monitor websites for changes
Aggregate content from multiple sources
π¦ Response Format
Scrape Response (Markdown)
{
"success": true,
"url": "https://example.com",
"format": "markdown",
"title": "Example Domain",
"content": "# Example Domain\n\nThis domain is for use in illustrative examples...",
"scrapedAt": "2026-09-04T20:00:00.000Z",
"payment": {
"verified": true,
"amount": "0.004",
"currency": "USDC"
}
}Scrape Response (JSON)
{
"success": true,
"url": "https://example.com",
"format": "json",
"title": "Example Domain",
"content": {
"title": "Example Domain",
"headings": ["Example Domain", "More Information"],
"paragraphs": [
"This domain is for use in illustrative examples in documents.",
"You may use this domain in literature without prior coordination."
],
"links": [
{
"text": "More information...",
"href": "https://www.iana.org/domains/example"
}
],
"images": []
},
"scrapedAt": "2026-09-04T20:00:00.000Z"
}Extract Response
{
"success": true,
"url": "https://example.com",
"selector": "article",
"count": 2,
"elements": [
{
"html": "<article><h2>Title</h2><p>Content...</p></article>",
"text": "Title Content...",
"attributes": {
"class": "post",
"id": "post-123"
}
}
],
"scrapedAt": "2026-09-04T20:00:00.000Z"
}Metadata Response
{
"success": true,
"url": "https://example.com",
"metadata": {
"title": "Example Domain",
"description": "Example domain for illustrative purposes",
"keywords": "example, domain, documentation",
"author": "IANA",
"ogTitle": "Example Domain",
"ogDescription": "Example domain for illustrative purposes",
"ogImage": "https://example.com/image.jpg",
"ogUrl": "https://example.com",
"twitterCard": "summary_large_image",
"canonical": "https://example.com",
"favicon": "/favicon.ico",
"language": "en"
},
"scrapedAt": "2026-09-04T20:00:00.000Z"
}π οΈ Local Development
# Install dependencies
npm install
# Copy environment file
cp .env.example .env
# Run locally
npm start
# Development mode with auto-reload
npm run devServer will start on http://localhost:3000
π Deployment
Deploy to Vercel
# Install Vercel CLI
npm i -g vercel
# Deploy
vercel
# Deploy to production
vercel --prodThe vercel.json configuration is already set up for Express.
π― Output Formats
Text Format
Clean text content with whitespace normalized:
Example Domain This domain is for use in illustrative examples...Markdown Format
HTML converted to clean markdown:
# Example Domain
This domain is for use in illustrative examples in documents.
[More information...](https://www.iana.org/domains/example)HTML Format
Full HTML source code:
<!DOCTYPE html>
<html>
<head><title>Example Domain</title></head>
<body>...</body>
</html>JSON Format
Structured data with headings, paragraphs, links, and images:
{
"title": "Example Domain",
"headings": ["Example Domain"],
"paragraphs": ["This domain is..."],
"links": [{"text": "More info", "href": "..."}],
"images": [{"alt": "Logo", "src": "..."}]
}π― CSS Selector Examples
Extract specific content using CSS selectors:
Article content:
article,article.post,.article-contentMain content:
main,#main,.main-contentHeadings:
h1,h2,h3, h4, h5, h6Paragraphs:
p,.content pLists:
ul,ol,liLinks:
a[href],.nav aImages:
img[src],.gallery imgTables:
table,tbody tr,tdSpecific IDs:
#header,#footerSpecific classes:
.post,.comment,.author
π Use Cases
Content Aggregation - Collect articles, blog posts, news from multiple sites
Price Monitoring - Track product prices across e-commerce sites
Research - Extract data for analysis and reports
SEO Analysis - Get meta tags, headings, and structured data
Competitor Monitoring - Track changes on competitor websites
Data Mining - Extract structured data from web pages
News Monitoring - Track headlines and articles
Social Media - Scrape public posts and profiles
Real Estate - Collect property listings
Job Boards - Aggregate job postings
β οΈ Important Notes
Limitations
Only works with publicly accessible webpages
Does not execute JavaScript (static HTML scraping only)
Respects robots.txt and rate limiting
Maximum response time: 10 seconds per request
Best Practices
Always check if a site offers an official API first
Respect website terms of service
Don't scrape personal or sensitive data
Use appropriate rate limiting
Cache results when possible
Legal & Ethical Considerations
Only scrape publicly accessible information
Respect copyright and intellectual property
Follow robots.txt guidelines
Don't overload servers with requests
Use data responsibly
π Integration Example
With Claude Code
// AI agent automatically handles x402 payment
const response = await fetch('https://web-scraper-mcp.vercel.app/api/scrape?url=https://example.com&format=markdown', {
headers: {
'X-Payment-Proof': '<payment_proof>'
}
});
const data = await response.json();
console.log(data.content); // Markdown contentMCP Tool Schema
{
"name": "scrape_webpage",
"description": "Scrape and extract content from any publicly accessible webpage",
"inputSchema": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL of the webpage to scrape",
"format": "uri"
},
"format": {
"type": "string",
"description": "Output format",
"enum": ["text", "markdown", "html", "json"],
"default": "markdown"
}
},
"required": ["url"]
}
}π Security
All payments via x402 protocol on Base Mainnet
No user data stored
Payment verification on every request
Rate limiting and validation built-in
Secure HTTP requests with proper headers
π License
MIT
π Links
Live API: https://web-scraper-mcp.vercel.app (will be updated)
x402 Bazaar: https://x402bazaar.app
MCP Protocol: https://modelcontextprotocol.io
Base Network: https://base.org
GitHub: https://github.com/acceptancestronk01-sudo/web-scraper-mcp
Built with β€οΈ for the AI agent ecosystem
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Stealth scraping API for AI agents. Clean Markdown from any URL. x402 crypto payments.
Web scraping for AI agents. Extract text and metadata from any URL worldwide. $0.005/page.
Fetch any URL as clean Markdown or metadata, and buy digital goods via x402 β for AI agents.
Pay-per-request webpage-to-Markdown extraction for AI agents. $0.005 USDC via x402 on Solana.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceEnables AI models to scrape and extract structured data from any website globally using a 195+ country proxy network with JavaScript rendering, anti-bot bypass, and output in Markdown, HTML, or Links format.-
- FlicenseNot gradedqualityDmaintenanceExtracts clean text content and metadata from website URLs using Beautiful Soup through a standardized interface for AI agents. It supports both Bearer token authentication and a blockchain-based pay-per-use protocol for flexible access.-
- AlicenseNot gradedqualityDmaintenanceEnables extracting clean Markdown from any webpage by paying $0.005 USDC per call via the x402 protocol, with automatic wallet-based payment settlement.11MIT
- AlicenseNot gradedqualityDmaintenanceEnables extracting clean, structured markdown from any URLβstripping nav, ads, and scriptsβfor RAG pipelines and AI research agents, with pay-per-call micropayments via x402.MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/acceptancestronk01-sudo/web-scraper-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server