MCP server
The MCP server gives any MCP client a private cloud browser it pays for with its own wallet. It is one file, it runs on Node 20 or later, and it has no dependencies.
curl -O https://www.usebrowserai.xyz/sdk/browserai-mcp.mjsConfigure your client
Add it to Claude Desktop, Cursor, or any client that reads an mcpServers block. BROWSERAI_KEY is the private key of the wallet that pays; set BROWSERAI_PAY to x402 to pay per session instead of from a balance.
{
"mcpServers": {
"browserai": {
"command": "node",
"args": ["/absolute/path/to/browserai-mcp.mjs"],
"env": { "BROWSERAI_KEY": "0x<your agent wallet key>" }
}
}
}Tools
| Tool | What it does |
|---|---|
browser_open | Opens a session (liveView, replay, timeout). Other tools open one if none is open. |
browser_goto | Navigates to a URL, returns the title and HTTP status. |
browser_click | Clicks by CSS selector or visible text. |
browser_type | Fills an input, optionally presses Enter. |
browser_extract | Text of the page or a selector, a list of elements, or the links. |
browser_screenshot | JPEG of the page, returned as an image. |
browser_save_cookies | Encrypts the cookies with your key and stores the ciphertext. |
browser_restore_cookies | Loads saved cookies into the current session. |
browser_close | Closes and wipes the session. |
browser_balance | USDG available and seconds left. |