Skip to content

MCP server

Versuch exposes a Model Context Protocol (MCP) server so an AI assistant can set up and manage experiments, pricing tables, and feature flags, and read usage, directly from your editor or chat. No dashboard needed.

https://versuch.ai/api/mcp
  • Auth: Authorization: Bearer vsk_live_… (your project secret management key)
  • Protocol: MCP 2024-11-05 over JSON-RPC (HTTP POST)
  • Server name: versuch

Add Versuch as a remote MCP server. Replace YOUR_SECRET_KEY with your vsk_live_… key.

mcp config
{
"mcpServers": {
"versuch": {
"url": "https://versuch.ai/api/mcp",
"headers": {
"Authorization": "Bearer YOUR_SECRET_KEY"
}
}
}
}

The server exposes 12 tools. Reads (list_*, get_*) are always available; the mutating tools are plan-gated (the free tier is watch-only).

ToolWhat it does
list_experimentsList all A/B experiments (status, goal, target selector, variants).
create_experimentCreate and (by default) activate an experiment. type element swaps a selector’s text, cta swaps a button’s label/link/colors, manual has no DOM effect (assign + emit goals yourself). 2–6 variants, one keyed control.
set_experiment_statusStart, pause, or stop an experiment by id (running / stopped / draft).
get_experiment_resultsPer-variant exposed / conversions / rate, uplift %, p-value, significance, and the winner.
list_pricing_tablesList pricing tables (payment cards) with status, slot, and card count.
create_pricing_tableCreate and (by default) activate a pricing table rendered into <div data-versuch-pricing="slot">. Standalone cards or A/B variants; a card may carry a Stripe price_id.
get_usageAccount event usage this billing period vs the plan limit, with a per-site breakdown.
get_install_snippetThe tracking <script> snippet and public ingest key for the project.
list_flagsList feature flags (key, name, type, tags, temporary, archived).
create_flagCreate a flag. boolean (default) is on/off; string / number / json are multivariate (supply variations). Created disabled in every environment.
set_flagEnable or disable a flag in one environment (default production) and republish to the edge. Use enabled: false as a kill switch.
  1. Add the config above to your MCP client (Claude Desktop, Claude Code, Cursor, …) with your vsk_live_… key.

  2. Ask in natural language, e.g.:

    Create an A/B test on my homepage hero headline. Test “Ship 2x faster” against the current copy, and use the signup event as the goal.

    The assistant calls create_experiment with type: "element", your selector, and two variants, then activates it.

  3. Follow up to read results:

    How is the hero headline test doing?

    The assistant calls get_experiment_results and reports per-variant rate, uplift, and significance.

For installing the tracker and general integration guidance aimed at AI coding agents, see llms.txt.