Labsco
markmircea logo

Selenix MCP

from markmircea

MCP server that bridges Claude Desktop (or any other local app supporting MCP) with Selenix for browser automation and testing. Enables creating, running, debugging, and managing browser automation tests through natural language.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeQuick setup

Selenix MCP Server

npm version

Connect Claude Desktop to Selenix via the Model Context Protocol. Chat with Claude to create, run, debug, and manage browser automation tests โ€” just like using the built-in AI Assistant, but powered by Claude.

Selenix-MCP MCP server

Enable the Bridge in Selenix

Before using any setup method below, enable the bridge inside Selenix:

  1. Open Selenix
  2. Go to System Settings (gear icon in the sidebar)
  3. Scroll to the MCP Server section
  4. Set Enable MCP Server to Yes

This starts a local bridge server that the MCP server connects to.

Verify

Restart Claude Desktop after editing the config. You should see the Selenix tools icon (hammer) in the chat input area.

Try asking Claude:

  • "What tests are in my Selenix project?"
  • "Create a test that opens google.com and searches for 'selenium automation'"
  • "Run the current test and fix any failures"
  • "Take a screenshot of the browser"

How It Works

Claude Desktop <--stdio--> MCP Server <--HTTP--> Bridge Server (inside Selenix)

The MCP server translates Claude's tool calls into HTTP requests to a bridge server running inside Selenix. The bridge has full access to Selenix internals โ€” the same capabilities as the built-in AI Assistant.

  • The bridge only listens on 127.0.0.1 (localhost) โ€” no network exposure
  • Auth is handled via a bearer token auto-generated each time Selenix starts
  • Connection config is stored at ~/.selenix/bridge.json and re-read on every call, so restarting Selenix does not require restarting Claude Desktop

Available Tools

Reading & Inspection

ToolDescription
get_screenshotCapture a screenshot of the browser window
get_page_htmlGet the page HTML with interactive elements annotated
get_search_htmlSearch page HTML by regex pattern
get_selected_command_infoGet DOM context for a command's target element
get_current_testGet all commands in the current test
get_test_listList all tests in the project
get_test_by_nameGet a test by its name
get_command_listList all available Selenix commands
get_command_infoGet detailed docs for a specific command
get_project_infoGet project metadata
get_active_suiteGet the active test suite
get_step_resultsGet pass/fail results from the last test run
get_logsGet recent logs (all types), 20 per page, most recent first. Optional page param for pagination.
get_workspace_contextGet a summary of the current workspace

Writing & Execution

ToolDescription
add_commandsAdd commands to a test at a specific position
run_testRun a test and wait for results (up to 2 minutes)
clear_and_replace_commandsReplace all commands in a test
fix_commandsApply targeted fixes โ€” update, remove, or insert commands