To run the server using stdio transport, you must first build and install it as a global tool, then run it using the browser-use-mcp-server command. This mode requires mcp-proxy.
1. Build and install globally:
uv build
uv tool uninstall browser-use-mcp-server 2>/dev/null || true
uv tool install dist/browser_use_mcp_server-*.whl
2. Run with stdio transport:
browser-use-mcp-server run server --port 8000 --stdio --proxy-port 9000
Client Configuration (JSON):
{
"mcpServers": {
"browser-server": {
"command": "browser-use-mcp-server",
"args": [
"run",
"server",
"--port",
"8000",
"--stdio",
"--proxy-port",
"9000"
],
"env": {
"OPENAI_API_KEY": "your-api-key"
}
}
}
}
uv build
uv tool uninstall browser-use-mcp-server 2>/dev/null || true
uv tool install dist/browser_use_mcp_server-*.whl
browser-use-mcp-server run server --port 8000 --stdio --proxy-port 9000