SeleniumBase MCP
Lets your AI agent drive a stealthy browser to test sites, scrape pages and get past bot checks.
13k stars on GitHubby Michael Mintz (SeleniumBase)License MITUpdated 18 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add seleniumbase -- uvx seleniumbase
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Open this site, search for seleniumbase and list the story titles.
Test the checkout flow on this shop and tell me if any step fails.
What it is
SeleniumBase is a Python framework for browser automation, end-to-end testing and web scraping. Its CDP Mode helps handle bot-detection and CAPTCHAs with Chromium-based browsers. It also supports MCP.
What it can do
- Launch a stealth browser (CDP Mode)
goto,clickandtypeon page elementssolve_captcha: handle CAPTCHAs not bypassed automaticallyfind_elements: read elements from a pagesave_as_pdf: save a page as PDFassert_elementandassert_textchecks
When to use
- βΊWhen you want to scrape a site that blocks normal automation.
- βΊWhen you want to test a web app end to end.
- βΊWhen you want to fill in forms and click through pages automatically.
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
browser-automationLets your agent automate a web browser to scrape data, fill in forms, capture screenshots and extract structured information from pages.browseDrives a real stealth browser from your shell to act on websites, such as signing in or filling forms, with sign-ins kept per person. Meant for actions, not reading.agent-browserMakes your agent control the browser to test websites. It can fill forms, click buttons, and take screenshots.Frequently asked questions
Is it free and open source?
Yes, it is installed with pip and has an open license file in the repository.
Which browsers work?
Chrome by default, plus Chromium, Chrome-for-Testing, Edge and Brave.
Does it solve CAPTCHAs?
CDP Mode bypasses many bot checks, and solve_captcha handles CAPTCHAs that are not bypassed automatically. If no CAPTCHA is present, it does nothing.
Can I use it for tests?
Yes, it runs end-to-end tests with pytest.
Does it work with Playwright?
There is an optional stealthy Playwright mode that extends CDP Mode's stealth to Playwright.
How long do waits last?
assert methods wait up to 7 seconds for the expected condition.
If it does not work
- βΊCheck that Python is installed and run pip install seleniumbase.
- βΊPick the browser with options such as --chromium, --cft, --edge or --brave if Chrome is not available.
- βΊThe readme excerpt does not give MCP setup steps; see the mcp_servers folder in the repository.
5 new skills a week. 1 minute to read.