Is the Selenium MCP server safe? What it can reach
What the Selenium MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.
The Selenium project is building an official MCP server, SeleniumHQ/mcp, that drives Chrome over stdio with no sign-in. It is marked v1 in progress, and @selenium/mcp was not on the npm registry on 2026-11-25. A community server by Angie Jones is the one in wide use. Both click, type and upload in a real browser, so origin limits matter most.
Who maintains it
| Implementation | Kind | Status |
|---|---|---|
| @selenium/mcp (SeleniumHQ/mcp, official, v1 in progress) | Official | active |
| @angiejones/mcp-selenium (community, widely used) | Community | active |
It runs as a local process on your machine.
How it signs in
No sign-in. The server starts a browser on your machine and acts with whatever that browser session can reach, including any site you are logged in to if you point it at a profile with sessions.
What its tools can do
| Kind | Tools |
|---|---|
| Read | browser_snapshot, browser_take_screenshot, browser_console_messages, browser_network_requests, browser_wait_for |
| Write | browser_navigate, browser_navigate_back, browser_click, browser_type, browser_fill_form, browser_select_option, browser_press_key, browser_hover, browser_drag, browser_file_upload, browser_handle_dialog, browser_resize, browser_tabs, browser_close |
| Can’t be undone | browser_evaluate |
This list is the official SeleniumHQ/mcp server. browser_evaluate appears only with --allow-evaluate. The optional vision, pdf and storage groups, enabled with --caps, add coordinate mouse tools, browser_pdf_save and cookie and Web Storage tools. The community @angiejones/mcp-selenium server uses different tool names (for example start_browser, interact, execute_script and delete_cookie) and offers script execution by default.
Built-in limits
| Option | What it does |
|---|---|
--allowed-origins | Semicolon-separated origins or hosts the browser may navigate to. The README says it is not a browser-wide boundary, since page links and redirects can go elsewhere. |
--blocked-origins | Origins or hosts the browser may not navigate to. |
--allow-evaluate | Off by default. Without it there is no tool that runs JavaScript the agent writes. |
--allow-unrestricted-file-access | Off by default. Without it, file:// URLs and uploads from outside the working directory are blocked. |
--caps | Optional tool groups (vision, pdf, storage), none loaded by default. The storage group returns cookies and Web Storage values that can include session tokens. |
--headless / --headed | Headless is the default. |
The risks
- Anything on a page can carry prompt injection, and the agent then clicks, types and submits forms in a real browser, which can post data or trigger actions on sites where the browser is signed in.
- browser_file_upload hands a local file to whatever page is open, so an injected instruction can try to send a file from the working directory to an attacker’s site.
- With --allow-evaluate the agent can run JavaScript of its own in the page, and with --caps storage it can read session cookies and tokens.
- The community server is not the official one, and its README lists execute_script, cookie tools and file upload among its tools.
Limit it in Claude Code
Add it from the documented launch settings, at local or user scope so a token never lands in a shared .mcp.json:
claude mcp add selenium -- npx @selenium/mcp@latestClaude Code names MCP tools mcp__selenium__<tool>. Deny rules win over ask rules, and ask rules over allow rules. Put these in ~/.claude/settings.json or the project’s .claude/settings.json:
{
"permissions": {
"deny": [
"mcp__selenium__browser_evaluate"
],
"ask": [
"mcp__selenium__browser_file_upload",
"mcp__selenium__browser_fill_form",
"mcp__selenium__browser_type"
]
}
}Limit it in Codex
Codex reads MCP servers from ~/.codex/config.toml. disabled_tools removes tools, and enabled_tools keeps only the ones you list:
[mcp_servers.selenium]
command = "npx"
args = ["@selenium/mcp@latest"]
disabled_tools = ["browser_evaluate"]Checklist
- Set --allowed-origins to the sites you are testing.
- Leave --allow-evaluate, --caps storage and --allow-unrestricted-file-access off.
- Use a fresh browser profile with no signed-in sessions.
- Check npm for the official package before relying on it, since the project says v1 is in progress.
Checked against the vendor documentation on November 25, 2026. SeleniumHQ/mcp README · angiejones/mcp-selenium README · npm registry lookup for @selenium/mcp (not found on 2026-11-25)
What Excellent covers
Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server
Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing