SeleniumMCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| SELENIUM_BROWSER | No | Browser type (chrome, firefox, etc.) | chrome |
| SELENIUM_HEADLESS | No | Run browser in headless mode | true |
| SELENIUM_HTTP_HOST | No | HTTP server host | 0.0.0.0 |
| SELENIUM_HTTP_PORT | No | HTTP server port | 8000 |
| SELENIUM_REMOTE_URL | No | URL of remote Selenium Grid | |
| SELENIUM_WINDOW_WIDTH | No | Window width in pixels | 1440 |
| SELENIUM_MCP_TRANSPORT | No | MCP transport (stdio or http) | stdio |
| SELENIUM_WINDOW_HEIGHT | No | Window height in pixels | 1000 |
| SELENIUM_ALLOW_FILE_URLS | No | Allow file:// URLs | false |
| SELENIUM_DEFAULT_DOWNLOAD_DIR | No | Default download directory | /tmp/selenium-downloads |
| SELENIUM_IMPLICIT_WAIT_SECONDS | No | Implicit wait timeout in seconds | 2 |
| SELENIUM_SCRIPT_TIMEOUT_SECONDS | No | Script timeout in seconds | 30 |
| SELENIUM_PAGE_LOAD_TIMEOUT_SECONDS | No | Page load timeout in seconds | 30 |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| browser_startA | Start a Selenium browser session if one is not already running. |
| browser_stopA | Stop the current Selenium browser session. |
| browser_resetB | Restart the Selenium browser session. |
| browser_stateA | Return session id, URL, title, and window information. |
| navigateB | Navigate the browser to an http, https, or allowed file URL. |
| go_backA | Navigate one step back in browser history. |
| go_forwardA | Navigate one step forward in browser history. |
| refreshA | Refresh the current page. |
| set_window_sizeC | Set the browser window size. |
| open_new_tabB | Open a new browser tab and optionally navigate it to a URL. |
| switch_windowC | Switch to a browser window or tab by Selenium window handle. |
| close_windowA | Close the active browser window or tab. |
| find_elementD | Find an element and return a compact summary of it. |
| clickC | Click an element located by CSS selector, XPath, id, name, text, tag, or class. |
| type_textC | Type text into an element, optionally clearing it first. |
| get_textC | Return the visible text for an element. |
| get_attributeB | Return one DOM attribute for an element. |
| wait_for_elementC | Wait until an element exists, or until it is visible when requested. |
| execute_scriptC | Execute JavaScript in the active page and return the JSON-serializable result. |
| scrollC | Scroll the current page by the given x and y offsets. |
| page_sourceA | Return the current page HTML. |
| screenshotA | Return a PNG screenshot as base64. |
| save_screenshotB | Save a PNG screenshot to a server-local path and return the path. |
| list_cookiesA | Return browser cookies for the current domain. |
| add_cookieB | Add a Selenium cookie dict to the current domain. |
| delete_cookiesA | Delete all browser cookies. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Lokii0911/SeleniumMCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server