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-glittering-ai-browser": {
"command": "npx",
"args": [
"-y",
"@glittering0717/ai-browser"
],
"env": {
"AI_BROWSER_PORT": "<VALUE>",
"ELECTRON_MIRROR": "<VALUE>",
"AI_BROWSER_FOCUS": "<VALUE>",
"AI_BROWSER_BRANDS": "<VALUE>",
"AI_BROWSER_BG_MUTE": "<VALUE>",
"AI_BROWSER_SANDBOX": "<VALUE>",
"AI_BROWSER_IDENTITY": "<VALUE>",
"AI_BROWSER_WATCHDOG": "<VALUE>",
"AI_BROWSER_TAB_LIMIT": "<VALUE>",
"AI_BROWSER_USER_DATA": "<VALUE>",
"AI_BROWSER_POPUP_SHIM": "<VALUE>",
"AI_BROWSER_CANVAS_HOOK": "<VALUE>",
"AI_BROWSER_HOT_REPAINT": "<VALUE>",
"AI_BROWSER_INPUT_FOCUS": "<VALUE>",
"AI_BROWSER_ERROR_BANNER": "<VALUE>",
"AI_BROWSER_ERROR_DIALOG": "<VALUE>",
"AI_BROWSER_START_HIDDEN": "<VALUE>",
"AI_BROWSER_WATCHDOG_URLS": "<VALUE>",
"AI_BROWSER_WS_ALLOW_ORIGIN": "<VALUE>",
"AI_BROWSER_ACTION_TIMEOUT_MS": "<VALUE>"
}
}
}
}
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-glittering-ai-browser": {
"command": "npx",
"args": [
"-y",
"@glittering0717/ai-browser"
],
"env": {
"AI_BROWSER_PORT": "<VALUE>",
"ELECTRON_MIRROR": "<VALUE>",
"AI_BROWSER_FOCUS": "<VALUE>",
"AI_BROWSER_BRANDS": "<VALUE>",
"AI_BROWSER_BG_MUTE": "<VALUE>",
"AI_BROWSER_SANDBOX": "<VALUE>",
"AI_BROWSER_IDENTITY": "<VALUE>",
"AI_BROWSER_WATCHDOG": "<VALUE>",
"AI_BROWSER_TAB_LIMIT": "<VALUE>",
"AI_BROWSER_USER_DATA": "<VALUE>",
"AI_BROWSER_POPUP_SHIM": "<VALUE>",
"AI_BROWSER_CANVAS_HOOK": "<VALUE>",
"AI_BROWSER_HOT_REPAINT": "<VALUE>",
"AI_BROWSER_INPUT_FOCUS": "<VALUE>",
"AI_BROWSER_ERROR_BANNER": "<VALUE>",
"AI_BROWSER_ERROR_DIALOG": "<VALUE>",
"AI_BROWSER_START_HIDDEN": "<VALUE>",
"AI_BROWSER_WATCHDOG_URLS": "<VALUE>",
"AI_BROWSER_WS_ALLOW_ORIGIN": "<VALUE>",
"AI_BROWSER_ACTION_TIMEOUT_MS": "<VALUE>"
}
}
}
}
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-glittering-ai-browser": {
"command": "npx",
"args": [
"-y",
"@glittering0717/ai-browser"
],
"env": {
"AI_BROWSER_PORT": "<VALUE>",
"ELECTRON_MIRROR": "<VALUE>",
"AI_BROWSER_FOCUS": "<VALUE>",
"AI_BROWSER_BRANDS": "<VALUE>",
"AI_BROWSER_BG_MUTE": "<VALUE>",
"AI_BROWSER_SANDBOX": "<VALUE>",
"AI_BROWSER_IDENTITY": "<VALUE>",
"AI_BROWSER_WATCHDOG": "<VALUE>",
"AI_BROWSER_TAB_LIMIT": "<VALUE>",
"AI_BROWSER_USER_DATA": "<VALUE>",
"AI_BROWSER_POPUP_SHIM": "<VALUE>",
"AI_BROWSER_CANVAS_HOOK": "<VALUE>",
"AI_BROWSER_HOT_REPAINT": "<VALUE>",
"AI_BROWSER_INPUT_FOCUS": "<VALUE>",
"AI_BROWSER_ERROR_BANNER": "<VALUE>",
"AI_BROWSER_ERROR_DIALOG": "<VALUE>",
"AI_BROWSER_START_HIDDEN": "<VALUE>",
"AI_BROWSER_WATCHDOG_URLS": "<VALUE>",
"AI_BROWSER_WS_ALLOW_ORIGIN": "<VALUE>",
"AI_BROWSER_ACTION_TIMEOUT_MS": "<VALUE>"
}
}
}
}
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-glittering-ai-browser": {
"command": "npx",
"args": [
"-y",
"@glittering0717/ai-browser"
],
"env": {
"AI_BROWSER_PORT": "<VALUE>",
"ELECTRON_MIRROR": "<VALUE>",
"AI_BROWSER_FOCUS": "<VALUE>",
"AI_BROWSER_BRANDS": "<VALUE>",
"AI_BROWSER_BG_MUTE": "<VALUE>",
"AI_BROWSER_SANDBOX": "<VALUE>",
"AI_BROWSER_IDENTITY": "<VALUE>",
"AI_BROWSER_WATCHDOG": "<VALUE>",
"AI_BROWSER_TAB_LIMIT": "<VALUE>",
"AI_BROWSER_USER_DATA": "<VALUE>",
"AI_BROWSER_POPUP_SHIM": "<VALUE>",
"AI_BROWSER_CANVAS_HOOK": "<VALUE>",
"AI_BROWSER_HOT_REPAINT": "<VALUE>",
"AI_BROWSER_INPUT_FOCUS": "<VALUE>",
"AI_BROWSER_ERROR_BANNER": "<VALUE>",
"AI_BROWSER_ERROR_DIALOG": "<VALUE>",
"AI_BROWSER_START_HIDDEN": "<VALUE>",
"AI_BROWSER_WATCHDOG_URLS": "<VALUE>",
"AI_BROWSER_WS_ALLOW_ORIGIN": "<VALUE>",
"AI_BROWSER_ACTION_TIMEOUT_MS": "<VALUE>"
}
}
}
}
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-glittering-ai-browser": {
"command": "npx",
"args": [
"-y",
"@glittering0717/ai-browser"
],
"env": {
"AI_BROWSER_PORT": "<VALUE>",
"ELECTRON_MIRROR": "<VALUE>",
"AI_BROWSER_FOCUS": "<VALUE>",
"AI_BROWSER_BRANDS": "<VALUE>",
"AI_BROWSER_BG_MUTE": "<VALUE>",
"AI_BROWSER_SANDBOX": "<VALUE>",
"AI_BROWSER_IDENTITY": "<VALUE>",
"AI_BROWSER_WATCHDOG": "<VALUE>",
"AI_BROWSER_TAB_LIMIT": "<VALUE>",
"AI_BROWSER_USER_DATA": "<VALUE>",
"AI_BROWSER_POPUP_SHIM": "<VALUE>",
"AI_BROWSER_CANVAS_HOOK": "<VALUE>",
"AI_BROWSER_HOT_REPAINT": "<VALUE>",
"AI_BROWSER_INPUT_FOCUS": "<VALUE>",
"AI_BROWSER_ERROR_BANNER": "<VALUE>",
"AI_BROWSER_ERROR_DIALOG": "<VALUE>",
"AI_BROWSER_START_HIDDEN": "<VALUE>",
"AI_BROWSER_WATCHDOG_URLS": "<VALUE>",
"AI_BROWSER_WS_ALLOW_ORIGIN": "<VALUE>",
"AI_BROWSER_ACTION_TIMEOUT_MS": "<VALUE>"
}
}
}
}
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-glittering-ai-browser": {
"command": "npx",
"args": [
"-y",
"@glittering0717/ai-browser"
],
"env": {
"AI_BROWSER_PORT": "<VALUE>",
"ELECTRON_MIRROR": "<VALUE>",
"AI_BROWSER_FOCUS": "<VALUE>",
"AI_BROWSER_BRANDS": "<VALUE>",
"AI_BROWSER_BG_MUTE": "<VALUE>",
"AI_BROWSER_SANDBOX": "<VALUE>",
"AI_BROWSER_IDENTITY": "<VALUE>",
"AI_BROWSER_WATCHDOG": "<VALUE>",
"AI_BROWSER_TAB_LIMIT": "<VALUE>",
"AI_BROWSER_USER_DATA": "<VALUE>",
"AI_BROWSER_POPUP_SHIM": "<VALUE>",
"AI_BROWSER_CANVAS_HOOK": "<VALUE>",
"AI_BROWSER_HOT_REPAINT": "<VALUE>",
"AI_BROWSER_INPUT_FOCUS": "<VALUE>",
"AI_BROWSER_ERROR_BANNER": "<VALUE>",
"AI_BROWSER_ERROR_DIALOG": "<VALUE>",
"AI_BROWSER_START_HIDDEN": "<VALUE>",
"AI_BROWSER_WATCHDOG_URLS": "<VALUE>",
"AI_BROWSER_WS_ALLOW_ORIGIN": "<VALUE>",
"AI_BROWSER_ACTION_TIMEOUT_MS": "<VALUE>"
}
}
}
}
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 |
|---|---|---|
| AI_BROWSER_PORT | No | WebSocket port for the control server (default 9223). Must be consistent across the app and the MCP server. |
| ELECTRON_MIRROR | No | Mirror for the Electron binary download, e.g. https://npmmirror.com/mirrors/electron/ |
| AI_BROWSER_FOCUS | No | Focus behaviour: 'always' (show + moveTop + focus on every action), 'never' (never touch window state or page focus). Default is auto. |
| AI_BROWSER_BRANDS | No | Set to 'chrome' to re-run the Google sign-in comparison arm. Do not ship. |
| AI_BROWSER_BG_MUTE | No | Set to 0 to turn off muting of background tabs in agent groups (default: on). |
| AI_BROWSER_SANDBOX | No | Set to 1 to turn on Chromium's OS sandbox (off by default, deliberately). |
| AI_BROWSER_IDENTITY | No | Set to 0 to disable the browser identity override. Do not ship. |
| AI_BROWSER_WATCHDOG | No | Set to 0 (also accepts off/false/no) to turn the network watchdog off entirely. |
| AI_BROWSER_TAB_LIMIT | No | Per-agent tab group cap (default 8). |
| AI_BROWSER_USER_DATA | No | Override the user-data directory (default ~/.ai-browser). Separate directories are separate session stores. |
| AI_BROWSER_POPUP_SHIM | No | Opt-in toggle for the window.open shim. |
| AI_BROWSER_CANVAS_HOOK | No | Canvas draw-call recorder: 0 disables, 1 enables everywhere, or a comma-separated list of origins (subdomains included). Off by default. |
| AI_BROWSER_HOT_REPAINT | No | Set to 'hard' to upgrade repaint on navigation-finish, tab switch and window re-show (accepts flicker). Default is soft. |
| AI_BROWSER_INPUT_FOCUS | No | Set to 0 to disable page-focus emulation for tabs that cannot receive input. |
| AI_BROWSER_ERROR_BANNER | No | Set to 0 to disable the in-window error banner. |
| AI_BROWSER_ERROR_DIALOG | No | Set to 1 to force a modal error dialog (blocks the main process; startup-crash debugging only). |
| AI_BROWSER_START_HIDDEN | No | Set to 1 to run with no window at all; click the Dock icon to bring it up. |
| AI_BROWSER_WATCHDOG_URLS | No | Comma-separated URLs the network watchdog probes. Default is example.com plus www.baidu.com. |
| AI_BROWSER_WS_ALLOW_ORIGIN | No | Set to 1 to disable the WebSocket Origin header check. Debug only; it re-opens the page → browser path. |
| AI_BROWSER_ACTION_TIMEOUT_MS | No | Global override for action timeouts (1s floor, 300s cap). |