Setup MCP Connection

Connect the ABMeter MCP server to your MCP client to manage experiments through natural conversation

What is an MCP Server?

MCP (Model Context Protocol) is a standard that allows MCP clients to connect to external services and tools. By connecting the ABMeter MCP server to your MCP client, you enable it to:

  • Help you design and launch experiments through conversation
  • Create parameters, variants, and metrics automatically
  • Analyze running experiments and provide insights
  • Manage feature flags and experiment lifecycles
  • Navigate the web interface for confirmations

Think of it as giving your MCP client direct access to your ABMeter account, so it can help you with experimentation tasks without manual API calls or configuration.

How to Connect

Connect the ABMeter MCP server to your MCP client. Choose the method based on what your client supports.

Streamable HTTP

Recommended (if your MCP client supports Streamable HTTP)

Server URL:

https://mcp.abmeter.ai

Example: Adding with Claude Code

claude mcp add --transport http abmeter https://mcp.abmeter.ai
  • Simple setup - just add URL to your MCP client
  • OAuth authentication via browser
  • Tokens refresh automatically
  • Secure connection with temporary credentials

STDIO Transport

Alternative (almost every MCP client supports STDIO transport)

Step 2: MCP Configuration

{
  "mcpServers": {
    "abmeter": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.abmeter.ai",
        "--header",
        "Authorization: Bearer ${ABMETER_API_TOKEN}",
        "--header",
        "X-Mcp-Client-Name: your-mcp-client-name"
      ],
      "env": {
        "ABMETER_API_TOKEN": "api-xxx...xxx"
      }
    }
  }
}

Replace api-xxx...xxx with your API token and optionally customize your-mcp-client-name

  • Uses mcp-remote proxy for secure connection
  • API key authentication with your private token
  • Requires Node.js
  • Manual token management
Detailed Comparison
Feature Streamable HTTP STDIO Transport
Setup complexity Simple (URL only) Manual configuration
Authentication OAuth browser flow API token required
Token management Automatic refresh Manual (permanent)
Security OAuth authentication mcp-remote + API key
Requirements Modern MCP client Node.js + mcp-remote

What's Next?

Once connected, you can start using your MCP client to manage experiments. Try these commands to get started (Claude Code examples):

/mcp

View all available MCP prompts

/abmeter:welcome (MCP)

Get an introduction to ABMeter

/abmeter:design_and_launch_experiment (MCP)

Design and launch your first experiment

"Help me test if a green button converts better than blue"

Natural conversation works too

For critical operations, you'll want to link your MCP client to the browser. This enables human-in-the-loop confirmations for launching experiments, stopping them, and other important actions.

Learn how to setup browser link →

Related Documentation

Connected MCP Clients

View and manage MCP clients connected to your ABMeter account

Setup Browser Link

Enable human-in-the-loop confirmations for critical operations

Quick Start Guide

Complete guide to getting ABMeter running in your application