Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"io-github-linvireo-browsertap-mcp": {
"command": "uvx",
"args": [
"browsertap-mcp"
],
"env": {
"BROWSERTAP_PREFERRED_BROWSER": "<VALUE>",
"BROWSERTAP_MODE": "<VALUE>",
"BROWSERTAP_BRIDGE_PORT": "<VALUE>",
"BROWSERTAP_STATE_DIR": "<VALUE>",
"AGENT_BROWSER_MODE": "lab",
"AGENT_BROWSER_NO_SPAWN": "<VALUE>",
"AGENT_BROWSER_TMWD_HOST": "127.0.0.1",
"AGENT_BROWSER_TMWD_PORT": "18765",
"AGENT_BROWSER_LAB_NO_ELICIT": "<VALUE>",
"AGENT_BROWSER_PREFERRED_BROWSER": "<VALUE>",
"AGENT_BROWSER_AUTO_BEFOREUNLOAD_HOSTS": "shell.,ttyd,code-server,jupyter,vscode-web"
}
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"io-github-linvireo-browsertap-mcp": {
"command": "uvx",
"args": [
"browsertap-mcp"
],
"env": {
"BROWSERTAP_PREFERRED_BROWSER": "<VALUE>",
"BROWSERTAP_MODE": "<VALUE>",
"BROWSERTAP_BRIDGE_PORT": "<VALUE>",
"BROWSERTAP_STATE_DIR": "<VALUE>",
"AGENT_BROWSER_MODE": "lab",
"AGENT_BROWSER_NO_SPAWN": "<VALUE>",
"AGENT_BROWSER_TMWD_HOST": "127.0.0.1",
"AGENT_BROWSER_TMWD_PORT": "18765",
"AGENT_BROWSER_LAB_NO_ELICIT": "<VALUE>",
"AGENT_BROWSER_PREFERRED_BROWSER": "<VALUE>",
"AGENT_BROWSER_AUTO_BEFOREUNLOAD_HOSTS": "shell.,ttyd,code-server,jupyter,vscode-web"
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"io-github-linvireo-browsertap-mcp": {
"command": "uvx",
"args": [
"browsertap-mcp"
],
"env": {
"BROWSERTAP_PREFERRED_BROWSER": "<VALUE>",
"BROWSERTAP_MODE": "<VALUE>",
"BROWSERTAP_BRIDGE_PORT": "<VALUE>",
"BROWSERTAP_STATE_DIR": "<VALUE>",
"AGENT_BROWSER_MODE": "lab",
"AGENT_BROWSER_NO_SPAWN": "<VALUE>",
"AGENT_BROWSER_TMWD_HOST": "127.0.0.1",
"AGENT_BROWSER_TMWD_PORT": "18765",
"AGENT_BROWSER_LAB_NO_ELICIT": "<VALUE>",
"AGENT_BROWSER_PREFERRED_BROWSER": "<VALUE>",
"AGENT_BROWSER_AUTO_BEFOREUNLOAD_HOSTS": "shell.,ttyd,code-server,jupyter,vscode-web"
}
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"io-github-linvireo-browsertap-mcp": {
"command": "uvx",
"args": [
"browsertap-mcp"
],
"env": {
"BROWSERTAP_PREFERRED_BROWSER": "<VALUE>",
"BROWSERTAP_MODE": "<VALUE>",
"BROWSERTAP_BRIDGE_PORT": "<VALUE>",
"BROWSERTAP_STATE_DIR": "<VALUE>",
"AGENT_BROWSER_MODE": "lab",
"AGENT_BROWSER_NO_SPAWN": "<VALUE>",
"AGENT_BROWSER_TMWD_HOST": "127.0.0.1",
"AGENT_BROWSER_TMWD_PORT": "18765",
"AGENT_BROWSER_LAB_NO_ELICIT": "<VALUE>",
"AGENT_BROWSER_PREFERRED_BROWSER": "<VALUE>",
"AGENT_BROWSER_AUTO_BEFOREUNLOAD_HOSTS": "shell.,ttyd,code-server,jupyter,vscode-web"
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"io-github-linvireo-browsertap-mcp": {
"command": "uvx",
"args": [
"browsertap-mcp"
],
"env": {
"BROWSERTAP_PREFERRED_BROWSER": "<VALUE>",
"BROWSERTAP_MODE": "<VALUE>",
"BROWSERTAP_BRIDGE_PORT": "<VALUE>",
"BROWSERTAP_STATE_DIR": "<VALUE>",
"AGENT_BROWSER_MODE": "lab",
"AGENT_BROWSER_NO_SPAWN": "<VALUE>",
"AGENT_BROWSER_TMWD_HOST": "127.0.0.1",
"AGENT_BROWSER_TMWD_PORT": "18765",
"AGENT_BROWSER_LAB_NO_ELICIT": "<VALUE>",
"AGENT_BROWSER_PREFERRED_BROWSER": "<VALUE>",
"AGENT_BROWSER_AUTO_BEFOREUNLOAD_HOSTS": "shell.,ttyd,code-server,jupyter,vscode-web"
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"io-github-linvireo-browsertap-mcp": {
"command": "uvx",
"args": [
"browsertap-mcp"
],
"env": {
"BROWSERTAP_PREFERRED_BROWSER": "<VALUE>",
"BROWSERTAP_MODE": "<VALUE>",
"BROWSERTAP_BRIDGE_PORT": "<VALUE>",
"BROWSERTAP_STATE_DIR": "<VALUE>",
"AGENT_BROWSER_MODE": "lab",
"AGENT_BROWSER_NO_SPAWN": "<VALUE>",
"AGENT_BROWSER_TMWD_HOST": "127.0.0.1",
"AGENT_BROWSER_TMWD_PORT": "18765",
"AGENT_BROWSER_LAB_NO_ELICIT": "<VALUE>",
"AGENT_BROWSER_PREFERRED_BROWSER": "<VALUE>",
"AGENT_BROWSER_AUTO_BEFOREUNLOAD_HOSTS": "shell.,ttyd,code-server,jupyter,vscode-web"
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| BROWSERTAP_PREFERRED_BROWSER | No | Which connected browser an unqualified call targets: chrome, edge or opera. Defaults to whichever registered first. |
| BROWSERTAP_MODE | No | Approval profile: lab or safe. Defaults to lab, which skips approval prompts and still enforces the cross-process lock, the quiet-input gate, target activation and on-screen confirmation; safe asks before every physical input. |
| BROWSERTAP_BRIDGE_PORT | No | Base loopback port for the bridge daemon. Defaults to 18765. |
| BROWSERTAP_STATE_DIR | No | Directory holding the bridge token and runtime state. Defaults to ~/.browsertap. |
| AGENT_BROWSER_MODE | No | lab prioritizes continuous automation and reuses session approvals; safe prompts for every physical-input/site-allow action. set_automation_profile changes only the current MCP process. Default: lab |
| AGENT_BROWSER_NO_SPAWN | No | Set to 1 to stop the MCP server from auto-starting the bridge. Use it when you run the bridge yourself. |
| AGENT_BROWSER_TMWD_HOST | No | Bridge bind address. Default: 127.0.0.1 |
| AGENT_BROWSER_TMWD_PORT | No | WebSocket port. HTTP uses PORT+1, and PORT+2 is a lock socket that keeps exactly one bridge hosting. Default: 18765 |
| AGENT_BROWSER_LAB_NO_ELICIT | No | Set to 1 to skip physical-input and site-allow elicitation in lab. The cross-process lock and quiet-input gate still apply. |
| AGENT_BROWSER_PREFERRED_BROWSER | No | chrome, edge, or opera. Which browser wins when several are connected and no tab is specified. |
| AGENT_BROWSER_AUTO_BEFOREUNLOAD_HOSTS | No | In lab, ordinary open_url accepts beforeunload on matching current hosts. intent_leave=false always preserves the page. Default: shell.,ttyd,code-server,jupyter,vscode-web |