Skip to content

MCP server

The Model Context Protocol server gives AI assistants read-only access to your campaigns, metrics and reports through the REST API.

Tools

Tools
ToolWhat it does
list_campaignsLists campaigns, optionally filtered by status or type.
get_campaignReturns one campaign with pages, targeting, variations and metrics.
get_reportReturns visitors and metric totals per variation, plus statistics when available.
list_metricsLists the reusable metrics of the workspace.

Setup

  1. Create an API token with the Browse scope under Settings → API tokens.
  2. Build the server from the repository (packages/mcp):
    pnpm install
    pnpm --filter @splittesty/mcp build
  3. Add it to your MCP client configuration:
    {
      "mcpServers": {
        "splittesty": {
          "command": "node",
          "args": [
            "/absolute/path/to/splittesty/packages/mcp/bin/splittesty-mcp.js"
          ],
          "env": {
            "SPT_API_URL": "https://app.splittesty.com",
            "SPT_API_TOKEN": "spt_pat_…"
          }
        }
      }
    }

Environment variables

Environment variables
NameDescription
SPT_API_URLOrigin of this dashboard. https://app.splittesty.com
SPT_API_TOKENAPI token with the browse scope.

Security

The server only sends GET requests and all tools are marked read-only. Because it uses your token, it is confined to the token’s workspace and to what the token owner may see. Revoke the token to cut off access.