You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: mcp_servers/README.md
+15-7Lines changed: 15 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
### The [SeleniumBase](https://github.com/seleniumbase/SeleniumBase) MCP server provides stealthy browser automation over the [Model Context Protocol](https://modelcontextprotocol.io) for MCP clients.
6
6
7
-
This server, (located in `server.py`), uses SeleniumBase's [Pure CDP Mode](https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/cdp_mode_methods.md) (`seleniumbase.sb_cdp.Chrome`), where the browser is driven entirely over the Chrome DevTools Protocol, and there is no WebDriver in the loop at all, which makes it SeleniumBase's stealthiest mode. CAPTCHA-solving is included via the `solve_captcha()` method!
7
+
This server, (located in `server.py`), uses SeleniumBase's [Pure CDP Mode](https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/cdp_mode_methods.md) (`seleniumbase.sb_cdp.Chrome`), where the browser is driven entirely over the Chrome DevTools Protocol, and there is no WebDriver in the loop at all, which makes it SeleniumBase's stealthiest mode. CAPTCHA-solving is available through `solve_captcha()`.
8
8
9
9
Other SeleniumBase automation styles, (such as `Driver()` and `SB()`), have their own MCP servers in [seleniumbase/seleniumbase-mcp](https://github.com/seleniumbase/seleniumbase-mcp).
10
10
@@ -37,15 +37,23 @@ uv sync
37
37
38
38
Pure CDP Mode doesn't use WebDriver, so no `chromedriver` download is needed... just a working Chrome/Chromium install.
39
39
40
-
(No `uv`? `python3 -m venv venv && pip install -r requirements.txt` works too. `requirements.txt` installs the local SeleniumBase checkout via `-e .` the same way. Substitute `python server.py` for `uv run seleniumbase-mcp` everywhere below, and use absolute `venv/bin/python` + script path in your MCP client config instead of the path-free options.)
40
+
(If you don't want to use `uv`, you can use a standard Python virtual environment instead: `python3 -m venv venv && pip install -r requirements.txt` works too. `requirements.txt` installs the local SeleniumBase checkout via `-e .` the same way. Substitute `python server.py` for `uv run seleniumbase-mcp` everywhere below, and use absolute `venv/bin/python` + script path in your MCP client config instead of the path-free options.)
41
+
42
+
Without `uv`, you can directly run the `seleniumbase-mcp` command to start the server after `pip`-installing `seleniumbase`.
41
43
42
44
## 2. Try it standalone (optional sanity check)
43
45
46
+
```bash
47
+
mcp dev server.py
48
+
```
49
+
50
+
Or if using `uv`:
51
+
44
52
```bash
45
53
uv run mcp dev server.py
46
54
```
47
55
48
-
That opens the MCP Inspector, where you can test commands ("Tools"). Ctrl+C to exit. Next step is wiring it into a client.
56
+
That opens the MCP Inspector, where you can test commands ("Tools"). Use Ctrl+C to exit from the terminal. Next step is wiring it into a client harness.
49
57
50
58
## 3. Connect it to Claude Desktop
51
59
@@ -117,15 +125,15 @@ Restart Claude Desktop. You should see a 🔨 tools icon indicating the server c
117
125
## 4. Connect it to Claude Code
118
126
119
127
This folder's `.mcp.json` is checked in and ready to use as-is.
120
-
No path editing is required because `uv run seleniumbase-mcp` resolves this project from `pyproject.toml` in the current directory:
128
+
No path editing is required because `seleniumbase-mcp` resolves this project from `pyproject.toml` in the current directory:
121
129
122
130
```json
123
131
{
124
132
"mcpServers": {
125
133
"seleniumbase-mcp": {
126
134
"type": "stdio",
127
-
"command": "uv",
128
-
"args": ["run", "seleniumbase-mcp"]
135
+
"command": "seleniumbase-mcp",
136
+
"args": []
129
137
}
130
138
}
131
139
}
@@ -134,7 +142,7 @@ No path editing is required because `uv run seleniumbase-mcp` resolves this proj
134
142
**The `.mcp.json` file helps clients connect to the MCP server.**
135
143
136
144
1. Claude Code auto-loads `.mcp.json` from whatever directory you launch `claude` in.
137
-
2.`uv run seleniumbase-mcp` needs `pyproject.toml` to be discoverable from the current directory. That resolves cleanly when `.mcp.json` and `pyproject.toml` sit next to each other.
145
+
2.`seleniumbase-mcp` needs `pyproject.toml` to be discoverable from the current directory. That resolves cleanly when `.mcp.json` and `pyproject.toml` sit next to each other.
138
146
139
147
Run `claude` from inside `mcp_servers/` or the root folder to get it auto-loaded.
0 commit comments