About SeleniumBase MCP
SeleniumBase MCP is an MCP server published by seleniumbase in the Scraping category: 📊 Blazing fast Python framework for web crawling, testing, scraping, and stealth. Supports pytest. Bypasses bot-detection with CDP Mode. Compatible with Playwright. Conduid read 18 tools from its source: assert_condition, check_if_condition, click_element, close_browser, find_elements, focus_element and 12 more. It is published to PyPI as seleniumbase and runs with uvx.
The repository has 13K stars and 1.6K forks, is licensed MIT, and its last commit was on 1 Dec 2026. The latest release is v4.58.0 (15 Nov 2026). It follows v4.57.1 (5 Nov 2026), and the 5 most recent releases go back to v4.56.4 (25 Oct 2026). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Its topics include scraping.
Install
uvx seleniumbasepip install seleniumbasegit clone https://github.com/seleniumbase/SeleniumBaseTools (18)
assert_conditionVerify a browser condition and report failure as an error.| Parameter | Type | Description |
|---|---|---|
| check | string | |
| exact | boolean | |
| expected | string | |
| selector | string | |
| timeout | number |
check_if_conditionCheck the current state of an element or text without waiting| Parameter | Type | Description |
|---|---|---|
| check | string | |
| selector | string | |
| text | string |
click_elementClick element(s) matching a CSS, XPath, or supported text selector.| Parameter | Type | Description |
|---|---|---|
| all_matches | boolean | |
| nth | integer | |
| only_if_visible | boolean | |
| parent_selector | string | |
| scroll | boolean | |
| selector * | string | CSS selector, XPath selector, or supported SeleniumBase text-matching selector. Text-matching selectors such as `a:contains("Sign in")` are supported only for single-element clicks; do not use them with `all_matches=True`. |
| timeout | number |
close_browserClose the active browser session and release browser resources.find_elementsFind matching elements and return structured element information.| Parameter | Type | Description |
|---|---|---|
| include_html | boolean | |
| selector * | string | A CSS selector, or an XPath selector that SeleniumBase can convert to CSS. In sb.find_elements, SeleniumBase automatically attempts to convert XPath to CSS. Some XPath expressions, such as those using `contains(...)`, cannot be converted to CSS and therefore aren't supported by this tool. |
| timeout | number |
focus_elementScroll to, focus, or highlight an element.| Parameter | Type | Description |
|---|---|---|
| action | string | |
| selector * | string | CSS selector or SeleniumBase selector identifying the target. |
| timeout | number |
get_attributesGet a specific HTML attribute (or all attributes) from the selected| Parameter | Type | Description |
|---|---|---|
| attribute | string | |
| selector * | string | CSS selector or SeleniumBase-supported XPath selector. If multiple elements match, then only the first one is used. |
| timeout | number |
get_contentGet visible text, HTML, or discovered URLs from the selected element.| Parameter | Type | Description |
|---|---|---|
| output_format | string | |
| selector | string | CSS selector or SeleniumBase-supported XPath selector. Default: "body". |
| timeout | number |
get_page_infoGet current browser session and page metadata.manage_cookiesManage cookies for the current browser session.| Parameter | Type | Description |
|---|---|---|
| action | string | |
| filename | string |
open_urlNavigate the current browser tab to the URL provided.| Parameter | Type | Description |
|---|---|---|
| url * | string | The destination URL. May be a complete URL such as "https://example.com", or a hostname such as "example.com". |
save_pageSave the current browser page to a local filesystem file.| Parameter | Type | Description |
|---|---|---|
| filename | string | |
| folder | string | |
| format | string |
scroll_pageScroll the current page vertically.| Parameter | Type | Description |
|---|---|---|
| amount | integer | |
| direction | string |
select_optionSelect an option from an HTML <select> dropdown.| Parameter | Type | Description |
|---|---|---|
| by | string | |
| dropdown_selector * | string | CSS selector identifying the <select> element. |
| value * | any |
solve_captchaAttempts a SeleniumBase CDP interaction (click or drag/drop) to solvestart_browserLaunch a persistent SeleniumBase Pure CDP Mode browser session.| Parameter | Type | Description |
|---|---|---|
| ad_block | boolean | |
| browser_executable_path | string | |
| guest | boolean | |
| headless | string | |
| incognito | boolean | |
| proxy | string | |
| url | string | Optional URL to navigate to during browser startup. When provided, the tool waits for the browser launch/navigation operation to complete before returning. If omitted, the browser starts without navigating to a specified URL. |
| use_chromium | boolean |
type_textEnter, append, directly set, or clear a value on a page element.| Parameter | Type | Description |
|---|---|---|
| mode | string | |
| selector * | string | CSS or SeleniumBase selector identifying the target element. |
| text | string | |
| timeout | number |
wait_for_conditionWait for a page condition or for a specified duration.| Parameter | Type | Description |
|---|---|---|
| selector | string | |
| state | string | |
| text | string | |
| timeout | number |
Security checks
- ✓README presentThe repository's README runs to about 7.9K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedA lockfile pins dependency versions.
- !No dynamic code executionScanned 135 source files and found 39 calls to eval or shell execution, in integrations/node_js/server.js, seleniumbase/console_scripts/sb_behave_gui.py and seleniumbase/console_scripts/sb_commander.py among others. Review how tool inputs reach them before granting credentials.
1 check has not been run yet.
Releases
README
The repository's README runs to about 7.9K words, fetched 16 days ago. The original in the repository is authoritative.
Read full README