selenium-mcp
MCP server by gaforov Community
selenium-mcp gives AI agents 41 tools for real-browser automation through Selenium WebDriver. It suits agents that need to navigate sites, click and type, run assertions and take screenshots.
Install selenium-mcp
Built from the published package, never by AI.
claude mcp add selenium-mcp -- npx -y @gaforov/selenium-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"selenium-mcp": {
"args": [
"-y",
"@gaforov/selenium-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"selenium-mcp": {
"args": [
"-y",
"@gaforov/selenium-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"selenium-mcp": {
"args": [
"-y",
"@gaforov/selenium-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add selenium-mcp -- npx -y @gaforov/selenium-mcp{
"mcpServers": {
"selenium-mcp": {
"args": [
"-y",
"@gaforov/selenium-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add selenium-mcp npx -y @gaforov/selenium-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the selenium-mcp block.
About
selenium-mcp is a Selenium MCP server for AI agents. It exposes 41 tools for real-browser automation, including navigation, clicking, typing, assertions, screenshots and multi-session management. It is built with TypeScript, the official MCP SDK and Selenium WebDriver, and it validates inputs with zod.
Agents can capture a page snapshot with stable element refs, save selector hints per domain, and run batched multi-step sequences in one call. Optional NDJSON tracing logs every tool call. It is intended for AI agents that need to drive Chrome, Firefox or Edge. The package is published on npm as @gaforov/selenium-mcp and released under the MIT license.
Written from the project's README and checked against it.
Tools it gives your assistant
start_browserStarts a browser that the agent can control.navigateOpens a URL in the current browser session.capture_pageReturns a page snapshot with stable element refs the agent can act on.clickClicks an element on the page.typeTypes text into an input field.select_optionSelects an option in a dropdown.assert_textChecks that expected text appears on the page.take_screenshotCaptures a screenshot of the browser page.session_createCreates a parallel browser session for multi-session browsing.batch_executeRuns constrained multi-step sequences in a single tool call.
What you need
- Node.js 20 or newer
- Chrome, Firefox, or Edge installed
Try asking
- Use selenium-mcp to open example.com, read the page title and take a screenshot.
- Use selenium-mcp to capture the page snapshot and click the login button.
- Use selenium-mcp to select a dropdown option and assert the confirmation text.
Good to know
- Version 0.3.0 removed open_url and wait_until_visible; use navigate and wait_for_element instead.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to selenium-mcp
All alternatives →Browser Use runs an AI model in a real browser, where it completes web tasks by writing Python against Chrome DevTools Protocol. It is for developers who want to fill forms, navigate sites and extract data locally or on Browser Use Cloud.
Pomerado builds MCP integrations for websites, including sites without an API, from a plain language task description. It is for people who want their agent to use a site reliably without computer use.
Selenide MCP server runs browser automation for AI assistants. It is built on the Selenide Java testing framework, which wraps Selenium WebDriver 4.0+. It suits developers who want AI agents to drive UI tests.
SeleniumBase is a Python browser automation framework for stealth browsing, end-to-end testing and web scraping. It uses CDP Mode to work with Chromium-based browsers, and it is aimed at software teams.
Camofox Browser MCP exposes the camofox-browser REST API as MCP tools for AI coding assistants. It proxies to an already-running camofox-browser server, so agents can browse sites that block standard automation.
Cline is an open source coding agent that edits files, runs commands, and uses the browser. It works in a terminal CLI, a macOS and Windows desktop app, VS Code, JetBrains IDEs, and an SDK for developers building their own agents.
Compare with browser-use, Pomerado or Selenide
selenium-mcp: common questions
Which browsers does selenium-mcp support?
The source says it works with Chrome, Firefox or Edge installed on the machine. Selenium Manager provisions the matching driver automatically.
How does selenium-mcp keep element references reliable for agents?
The capture_page tool returns a page snapshot with stable element refs, so agents can act on elements without guessing selectors. Selector hints can also be saved per domain.
Can an agent run several browser sessions at once?
Yes. The source describes parallel multi-session browsing, and session tools let an agent create, select, list and destroy sessions.
How do I install selenium-mcp?
In Claude Code run claude mcp add selenium-mcp -- npx -y @gaforov/selenium-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is selenium-mcp the official server?
selenium-mcp is a community project by gaforov, not verified by a company domain.
Is selenium-mcp free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is selenium-mcp safe to use?
It scores 68 of 100. Grades: maintenance B, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to selenium-mcp?
Similar MCP servers: browser-use, Pomerado, Selenide, SeleniumBase MCP.
Does selenium-mcp work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
