
本页由 AI 翻译,技术细节请以原文为准。 查看原文
webscraping-ai/webscraping-ai-mcp-server 是从 https://github.com/webscraping-ai/webscraping-ai-mcp-server. 导入的 MCP 服务器候选
概览
webscraping-ai/webscraping-ai-mcp-server 是从 https://github.com/webscraping-ai/webscraping-ai-mcp-server. 导入的 MCP 服务器候选
概述(AI 翻译)
偏好零设置? 使用托管的远程MCP服务器: 在你的MCP客户端添加
https://mcp.webscraping.ai/mcp,并用你的 WebScraping.AI 账户 — OAuth 负责认证,没有 API 密钥或本地安装 需要。这个仓库是开源的 stdio 版本,用于自托管和 定制。
一个模型上下文协议(MCP)服务器实现,集成于 WebScraping.AI 关于网页数据提取能力—— Chromium JavaScript 渲染,轮换数据中心/住宅/隐形代理, 以及任何页面上的AI驱动问答和结构化字段提取。
注册获取API密钥——免费 试用,无需信用卡。参见 完整参数引用的API文档。
特色
- 关于网页内容的问答
- 从网页中提取结构化数据
- 使用JavaScript渲染的HTML内容检索
- 从网页中提取纯文本
- 基于CSS选择器的内容提取
- Google 搜索结果(SERP)解析后的 JSON
- 支持网站(如YouTube、TikTok、X、LinkedIn、Instagram、Reddit)上从正常URL创建的结构化JSON。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
WebScraping.AI MCP Server
Prefer zero setup? Use the hosted remote MCP server: add
https://mcp.webscraping.ai/mcpto your MCP client and sign in with your WebScraping.AI account — OAuth handles auth, no API key or local install needed. This repo is the open-source stdio version for self-hosting and customization.
A Model Context Protocol (MCP) server implementation that integrates with WebScraping.AI for web data extraction capabilities — Chromium JavaScript rendering, rotating datacenter/residential/stealth proxies, and AI-powered question answering and structured field extraction on any page.
Sign up to get an API key — a free trial, no credit card required. See the API documentation for the full parameter reference.
Features
- Question answering about web page content
- Structured data extraction from web pages
- HTML content retrieval with JavaScript rendering
- Plain text extraction from web pages
- CSS selector-based content extraction
- Google search results (SERP) as parsed JSON, from a chosen location and up to 5 pages per call
- Structured JSON for any public web page from its normal URL
- Multiple proxy types (datacenter, residential, stealth) with country selection
- JavaScript rendering using headless Chrome/Chromium
- Concurrent request management with rate limiting
- Custom JavaScript execution on target pages
- Device emulation (desktop, mobile, tablet)
- Account usage monitoring
- Content sandboxing option - Wraps scraped content with security boundaries to help protect against prompt injection
Installation
Running with npx
env WEBSCRAPING_AI_API_KEY=your_api_key npx -y webscraping-ai-mcp
Manual Installation
# Clone the repository
git clone https://github.com/webscraping-ai/webscraping-ai-mcp-server.git
cd webscraping-ai-mcp-server
# Install dependencies
npm install
# Run
npm start
Configuring in Cursor
Note: Requires Cursor version 0.45.6+
The WebScraping.AI MCP server can be configured in two ways in Cursor:
- Project-specific Configuration (recommended for team projects):
Create a
.cursor/mcp.jsonfile in your project directory:{ "servers": { "webscraping-ai": { "type": "command", "command": "npx -y webscraping-ai-mcp", "env": { "WEBSCRAPING_AI_API_KEY": "your-api-key", "WEBSCRAPING_AI_CONCURRENCY_LIMIT": "5", "WEBSCRAPING_AI_ENABLE_CONTENT_SANDBOXING": "true" } } } }
安装
npx -y webscraping-ai-mcp配置
{
"mcpServers": {
"mcp-server-webscraping-ai": {
"command": "npx",
"args": ["-y", "webscraping-ai-mcp"],
"env": {
"WEBSCRAPING_AI_API_KEY": "YOUR_API_KEY_HERE",
"WEBSCRAPING_AI_CONCURRENCY_LIMIT": "5",
"WEBSCRAPING_AI_ENABLE_CONTENT_SANDBOXING": "true"
}
}
}
}