Skip to main content
Glama
Lokii0911
by Lokii0911

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SELENIUM_BROWSERNoBrowser type (chrome, firefox, etc.)chrome
SELENIUM_HEADLESSNoRun browser in headless modetrue
SELENIUM_HTTP_HOSTNoHTTP server host0.0.0.0
SELENIUM_HTTP_PORTNoHTTP server port8000
SELENIUM_REMOTE_URLNoURL of remote Selenium Grid
SELENIUM_WINDOW_WIDTHNoWindow width in pixels1440
SELENIUM_MCP_TRANSPORTNoMCP transport (stdio or http)stdio
SELENIUM_WINDOW_HEIGHTNoWindow height in pixels1000
SELENIUM_ALLOW_FILE_URLSNoAllow file:// URLsfalse
SELENIUM_DEFAULT_DOWNLOAD_DIRNoDefault download directory/tmp/selenium-downloads
SELENIUM_IMPLICIT_WAIT_SECONDSNoImplicit wait timeout in seconds2
SELENIUM_SCRIPT_TIMEOUT_SECONDSNoScript timeout in seconds30
SELENIUM_PAGE_LOAD_TIMEOUT_SECONDSNoPage load timeout in seconds30

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

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