使用说明
苍蝇抗体检测仪mcp
一个MCP服务器,使用Scrapfly Antibot Detector浏览器扩展来检测任何网站上的反机器人系统、验证码和指纹技术。
看看它在行动
运行快速检测:
npm test
# or
node scripts/test-detection.js https://www.cloudflare.com
输出示例:
Detections Found: 16
Overall Confidence: 88%
- Cloudflare Bot Management (100% confidence)
- Google reCAPTCHA (100% confidence)
- WebGL Fingerprint (95% confidence)
特性
- 使用Scrapfly Antibot Detector扩展进行真实浏览器分析
- 检测反机器人提供商(Cloudflare、Akamai、DataDome、PerimeterX等)
- 验证码检测(reCAPTCHA、hCaptcha、FunCaptcha、旋转栅门)
- 指纹信号(画布、WebGL、音频、字体、WebRTC等)
- 结构化结果,包括置信度得分和证据匹配
安装
来自npm(全局)
npm install -g scrapfly-antibot-detector-mcp
来源
git clone https://github.com/diegopzz/scrapfly-antibot-detector-mcp.git
cd scrapfly-antibot-detector-mcp
npm install
npm run build
先决条件:
- Node.js 18+
- Git(用于在首次运行时下载扩展)
用法
连接到游标
添加 .cursor/mcp.json:
{
"mcpServers": {
"antibot-detector": {
"command": "npx",
"args": ["scrapfly-antibot-detector-mcp"]
}
}
}
连接到克劳德桌面
添加到您的配置中:
{
"mcpServers": {
"antibot-detector": {
"command": "npx",
"args": ["scrapfly-antibot-detector-mcp"]
}
}
}
连接到VS Code复制品聊天
用户设置JSON:
{
"github.copilot.chat.experimental.mcpServers": {
"antibot-detector": {
"command": "npx",
"args": ["scrapfly-antibot-detector-mcp"]
}
}
}
本地路径(无需安装npm)
{
"mcpServers": {
"antibot-detector": {
"command": "node",
"args": ["C:\\path\\to\\scrapfly-antibot-detector-mcp\\dist\\index.js"]
}
}
}
MCP工具
detect_antibot-分析URL并返回带有证据的检测结果url(字符串,必填)timeout(数字,可选,默认30000)
get_detector_status-返回浏览器检测器是否就绪
扩展更新
服务器在每次检测运行时检查GitHub的扩展更新。要禁用:
ANTIBOT_EXTENSION_UPDATE_CHECK=false
要强制刷新,请执行以下操作:
npm run update-extension
发展
npm run build # compile TypeScript
npm run dev # watch mode
npm test # run detection script
npm run download-extension
备注
- 浏览器以headed模式运行(扩展在headless模式下不起作用)。
- 发射使用
--no-sandbox以及最小化窗口;避免未经调整就锁定CI。 - 此工具用于研究和调试;遵守网站服务条款。
许可证
MIT。看 LICENSE.
学分
Scrapfly反机器人检测器扩展和模型上下文协议。