Skip to content
GitHub ↗

Introduction

The web as your toolkit. agent-webmcp turns any live page into callable tools: open a page, use the tools it exposes, author the ones it lacks, chain tools across sites in code, close when done.

agent-webmcp open https://example.com   # a session handleagent-webmcp list <handle>              # the page's toolsagent-webmcp close <handle> --yes       # release it
bash

How it works

The engine cannot inspect pages itself. Bring a discovery bundle from your browser driver (snapshot, eval, network, page source) and the agent carries that context across. Run engine plus driver side by side over MCP.

The seven verbs

VerbDoorWhat it does
openCLI+MCPAttach a page, get a handle
listCLI+MCPShow a session's page tools
searchMCPRank tools across sessions
registerCLI+MCPAuthor a custom tool onto the page
executeMCPRun code over session tools
closeCLI+MCPRelease sessions
unregisterCLI+MCPDrop one authored tool, live only

Composition (search, execute) lives on MCP only. The CLI mirrors the lifecycle verbs. Piped output is JSON. Writes (register, unregister, close) need --yes. Exits: 0 ok, 2 usage (never retry as-is), 1 failure with the message on stderr.

Works with

Any harness that can run a shell or speak MCP, plus a browser driver for discovery: agent-browser, chrome devtools MCP setups, trace files, page source. The engine never vendors a driver; servers never talk directly.

What it is not