ruyi-mcp
Community MCP server for RuyiPage enabling browser automation, fingerprint analysis, network interception, and human behavior simulation via 56 MCP tools.
README
ruyi-mcp
ruyi-mcp 是面向 ruyiPage 的社区 MCP Server,将 Firefox / WebDriver BiDi 浏览器自动化、运行时观察、指纹分析、Trace、网络拦截和人类行为模拟能力提供给 Claude Code、Codex、Cursor 等 MCP 客户端。
本项目由社区独立维护,是非官方集成,不代表 ruyiPage 官方项目。
核心能力
- 提供 56 个 MCP 工具,覆盖页面生命周期、脚本与运行时分析、网络抓取、Cookie、DOM、Frame、请求/响应拦截、WebSocket、浏览器指纹、人类行为模拟、Session 导出和 Trace。
- Node.js MCP Server 通过常驻 Python JSON-RPC Bridge 调用 ruyiPage。
- 仓库跟踪 TypeScript 构建产物;依赖安装完成后,MCP Host 可直接从
build/src/index.js启动。
环境要求
- Node.js 20 或更高版本。
- Python 3.10 或更高版本;当前已在 Python 3.13 上验证。
ruyiPage==1.2.46,以及由 ruyiPage 安装或兼容的 Firefox。
兼容性
| ruyi-mcp | ruyiPage | Node.js | Python | 验证环境 |
|---|---|---|---|---|
v0.1.1 |
1.2.46 |
>=20 |
>=3.10 |
GitHub Actions:Node.js 20 + Python 3.13 |
仓库对 ruyiPage 使用精确版本锁定。升级兼容版本前会重新执行 Bridge contract、TypeScript build 和 56 tools stdio smoke test。
安装
git clone https://github.com/Facetomyself/ruyi-mcp.git
cd ruyi-mcp
npm ci
python -m pip install -r requirements.txt
python -m ruyipage install
npm run check
环境变量
RUYI_MCP_PYTHON:Node Bridge 使用的 Python 可执行文件。Windows 默认使用python,其他平台默认使用python3。RUYI_FIREFOX_PATH:Firefox 可执行文件路径。未设置时,Bridge 会依次检查 reverse_ENV 便携目录、Windows RuyiPage 浏览器缓存和PATH。
Firefox runtime 选择
ruyi_trace_*暴露的是 RuyiPage 内存中的 WebDriver BiDi JSON Trace,不是 Firefox 内核 DOMTrace。- ruyiPage
1.2.46的安装器仍使用151-ruyiruntime;如需验证 credentialed HTTP / SOCKS5 proxy,应单独下载上游151-proxyrelease,并通过RUYI_FIREFOX_PATH显式指向解压后的firefox.exe。 - 本仓库不分发 Firefox 二进制、浏览器 Profile 或 DOMTrace 内核。
MCP 配置
{
"mcpServers": {
"ruyi-mcp": {
"command": "node",
"args": ["/absolute/path/to/ruyi-mcp/build/src/index.js"],
"env": {
"RUYI_MCP_PYTHON": "/absolute/path/to/python",
"RUYI_FIREFOX_PATH": "/absolute/path/to/firefox"
}
}
}
}
在 reverse_ENV 中使用
ruyi-mcp 在 reverse_ENV 中以 Public Git submodule 维护,首次使用时执行:
git -C "D:\reverse_ENV" submodule update --init "mcp/ruyi-mcp"
& "D:\reverse_ENV\tools\node\npm.cmd" --prefix "D:\reverse_ENV\mcp\ruyi-mcp" ci
主仓通过 gitlink 固定已验证版本;修改本项目时,应先在子仓完成验证、提交和推送,再更新 reverse_ENV 主仓中的 gitlink。
验证
npm run check
npm audit --audit-level=high
npm run check 会执行 TypeScript typecheck、Python 语法检查、Bridge contract、构建和 56 tools stdio smoke test;该命令不会启动 Firefox。
数据与凭据边界
- Git 中不得提交凭据、Cookie、代理密钥、浏览器 Profile、抓取数据或运行时产物。
- Python 与 Firefox 路径必须通过环境变量或运行时发现机制提供,不得提交开发者个人绝对路径。
License
MIT,详见 LICENSE。
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.