-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
MCP Server Support #4469
Copy link
Copy link
Open
Labels
MCPRelated to the SeleniumBase MCP ServerRelated to the SeleniumBase MCP ServerUC Mode / CDP ModeUndetected Chromedriver Mode / CDP ModeUndetected Chromedriver Mode / CDP ModedocumentationenhancementMaking things betterMaking things betterrequirements
Description
Activity
Metadata
Metadata
Assignees
Labels
MCPRelated to the SeleniumBase MCP ServerRelated to the SeleniumBase MCP ServerUC Mode / CDP ModeUndetected Chromedriver Mode / CDP ModeUndetected Chromedriver Mode / CDP ModedocumentationenhancementMaking things betterMaking things betterrequirements
MCP Server Support
Support for MCP servers is underway!
(Jumping directly to
mcp>=2.0.0)Three different servers are expected:
SB()Driver()sb_cdp.Chrome()The tricky part is figuring out the default values to use:
Stealth mode should definitely be on by default in
SB()andDriver(), which isn't the default setting outside of MCP.(Since
sb_cdp.Chrome()is 100% stealth mode, that doesn't need an extra setting set for stealth.)I probably don't want
headlessby default (easier debugging and better stealth), although MCP clients can easily setheadlessmode as needed.At least for now, I probably don't want to include the
PyAutoGUImethods because most of those aren't really needed anymore since CDP methods can handle those actions. The one exception I found for that was performing drag-and-drop actions inside shadow-root/iframe containers, which may still needPyAutoGUI, but that is a rare exception, andsolve_captcha()will call thatPyAutoGUIdrag-and-drop method for handling Slider CAPTCHAs as needed.Note that I'm jumping directly to
mcp>=2.0.0for SeleniumBase's first official MCP Server implementation.(If you see anything on the web under mcp 2.0, then it's definitely not an official server that's made by me!)