Nayan76

Selenium AI MCP Server — Testing skill for Claude Code

Testing community

AI-powered Selenium MCP Server built with Java 21, enabling AI agents like Codex, Claude, and Cursor to automate browsers, execute test scenarios, validate results, capture screenshots, and generate H.

How to install Selenium AI MCP Server

This entry records only its repository, not the path inside it, so there is no exact command to give. Open Nayan76/selenium-ai-mcp-server and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Selenium AI MCP Server does

AI-powered Selenium MCP Server built with Java 21, enabling AI agents like Codex, Claude, and Cursor to automate browsers, execute test scenarios, validate results, capture screenshots, and generate HTML/JSON reports across Chrome, Firefox, and Edge.

Alternatives in Testing

  • Playwright — Automate real browser interactions for navigation, forms, and scraping 14.6k ★
  • Higgsfield Claude Skills — 19 Claude Code skills for Higgsfield AI — automate image generation, Seedance 2.0 video creation, and full UGC 329 ★
  • Design Compare — Capture two websites with Playwright and produce a structured side-by-side design comparison — layout, color 309 ★

README

Selenium MCP Server

Control one Chrome, Firefox, or Edge session from an MCP client over stdio. The 28 tools share a fresh browser profile and run headlessly by default.

Build and run

Install JDK 21, Maven 3.9+, and the browser you intend to use. Selenium Manager resolves compatible drivers on first launch, which may require internet access and a writable cache. In offline environments, provision a compatible driver on PATH. Inspector 2.16.0 declares Node.js ^22.23.4, ^24.22.1 or >=26.12.1.

From the project directory, run:

mvn clean verify
$env:SELENIUM_ALLOWED_ORIGINS = 'https://example.com'
java -jar target/selenium-mcp.jar

The process waits for MCP messages on stdin. Configure your client to launch the Java command directly and pass the origin setting in its environment. Use an absolute JAR path when starting from another directory. Closing stdin ends the server. Logs go to stderr.

Verify with MCP Inspector

The included configuration starts the packaged server and permits the example origin. Run from the repository root:

npx --yes @modelcontextprotocol/inspector@2.16.0 --cli --config inspector.json --server selenium --method tools/list
npx --yes @modelcontextprotocol/inspector@2.16.0 --cli --config inspector.json --server selenium --method tools/call --tool-name get_page_text

Expect 28 tools from the first command and a structured `NO_SESSION` error from the second. Each CLI invocation launches a new process. For a sequence of browser operations, start the interactive Inspector and keep the connection open:

npx --yes @modelcontextprotocol/inspector@2.16.0 --web --config inspector.json --server selenium

Open the authenticated local URL printed by Inspector, connect to the stdio server, and list tools. Call `launch_browser` with `{"browser":"chrome"}`, then `navigate` with `{"url":"https://example.com"}`. Call `get_page_text` or `take_screenshot`, then `close_browser`.

Tool contracts

| T