Paired with a browser extension, lets agents manage tabs, search history and read page content in the user's browser.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add browser-control --env EXTENSION_SECRET='<EXTENSION_SECRET>' --env EXTENSION_PORT='<EXTENSION_PORT>' -- node /path/to/repo/mcp-server/dist/server.js~/.codex/config.toml
[mcp_servers.browser-control]
command = "node"
args = ["/path/to/repo/mcp-server/dist/server.js"]
env = { EXTENSION_SECRET = "<EXTENSION_SECRET>", EXTENSION_PORT = "<EXTENSION_PORT>" }
# codex mcp add browser-control --env EXTENSION_SECRET='<EXTENSION_SECRET>' --env EXTENSION_PORT='<EXTENSION_PORT>' -- node /path/to/repo/mcp-server/dist/server.js~/.cursor/mcp.json
{
"mcpServers": {
"browser-control": {
"command": "node",
"args": [
"/path/to/repo/mcp-server/dist/server.js"
],
"env": {
"EXTENSION_SECRET": "<EXTENSION_SECRET>",
"EXTENSION_PORT": "<EXTENSION_PORT>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"browser-control": {
"type": "stdio",
"command": "node",
"args": [
"/path/to/repo/mcp-server/dist/server.js"
],
"env": {
"EXTENSION_SECRET": "<EXTENSION_SECRET>",
"EXTENSION_PORT": "<EXTENSION_PORT>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"browser-control": {
"command": "node",
"args": [
"/path/to/repo/mcp-server/dist/server.js"
],
"env": {
"EXTENSION_SECRET": "<EXTENSION_SECRET>",
"EXTENSION_PORT": "<EXTENSION_PORT>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"browser-control": {
"command": "node",
"args": [
"/path/to/repo/mcp-server/dist/server.js"
],
"env": {
"EXTENSION_SECRET": "<EXTENSION_SECRET>",
"EXTENSION_PORT": "<EXTENSION_PORT>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"browser-control": {
"command": "node",
"args": [
"/path/to/repo/mcp-server/dist/server.js"
],
"env": {
"EXTENSION_SECRET": "<EXTENSION_SECRET>",
"EXTENSION_PORT": "<EXTENSION_PORT>"
}
}
}
}需要的环境变量
EXTENSION_SECRETEXTENSION_PORT
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。