Selenix MCP Server

io.github.markmircea由 GitHub 帳號 markmircea 發布v1.0.7更新於 Oct 24, 2026

MCP server that bridges local apps with Selenix for browser automation.

已驗證STDIO僅桌面瀏覽器自動化開發者工具

概覽

AI 產生的概覽

將 Claude Desktop 連接到 Selenix 桌面應用程式,讓助理可以建立、執行、偵錯與管理瀏覽器自動化測試。

可以做什麼
此伺服器會把助理的工具呼叫轉換成對 Selenix 桌面應用程式內橋接服務的 HTTP 請求。讀取類工具包含截圖、標註互動元素的頁面 HTML、以正規表示式搜尋 HTML、測試與命令清單、步驟結果、日誌與工作區脈絡。寫入類工具可在測試中新增、取代或修正命令,run_test 會執行測試並最多等待兩分鐘取得結果。
適用情境
適合已在使用 Selenix、希望透過對話讓助理檢視、撰寫或修正瀏覽器自動化測試的人,可取代內建 AI 助理。僅支援桌面端,Selenix 應用程式未執行時無法使用。
執行需求
需要安裝 Selenix 桌面應用程式並在系統設定中啟用 MCP Server 橋接、安裝 Claude Desktop,以及 Node.js 18 或更新版本。可透過 npm 套件 @selenix/mcp-server、Selenix 內附副本或手動下載的 bundle 安裝,再於 Claude Desktop 設定中指向該檔案。橋接僅監聽 127.0.0.1,使用 Selenix 啟動時產生的 bearer token;連線資訊從 ~/.selenix/bridge.json 讀取。
安裝前請注意
橋接擁有 Selenix 內部的完整權限,與內建 AI 助理相同,因此寫入類工具會修改或取代測試命令,run_test 會在真實瀏覽器中執行測試。清單宣告了一個名為 YOUR_API_KEY 的密鑰環境變數,但 README 未說明用途,應視為憑證並妥善保管。修改 Claude Desktop 設定檔時,JSON 格式錯誤可能導致應用程式無法開啟。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Selenix MCP Server,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

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]

Prerequisites

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.

Setup

Choose one of the following methods:

Option A: Install via npm (recommended)

bash
npm install -g @selenix/mcp-server

Then find your global npm path:

bash
npm root -g

Open your Claude Desktop config file:

  • Windows: Press Win+R, paste %APPDATA%\Claude\claude_desktop_config.json, press Enter
  • macOS: Open ~/Library/Application Support/Claude/claude_desktop_config.json

Add the Selenix MCP server, replacing the path with the output from npm root -g:

json
{  "mcpServers": {    "selenix": {      "command": "node",      "args": ["<npm-root-path>/@selenix/mcp-server/dist/bundle.js"]    }  }}

Example (Windows with nvm):

json
{  "mcpServers": {    "selenix": {      "command": "node",      "args": ["C:/Users/YourName/AppData/Local/nvm/v18.20.8/node_modules/@selenix/mcp-server/dist/bundle.js"]    }  }}

Example (macOS/Linux):

json
{  "mcpServers": {    "selenix": {      "command": "node",      "args": ["/usr/local/lib/node_modules/@selenix/mcp-server/dist/bundle.js"]    }  }}

If you already have other MCP servers configured, add "selenix" alongside them inside the existing "mcpServers" object.

Option B: Use the bundled version (no npm required)

If you installed Selenix as a desktop app, the MCP server is already bundled. No need to install anything — just point Claude Desktop to the bundled file.

Find your Selenix install folder and look for resources/mcp-server/index.js, then add to your Claude Desktop config:

json
{  "mcpServers": {    "selenix": {      "command": "node",      "args": ["C:/path/to/Selenix/resources/mcp-server/index.js"]    }  }}

Typical Windows path:

C:/Users/YourName/AppData/Local/Programs/Selenix/resources/mcp-server/index.js

Option C: Manual download

  1. Download bundle.js from the npm package page or from the releases page
  2. Save it somewhere on your machine (e.g., C:/selenix-mcp/bundle.js)
  3. Add to your Claude Desktop config:
json
{  "mcpServers": {    "selenix": {      "command": "node",      "args": ["C:/selenix-mcp/bundle.js"]    }  }}

Node.js is still required — the MCP server is a single JavaScript file with no other dependencies.

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

Troubleshooting

"Cannot read Selenix bridge config" Selenix isn't running or the MCP Server isn't enabled. Open Selenix → System Settings → set Enable MCP Server to Yes.

"Cannot connect to Selenix bridge" Selenix may have just restarted. Try the request again — the MCP server will automatically pick up the new connection details.

Tools not appearing in Claude Desktop Make sure you restarted Claude Desktop after editing the config file. Verify the config JSON is valid (no trailing commas, correct brackets).

Claude Desktop won't open after config change The config JSON is likely malformed. Open the config file in a text editor, fix the JSON syntax, and try again. Common issues: missing comma between entries, trailing comma after the last entry.

Uninstall

bash
npm uninstall -g @selenix/mcp-server

Then remove the "selenix" entry from your Claude Desktop config file and restart Claude Desktop.

來源:README.md,提交 14d0385

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.0.7最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分