Skip to content

MCP Server Support #4469

Description

@mdmintz

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() and Driver(), 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 headless by default (easier debugging and better stealth), although MCP clients can easily set headless mode as needed.

At least for now, I probably don't want to include the PyAutoGUI methods 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 need PyAutoGUI, but that is a rare exception, and solve_captcha() will call that PyAutoGUI drag-and-drop method for handling Slider CAPTCHAs as needed.

Note that I'm jumping directly to mcp>=2.0.0 for 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!)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions