webgrab-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., "@webgrab-mcpdownload video from https://youtu.be/dQw4w9WgXcQ"
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.
WebGrab - 全网最强网页内容下载处理工具
全能的网页内容下载工具:视频、文章、弹幕、评论、反复制保护绕过。
English | 中文
下载安装
无需安装 Python,开箱即用!
平台 | 下载 |
Windows | |
macOS (Apple Silicon) | |
Linux |
下载后直接运行即可。也可以用 pip 安装:pip install webgrab
Related MCP server: MCP Server Fetch Python
功能特色
功能 | CLI | Web UI | MCP | Cursor Skill | OpenClaw |
YouTube/通用视频下载(1700+网站) | ✅ | ✅ | ✅ | ✅ | ✅ |
B站视频下载 | ✅ | ✅ | ✅ | ✅ | ✅ |
B站弹幕下载(XML/JSON/CSV/ASS) | ✅ | ✅ | ✅ | ✅ | ✅ |
B站评论下载(含楼中楼) | ✅ | ✅ | ✅ | ✅ | ✅ |
抖音视频下载(无水印) | ✅ | ✅ | ✅ | ✅ | ✅ |
抖音评论下载 | ✅ | ✅ | ✅ | ✅ | ✅ |
网页文章下载(Markdown/HTML) | ✅ | ✅ | ✅ | ✅ | ✅ |
反复制保护绕过 | ✅ | ✅ | ✅ | ✅ | ✅ |
网页转PDF | ✅ | ✅ | ✅ | - | - |
m3u8流媒体下载 | ✅ | ✅ | ✅ | ✅ | ✅ |
批量下载 | ✅ | ✅ | ✅ | - | - |
快速开始
安装
pip install webgrab命令行使用
# 下载视频(支持B站、YouTube、抖音等1700+网站)
webgrab video "https://www.bilibili.com/video/BV1xx411c7mD"
# 下载B站弹幕(支持 json/csv/xml/ass 格式)
webgrab danmaku "https://www.bilibili.com/video/BV1xx411c7mD" --format ass
# 下载B站评论(含楼中楼回复)
webgrab comments "https://www.bilibili.com/video/BV1xx411c7mD" --replies --limit 200
# 下载抖音评论
webgrab comments "https://www.douyin.com/video/123456" --limit 100
# 下载文章为 Markdown
webgrab article "https://example.com/article" --format markdown
# 绕过复制保护
webgrab bypass "https://protected-site.com/article"
# 批量下载
webgrab batch "url1" "url2" "url3"
# 查看视频信息(不下载)
webgrab info "https://www.youtube.com/watch?v=xxx"MCP 服务器(AI 助手集成)
WebGrab 提供 MCP 服务器,一次配置即可在所有主流 AI 平台使用。
安装
pip install webgrab[mcp]配置(所有平台通用)
以下配置适用于 Claude Desktop / Cursor / Windsurf / OpenClaw / VS Code Copilot:
{
"mcpServers": {
"webgrab": {
"command": "webgrab-mcp",
"env": {
"BILIBILI_COOKIE": "可选-用于高画质",
"DOUYIN_COOKIE": "可选-用于评论采集"
}
}
}
}提供的工具
工具 | 功能 |
| 下载视频(支持画质选择) |
| 提取音频 |
| 下载文章(Markdown/HTML/文本) |
| 提取网页内容(不保存文件) |
| 绕过复制保护 |
| 获取B站弹幕 |
| 获取B站评论(含楼中楼) |
| 下载抖音视频(无水印) |
| 获取抖音评论 |
| 获取视频元数据 |
| 批量下载 |
| 下载m3u8流媒体 |
Web 服务
Docker 一键部署
git clone https://github.com/bcefghj/webgrab.git
cd webgrab
docker-compose up -d本地开发
pip install webgrab[server]
uvicorn server.main:app --reload --host 0.0.0.0 --port 8000油猴脚本
反复制脚本
安装 scripts/anti_copy.user.js 到 Tampermonkey,自动解除所有网页的复制限制。
视频嗅探脚本
安装 scripts/video_sniffer.user.js 到 Tampermonkey,自动检测页面中的视频/音频资源。
部署到服务器
详细的小白级部署教程请参考 部署指南,涵盖:
阿里云 ECS(99元/年,含手把手教程)
Docker 部署
Render 免费部署
Fly.io 部署
GitHub Actions CI/CD
开发
git clone https://github.com/bcefghj/webgrab.git
cd webgrab
pip install -e ".[all]"
webgrab --help许可证
MIT
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.
Latest Blog Posts
- 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/bcefghj/webgrab'
If you have feedback or need assistance with the MCP directory API, please join our Discord server