start_browser
Launches a persistent Chrome/Chromium session via CDP for browser automation. Call this first to enable navigation, clicks, and content extraction in subsequent operations.
Instructions
Launch a persistent SeleniumBase Pure CDP Mode browser session.
This must be called before browser interaction tools such as navigate, get_content, click, type_text, or find_elements. The same browser session remains active across subsequent MCP tool calls until close_browser is called or the server process exits.
Pure CDP Mode communicates directly with the browser through the Chrome DevTools Protocol rather than WebDriver. This provides SeleniumBase's CDP-based browser automation capabilities without using WebDriver as the browser-control layer.
Args: url: Optional URL to open immediately after the browser launches. If omitted, the browser starts without navigating to a requested page.
headless: Controls whether the browser runs without a visible window.
If True, always run headless. If False, always run headed.
If omitted (None), the default depends on the operating system:
Linux defaults to headless because MCP/server environments
commonly do not have a graphical desktop, while Windows and macOS
default to headed so that a visible browser window is available.
Use True or False to explicitly override the OS-specific default
on any operating system.
use_chromium: Use Chromium instead of Google Chrome. This is useful
when Google Chrome is not installed. SeleniumBase can manage the
Chromium browser when this option is enabled.
browser_executable_path: Explicit filesystem path to the browser
executable when it is not installed in a standard location.
Do not combine this with use_chromium=True.
incognito: Launch Chrome/Chromium in incognito mode.
guest: Launch Chrome/Chromium in guest mode. Do not combine this with
incognito=True.
ad_block: Enable SeleniumBase's basic ad-blocking functionality.
proxy: Optional proxy server. Examples include
"SERVER:PORT" or "USER:PASS@SERVER:PORT".Returns: A confirmation message when the browser starts successfully, including the effective headless setting, or a descriptive error when browser startup fails.
Lifecycle: Call start_browser once at the beginning of a browser automation workflow. Reusing the existing session preserves cookies, tabs, navigation history, localStorage/sessionStorage, and other browser state between tool calls. Call close_browser when finished.
Environment requirements: The MCP runtime must have a compatible Chrome or Chromium browser available. If the browser executable cannot be discovered, use use_chromium=True or provide browser_executable_path explicitly.
On Linux, the default is headless=True so the browser can run in
typical server/container environments without a graphical desktop.
Set headless=False when a graphical display is available and a visible
browser is desired. On Windows and macOS, the default is
headless=False. Set headless=True when running without a desktop or
when a visible browser window is not desired.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| guest | No | ||
| proxy | No | ||
| ad_block | No | ||
| headless | No | ||
| incognito | No | ||
| use_chromium | No | ||
| browser_executable_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |