Context Scraper MCP Server
About
A server for web crawling and content extraction using the Crawl4AI library.
Details
- Author
- ddipass
- Categories
- Web Scraping, Automation, Other
Jump to
Setup
Install Context Scraper MCP Server in your MCP client (Claude Desktop, Cursor, Windsurf, and others).
Repository: https://github.com/ddipass/context-scraper-mcp-server
Follow the installation instructions in the repository README, then restart your MCP client.
A server for web crawling and content extraction using the Crawl4AI library.
一个基于Crawl4AI的 Model Context Protocol (MCP) 服务器,为 Amazon Q Developer 和其他 AI 工具提供强大的网页爬取、学术搜索和智能研究功能。
- 智能网页爬取: 支持基础、隐身、地理位置伪装等多种爬取模式
- 学术搜索引擎: 集成 Google Scholar、arXiv、PubMed 等学术数据库
- 智能配置管理: 灵活的配置系统,支持运行时调整
- 实验性AI分析: 可选的Claude API集成用于高级内容分析
# 1. 克隆项目 git clone https://github.com/ddipass/context-scraper-mcp-server.git cd context-scraper-mcp-server # 2. 使用 uv 同步依赖 uv sync # 3. 激活虚拟环境 source .venv/bin/activate # 4. 运行 Crawl4AI 设置 crawl4ai-setup
# 1. 克隆项目 git clone https://github.com/ddipass/context-scraper-mcp-server.git cd context-scraper-mcp-server # 2. 创建虚拟环境 python -m venv .venv source .venv/bin/activate # Linux/macOS # 或 .venv\Scripts\activate # Windows # 3. 安装项目依赖 pip install -e . # 4. 安装浏览器依赖 python -m playwright install chromium # 5. 运行 Crawl4AI 设置 crawl4ai-setup
我们推荐使用uv- 这是一个用 Rust 构建的现代 Python 包管理器:
- ⚡速度快: 比传统 pip 快 10-100 倍
- 🛡️可靠性: 更好的依赖解析和冲突检测
- 🎯MCP 官方推荐: Python MCP SDK 推荐的标准工具
# macOS/Linux curl -LsSf https://astral.sh/uv/install.sh | sh # Windows powershell -c "irm https://astral.sh/uv/install.ps1 | iex" # 或使用 pip pip install uv
{ "mcpServers": { "ContextScraper": { "command": "/absolute/path/to/context-scraper-mcp-server/.venv/bin/mcp", "args": [ "run", "/absolute/path/to/context-scraper-mcp-server/server_v9.py" ], "cwd": "/absolute/path/to/context-scraper-mcp-server" } } }
重要: 请将/absolute/path/to/context-scraper-mcp-server替换为你的实际项目路径。
cd context-scraper-mcp-server pwd # 将输出的路径复制到配置文件中
启动 Amazon Q Developer 后,你应该能看到 ContextScraper 工具可用。可以使用以下命令测试:
- academic_search- 多数据源学术搜索 (Google Scholar, arXiv, PubMed)
- crawl- 基础网页爬取
- crawl_stealth- 隐身模式爬取
- crawl_with_geolocation- 地理位置伪装爬取
- crawl_with_retry- 重试机制爬取
- crawl_with_intelligence- 智能爬取模式
- configure_crawl_settings- 爬取参数配置
- quick_config_content_limit- 快速设置内容显示限制
- quick_config_word_threshold- 快速设置词数阈值
- system_status- 系统状态监控
- experimental_claude_analysis- Claude AI 内容分析 (需要API配置)
# 在 arXiv 搜索机器学习论文 result = await academic_search("machine learning transformers", "arxiv") # 在 PubMed 搜索医学文献 result = await academic_search("COVID-19 vaccine effectiveness", "pubmed") # 在 Google Scholar 搜索 result = await academic_search("climate change", "google_scholar")
# 基础爬取 result = await crawl("https://example.com") # 隐身模式爬取 result = await crawl_stealth("https://protected-site.com") # 智能爬取 result = await crawl_with_intelligence("https://news-site.com", "smart") # 地理位置伪装爬取 result = await crawl_with_geolocation("https://geo-restricted.com", "newyork") # 重试机制爬取 result = await crawl_with_retry("https://unstable-site.com", max_retries=3)
# 快速设置内容显示限制 result = await quick_config_content_limit(5000) # 快速设置词数阈值 result = await quick_config_word_threshold(100) # 查看系统状态 result = await system_status() # 配置爬取参数 result = await configure_crawl_settings("update", "content_limits", markdown_display_limit=8000)
# Claude AI 内容分析 (需要配置API) result = await experimental_claude_analysis("分析这段文本的主要观点", "general", enable_claude=True)
context-scraper-mcp-server/ ├── server_v9.py # 🚀 主服务器文件 (当前版本) ├── server_v8.py # V8 版本服务器 ├── server_v7.py # V7 版本服务器 ├── v9_core/ # 🧠 V9 核心模块 │ ├── intent_analyzer.py # 🎯 用户意图分析引擎 │ ├── crawl_config_manager.py # ⚙️ 爬取配置管理器 │ └── config_manager.py # 📋 通用配置管理器 ├── v9_config/ # 📋 V9 配置文件 │ └── crawl_config.json # 🔧 爬取参数配置 ├── config/ # 🗂️ 通用配置目录 │ ├── claude_config_example.json # Claude API 配置示例 │ └── v6_config/ # 历史版本配置 ├── docs/ # 📚 文档目录 │ ├── architecture/ # 🏗️ 架构文档 │ ├── development/ # 🔧 开发文档 │ └── versions/ # 📋 版本文档 ├── legacy/ # 📦 历史版本和备份 ├── .venv/ # 🐍 Python 虚拟环境 ├── pyproject.toml # 📋 项目配置文件 ├── uv.lock # 🔒 依赖锁定文件 └── README.md # 📖 项目说明文档
server_v9.py (主服务器) ├── v9_core/ │ ├── intent_analyzer.py # 用户意图分析 (独立模块) │ └── crawl_config_manager.py # 爬取配置管理 (独立模块) ├── v9_config/ │ └── crawl_config.json # 配置文件 (JSON格式) └── 外部依赖 ├── crawl4ai # 网页爬取引擎 ├── mcp # Model Context Protocol └── aiohttp # 异步HTTP客户端
- server_v9.py- 主服务器,集成所有V9功能,提供MCP工具接口
- intent_analyzer.py- 分析用户意图,支持搜索、爬取、研究等多种意图类型
- crawl_config_manager.py- 管理爬取配置,支持运行时动态调整参数
- crawl_config.json- 存储用户偏好和系统配置
- 多意图识别: 自动识别搜索、爬取、研究、提取、监控、对比等意图类型
- 相关函数:analyze_user_intent()(v9_core/intent_analyzer.py)
- 运行时配置: 无需重启即可调整爬取参数
- 相关函数:configure_crawl_settings(),reload_crawl_config()
- 相关函数:get_crawl_config()(v9_core/crawl_config_manager.py)
- 相关函数:quick_config_content_limit(),quick_config_word_threshold()
- 相关函数:activate_virtual_environment()(server_v9.py)
- 多模式爬取: 基础、隐身、地理位置伪装、重试机制
- 相关函数:crawl(),crawl_stealth(),crawl_with_geolocation(),crawl_with_retry()
- 多数据源: Google Scholar、arXiv、PubMed等学术数据库
- 相关函数:academic_search()
- 参数:deep_crawl_countinacademic_search()
- Claude AI 分析: 可选的Claude API集成,用于高级内容分析
- 相关函数:experimental_claude_analysis()
如果需要使用 Claude API 功能,可以配置config/claude_config_example.json:
{ "claude_api": { "api_key": "your-api-key-here", "base_url": "https://api.anthropic.com", "model": "claude-3-sonnet-20240229", "enabled": false, "timeout": 30, "max_tokens": 4000, "temperature": 0.7 } }
{ "content_limits": { "markdown_display_limit": 3000, "word_count_threshold": 50 }, "quality_control": { "min_content_length": 100, "enable_content_filtering": true }, "user_preferences": { "show_word_count": true, "show_crawl_info": true } }
- 学术研究: 文献搜索、论文分析、引用追踪
- 市场调研: 竞争分析、行业报告、趋势监控
- 技术文档: API 文档整理、技术资料收集
- 内容创作: 素材收集、事实核查、灵感发现
# 确保虚拟环境已激活 source .venv/bin/activate which mcp
# 获取正确的绝对路径 cd context-scraper-mcp-server pwd
# 检查文件权限 ls -la ~/.aws/amazonq/mcp.json chmod 644 ~/.aws/amazonq/mcp.json
# 直接运行服务器测试 cd context-scraper-mcp-server source .venv/bin/activate .venv/bin/mcp run server_v9.py
- Crawl4AI- 强大的网页爬取库
- Model Context Protocol- AI 工具集成标准
- Crawl4AI 文档
- Model Context Protocol
- Amazon Q Developer
Scrape any URL with JavaScript rendering and get back clean markdown — built for AI agents, LLM pipelines, and autonomous research workflows.
CrawlForge MCP is a production-ready MCP server with 18 web scraping tools for AI agents. It gives Claude, Cursor, and any MCP-compatible client the ability to fetch URLs, extract structured data with CSS/XPath selectors, run deep multi-step research, bypass anti-bot detection with TLS fingerprint randomization, process documents, monitor page changes, and more. Credit-based pricing with a free tier (1,000 credits/month, no credit card required).
An MCP server for crawling WeChat articles. It supports single and batch crawling with multiple output formats, designed for AI tools like Cursor.
Fetch and extract web content using a Playwright headless browser, with support for intelligent extraction and flexible output.
An MCP server for the Kakuyomu novel posting site, enabling users to search for works, retrieve episode lists, and read content.
Local-first MCP server that captures web URLs (X, Reddit, YouTube, Wikipedia, articles) as typed data + Markdown into a self-hosted capture/store/recall substrate, with offline semantic recall. Six tools over a local khiipd daemon; run khiipd serve first.
Ultra-fast web scraper and deep discussion crawler delivering clean Markdown for AI Agents
Real-time news aggregation from AP, BBC, NPR, Hacker News, and Google News
Search, extract, crawl, map, and research the web — from any AI agent or terminal.
A web crawler and content extractor that supports multiple output formats like text, markdown, and JSON.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.


