
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
selenium-mcp-server
Advanced tools
Selenium MCP server for browser automation, team-ready, MCP-compliant, and easy to share like Playwright MCP.
A Model Context Protocol (MCP) server for browser automation using Selenium WebDriver. Enables LLMs and teams to automate browsers via a standard protocol, similar to Playwright MCP.
package.json
is correct (see below)npm publish --access public
npm publish --access restricted
npm install -g selenium-mcp-server
selenium-mcp-server --browser chrome
npx selenium-mcp-server@latest --browser chrome
Add to your .cursor/mcp.json
or equivalent:
{
"mcpServers": {
"selenium": {
"command": "selenium-mcp-server",
"args": ["--browser", "chrome"]
}
}
}
package.json
for Publishing{
"name": "selenium-mcp-server",
"version": "1.0.0",
"description": "Selenium MCP server for browser automation",
"main": "index.js",
"bin": { "selenium-mcp-server": "index.js" },
"repository": { "type": "git", "url": "https://github.com/your-org/selenium-mcp-server.git" },
"author": "Your Name",
"license": "MIT"
}
browser_navigate
- Navigate to any URLbrowser_snapshot
- Get page accessibility snapshot with element referencesbrowser_click
- Click on elements using references from snapshotsbrowser_type
- Type text into form fields with optional submissionbrowser_wait_for
- Wait for time, text to appear, or text to disappearbrowser_take_screenshot
- Capture screenshots of the current pageAdd to Cursor Settings:
Cursor Settings
→ MCP
→ Add new MCP Server
selenium-mcp
command
npx
["selenium-mcp-server@latest"]
Alternative JSON Configuration:
{
"mcpServers": {
"selenium-mcp": {
"command": "npx",
"args": ["selenium-mcp-server@latest"]
}
}
}
Use the same configuration pattern with your MCP client:
{
"mcpServers": {
"selenium-mcp": {
"command": "npx",
"args": ["selenium-mcp-server@latest"]
}
}
}
npm install selenium-mcp-server
npm install -g selenium-mcp-server
Create .cursor/mcp.json
in your project root:
{
"mcpServers": {
"selenium": {
"command": "npx",
"args": [
"selenium-mcp-server@latest",
"--browser", "chrome"
]
}
}
}
npm install selenium-mcp-server
{
"mcpServers": {
"selenium": {
"command": "node",
"args": ["./node_modules/selenium-mcp-server/dist/index.js", "--browser", "chrome", "--headless"]
}
}
}
npm install -g selenium-mcp-server
{
"mcpServers": {
"selenium": {
"command": "selenium-mcp",
"args": ["--browser", "chrome", "--headless"]
}
}
}
Ask Cursor to perform browser automation:
selenium-mcp [options]
Options:
--browser <browser> Browser to use (chrome, firefox, edge, safari) (default: "chrome")
--headless Run browser in headless mode
--executable-path <path> Path to browser executable
--user-data-dir <path> Path to user data directory
--isolated Keep browser profile in memory
--viewport-size <size> Browser viewport size (e.g., 1280,720)
--output-dir <path> Path to directory for output files
-h, --help Display help for command
browser_navigate
- Navigate to URLsbrowser_navigate_back
- Go back in historybrowser_navigate_forward
- Go forward in historybrowser_click
- Click on elementsbrowser_type
- Type text into inputsbrowser_hover
- Hover over elementsbrowser_drag
- Drag and drop elementsbrowser_select_option
- Select dropdown optionsbrowser_press_key
- Press keyboard keysbrowser_snapshot
- Capture accessibility treebrowser_take_screenshot
- Take screenshotsbrowser_network_requests
- List network requestsbrowser_console_messages
- Get console messagesbrowser_tab_list
- List open tabsbrowser_tab_new
- Open new tabsbrowser_tab_select
- Switch tabsbrowser_tab_close
- Close tabsbrowser_wait_for
- Wait for elements/textbrowser_file_upload
- Upload filesbrowser_handle_dialog
- Handle alerts/dialogsbrowser_resize
- Resize browser windowbrowser_pdf_save
- Save page as PDF// In Cursor, ask:
"Navigate to https://example.com and take a screenshot"
// In Cursor, ask:
"Go to the contact page and fill out the form with name 'John Doe' and email 'john@example.com'"
// In Cursor, ask:
"Visit the product page and extract all product names and prices"
{
"mcpServers": {
"selenium": {
"command": "selenium-mcp",
"args": ["--browser", "chrome"]
}
}
}
{
"mcpServers": {
"selenium": {
"command": "selenium-mcp",
"args": [
"--browser", "chrome",
"--headless",
"--viewport-size", "1920,1080"
]
}
}
}
{
"mcpServers": {
"selenium": {
"command": "selenium-mcp",
"args": [
"--browser", "chrome",
"--executable-path", "/path/to/chrome"
]
}
}
}
If you get browser not found errors:
--executable-path
to specify browser locationOn macOS, you might need to grant accessibility permissions:
For large pages or long-running sessions:
{
"mcpServers": {
"selenium": {
"command": "selenium-mcp",
"args": ["--isolated", "--headless"]
}
}
}
MIT License - see LICENSE file for details.
FAQs
Selenium MCP server for browser automation, team-ready, MCP-compliant, and easy to share like Playwright MCP.
The npm package selenium-mcp-server receives a total of 191 weekly downloads. As such, selenium-mcp-server popularity was classified as not popular.
We found that selenium-mcp-server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.