The Browser Control MCP server provides a way for AI assistants like Claude Desktop to interact with your browser, manage tabs, search your browsing history, and help with research tasks. This integration enables AI agents to safely access your personal browser environment without modifying web pages or running arbitrary scripts.
To set up the Browser Control MCP server, you'll need:
Follow these steps to install both the MCP server and browser extension:
npm install
npm install --prefix mcp-server
npm install --prefix firefox-extension
npm run build
The Browser Control MCP extension works with Firefox browsers:
about:debugging
in the URL barfirefox-extension
folder in the project directory and select the manifest.json
fileIf you prefer to keep your personal browsing separate, consider installing Firefox Developer Edition from https://www.mozilla.org/en-US/firefox/developer/ and using the extension there.
To use with Claude Desktop:
claude_desktop_config.json
:{
"mcpServers": {
"browser-control": {
"command": "node",
"args": [
"/path/to/repo/mcp-server/dist/server.js"
],
"env": {
"EXTENSION_SECRET": "<secret_from_extension>"
}
}
}
}
/path/to/repo
with the actual path to your repository<secret_from_extension>
with the secret key obtained from the extension's preferences pageThe Browser Control MCP server provides several tools for browser interaction:
Additionally, each open browser tab is available as an MCP resource, allowing you to select and load tab content directly into the AI agent's context.
You can ask the AI assistant integrated with Browser Control MCP to:
The extension can be configured to limit the actions the MCP server can perform. Access these settings in the extension's preferences page to customize the permission levels according to your comfort.
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 > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
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 explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.