Integrate ABlyftReference

MCP server

Connect AI assistants such as Claude, ChatGPT or Cursor to ABlyft with the Model Context Protocol.

The ABlyft MCP server lets an AI assistant work with your ABlyft account on your behalf. Through the Model Context Protocol (MCP), an open standard for connecting assistants to tools, you can ask the assistant to list experiments, create an experiment with a variation, change its status, or explain its results.

What you need

  • An ABlyft user with access to at least one team.
  • An MCP-compatible assistant, for example Claude Desktop, Cursor or Windsurf (the app lists these as examples), or ChatGPT.

The assistant can do what your role allows. For example, a viewer cannot create experiments. See Roles & permissions.

Connect an assistant

  1. In ABlyft, open your personal settings and go to MCP Connections.

  2. Copy the MCP Server URL shown there. For the hosted app it is:

    https://app.ablyft.com/mcp
  3. Add this URL as a custom connector or MCP server in your assistant.

  4. When the assistant asks, sign in to ABlyft and authorize the connection (OAuth).

  5. The client now appears in the table under MCP Connections.

Typical menus in the assistants:

AssistantWhere
ClaudeSettings → Connectors → Add custom connector. Name it ABlyft, enter the URL and press Connect.
ChatGPTSettings → Plugins → MCPs tab. Name it ABlyft, choose type Streamable HTTP, enter the URL and press Authenticate.

The menu names depend on the version of the assistant and may change. Refer to the documentation of your assistant for details, and use other clients the same way: they only need the server URL.

Manage and revoke connections

The table under MCP Connections shows the Client, its Scopes, when it was Connected and when it Expires. Use Revoke (or select several rows to revoke them at once) to cut access. The assistant then has to be authorized again.

The assistant acts as you

Everything the assistant does is done with your user and is visible like your own changes. Check what it plans to do, especially before starting or pausing an experiment. Revoke connections you no longer use.

Available tools

The server is called "Ablyft Server". It offers these tools (shown with the names your assistant sees):

AreaToolsPurpose
Teams and projectslist-teams-tool, list-projects-tool, show-project-tool, publish-project-toolTeams you can access and projects (optionally filtered by team); the settings of a project (snippet, activation, storage, environments); rebuild the live snippet (details)
Environmentslist-environments-toolEnvironments of a project, for example stores or languages, with the default environment (details)
Experimentslist-experiments-tool, show-experiment-tool, create-experiment-tool, edit-experiment-tool, clone-experiment-tool, delete-experiment-toolList (filter by project, status and tags, search by name, page through results), show details, create a draft experiment, edit name, description, sample URL, tags and environments, clone an experiment as a draft, delete a draft (details). Experiences of personalizations are not listed.
Personalizationslist-personalizations-tool, show-personalization-tool, create-personalization-tool, edit-personalization-tool, update-personalization-status-tool, archive-personalization-tool, un-archive-personalization-tool, create-experience-tool, reorder-experiences-toolList personalizations and show one with its pages, goals and experiences by priority; create a personalization; edit name, description, example URL and add or remove pages and goals; change the status of all experiences; archive and restore; add experiences and change their order (details)
Statusupdate-experiment-status-tool, archive-experiment-tool, un-archive-experiment-toolMove an experiment between draft, preview, running and paused; archive and restore one or several experiments at once
Variationscreate-variation-tool, edit-variation-tool, delete-variation-toolCreate, edit or delete variations, including CSS and JavaScript. For new variations, the assistant can describe the change and have an AI agent generate the code.
Pageslist-pages-tool, find-pages-by-url-tool, create-page-tool, edit-page-tool, clone-page-tool, delete-page-toolPages with their URL targeting rules; find the pages that match a URL (details)
Audienceslist-audiences-tool, create-audience-tool, edit-audience-tool, clone-audience-tool, delete-audience-toolVisitor segments and their rules
Goalslist-goals-tool, create-goal-tool, edit-goal-tool, clone-goal-tool, delete-goal-toolWhat you measure
Attach and detachattach-page-to-experiment-tool, detach-page-from-experiment-tool, attach-audience-to-experiment-tool, detach-audience-from-experiment-tool, attach-goal-to-experiment-tool, detach-goal-from-experiment-toolConnect pages, audiences and goals with experiments, one or several in one call
Scheduleslist-schedules-tool, create-schedule-tool, edit-schedule-tool, delete-schedule-toolStart and end times and end conditions of experiments
Exclusion groupslist-exclusion-groups-tool, show-exclusion-group-tool, create-exclusion-group-tool, edit-exclusion-group-tool, delete-exclusion-group-tool, add-experiment-to-exclusion-group-tool, remove-experiment-from-exclusion-group-toolList and show groups with their experiments and traffic shares; create, edit (name, description, traffic) and delete groups; add or remove experiments (details)
Resultsshow-experiment-results-tool, interpret-experiment-results-toolPer-goal statistics, and an AI interpretation

The assistant picks the tools it needs. You describe what you want in plain language, for example "Create an experiment on the product page that makes the buy button green, with a click goal".

AI credits

The interpretation of results (interpret-experiment-results-tool) uses an AI agent and consumes AI credits. The server's instructions tell the assistant to ask you first.

Environments

Environments control on which site an experiment runs, for example in which store or language version. list-environments-tool lists the environments of a project and marks the default environment.

  • create-experiment-tool and edit-experiment-tool accept the environments of the experiment. When editing, the list you give replaces the current environments.
  • Without environments, a new experiment gets the default environment of the project, if one is set.
  • An experiment without any environment runs in all environments.

Example prompts:

  • "Which environments does the project Shop have?"
  • "Create an experiment Free Shipping Banner that only runs in the environments Store DE and Store AT."

Find the page for a URL

find-pages-by-url-tool returns the pages whose URL rules match a URL, for example a product URL of your shop. It checks the rules the same way as the snippet: Include and Exclude rules, all match types, and preview parameters of ABlyft are ignored. For each matching page you get:

  • the rule that matched,
  • the running and preview experiments that use the page,
  • a note if the page also has JavaScript rules. These can only be checked in the browser.

The most specific match comes first: Exact, then Simple, Substring and Regex. Pages that an Exclude rule removes are listed separately, so you can see why a page does not match. Pages without URL rules match every URL and are only counted, unless the assistant asks for them.

Example prompt: "Which page do I use for https://shop.example.com/product/123?"

Publishing

Changes go live the same way as in the app. Starting, pausing or archiving an experiment and changing its variations, pages, goals, audiences or environments publish the project automatically. This also applies when the assistant attaches or detaches pages, goals and audiences of a running experiment, and to changes of an active personalization (its pages, goals, status and the order of its experiences).

publish-project-tool rebuilds the live snippet on demand. You only need it to force a new publication. The build runs in the background; visitors receive the changes after the publishing delay.

Deleting

Deleting is limited, so that no results get lost:

  • delete-experiment-tool deletes only draft experiments without participants, for example a test created by mistake. Archive all other experiments.
  • delete-variation-tool deletes a variation only if the experiment is not running or in preview and has no participants. The last variation cannot be deleted. The traffic is split again across the remaining variations.
  • delete-page-tool, delete-goal-tool and delete-audience-tool delete only pages, goals and audiences that no experiment uses. A page that a goal uses cannot be deleted either. Detach them first.
  • Personalizations cannot be deleted, archive them with archive-personalization-tool. The holdback of an experience cannot be deleted either.

Exclusion groups

An exclusion group makes several experiments of a project mutually exclusive: a visitor takes part in only one of them. The traffic share per experiment sets how visitors are split between them. The assistant can manage groups with the same rules as the app:

  • A group has at least 2 experiments, all from the project of the group. Each experiment can be in a group once. Archived experiments can be added, deleted ones cannot.
  • The traffic shares are whole numbers from 0 to 100 and add up to exactly 100 %.
  • The name of a group is unique in the project.

How the traffic is split:

  • If you give no shares, the traffic is split evenly: 50 / 50 for two experiments, 34 / 33 / 33 for three. Any remainder goes to the first experiments.
  • The same happens when you add or remove an experiment: the traffic is split evenly again across the experiments the group then has.
  • If you name the shares yourself, name them for every experiment the group will have.

Adding and removing experiments:

  • At least 2 experiments must stay in a group. To end a group, delete it.
  • Deleting a group does not change its experiments. They are only no longer mutually exclusive.

show-experiment-tool lists the groups of an experiment, together with its traffic share in each one. All roles can view groups; Member, Admin and Owner can change them.

Example prompts:

  • "Show me all exclusion groups in the project Shop."
  • "Create an exclusion group Checkout tests with the experiments Checkout Button and Checkout Steps."
  • "Create an exclusion group PDP with experiment A at 70 % and experiment B at 30 %."
  • "Add Local Test to the group Checkout tests." (The traffic is split again, for example 34 / 33 / 33.)
  • "Change the split of the group PDP to 50 / 50."
  • "In which exclusion groups is experiment X, and with how much traffic?"

Changes go live right away

Every change to a group publishes the project automatically, just like a change in the app. The changes show up in the Activity Log of the group.

Personalizations

A personalization shows different audiences a tailored version of the same pages. It holds the pages, goals, example URL and status; its experiences are checked by priority, and only the first matching experience is delivered. Each experience has a holdback (no changes) that measures the impact.

The assistant works with personalizations like this:

  • show-personalization-tool returns the pages, goals and the experiences in the order of their priority, with their audiences, environments, variations (holdback and traffic) and participants.
  • create-personalization-tool creates a draft with name, example URL and optionally pages and goals. Without goals, the default goals of the project are used. edit-personalization-tool replaces, adds or removes pages and goals; the first goal is the primary goal. Changes are applied to all experiences.
  • create-experience-tool adds an experience with name, description and audiences. It gets the lowest priority, the holdback (5 %) and the default environment of the project.
  • reorder-experiences-tool needs the IDs of all experiences in the new order. The first one is checked first.
  • update-personalization-status-tool sets the status of the personalization and of all its experiences. Starting it requires at least one page, goal and experience, and a variation besides the holdback in every experience.

An experience is an experiment. Use its ID with the experiment tools for everything that belongs to the experience: variations (create-variation-tool and the others), audiences (attach-audience-to-experiment-tool, ...), environments (edit-experiment-tool), results, cloning and deleting. show-experiment-tool shows the personalization and the priority of an experience.

What the experiment tools reject for experiences, because the personalization controls it:

Not possible for an experienceUse instead
Attach or detach pages and goals, change the example URLedit-personalization-tool
Archive and unarchivearchive-personalization-tool, un-archive-personalization-tool
Any status change except pausing it, or setting it to the status of its active personalizationupdate-personalization-status-tool
Tags, schedules and exclusion groupsnot available for experiences
Delete the holdback or change which variation is the baselinenot possible

Example prompts:

  • "Create a personalization Homepage Greeting on the home page with the goal Purchase."
  • "Add an experience Returning customers for the audience Logged-in customers, with a welcome banner."
  • "Move the experience New visitors to the top."
  • "Start the personalization Homepage Greeting."
  • "How does the experience Returning customers perform against its holdback?"

Limits to know

  • Status changes follow the same rules as in the app: for example, an experiment needs at least one variation, page and goal before it can start (details). If a change is not possible, the tool returns the reason.
  • While the Multi-Armed Bandit is enabled, edit-variation-tool cannot change the traffic of a variation and returns an error. Disable the bandit in the app first.
  • Lists contain up to 50 entries. list-experiments-tool returns 50 experiments by default and up to 200 per call, and pages through the rest; the assistant can also search by name or ask for a compact list.
  • If you have access to several projects, the assistant has to tell the tool which project to use.

Next steps

On this page