selenium-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@selenium-mcpOpen Chrome, go to example.com, take a screenshot."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
selenium-mcp
Selenium MCP server for browser automation through Model Context Protocol clients.
It is built with TypeScript, the official MCP SDK, Selenium WebDriver, strict zod input validation, explicit waits, and structured responses that are useful to both humans and AI agents.
Features
Launch Chrome, Firefox, or Edge
Navigate pages and read URL/title/source
Find, click, type, hover, right-click, double-click, and retry-click elements
Read text and attributes
Press keyboard keys
Capture screenshots
Upload files through file inputs
Execute JavaScript
Assert visible text, attributes, and visibility
Manage tabs/windows, frames, alerts, and cookies
Expose browser status and accessibility snapshot MCP resources
What's New In v0.1.0
First public npm release:
@gaforov/selenium-mcpExpanded toolset for end-to-end browser automation, assertions, and diagnostics
Added MCP resources for browser status and accessibility snapshot context
Added broad client setup documentation for IntelliJ, VS Code, Cursor, Claude, Goose, and Windsurf
Added CI workflow and baseline tests for shared contracts
Requirements
Node.js 20+
Chrome, Firefox, or Edge installed
Selenium Manager handles browser drivers for supported local browsers.
Quick Start From Source
git clone https://github.com/gaforov/selenium-mcp.git
cd selenium-mcp
npm install
npm run build
npm startMCP Client Config
Local source checkout:
{
"mcpServers": {
"selenium-mcp": {
"command": "node",
"args": ["/absolute/path/to/selenium-mcp/dist/server.js"]
}
}
}After npm publish:
{
"mcpServers": {
"selenium-mcp": {
"command": "npx",
"args": ["-y", "@gaforov/selenium-mcp@latest"]
}
}
}For IntelliJ IDEA, VS Code, Cursor, Claude Desktop, Claude Code, Goose, and Windsurf setup notes, see docs/CLIENT_INTEGRATION.md.
First Prompt To Try
Ask your MCP-capable assistant:
Use selenium-mcp to open Chrome, navigate to https://example.com, read the page title, take a screenshot, and close the browser.Expected tool flow:
start_browsernavigateget_titletake_screenshotstop_browser
Implemented Tools
start_browseropen_urlnavigatefind_elementwait_for_elementwait_until_visibleclickretry_clickinteracttypeget_textget_attributeassert_textassert_visibleassert_attributepress_keytake_screenshotget_current_urlget_titleget_page_sourceexecute_scriptupload_filewindowframealertadd_cookieget_cookiesdelete_cookiestop_browser
MCP Resources
browser-status://currentaccessibility://current
Documentation
Development
npm run typecheck
npm run build
npm testLicense
MIT. See LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/gaforov/selenium-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server