Web Agent Protocol

Browser automation

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

Your AI app calls the Web Agent Protocol MCP server, which does the browser automation work and sends the result back to the chat.

About Web Agent Protocol

Web Agent Protocol is a community MCP server from OTA-Tech-AI, filed in our directory under browser automation. Web Agent Protocol (WAP) - Record and replay user interactions in the browser with MCP support.

At a glance

Publisher
OTA-Tech-AI (community)
Runs
See the README for setup
Written in
Python
License
MIT
GitHub stars
508

How to set up Web Agent Protocol

  1. Follow the install steps in the Web Agent Protocol README; it is written in Python, so have that toolchain ready.
  2. Check the Web Agent Protocol README for keys or settings; the registry lists none that Web Agent Protocol requires.
  3. Add Web Agent Protocol to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Web Agent Protocol tools to confirm the connection.
  5. Run one read-only task with Web Agent Protocol first, and keep your app asking before each tool call until the results look right.

Web Agent Protocol compared with similar servers

  • Puppeteer by merajmehrabi has fewer GitHub stars than Web Agent Protocol (492 against 508); both are community servers, and both run locally.
  • Jarvis Assistant Vocal by sosoj92 has more GitHub stars than Web Agent Protocol (582 against 508); both are community servers, and both run locally.
  • DrissionPage by jumodada has fewer GitHub stars than Web Agent Protocol (483 against 508); both are community servers, and both run locally.

Before you connect Web Agent Protocol

  • Give Web Agent Protocol its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Web Agent Protocol tool call until you trust what it does with them.
  • Treat text that Web Agent Protocol fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Web Agent Protocol on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Web Agent Protocol

How marketing and sales teams put Web Agent Protocol to work, by company size. Pick the size closest to yours and start Web Agent Protocol on one use case.

Small business

  • A small business can use Web Agent Protocol to check its own site after every change: forms submit, links work and checkout still loads.
  • Owners can have Web Agent Protocol collect competitor prices or offers from public pages once a week, instead of doing it by hand.
  • Web Agent Protocol runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing teams can run Web Agent Protocol to test landing pages and signup flows on every release, catching a broken form before paid traffic hits it.
  • Growth teams can use Web Agent Protocol to capture screenshots of ads and pages across markets for reviews and audits.
  • Start Web Agent Protocol on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can run Web Agent Protocol in isolated environments with allow-listed sites, so browsing agents never reach internal or unknown pages.
  • Large web teams can use Web Agent Protocol for regression checks across many locales and devices, feeding results into release gates.
  • Web Agent Protocol is a community server, so have security review the code and pin a version before Web Agent Protocol touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Web Agent Protocol README

From OTA-Tech-AI/web-agent-protocol on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md




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_<timestamp>.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": "<a ota-use-interactive-target=\"1\" data-ordinal=\"3\" href=\"https://www.allrecipes.com/recipe/68925/cheesy-baked-salmon/\" data-tax-levels=\"\" data-doc-id=\"6592066\" class=\"comp mntl-card-list-card--extendable mntl-universal-card mntl-document-card mntl-card card card--no-image\" id=\"mntl-card-list-card--extendable_3-0\">\n<div class=\"loc card__top\"><div class=\"card__media mntl-image card__media universal-image__container\">...",
    "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": "<header data-tracking-container=\"true\" data-collapsible=\"true\" class=\"comp header mntl-header mntl-header--magazine mntl-header--open-search-bar mntl-header--myr\" id=\"header_1-0\"><a data-tracking-container=\"true\" id=\"mntl-skip-to-content_1-0\" class=\"mntl-skip-to-content mntl-text-link\" rel=\"nocaes\" href=\"#main\"></a><div class=\"mntl-header__menu-top\">..."
}

Generate replay lists

Mode Command
Exact replay – exactly reproduce every action python wap_replay/generate_exact_replay_list.py --data_dir_path data/<date>/<task_id> --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/<date>/<task_id> --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_<task_id>/                     # intermediate prompts & replies
 └─ wap_smart_replay_list_<task_id>.json   # final smart replay list for the agent

data_processed/exact_replay/
 └─ wap_smart_replay_list_<task_id>.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_<task_id>.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 <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

Questions about Web Agent Protocol

What is the Web Agent Protocol MCP server?

Web Agent Protocol (WAP) - Record and replay user interactions in the browser with MCP support. Web Agent Protocol is maintained by OTA-Tech-AI on GitHub at OTA-Tech-AI/web-agent-protocol, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Web Agent Protocol MCP server?

Web Agent Protocol doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (OTA-Tech-AI/web-agent-protocol). Like most servers, Web Agent Protocol ends with a command or URL you paste into your AI app's MCP config.

Does Web Agent Protocol need an API key?

The registry lists no required keys for Web Agent Protocol. Check the Web Agent Protocol README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Web Agent Protocol an official MCP server?

No. Web Agent Protocol is a community server maintained by OTA-Tech-AI. Community servers can be excellent; read the code and the open issues before you give Web Agent Protocol access to company data.

What license is Web Agent Protocol under?

Web Agent Protocol is released under the MIT license, according to its GitHub repository. The license covers the code of Web Agent Protocol; the service it connects to has its own terms.