
Security News
libxml2 Maintainer Ends Embargoed Vulnerability Reports, Citing Unsustainable Burden
Libxml2’s solo maintainer drops embargoed security fixes, highlighting the burden on unpaid volunteers who keep critical open source software secure.
selenium-mcp-server
Advanced tools
Model Context Protocol server for Selenium WebDriver - enables LLMs to control web browsers
A Model Context Protocol (MCP) server that provides browser automation capabilities using Selenium WebDriver. This server enables LLMs to interact with web pages through structured accessibility snapshots and browser automation tools.
No installation needed! Just add configuration to Cursor:
{
"mcpServers": {
"selenium": {
"command": "npx",
"args": [
"selenium-mcp-server@latest",
"--browser", "chrome"
]
}
}
}
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 68 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.
Security News
Libxml2’s solo maintainer drops embargoed security fixes, highlighting the burden on unpaid volunteers who keep critical open source software secure.
Research
Security News
Socket investigates hidden protestware in npm packages that blocks user interaction and plays the Ukrainian anthem for Russian-language visitors.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.