This MCP server enables AI assistants to interact with your Firefox browser, managing tabs, searching history, and reading webpage content. It provides a secure way for AI to help with browsing tasks while maintaining user privacy and control.
npm install
npm run build
As a temporary add-on:
about:debugging
in Firefox address barmanifest.json
file from the firefox-extension
folderOr install the permanent add-on from Mozilla Add-ons.
Add this configuration to your MCP servers config file (e.g., claude_desktop_config.json
):
{
"mcpServers": {
"browser-control": {
"command": "node",
"args": [
"/path/to/repo/mcp-server/dist/server.js"
],
"env": {
"EXTENSION_SECRET": "<secret_from_firefox_extension_options_page>",
"EXTENSION_PORT": "8089"
}
}
}
}
Replace /path/to/repo
with your actual repository path and <secret_from_firefox_extension_options_page>
with the secret key from the extension.
Build the Docker image:
docker build -t browser-control-mcp .
Add this configuration to your MCP servers config file:
{
"mcpServers": {
"browser-control": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-p", "127.0.0.1:8089:8089",
"-e", "EXTENSION_SECRET=<secret_from_extension>",
"-e", "CONTAINERIZED=true",
"browser-control-mcp"
]
}
}
}
You can ask the AI assistant to:
The assistant can help you find previously visited pages:
Use the assistant for research tasks:
This MCP server is designed with security in mind:
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "browser-control" '{"command":"node","args":["/path/to/repo/mcp-server/dist/server.js"],"env":{"EXTENSION_SECRET":"<secret_from_extension>"}}'
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-control": {
"command": "node",
"args": [
"/path/to/repo/mcp-server/dist/server.js"
],
"env": {
"EXTENSION_SECRET": "<secret_from_extension>"
}
}
}
}
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-control": {
"command": "node",
"args": [
"/path/to/repo/mcp-server/dist/server.js"
],
"env": {
"EXTENSION_SECRET": "<secret_from_extension>"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect