browserai
A powerful Model Context Protocol (MCP) server that provides an access to serverless browser for AI agents and apps
claude mcp add --transport stdio brightdata-browserai-mcp npx @brightdata/browserai-mcp \ --env API_TOKEN="<your-browserai-api-token>" \ --env PROJECT_NAME="<your-browserai-project-name (optional)>"
How to use
The Browserai MCP server acts as a bridge between your AI agents and real-time web data via the Browserai API. It enables MCP clients like Claude Desktop, VS Code, and other compatible agents to perform web searches, navigate websites, and extract data with anti-scraping defenses handled by Browserai. By running this MCP server, you expose a standardized interface that lets your agent issue real-time web actions and receive structured data back for use in prompts, reasoning, or automation workflows.
Once the server is running, configure your MCP client to connect to the Browserai MCP server using the provided command and environment variables. You’ll need your Browserai API token and, optionally, a project name to scope requests. The client will send model-context protocol requests to search the web, browse pages, or extract targeted information, and the MCP server will orchestrate Browserai’s capabilities behind the scenes, returning clean results or structured objects suitable for downstream consumption by the AI agent.
How to install
Prerequisites:
- Node.js and npm installed on the host machine. You can download them from https://nodejs.org/
- Access to a Browserai account with an API token (to be used in MC P environment variables)
Installation steps:
- Install Node.js (if not already installed) by following the installer on nodejs.org.
- Open a terminal and verify Node.js and npm versions:
- node -v
- npm -v
- Install and run the MCP server using npx (no local install required in most setups):
- npx @brightdata/browserai-mcp
- Provide required environment variables when starting the server or configure them in your MCP client as described in the README:
- API_TOKEN: Your Browserai API token (required)
- PROJECT_NAME: Optional project name (defaults may apply if omitted)
Optional: If you prefer a local install, you can install the package globally and run it via npm or npx-equivalent commands provided by your environment.
Additional notes
Tips and common considerations:
- Keep your API token secure; avoid hard-coding it in code repositories. Use environment variables or secret management in your deployment environment.
- The PROJECT_NAME environment variable is optional and allows you to target a specific Browserai project; omitting it defaults to a pre-configured project depending on your Browserai setup.
- If you encounter an ENOENT error for npx, ensure Node.js/npm are correctly installed and available in your PATH, or specify the full path to node/npm in your MCP client configuration.
- Timeouts may occur for complex or long-running web actions; adjust your agent’s overall timeout settings accordingly (e.g., 180s or higher depending on tasks).
- Treat scraped web content as potentially untrusted; validate and sanitize data before feeding it into prompts or downstream tooling.
Related MCP Servers
brightdata
A powerful Model Context Protocol (MCP) server that provides an all-in-one solution for public web access.
web-agent-protocol
🌐Web Agent Protocol (WAP) - Record and replay user interactions in the browser with MCP support
flyto-core
The open-source execution engine for AI agents. 412 modules, MCP-native, triggers, queue, versioning, metering.
MakeMoneyWithAI
A list of open-source AI projects you can use to generate income easily.
shinzo-ts
TypeScript SDK for MCP server observability, built on OpenTelemetry. Gain insight into agent usage patterns, contextualize tool calls, and analyze server performance across platforms. Integrate with any OpenTelemetry ingest service including the Shinzo platform.
rod
Model Context Protocol Server of Rod