
web-agent-protocol
by OTA-Tech-AI·★ 497·综合分 48
Web Agent Protocol 记录浏览器交互并转换为 MCP 服务器,实现网页自动化重放。
概述
Web Agent Protocol (WAP) 是一个标准化框架,能够记录和重放浏览器操作。它通过 Chrome 扩展收集用户交互数据,将其转换为精确或智能重放列表,并将这些操作转换为 MCP 服务器供任何代理重复使用。该协议分离了动作记录和执行的职责,实现了网页工作流程的高效自动化和可重用性。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
当您需要自动化复杂的浏览器工作流,并希望将它们转换为可重用的MCP服务器时,选择此工具。
什么时候不要选它
如果您需要非浏览器自动化或需要实时浏览器交互而不需要先录制,请避免使用此工具。
此 server 暴露的工具
从 README 抽取出 5 个工具generate_mcp_serverConverts recorded browser actions into MCP servers for reuse
run_replayReplays recorded browser actions using specified model provider
generate_exact_replay_listGenerates exact replay lists from raw browser interaction data
generate_smart_replay_listGenerates smart replay lists with condensed goal-oriented steps
start_data_collection_serverStarts server to collect browser interaction data from Chrome extension
说明:Tool names extracted from documented commands and conversion process in README
可对比工具
安装
# 安装依赖
conda create -n WAP python=3.11
conda activate WAP
pip install -r requirements.txt
# 设置环境变量
set PYTHONPATH=/path/to/webagentprotocol # Windows
export PYTHONPATH=/path/to/webagentprotocol # Linux
# 创建包含 API 密钥的 .env 文件
OPENAI_API_KEY=sk-proj-...
DEEPSEEK_API_KEY=sk-...
# 安装 Chrome 扩展
# 参考 https://github.com/OTA-Tech-AI/webagentprotocol/tree/main/chrome-extension对于 Claude Desktop 集成,添加到 claude_desktop_config.json:
{
"mcpServers": {
"wap": {
"command": "python",
"args": ["/path/to/webagentprotocol/wap_service.py"]
}
}
}```FAQ
- 如何将录制的浏览器操作转换为 MCP 服务器?
- 使用命令:`python wap_replay\generate_mcp_server.py --task_id <task_id>`。转换后的 MCP 服务器将位于 `mcp_servers` 文件夹中。
- 精确重放和智能重放有什么区别?
- 精确重放会完全按照记录的方式重现每个操作,而智能重放会创建简化的、以目标为导向的步骤,用更少的动作实现相同的结果。
web-agent-protocol 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。