Use your Healenium data inside AI assistants (Cursor, Claude Desktop, GitHub Copilot, and other MCP‑compatible clients).
The Healenium MCP Server is a bridge between your Healenium instance and AI chat tools that support the Model Context Protocol (MCP). Once the server is running and connected to your AI client, you can ask questions in plain language about your test runs, reports, and selectors, and get answers based on live data from Healenium.
You do not need to start the server manually: the client starts it when needed using the configuration below.
Add the Healenium MCP server in your client’s MCP settings. The client will run the server process when you use the AI.
Use the official image and pass your Healenium URL via environment. Example for Cursor (~/.cursor/mcp.json or Cursor Settings → MCP):
{
"mcpServers": {
"healenium": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e", "HL_URL",
"healenium/healenium-mcp-server:latest"
],
"env": {
"HL_URL": "http://localhost:7878"
}
}
}
} Replace http://localhost:7878 with your Healenium backend URL (e.g. https://healenium.example.com or http://healenium:7878 if Healenium runs in another container).
Optional: to keep a persistent UID across restarts, add a volume in args: -v, healenium-mcp-data:/server.
If you have the healenium-mcp-server binary (from releases or built from source), point the client to it and pass the Healenium URL.
Cursor — in MCP settings add a server entry like:
{
"mcpServers": {
"healenium": {
"command": "/path/to/healenium-mcp-server",
"args": ["--service-url", "http://localhost:7878"],
"env": {}
}
}
} Or pass the URL via environment (the binary respects HL_URL):
"healenium": {
"command": "/path/to/healenium-mcp-server",
"env": {
"HL_URL": "http://localhost:7878"
}
} Replace /path/to/healenium-mcp-server with the actual path and the URL with your Healenium backend.
Claude Desktop — in the MCP config file use the same structure: command (path to binary or docker), args if needed, and env with HL_URL.
These options apply when the server is run (by the client or by you). Environment variables and CLI flags:
| Variable / flag | Required | Description |
|---|---|---|
HL_URL / --service-url | Yes | Base URL of your Healenium backend (e.g. https://healenium.example.com or http://localhost:7878). |
HL_MCP_MODE | No | Server mode: stdio (default) for local pipe communication, or http for HTTP streaming (e.g. for Cursor). |
MCP_SERVER_PORT | No (HTTP only) | Port for the HTTP server when HL_MCP_MODE=http. Default: 8282. |
MCP_SERVER_HOST | No | Bind address for the HTTP server (e.g. 0.0.0.0 or 127.0.0.1). |
LOG_LEVEL | No | Logging level: DEBUG, INFO, WARN, ERROR. Default: INFO. |
HL_MCP_ANALYTICS_OFF | No | Set to true to disable analytics. |
Once the MCP server is connected to your AI client, the following tools are available so the assistant can query and update Healenium on your behalf.
| Tool | Description |
|---|---|
getLastReport | Returns the most recent Healenium healing report, including all healing attempts. |
getReportById | Returns a specific report by its UID (32‑character hex string). |
getSelectorByParameters | Returns the reference (original) selector for a given element. Parameters: locator, command (findElement / findElements), url; optional: className, methodName. |
getAllSelectors | Returns all selectors stored in Healenium (locators, class names, method names, commands, URLs). |
updateHealingResult | Marks a healing attempt as successful or failed. Parameters: healingResultId, successHealing (true/false). |
saveSelectorPath | Associates healing results with declaring classes (file paths) for a selector. Parameters: id (selector ID), data (array of healingResultId and declaringClass). |
claude_desktop_config.json) and add a server entry with the same command / args / env structure as above.HL_URL. For the protocol, see the official MCP documentation.