Connect to Selenium Grid
Set SELENIUM_REMOTE_URL to the Grid WebDriver endpoint.
Select a browser that is available on a Grid node with
SELENIUM_BROWSER:
{
"SELENIUM_REMOTE_URL": "http://localhost:4444",
"SELENIUM_BROWSER": "chrome"
}
When this URL is set, existing tools for navigation, page inspection, and browser interaction use a remote browser session. If the setting is unset or empty, the server continues to launch a local browser.
Check Grid health and capacity
Four read-only tools provide visibility into the Grid:
get_grid_status()returns the Grid status.list_grid_nodes()lists nodes and their slots.get_grid_browser_availability()counts available, busy, and unavailable slots by browser.list_grid_sessions()lists active sessions and their node IDs.
Use these tools to check whether the Grid is ready and whether it has slots for the browser you intend to run.
Manage sessions and nodes
Three additional tools support basic Grid administration:
create_grid_session(browser_name, capabilities={})requests a separate session with optional WebDriver capabilities.delete_grid_session(session_id)ends the specified active session.drain_grid_node(node_id)asks a node to stop accepting new sessions while existing work finishes.
A session created with create_grid_session is not the
session controlled by the normal browser interaction tools. To
automate through those tools, configure
SELENIUM_REMOTE_URL and use the standard browser tools.
One MCP server, local or remote
The Grid tools require SELENIUM_REMOTE_URL. Without it,
they report that a Grid endpoint is not configured, while browser
automation continues to work locally. With Grid configured, the
server provides 69 MCP tools in total, including the seven dedicated
Grid tools.
See the configuration guide and tool reference for more details.