This lightweight server bridges your browser data with AI models that support the Model Context Protocol (MCP). It provides AI assistants with real-time access to your browser's console logs, network activity, page screenshots, and DOM elements, making them more effective at understanding and interacting with web content.
You'll need:
Follow these steps to set up the BrowserTools MCP server:
Install the Chrome extension:
chrome://extensions/
Install the Node.js server:
npx @agentdeskai/[email protected]
Install the MCP server in your IDE or MCP client:
npx @agentdeskai/[email protected]
Start the Node.js server:
npx @agentdeskai/[email protected]
Open Chrome and navigate to the page you want to work with
Open Chrome DevTools (F12 or right-click > Inspect)
Click on the "BrowserTools" tab in DevTools
Start your MCP-compatible client (like Cursor)
Once connected, you can ask your AI assistant to:
Enable automatic pasting of screenshots:
BrowserTools offers comprehensive page auditing capabilities:
Are there any accessibility issues on this page?
Check the performance of this page
How can I improve SEO for this page?
Run a best practices audit
Run a NextJS audit
Run all audit tools in sequence:
Run audit mode
Execute all debugging tools in sequence:
Enter debugger mode
If you encounter issues:
If issues persist, you can specify the version explicitly when installing:
npx @agentdeskai/[email protected]
npx @agentdeskai/[email protected]
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "browser-tools-mcp" '{"command":"npx","args":["@agentdeskai/[email protected]"]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"browser-tools-mcp": {
"command": "npx",
"args": [
"@agentdeskai/[email protected]"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"browser-tools-mcp": {
"command": "npx",
"args": [
"@agentdeskai/[email protected]"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect