Site-REA
Detects Babylon.js-powered 3D scenes in captured sites and extracts associated assets, shaders, and animation data for cloning.
Captures .glb/.gltf 3D model assets and related binary/texture files from target sites for local use in cloned projects.
Extracts Google Fonts used by captured pages and includes them in generated design tokens and reconstructed projects.
Generates React/Vite/Tailwind project scaffolds from captured site evidence for reconstructed frontends.
Detects Three.js scenes and captures their GLSL shaders, uniforms, 3D models, and animation behavior for high-fidelity reconstruction.
Generates Vite-based project scaffolds, including React/Vite/Tailwind, for cloned frontend implementations.
Instruments WebGL/WebGL2 pages to record shader source code and live uniform values and preserve canvas output for visual verification.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Site-REA v2 (site-rea)
Website Reverse-Engineering & Cloning Agent Engine — MCP Server (13 Tools) + CLI + Antigravity Plugin
给 AI Agent 一个网址(或你本地保存的 HTML/HAR 归档),自动完成「多维逆向取证 → 3D/WebGL Shader 与滚动时间轴采样 → 脱敏 API 契约与本地 Mock 后端生成 → 代码重构 → 静态 + 动态滚动关键帧双闭环视觉验收」。
v2.0 核心升级亮点
3D / WebGL / Lottie / 滚动视差动态引擎
只读 WebGL / WebGL2 Shader & Uniform 录制:页面脚本执行前注入只读监控,自动提取顶点/片元 GLSL Shader 源码(
webgl/shaders/*.glsl)与实时uniforms数值,并开启preserveDrawingBuffer确保<canvas>画面无损捕获。3D / 动效全量素材截获:网络层自动捕获
.glb / .gltf / .bin / .hdr / .exr / .ktx2 / .lottie / Lottie JSON / .mp4 / .webm / .wasm,自动识别 Three.js、GSAP + ScrollTrigger(直接读取ScrollTrigger.getAll()触发器定义)、Lenis、Lottie、Spline、PixiJS、Babylon.js、Framer Motion 及浏览器原生 Web Animations API (document.getAnimations())。滚动关键帧时间轴(
capture_scroll_timeline):从0% → 100%步进采样,保存每个滚动停靠点截图与元素transform / opacity / clip-path / sticky / parallaxSpeed数学变化曲线。动态滚动帧像素验收(
verify_clone):除了首屏、全页与分区相似度(sectionDiffs),还自动逐帧对比滚动关键帧(scrollTimelineDiffs),生成每个滚动百分比的 原站 | 差异热力图 | 复刻站 三联对比图,推动 3D/视差落地页持续迭代逼近高动态还原。
SaaS 前端脱敏 API 契约录制 + 本地状态化 Mock 后端(
scaffold_mock_backend)自动截获观测到的
fetch / XHRJSON 接口响应,强制脱敏剥离Authorization / Cookie / Token / Password / API Key / 卡号等敏感凭据,输出api-contracts.json。一键生成零依赖本地 Node 状态化 Mock API 服务器(
mock-backend/server.mjs):支持GET回放、本地持久化POST / PUT / PATCH / DELETE增删改查、内置本地沙箱 Demo 登录态接口与前端mock-fetch-bridge.js自动路由。
离线本地归档导入(
ingest_local_archive)严格遵守合规边界,绝不绕过 CAPTCHA / Cloudflare Turnstile / 登录墙。
面向你已拥有或自行在浏览器中正常访问并导出的页面,支持直接导入本地
.html/ SingleFile / 网页保存目录及 Chrome DevTools.har文件,纯离线完成全套逆向取证、资源提取、Design Tokens、WebGL Shader 与脱敏 API 契约解析。
Related MCP server: PicassoWeb
快速安装 / Quick Install
前置依赖:Node.js 18+,以及本机已安装 Google Chrome / Chromium(或 Playwright 缓存的 Chromium)。
git clone https://github.com/Zhao73/site-rea.git
cd site-rea
npm install
npm run install:plugin # 一键安装为 Antigravity 插件(Skill + 自动规则 + MCP Server)如需同时配置到 Claude Code / Codex / Cursor,运行:
node bin/site-rea.mjs setup全部 13 个 MCP 工具一览
分类 | 工具名 | 作用 |
取证抓取 |
| 全量捕获截图、切片、Design Tokens、语义 DOM、本地化资源、WebGL Shader、API 契约、1:1 镜像,并在检测到 3D/视差时自动采样滚动时间轴 |
取证抓取 |
| 纯离线导入本地 |
3D/动效 |
| 自定义步数(3–25 帧)采样 |
3D/动效 |
| 查看检测到的 3D/动效框架、GLSL Shader 文件与 Uniforms、 |
结构钻取 |
| 读取完整色板、渐变、字体栈、Google Fonts、 |
结构钻取 |
| 按需读取全局区块目录或单个区块的语义 DOM 蓝图、文案、本地资源与切片截图 |
结构钻取 |
| 列出所有本地化图片、内联 SVG、字体、3D 模型、Lottie、视频与 WASM 清单 |
结构钻取 |
| 列出同源站内路由( |
交互探测 |
| 实测点击 / 悬停 / 填写 / 滚动后的动态状态与前后对比截图 |
工程生成 |
| 生成 |
后端仿真 |
| 从脱敏 |
闭环验收 |
| 自动拉起服务,输出首屏/全页/分区( |
诊断 |
| 检查 Node.js 版本与本机 Chrome/Chromium 可用状态 |
CLI 常用命令
node bin/site-rea.mjs doctor
node bin/site-rea.mjs capture https://example.com --out ./out/.site-rea --timeline
node bin/site-rea.mjs timeline https://example.com ./out/.site-rea --steps 15
node bin/site-rea.mjs ingest --html ./saved.html --har ./session.har --out ./out/.site-rea
node bin/site-rea.mjs scaffold ./out/.site-rea ./out --mode react-vite-tailwind
node bin/site-rea.mjs mock-backend ./out/.site-rea ./out --port 4174
node bin/site-rea.mjs verify ./out/.site-rea --dir ./out
node bin/site-rea.mjs serve ./out --port 4173
npm test合规边界与能力说明
合规安全边界:
site-rea遇到 CAPTCHA / Cloudflare Turnstile / 人机验证 / 登录墙时会立即返回status: "blocked"并停止,绝不绕过人机验证或访问控制;API 录制与 HAR 解析会自动脱敏剥离所有鉴权头与敏感字段。能力客观边界:
官网 / 落地页 / 文档站 / 作品集:
static-mirror静态像素还原通常达 95%–100%,vanilla/react-vite-tailwind重构经闭环校验达 90%–98%。品牌 3D / WebGL / 视差落地页:借助提取出的真实 GLSL Shader、
.glb/.gltf/Lottie 资产、GSAP/滚动曲线与动态滚动帧 pixel-diff 验收,可实现高度逼真的动态复刻(具体上限取决于原站是否使用了极度复杂/混淆的专有物理引擎)。强后端 SaaS 系统:前端 UI 与已观测到的业务交互可通过本地状态化 Mock 沙箱高度仿真,但对方服务器端的私有源码、真实数据库与支付回调仍需由你对接自有后端实现。
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Real HTML, styles, measurements and brand tokens from any live site, for coding agents.
DESIGN.md, clone prompts, HTML, screenshots, assets, fonts, colors and tech stack of any website.
Clone any web page from a URL into a verified offline HTML copy, embed, or rebuild.
Captured web interfaces, screenshots, flows and structured evidence for AI coding agents.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to clone entire websites, download files, manage authentication sessions, and analyze site information with support for JavaScript-heavy SPAs and dynamic content.11Apache 2.0
- AlicenseAqualityCmaintenanceAnalyzes and extracts design tokens, assets, and layout from live websites to enable AI clients to faithfully replicate them, with tools for screenshotting, component inspection, and pixel-diff verification.1424 npm4MIT
- FlicenseNot gradedqualityCmaintenanceArchives live web pages for offline replay with full interactivity, enabling AI agents to analyze page structure and behavior.1-
- AlicenseNot gradedqualityBmaintenanceEnables AI coding agents to act like a senior UI/UX team by reading an existing site's design DNA and tokens, proposing distinct art directions and motion mechanics that fit the brief, and validating changes in a live headless Chromium browser. Provides per-element accessibility and performance auditing (WCAG 2.2 contrast, focus, clipping, phone-menu behavior, LCP/CLS) at multiple viewport widths, plus baseline capture, before/after comparison, and one-command rollback for safe redesigns.95 npm3MIT