mcp-server
v0.12.0Apex by DRIP MCP server: run A/B tests on your online shop from ChatGPT, Claude or Cursor.
Apex by DRIP is an A/B testing platform for online shops that predicts which tests will win before they go live, built on one of the largest A/B test databases in e-commerce. This package is the Apex MCP server. It lets an AI assistant work with your Apex A/B tests through the Model Context Protocol: list your tests and read their results, create a draft test with a conversion goal, write and build a variation, open a preview link, save test ideas and read your brand guidelines. Launching a test and approving QA stay in the Apex app.
Summary extracted from the README.
Apex MCP server: A/B testing for online shops from ChatGPT, Claude and Cursor
Apex by DRIP is an A/B testing platform for online shops that predicts which tests will win before they go live, built on one of the largest A/B test databases in e-commerce.
This package is the Apex MCP server. It lets an AI assistant work with your Apex A/B tests through the Model Context Protocol: list your tests and read their results, create a draft test with a conversion goal, write and build a variation, open a preview link, save test ideas and read your brand guidelines. Launching a test and approving QA stay in the Apex app.
- Website: https://www.drip-apex.com
- Docs: https://docs.drip-apex.com
- MCP setup guide: https://docs.drip-apex.com/docs/mcp/install-configure
- Tool reference: https://docs.drip-apex.com/docs/mcp/tool-reference
The hosted /api/mcp connector exposes 60 individually reviewed tools. The qa_* QA toolkit, apply_integration_recipe, list_form_sessions and domain purchasing (register_landing_page_domain) are available only through local stdio MCP (or the CLI), for every hosted client. The typed QA checklist tools, run_qa, request_launch, page inspection and screenshots remain hosted.
Connect without installing anything (recommended)
Apex runs a hosted MCP server at https://app.drip-apex.com/api/mcp (Streamable HTTP, OAuth). You sign in with your Apex account, pick the organization and shop, and approve the permissions. No API key, no local install.
Claude (claude.ai and Claude Desktop): Settings, Connectors, Add custom connector, enter https://app.drip-apex.com/api/mcp, then Connect and sign in to Apex.
Claude Code:
claude mcp add --transport http apex https://app.drip-apex.com/api/mcp
Then run /mcp in Claude Code and authenticate Apex.
ChatGPT: turn on Developer mode (Settings, Security and login), add a plugin named Apex with the MCP URL https://app.drip-apex.com/api/mcp and OAuth authentication, then sign in to Apex. The Apex listing in the ChatGPT directory is not published yet.
Codex:
codex mcp add apex --url https://app.drip-apex.com/api/mcp
codex mcp login apex
Cursor: add this to .cursor/mcp.json or the global Cursor MCP config, then sign in when Cursor asks:
{
"mcpServers": {
"apex": {
"url": "https://app.drip-apex.com/api/mcp"
}
}
}
Then ask your assistant: "List my Apex A/B tests and show the results of the latest one."
The hosted connector receives a scoped Apex key valid for 30 days and never sees your password. Revoke it in Apex under Settings, Account, CLI keys.
Run it locally with npm
Use this package when your MCP client only supports local (stdio) servers, or when you automate with an API key.
APEX_API_KEY=apx_your_key_here npx -y @drip-apex/mcp-server
MCP client config (Claude Desktop, Claude Code .mcp.json, Cursor):
{
"mcpServers": {
"apex": {
"command": "npx",
"args": ["-y", "@drip-apex/mcp-server"],
"env": {
"APEX_API_KEY": "apx_your_key_here"
}
}
}
}
If you already ran apex login with the Apex CLI on the same machine, you can leave out env: the server reads the saved credential.
Credentials
The server resolves credentials in this order (legacy DRIP_API_KEY / DRIP_BASE_URL remain working fallbacks): APEX_API_KEY, the saved user key, then the saved shop key in ~/.drip/credentials.json. Both user keys (apx_uk_…) created by apex login and shop keys are supported. For a user key, select context with DRIP_ORG and DRIP_SHOP, or persist it with apex use; environment context overrides persisted context. APEX_BASE_URL applies to an environment key and defaults to https://app.drip-apex.com.
APEX_API_KEY needs @drip-apex/mcp-server 0.2.0 or newer; on 0.1.3 set DRIP_API_KEY instead.
Tools
list_experimentsget_experimentget_resultsupdate_experiment— rename or replace targeting on a draft through the v1 PATCH.create_experimentlist_variation_filesread_variation_filewrite_variation_filebuild_variationpause_experimentcomplete_experimentget_idealist_ideascreate_idealist_goalsget_brand_contextqa_arm_links— read-only links for every live arm on up to eight named pages, with URL targeting and signing status; available inqaandqa-readwithshops:read. Information only, not QA evidence. The forced arm lives in one per-store cookie shared by all tabs, so two tabs on one store show the last arm opened. Example:{"experiment_id":"<id>","arms":["all"],"pages":["/products/<handle>?variant=<id>"]}.generate_preview_urlcreate_preview_sessionget_runtime_settingsset_data_layer_triggersapply_integration_recipediscover_tracking_schemacreate_landing_page,pull_landing_page,plan_landing_page,apply_landing_page,preview_landing_page,deploy_landing_page,list_landing_page_versions,rollback_landing_page,create_landing_page_experiment(pages built outside Apex; see https://docs.drip-apex.com/docs/landing-pages/build-and-deploy)list_landing_page_domains,claim_landing_page_domain,check_landing_page_domain,remove_landing_page_domainregister_landing_page_domainis local stdio only. The hosted connector used by ChatGPT, Claude and other remote clients cannot quote or purchase domains.
Write checkout messages with write_variation_file to src/mutations.json, using [{ "action": "checkoutBlock", "checkoutBlock": { "heading": "Free returns for 30 days" } }]. The MCP server has no filesystem tools; its variation authoring tools use the workspace layout. Each message arm's QA checkout and launch happen in the Apex dashboard.
Full tool reference: https://docs.drip-apex.com/docs/mcp/tool-reference
Local development
npm --prefix packages/mcp-server install
npm --prefix packages/mcp-server run build
node packages/mcp-server/dist/server.js
Usage telemetry
Starting with MCP server 0.5.0, local tool calls send best-effort usage records to Apex. Hosted connector calls are recorded by the remote server. Records include the tool name, duration, outcome, API call count, first error status/code/request ID and redacted route, package version, argument names, and authenticated account/shop context. Argument values, variation file contents, and API keys are never included in usage records.
Set APEX_TELEMETRY=0 in the local MCP server's environment to disable usage telemetry. Local beacons are also disabled under NODE_ENV=test, have an 800 ms timeout, and cannot change tool results. The environment opt-out applies to the local server; hosted connector calls retain their server-side usage records and audit entries.
Operators can use npm run cli-usage -- --client apex-mcp for local calls or --client apex-mcp-remote for hosted calls. The report separates clients in its people, commands, versions, and failures sections.
Tools declare read-only and destructive hints so MCP clients can group approvals. Setting data layer triggers, applying integration recipes, writing variation files, building variations, pausing experiments, and completing experiments are destructive because they can replace existing state. Creating experiments, ideas, and preview sessions is non-destructive. These hints do not change API permissions.
Landing-page bundle limits: at most 300 files and 100 MB per version. Apex hosts
MP4 and WebM directly, up to 50 MB per video; non-video files stay capped at
3 MB. The CLI handles direct multipart Worker uploads automatically through
filesystem/upload-grant (15-minute grants binding shop, page, base version,
path, size and SHA-256). Upload confirmation precedes manifest recording;
apply/deploy refuse missing or corrupted large videos. Video byte ranges and
version storage preserve playback and rollback. No transcoding or HLS/DASH.
Forms analytics tools: list_forms, get_form_summary, get_form_fields, get_form_field, get_form_errors, and list_form_sessions mirror the shop-scoped v1 forms reads. They accept UTC range, experiment split, device/country filters and include_qa/include_removed (0 or 1). Field detail requires identity; all but the list require key. Sessions also accept outcome, field, replay filter, limit and cursor. These read-only tools expose identity paths and metrics, never entered values. Analytics outages remain errors.
Measure an existing browser page
Use qa_instruments_script first among QA tools when your browser agent already has the test page open. It returns a self-contained expression, SHA-256, effective config and recipes for Claude in Chrome, Playwright MCP, agent-browser-runtime and Chrome DevTools MCP. Run twice: install, use the page, collect. Set wrap: "function" for browser_evaluate or evaluate_script. The script makes no requests.
The CLI equivalent is apex qa instruments script --experiment <id> | pbcopy. Post collected JSON with apex qa evidence add --experiment <id> --from-script observation.json. Evidence is always reported, lane local, and never an approval or launch gate. Local-lane guide.