Selenium MCP Server ← Back to blog

Selenium MCP Server · Blog

Inspect and manage Selenium Grid with MCP tools.

Selenium MCP Server now includes dedicated tools for checking Grid health, inspecting browser capacity, and managing sessions and nodes. The existing browser automation tools can also connect to a Grid.

Selenium Grid 7 Grid tools 69 MCP tools

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:

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:

Grid sessions are separate

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.