Token导航 LogoToken导航

MCP Server · 浏览器工具

Crawler MCP Server

MCP服务器提供网页爬取功能,支持多种内容格式输出(HTML、JSON、PDF、截图、Markdown)和浏览器交互特性,适用于数据采集和内容分析场景。

stdio官方级别未说明来源级核验工具 6
网页爬取Python浏览器自动化内容提取

快速开始

作者 / 组织
osins
提供方
osins
运行时
Python

工具数量

6

来源目录标注

资源数量

0

来源目录标注

提示词数量

0

来源目录标注

GitHub Star

0

仓库热度

收录来源

1 个

MCP World

选型结论

Crawler MCP Server 属于浏览器工具类 MCP Server,公开资料标注 6 个工具,通过stdio 本地进程接入,客户端适配情况以官方文档为准,有可以直接复制的安装命令;接入前先确认权限范围。

分类

浏览器工具

传输方式

stdio

认证方式

无需认证

部署方式

公开资料未说明

安装与配置

安装命令

python launch_server.py

客户端配置示例

{
  "mcpServers": {
    "crawler-mcp-server": {
      "command": "python",
      "args": [
        "launch_server.py"
      ]
    }
  }
}

按公开安装命令拼出来的示例,字段名和参数以仓库 README 为准;带 YOUR_API_KEY 这类占位符的位置记得换成自己的值。

上手步骤

  1. 1

    准备运行环境

    stdio 服务在本地起进程,需要先装好 Python,再按安装命令拉取依赖。

  2. 2

    安装服务

    复制下面的安装命令执行;命令里带占位符的位置换成自己的密钥或路径。

  3. 3

    写入客户端配置

    在客户端的 MCP 配置里填启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4

    验证是否可用

    连接成功后客户端会列出 6 个工具,随便调一个只读工具确认能返回结果。

接入前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

详细介绍

MCP Server for Web Crawling

An MCP (Model Context Protocol) server that provides web crawling capabilities using crawl4ai. Supports multiple content formats output (HTML, JSON, PDF, screenshots, Markdown) and browser interaction features.

Quick Start

To launch the server, you have several options:

Option 1: Using the Python launch script

python launch_server.py

Option 2: Using the shell script (Unix-based systems)

./launch_server.sh

Option 3: Using the batch script (Windows)

launch_server.bat

Option 4: Direct execution

python mcp_server/server.py

Table of Contents

MCP Configuration

To configure this server with MCP, you have multiple options depending on your setup:

Method 1: Using the launch script (Recommended)

This is the recommended approach as it handles virtual environment setup and dependency installation automatically:

{
  "mcpServers": {
    "dev-tool-mcp": {
      "command": "/bin/bash",
      "args": [
        "-c",
        "cd /absolute/path/to/your/dev-tool-mcp && ./launch_server.sh"
      ],
      "description": "MCP development tool server providing web crawling, browser automation, content extraction, and real-time page analysis capabilities"
    }
  }
}

Make sure to replace /absolute/path/to/your/dev-tool-mcp with the actual absolute path to your project directory.

Method 2: Using the virtual environment Python directly

If you prefer to run the server directly with the virtual environment:

{
  "mcpServers": {
    "dev-tool-mcp": {
      "command": "/absolute/path/to/your/dev-tool-mcp/launch_server.sh",
      "args": [],
      "description": "MCP development tool server providing web crawling, browser automation, content extraction, and real-time page analysis capabilities"
    }
  }
}

Method 3: Using the installed console script

If the package is installed in the virtual environment, you can use the console script:

{
  "mcpServers": {
    "dev-tool-mcp": {
      "command": "/absolute/path/to/your/dev-tool-mcp/launch_server.sh",
      "args": [],
      "description": "MCP development tool server providing web crawling, browser automation, content extraction, and real-time page analysis capabilities"
    }
  }
}

Method 4: Windows Configuration

For Windows systems, use the batch script:

{
  "mcpServers": {
    "dev-tool-mcp": {
      "command": "cmd",
      "args": [
        "/c",
        "cd /d C:\\absolute\\path\\to\\your\\dev-tool-mcp && launch_server.bat"
      ],
      "description": "MCP development tool server providing web crawling, browser automation, content extraction, and real-time page analysis capabilities"
    }
  }
}
Note: The launch scripts (Methods 1-3 on Unix/Linux/Mac and Method 4 on Windows) are recommended because they will: - Check if the virtual environment exists - Create it if needed - Install dependencies from pyproject.toml - Activate the environment - Start the server with all necessary dependencies This ensures a consistent and reliable setup for the MCP server.

Features

  • Web Crawling: Advanced web crawling capabilities using crawl4ai
  • Multiple Output Formats: Support for HTML, JSON, PDF, screenshots, and Markdown output
  • Browser Interaction: Get page content, console messages, and network requests
  • LLM Integration: Supports LLM extraction strategies for content processing
  • File Download: Automatic download and saving of files found on crawled pages
  • Progress Tracking: Streaming progress updates during crawling operations
  • Security: URL validation and sanitization to prevent security issues

Architecture

The MCP server is structured into the following modules:

mcp_server/
├── server.py          # Main MCP server definition and tool handling
├── utils.py          # Utility functions for file operations
├── browser/          # Browser automation functionality
│   ├── browser_service.py  # Playwright-based browser service
│   └── README.md     # Browser module documentation
└── crawl/            # Web crawling functionality
    └── crawl.py      # Core crawling implementation with crawl4ai

Core Components

  • Server: Implements MCP protocol with tool registration and execution
  • BrowserService: Manages Playwright browser instances for page content and network monitoring
  • Crawler: Uses crawl4ai for advanced web crawling with multiple output formats
  • Utils: Provides file handling utilities for saving content

Installation

Prerequisites

  • Python 3.8 or higher
  • pip package manager
  • System dependencies for Playwright (Chromium browser)

Steps

  1. Clone the repository:
   git clone 
   cd mcp-server
  1. Install the package and dependencies:
   pip install -e .
  1. Install Playwright browsers:
   python -m playwright install chromium

Dependencies

The server requires the following dependencies (automatically installed via pip):

  • crawl4ai>=0.7.7: Web crawling library
  • pydantic>=2.0.0: Data validation
  • mcp==1.0.0: Model Context Protocol implementation
  • httpx[socks]: HTTP client
  • litellm: LLM interface
  • beautifulsoup4>=4.12.2: HTML parsing
  • lxml>=4.9.3: XML/HTML processing
  • sentencepiece: Text processing
  • playwright>=1.40.0: Browser automation

Configuration

Environment Variables

The server uses the following environment variables (optional):

  • TEST_URL: URL for testing (used in test files)

Available Tools

The server exposes the following tools via MCP:

say_hello
  • Description: A simple greeting tool that returns personalized messages to users
  • Parameters:

- name (string, optional): The name to greet, defaults to "World"

  • Returns: Greeting message text
echo_message
  • Description: Echo tool that returns user-provided information as-is
  • Parameters:

- message (string, required): The message to echo back

  • Returns: Echoed message text
crawl_web_page
  • Description: Crawl web page content and save in multiple formats (HTML, JSON, PDF, screenshots) while downloading file resources from the page
  • Parameters:

- url (string, required): The URL of the web page to crawl - save_path (string, required): The base file path to save the crawled content and downloaded files - instruction (string, optional): The instruction to use for the LLM (default: "") - save_screenshot (boolean, optional): Save a screenshot of the page (default: false) - save_pdf (boolean, optional): Save a PDF of the page (default: false) - generate_markdown (boolean, optional): Generate a Markdown representation of the page (default: false)

  • Returns: Success message with file count and save location
get_page_content
  • Description: Get complete content of a specified URL webpage, including HTML structure and page data
  • Parameters:

- url (string, required): The URL of the web page to get content from - wait_for_selector (string, optional): Optional CSS selector to wait for before getting content - wait_timeout (integer, optional): Wait timeout in milliseconds, default 30000

  • Returns: JSON object containing page content, title, HTML, text, metadata, links, and images
get_console_messages
  • Description: Capture console output information from specified URL webpage (including logs, warnings, errors, etc.)
  • Parameters:

- url (string, required): The URL of the web page to get console messages from - wait_for_selector (string, optional): Optional CSS selector to wait for before getting console messages - wait_timeout (integer, optional): Wait timeout in milliseconds, default 30000

  • Returns: JSON object containing console messages with type, text, location, and stack information
get_network_requests
  • Description: Monitor and retrieve all network requests initiated by specified URL webpage (API calls, resource loading, etc.)
  • Parameters:

- url (string, required): The URL of the web page to get network requests from - wait_for_selector (string, optional): Optional CSS selector to wait for before getting network requests - wait_timeout (integer, optional): Wait timeout in milliseconds, default 30000

  • Returns: JSON object containing requests and responses with URLs, status, headers, and timing information

Usage

Running the Server

The server can be started using the console script defined in pyproject.toml:

dev-tool-mcp

Or directly via Python:

python -m mcp_server.server

The server uses stdio for MCP communication, making it compatible with MCP clients.

Tool Examples

Crawling a Web Page

To crawl a web page and save content in multiple formats:

{
  "name": "crawl_web_page",
  "arguments": {
    "url": "https://example.com",
    "save_path": "/path/to/save",
    "save_screenshot": true,
    "save_pdf": true,
    "generate_markdown": true
  }
}

This will create a timestamped subdirectory with:

  • output.html - Page HTML content
  • output.json - Page content in JSON format
  • output.png - Screenshot of the page (if requested)
  • output.pdf - PDF of the page (if requested)
  • raw_markdown.md - Markdown representation of the page (if requested)
  • downloaded_files.json - List of downloaded files
  • files/ - Directory containing downloaded files
Getting Page Content

To retrieve page content:

{
  "name": "get_page_content",
  "arguments": {
    "url": "https://example.com",
    "wait_for_selector": "#main-content",
    "wait_timeout": 10000
  }
}
Getting Console Messages

To capture console messages from a page:

{
  "name": "get_console_messages",
  "arguments": {
    "url": "https://example.com",
    "wait_for_selector": ".app",
    "wait_timeout": 15000
  }
}
Getting Network Requests

To monitor network requests made by a page:

{
  "name": "get_network_requests",
  "arguments": {
    "url": "https://example.com",
    "wait_for_selector": "[data-loaded]",
    "wait_timeout": 20000
  }
}

Testing

The project includes comprehensive tests for both browser and crawler functionality:

Run Tests

# Run all tests
pytest

# Run specific test files
python -m pytest test/test_crawler.py
python -m pytest test/test_browser.py

# Run browser tests directly
python -m test.test_browser

Test Coverage

  • test_crawler.py: Tests the complete crawler functionality, including file saving and format generation
  • test_browser.py: Tests browser service functions for page content, console messages, and network requests

The crawler test specifically verifies:

  • HTML, JSON, PDF, screenshot, and Markdown file generation
  • File download and saving functionality
  • Proper error handling and directory creation

Deployment

Production Deployment

  1. Install the package in your production environment:
   pip install dev-tool-mcp
  1. Install Playwright browsers:
   python -m playwright install chromium --with-deps
  1. Run the server:
   dev-tool-mcp

Docker Deployment (Optional)

Create a Dockerfile for containerized deployment:

FROM python:3.11-slim

WORKDIR /app

COPY pyproject.toml .
COPY mcp_server/ ./mcp_server/

RUN pip install -e .
RUN python -m playwright install chromium --with-deps

CMD ["dev-tool-mcp"]

Security

URL Validation

The server includes security measures to prevent malicious URLs:

  • URL length limit (2048 characters)
  • Protocol validation (only http/https allowed)
  • Input sanitization to prevent injection attacks
  • Validation to prevent access to local network addresses

Browser Security

  • Playwright runs in headless mode by default
  • Security flags are set to disable dangerous features
  • Browser runs with limited privileges

File System Security

  • Files are saved only to explicitly specified paths
  • No arbitrary file system access is allowed
  • Temporary files are properly cleaned up

Troubleshooting

Common Issues

Playwright Browser Not Found

If you encounter browser-related errors:

python -m playwright install chromium
Permission Errors

Ensure the server has write permissions to the specified save paths:

mkdir -p /path/to/save
chmod 755 /path/to/save
Network Issues

For network-related crawling issues, verify:

  • The target URL is accessible
  • No firewall restrictions exist
  • Appropriate timeout values are set
Memory Usage

Large page crawls can consume significant memory. For large-scale crawling:

  • Monitor memory usage
  • Process pages sequentially rather than in parallel
  • Clean up temporary files regularly

Debugging

Enable verbose logging to troubleshoot issues:

# Check the server logs for error messages
# Monitor file system permissions
# Verify network connectivity to target URLs

Version Information

  • Package: dev-tool-mcp
  • Version: 0.1.0
  • Python Support: 3.8+
  • Dependencies: See pyproject.toml for exact versions

License

This project is licensed under the terms specified in the pyproject.toml file. See the project repository for full license details.

工具与能力

工具数量

6

资源数量

0

提示词数量

0

能力标签

网页爬取Python本地部署数据采集浏览器自动化内容提取多格式输出

数量来自来源目录的标注,具体工具清单以官方文档为准。

典型使用场景

自动操作网页

打开页面、点击、填表,把浏览器动作交给模型执行。

抓结构化数据

把页面内容整理成表格或 JSON,省掉手工复制粘贴。

走一遍关键流程

按步骤检查页面是否正常,回归时少漏环节。

选择建议

值得选的地方

  • 只提供 6 个工具,职责集中,接入后不容易误操作。
  • 有现成的安装命令,不用自己找入口,照着跑就能起服务。
  • 公开说明写得比较完整,接入前能看清能力边界。

先想清楚的地方

  • stdio 方式要求本地装好 Python,换机器要重新装一遍。
  • 第三方目录整理,版本更新和行为细节以官方仓库为准。

更适合

  • 需要在浏览器工具场景里让模型直接调用外部能力的人。
  • 想先快速试一下、能接受在本地跑服务的人。

不太适合

  • 完全不想在本地装环境的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

5 个同类
MCP Server工具数传输方式安装命令收录来源最后核验
Crawler MCP Server

MCP World · 本页

6stdio有1 个2026-05-17
Fetch 9a2682de

MCP.so

1SSE有3 个2026-05-17
Browser 738d52bc

MCP World

0stdio有1 个2026-05-17
Playwright MCP Server

MCP.so

21stdio有4 个2026-05-17
Skyvern MCP

MCP World

0stdio有2 个2026-05-17

按同分类和工具数量挑出最接近的几条,字段以各自详情页为准。

常见问题

5 条

Crawler MCP Server 怎么安装?

公开资料给出的安装命令是 python launch_server.py,运行环境为 Python。装完后按客户端要求写进 MCP 配置,重启客户端生效。

Crawler MCP Server 怎么在 Claude Desktop、Cursor 里配置?

它是stdio 本地进程,客户端配置里要写启动命令和参数,运行环境是 Python;保存后完全退出客户端再打开,配置才会生效。

Crawler MCP Server 收费吗?

本站只整理公开资料,不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

Crawler MCP Server 需要 API Key 吗?

公开资料标注为无需认证,装好就能连;如果实际调用时报鉴权错误,按官方文档补上凭据。

Crawler MCP Server 支持哪些客户端?

公开资料没有标注具体客户端;能配置本地 MCP 命令的客户端都能接,配置方式参照官方文档。

来源信息

继续浏览同类 MCP