linguiben/puppeteer-mcp-server
3.2
If you are the rightful owner of puppeteer-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The puppeteer-mcp-server is a server setup that integrates Puppeteer for web scraping and MCP (Model Context Protocol) for remote procedure calls.
Tools
mcpInspector
A tool for inspecting and managing MCP requests and responses.
puppeteer-mcp-server
jupiter@Jupiter-Mac puppeteer$node sina_world_mobile.js
✅ 环球板块加载成功
📊 抓取结果: []
📸 页面截图已保存为 sina_world.png
运行环境
- 创建python虚拟环境
python3.11 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
# pip freeze > requirements.txt
- 安装node.js和puppeteer
npm install puppeteer
- python启动mcp server
python start-mcp-server.py streamable-http # 选择启动方式
- 远程调用mcp tools
# 选启动/Users/jupiter/15.node-wkspc/mcpInspector
curl -X POST http://127.0.0.1:5000/api/v1/mcp/run -d '{"url": "https://www.sina.com.cn/", "timeout": 10, "screenshot": true, "screenshot_path": "sina_world.png"}'
jupiter@Jupiter-Mac ~$curl -X POST http://localhost:8080 --data "url=https://www.qq.com"
📸 页面截图已保存为 images/20250615071725842_www.qq.com.png