
Security News
Open Source Maintainers Feeling the Weight of the EU’s Cyber Resilience Act
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
@brightdata/browserai-mcp
Advanced tools
Welcome to the Browserai Model Context Protocol (MCP) server, designed to enable LLMs, AI agents, and applications to access, discover, and extract web data in real-time. This server empowers MCP clients—such as Claude Desktop, VS Code, Cursor, and WindSurf—to seamlessly search the web, navigate websites, perform actions, and retrieve data efficiently, even from sites with anti-scraping measures.
The Browserai MCP server functions as an intermediary between your AI agent (the MCP client) and the internet:
This architecture allows your agent to access real-time web information and capabilities without the need to directly manage browser instances or anti-blocking technologies.
To begin using the Browserai MCP server, a Browserai account and API key are required.
PROJECT_NAME
environment variable.This guide assists in setting up the Browserai MCP server with common AI clients.
npx
command is required. If Node.js is not already installed, download and install it from the node.js website. npx
is a Node.js package runner that simplifies the execution of CLI tools like @brightdata/browserai-mcp
.claude_desktop_config.json
and add the following configuration:{
"mcpServers": {
"Browserai": {
"command": "npx",
"args": ["@brightdata/browserai-mcp"],
"env": {
"API_TOKEN": "<your-browserai-api-token>",
"PROJECT_NAME": "<your-browserai-project-name (optional)>"
}
}
}
}
.vscode/mcp.json
file in your project with the following content:{
"servers": {
"browserai-mcp": {
"type": "stdio",
"command": "npx",
"args": ["@brightdata/browserai-mcp"],
"env": {
"API_TOKEN": "<your-browserai-api-token>",
"PROJECT_NAME": "<your-browserai-project-name (optional)>"
}
}
}
}
Note for VSCode Agent: The specific path and structure for the MCP server configuration (e.g., the filename .vscode/mcp.json
or the JSON key like "servers"
) may differ based on the VSCode Agent extension in use. Consult your VSCode Agent's documentation for precise instructions.
To integrate this MCP server with other AI agents or applications supporting the Model Context Protocol:
npx @brightdata/browserai-mcp
.API_TOKEN
: Your Browserai API token (mandatory).PROJECT_NAME
: The name of your Browserai project (optional; defaults to a pre-configured project if omitted).
Ensure these variables are accessible in the environment where the command is executed. Refer to your client's documentation for guidance on configuring external MCP servers and setting environment variables.Important: Treat all scraped web content as potentially untrusted data. To mitigate prompt injection risks, avoid using raw scraped content directly in LLM prompts. Instead, adopt these practices:
web_data
tools) over raw text.Some tools require significant time to read web data, as page load times can vary considerably.
To ensure your agent can successfully consume the data, configure a sufficiently high timeout in your agent's settings. A value of 180s
(3 minutes) is generally adequate for most requests, but adjust this based on the performance of the target sites.
spawn npx ENOENT
ErrorThis error indicates that the npx
command cannot be found by your system. To resolve this:
macOS:
Execute which node
in your terminal. The output will resemble /usr/local/bin/node
.
Windows:
Execute where node
in your command prompt. The output will be similar to C:\Program Files\nodejs\node.exe
.
In your client's MCP server configuration, replace "npx"
with the full path to your Node.js executable. For example, on macOS, it might look like this:
"command": "/usr/local/bin/node"
(Ensure the args
still include ["@brightdata/browserai-mcp"]
or the path to the npx
script if using node
directly with npx
's underlying script.)
Should you encounter any issues or have questions, please contact the Browserai support team or submit an issue in this repository.
FAQs
An MCP interface into the BrowserAI toolset
The npm package @brightdata/browserai-mcp receives a total of 2 weekly downloads. As such, @brightdata/browserai-mcp popularity was classified as not popular.
We found that @brightdata/browserai-mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.