← Open Source
OTA-Tech-AI

web-agent-protocol

🌐Web Agent Protocol (WAP) - Record and replay user interactions in the browser with MCP support.

AI EngineeringProtocolsPython
Open on GitHub
Momentum
+0stars in 24 hours0.0%
506
Stars
91
Forks
+0
This week
2
Contributors
Created 2025-05-17 · Updated 2026-10-02 · #18173 today
Top developers
JeanTakOTA-Tech-AI

OTA-Tech-AI/web-agent-protocol is ranked 18,173 with 506 stars.

Same-category comparison

OTA-Tech-AI/web-agent-protocol is ranked 18,173 among these 8 peers; viettran-edgeAI/codex_workflow is ranked 18,166.

Same-category comparison
NameRankMetrics
freee/freee-mcp18,156
Language:
TypeScript
Stars:
507
Forks:
59
Description:
Model Context Protocol (MCP) server for freee API integration.
mingsky-ai/ComfyUI-MingNodes18,158
Language:
Python
Stars:
507
Forks:
24
Description:
some practical comfyui nodes.
tt-a1i/simplify-codebase18,165
Language:
HTML
Stars:
507
Forks:
26
Description:
Prove and remove accidental codebase complexity without breaking behavior.
viettran-edgeAI/codex_workflow18,166
Language:
Python
Stars:
507
Forks:
36
Description:
A swarm orchestration system in Codex - use less quota, get more done.
deadbits/vigil-llm18,182
Language:
Python
Stars:
506
Forks:
57
Description:
⚡ Vigil ⚡ Detect prompt injections, jailbreaks, and other potentially risky Large Language Model (LLM) inputs.
langchain-ai/langchain-aiplugin18,189
Language:
Python
Stars:
506
Forks:
40
liu00222/Open-Prompt-Injection18,190
Language:
Python
Stars:
506
Forks:
82
Description:
This repository provides a benchmark for prompt injection attacks and defenses in LLMs.
ollama4j/ollama4j18,192
Language:
Java
Stars:
506
Forks:
85
Description:
A simple Java library for interacting with Ollama server.
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguagePython
CategoryAI Engineering
SubcategoryProtocols
KeywordsBrowser, MCP
Stars506
Forks91
Contributors2
Created date2025-05-17
Updated date2026-10-02
Stars in 1 day0
Stars in 7 days0
Rank18,173
Previous rank17,934
Rank change-239
7-day stars rank16,513
Previous 7-day stars rank16,526
7-day stars rank change13
Total stars rank19,176
Previous total stars rank19,158
Total stars rank change-18
README summary

Web Agent Protocol Overview The Web Agent Protocol (WAP) is a standardized framework designed to enable seamless interaction between users, web agents, and browsers by recording and replaying browser actions. It separates the concerns of action recording and execution, allowing for efficient automation and reusability. The Python SDK for WAP implements the full specification, making it easy to: 1. **Collect** user‑interaction data with the OTA‑WAP Chrome extension. **Convert** the raw event stream into either **_exact‑replay_** or **_smart

‑replay_** action lists. **Convert** recorded actions into **_MCP_** servers for reuse by any agent or user 4. **Replay** those lists using the **_WAP-Replay_** protocol to ensure accurate browser operations. WAP FULL DEMO Without WAP WAP Record WAP Replay Example using WAP Setup Install the dependencies with the following command: Create a conda env Activate the conda env Install the dependencies Setup your repo source path: Create **. env** file under the repo root directory with your own API keys: Record

WAP record extension Please refer to OTA‑WAP Chrome Extension to setup action capturer in your Chrome browser. Start data‑collection server Run the following command to start the server to collect data from the extension: **Once the server is up, you can start to record from the page using WAP Chrome extension. ** The server listens on by default, please make sure the Host and Port in the extension settings match this server config. Output structure: Replay For **smart-replay

**, replace the path with a smart‑replay JSON to test this mode. Convert to MCP Server converted MCP servers will be located under folder Replay with MCP You would need 2 terminals to replay with MCP. In the first termnial In the second termnial Then enter your prompt in the second terminal Replay with our Desktop App We provide out-of-box desktop app for running replay lists. It is easy to install and you don't need any extra steps

for setup and deployments. Visit WAP Replay Tool releases for more details. Troubleshooting **ModuleNotFoundError** – run commands from the project root or export PYTHONPATH=. “no task‑start file” – ensure the extension recorded a full session; the generators require exactly one task-start and one task-finish record. Acknowledgement Browser-Use: MCP: DOM Extension:

Frequently asked questions

How many stars and forks are recorded?

OTA-Tech-AI/web-agent-protocol has 506 stars and 91 forks.

What is the repository rank?

OTA-Tech-AI/web-agent-protocol is ranked 18,173.

What language and category are recorded?

OTA-Tech-AI/web-agent-protocol has 506 stars, uses Python and belongs to AI Engineering.

Which repository is closest in rank?

OTA-Tech-AI/web-agent-protocol is compared with viettran-edgeAI/codex_workflow, ranked 18,166 with 507 stars.

README

Web Agent Protocol

Overview

The Web Agent Protocol (WAP) is a standardized framework designed to enable seamless interaction between users, web agents, and browsers by recording and replaying browser actions. It separates the concerns of action recording and execution, allowing for efficient automation and reusability. The Python SDK for WAP implements the full specification, making it easy to:

  1. Collect user‑interaction data with the OTA‑WAP Chrome extension.
  2. Convert the raw event stream into either exact‑replay or smart‑replay action lists.
  3. Convert recorded actions into MCP servers for reuse by any agent or user
  4. Replay those lists using the WAP-Replay protocol to ensure accurate browser operations.

WAP FULL DEMO

Without WAP

WAP Record

WAP Replay

Example using WAP

Setup

Install the dependencies with the following command:

Create a conda env

conda create -n WAP python=3.11

Activate the conda env

conda activate WAP

Install the dependencies

pip install -r requirements.txt

Setup your repo source path:

set PYTHONPATH=C:/path/to/webagentprotocol # for Windows
export PYTHONPATH=/path/to/webagentprotocol # for Linux

Create .env file under the repo root directory with your own API keys:

OPENAI_API_KEY=sk-proj-...
DEEPSEEK_API_KEY=sk-...

Record

WAP record extension

Please refer to OTA‑WAP Chrome Extension to setup action capturer in your Chrome browser.

Start data‑collection server

Run the following command to start the server to collect data from the extension:

python action_collect_server.py

Once the server is up, you can start to record from the page using WAP Chrome extension.

The server listens on http://localhost:4934/action-data by default, please make sure the Host and Port in the extension settings match this server config. Each session will be saved to:

data/YYYYMMDD/taskid/summary_event_.json

An example of the formatted data which you will received in the WAP backend server is like:

{
  "taskId": "MkCAhQsHgXn7YgaK",
  "type": "click",
  "actionTimestamp": 1746325231479,
  "eventTarget": {
    "type": "click",
    "target": "[\n

...",
    "targetId": "mntl-card-list-card--extendable_3-0",
    "targetClass": "comp mntl-card-list-card--extendable mntl-universal-card mntl-document-card mntl-card card card--no-image"
  },
  "allEvents": {},
  "pageHTMLContent": "](\"https://www.allrecipes.com/recipe/68925/cheesy-baked-salmon/\")
..."
}

Generate replay lists

Mode Command
Exact replay – exactly reproduce every action python wap_replay/generate_exact_replay_list.py --data_dir_path data// --output_dir_path data_processed/exact_replay
Smart replay – condensed goal‑oriented steps python wap_replay/generate_smart_replay_list.py --data_dir_path data// --output_dir_path data_processed/smart_replay

Replace **** with the folder produced by the extension (e.g. em3h6UBDZykz0gnH).

Output structure:

data_processed/smart_replay/
 ├─ subgoals_/                     # intermediate prompts & replies
 └─ wap_smart_replay_list_.json   # final smart replay list for the agent

data_processed/exact_replay/
 └─ wap_smart_replay_list_.json   # final exact replay list for the agent

Replay

python run_replay.py --model-provider openai --wap_replay_list data_processed/exact_replay/wap_exact_replay_list_.json --max-concurrent 1

For smart-replay, replace the path with a smart‑replay JSON to test this mode.

Convert to MCP Server

python wap_replay\generate_mcp_server.py --task_id 

converted MCP servers will be located under mcp_servers folder

Replay with MCP

You would need 2 terminals to replay with MCP. In the first termnial

python wap_service.py

In the second termnial

python mcp_client.py

Then enter your prompt in the second terminal

example: find a top rated keyboard on amazon.ca using smart replay

Replay with our Desktop App

We provide out-of-box desktop app for running replay lists. It is easy to install and you don't need any extra steps for setup and deployments. Visit WAP Replay Tool releases for more details.

Troubleshooting

ModuleNotFoundError – run commands from the project root or export PYTHONPATH=. (set PYTHONPATH=. for Windows).

“no task‑start file” – ensure the extension recorded a full session; the generators require exactly one task-start and one task-finish record.

Acknowledgement

Browser-Use: https://github.com/browser-use/browser-use

MCP: https://github.com/modelcontextprotocol/python-sdk

DOM Extension: https://github.com/kdzwinel/DOMListenerExtension

Nearby in the ranking
Similar items