🚀 专为 AI Agent 打造的瑞数防爬流量净化 MCP 工具 / An MCP Tool for AI Agents to Stealthily Bypass and Purify Ruishu WAF Traffic
⚠️ 免责声明 / Disclaimer
本项目属于高度复合型学术与工程研究成果,旨在探讨复杂动态网络环境下的异构数据流转机制,不得用于任何商业与违法用途。使用者若将其用于非法业务或恶意操作,后果由使用者自行承担,作者不承担任何连带责任。
This project is a highly complex academic and engineering research achievement, aimed at exploring heterogeneous data pipeline mechanisms under complex dynamic web environments. It must NOT be used for any commercial or illegal purposes. Any consequences arising from using this tool for illegal activities will be borne solely by the user. The author assumes no liability.
Ruishu MCP 是一个基于 Anthropic 官方 Model Context Protocol (MCP) 标准协议 和 Chrome DevTools Protocol (CDP) 构建的高级环境感知与数据管道工具。在真实的 AI 应用中,大语言模型(LLM)面临的最大瓶颈是如何从具有复杂动态防护的网络环境中稳定提取高质量数据。本项目的核心愿景正是连接大模型与动态真实世界数据之间的鸿沟 (Bridging the gap between LLMs and dynamic real-world data)。它能够协助 AI Agent 自动剥离极具挑战性的「动态环境参数」,稳定构建通往高质量业务数据的双向提取链路。
Ruishu MCP is an advanced environment perception and data pipeline tool built upon the Anthropic Model Context Protocol (MCP) and the Chrome DevTools Protocol (CDP). In real-world AI applications, the biggest bottleneck for Large Language Models (LLMs) is how to stably extract high-quality data from web environments with complex dynamic security mechanisms. The core vision of this project is to bridge the gap between LLMs and dynamic real-world data. It assists AI Agents in automatically stripping away challenging "dynamic environment parameters" and creating a robust, bidirectional extraction pipeline to high-quality business data.
?abcde123=xxxxxxxxxxxx),极大提高大模型数据 ingested 的信噪比。# 1. 克隆代码库 / Clone the repository
git clone https://github.com/xuange520/ruishu-mcp.git
cd ruishu-mcp
# 2. 安装依赖 / Install dependencies
npm install
# 3. 编译 TypeScript / Build TypeScript
npm run build你需要先让目标环境浏览器开放 CDP 数据遥测端口(默认推荐 9222)。
You need to open the CDP data telemetry port on your target environment browser (default 9222 is recommended).
Windows:
chrome.exe --remote-debugging-port=9222macOS:
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222在你的主流 AI 客户端(如 Claude Desktop, Cursor, Windsurf, Gemini CLI, Antigravity 等)的 MCP 配置文件中添加当前服务:
Add the current MCP service to the MCP configuration file of your mainstream AI client:
{
"mcpServers": {
"ruishu-cdp": {
"command": "node",
"args": ["/absolute/path/to/ruishu-mcp/dist/index.js"]
}
}
}一旦配置成功,大语言模型将获得感知动态数据流以下三大核心能力(Tools):
Once configured, the Large Language Model will gain the following three core capabilities for dynamic data stream perception:
init_ruishu_hook: 指挥系统级探针锁定目标空间,自动执行前端复杂环境解耦与无侵入数据管道挂载,进入就绪态监控等待环境标定。url_keyword: 目标数据流环境路由特征 / Target data stream environment routing featurehost: 远端节点 IP / Remote node IP, 默认 / Default 127.0.0.1port: 远端节点遥测端口 / Remote node telemetry port, 默认 / Default 9222execute_page_action: 模型的自动化环境控制层(Action Layer),通过模拟现实操作验证状态机转化,用于激活被动的数据流运转。js_script: 要分发执行的控制流脚本 / Control flow script to be dispatched and executedget_intercepted_traffic: 结果汇聚观测层(Observation Layer),读取已完成底层预处理、降噪与结构化映射后的高质量业务态 JSON 日志数据集。limit: 控制大模型上下文窗口承载上限以防数据洪流溢出 / Control the limit of LLM context window bearing capability to prevent data flood overflowNetwork.requestWillBeSent 和 Network.responseReceived 在内核级监听底层字节流交互,解决前端逻辑动态加密造成的高维物理黑盒问题。它彻底展现了我对于现代浏览器内核通讯协议极深的工程驾驭能力。Network.requestWillBeSent and Network.responseReceived, resolving the high-dimensional physical black-box problem caused by frontend dynamic encryption logic.欢迎提交 Issues 与 Pull Requests。这是一个供深层数据流技术学术研究交流的开源代码库,请在提交代码时注意遵守免责声明及学术规范。
Issues and Pull Requests are welcome. This is an open-source codebase for academic research and exchange on deep data flow technologies. Please ensure compliance with the disclaimer and academic norms.
MIT License (附加了非商业用途与恶意滥用严格限制条款 / With strict Non-Commercial and Malicious-Abuse restriction clauses attached)
Copyright (c) 2026 xuange520. All rights reserved.
本项目源代码及相关文档已受相应保护。除学术研究范围内的开源代码交流及算法研讨外,未经作者明确书面许可,严禁将本项目架构或源代码直接用于任何形式的商业变现、闭源代码封装二次售卖,或进行不符合学术规约的无署名分发。
The source code and related documentation of this project are protected. Except for open-source code communication and algorithmic discussion within the scope of academic research, without explicit written permission from the author, any form of commercial monetization, closed-source packaging for secondary sale, or unsigned distribution violating academic conventions is strictly prohibited.
xuange520/ruishu-mcp
April 11, 2026
April 13, 2026
TypeScript