With the mabl cloud MCP server, your AI client can author and execute tests, query results, analyze failures, and generate test-quality reports, all through conversational prompts.
Prerequisite
You need an AI client that supports MCP servers, such as Claude Code, Cursor, Windsurf, Gemini CLI, Claude Desktop, or Rovo.
Setup
The mabl cloud MCP server supports two authentication methods:
- OAuth - connect the cloud MCP to your mabl user account, giving you access to any workspace your user belongs to. Uses your mabl login, so you'll occasionally need to re-authenticate, just like with the mabl app. If you're not sure which method to pick, start here.
- API key - connect to the cloud MCP through a mabl API key. Access is scoped to the single workspace the key was generated in and persists until the key itself expires or is deleted. Best for agent-to-agent use cases.
The configurations in this article create an MCP server under the name "mabl". You can use a different name if needed. For example, if your organization uses strict security whitelists, corporate proxies, or internal IDE registries, you may need to update the name "mabl" to comply with your organization's whitelisting requirements. If in doubt, check with your internal IT or security team for specific MCP guidelines. Also note that not all clients use JSON configuration. Refer to your AI client’s documentation for specific instructions on adding remote MCP servers.
Config
Many AI clients use a JSON configuration file for MCP servers. Use the following config block:
{
"mcpServers": {
"mabl": {
"url": "https://mcp.mabl.com/mcp",
"type": "http"
}
}
}
Type string may vary
Some clients, such as Cursor and Windsurf, use "type": "streamable-http" instead of "type": "http". Check your client’s documentation for the expected type string.
For legacy MCP clients that require the dual-endpoint SSE pattern, use this configuration instead: "type": "sse" and "url": "https://mcp.mabl.com/sse".
In Claude Code, you can also run the following command in your terminal to set up the mabl MCP:
claude mcp add --transport http mabl https://mcp.mabl.com/mcp
This command registers the cloud MCP server for the current project only. To make mabl available across all your projects, add --scope user. To confirm the server is configured, run claude mcp list.
In Gemini CLI, the mabl MCP is available as an extension. Instead of editing a config file, you can install it with a single command:
gemini extensions install https://github.com/mablhq/mabl-mcp-server
The extension configures the cloud MCP server and adds a context file that gives your agent guidance on using the mabl tools. To confirm the extension is installed, run gemini extensions list.
After adding the server, complete authentication through a browser consent flow:
- Client-initiated: Your client may recognize that you aren't logged in and provide a button or prompt to initiate the process.
- User-initiated: If your agent doesn't automatically prompt you to authenticate, use a prompt like "Help me authenticate the mabl MCP" to initiate the process.
The cloud MCP will open a browser window to a consent page. Review the details and click Accept. At this point, if you aren't already logged into the mabl web app, you'll also need to sign in to mabl.
By default, the cloud MCP server connects to the primary workspace associated with your mabl user account. If you aren't sure what your default workspace is, ask your client:
“What is my default workspace?”
To list all available workspaces, ask:
“What workspaces do I have access to?”
To use the mabl cloud MCP tools in a non-primary workspace, provide the name of the workspace or workspace ID when you invoke tools. For example:
“Get my recently created tests from the mabl prod tests workspace.”
Config
API key setup authenticates your connection without a browser consent flow. Use the following config block, replacing YOUR_API_KEY_HERE with either an "Editor" or "Viewer" type mabl API key:
{
"mcpServers": {
"mabl": {
"url": "https://mcp.mabl.com/mcp",
"type": "http",
"headers": {
"x-api-key": "YOUR_API_KEY_HERE"
}
}
}
}
Type string may vary
Some clients, such as Cursor and Windsurf, use "type": "streamable-http" instead of "type": "http". Check your client’s documentation for the expected type string.
For legacy MCP clients that require the dual-endpoint SSE pattern, use this configuration instead: "type": "sse" and "url": "https://mcp.mabl.com/sse".
In Claude Code, you can also run the following command in your terminal:
claude mcp add --transport http mabl https://mcp.mabl.com/mcp --header "x-api-key: YOUR_API_KEY_HERE"
This command registers the cloud MCP server for the current project only. To make mabl available across all your projects, add --scope user. To confirm the server is configured, run claude mcp list.
In Gemini CLI, the mabl extension uses OAuth. To connect with an API key instead, add the server to your Gemini CLI settings manually, using httpUrl in place of url and a headers object for your key.
If your config file will be checked into version control or shared with others, reference the key from an environment variable instead of pasting it directly. For example, "x-api-key": "${MABL_API_KEY}".
An API key is scoped to the workspace it was generated in. Unlike OAuth, you can't switch workspaces when authenticated by API key. To work in a different workspace, generate a key there and update your config.
Add the mabl MCP server as a custom connector
To connect Claude Desktop to the mabl cloud MCP server, add it as a custom connector. Go to Settings > Connectors > Add > Add custom connector. Enter these details:
- Name:
mabl - Remote MCP server URL:
https://mcp.mabl.com/mcp
On Team and Enterprise plans, adding the connector makes it available to your organization, but it doesn't connect it for everyone automatically. Each person who wants to use the mabl MCP server may also need to connect to it in their own instance of Claude Desktop: go to Settings > Connectors and click on the Connect button for mabl.
Can't add connectors?
If your connector settings page doesn't show an Add button, your organization may restrict adding custom connectors to account owners. In this situation, you should ask the person who administers Claude for your organization to add the connector on your behalf.
Confirm the connection
To confirm the mabl cloud MCP is connected, click on the settings icon at the bottom of the conversation input box. You should see available MCP tools.
Viewing mabl MCP tools in Claude Desktop
Next steps
- mabl MCP overview - start here if you're new to MCPs.
- mabl MCP tools and prompts - full reference of available tools and sample prompts.
- How to interact with the mabl MCP - best practices for writing effective prompts.
- Integrate the mabl MCP with Atlassian Rovo - create a custom Rovo Agent in Atlassian with access to mabl MCP tools.