MCP server
The Model Context Protocol server gives AI assistants read-only access to your campaigns, metrics and reports through the REST API.
Tools
| Tool | What it does |
|---|---|
list_campaigns | Lists campaigns, optionally filtered by status or type. |
get_campaign | Returns one campaign with pages, targeting, variations and metrics. |
get_report | Returns visitors and metric totals per variation, plus statistics when available. |
list_metrics | Lists the reusable metrics of the workspace. |
Setup
- Create an API token with the Browse scope under Settings → API tokens.
- Build the server from the repository (packages/mcp):
pnpm install pnpm --filter @splittesty/mcp build - 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
| Name | Description |
|---|---|
SPT_API_URL | Origin of this dashboard. https://app.splittesty.com |
SPT_API_TOKEN | API 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.