A/B Test Sample Size Calculator MCP is an MCP server published by io.github.theluckystrike, hosted at ab-test-sample-size-calculator-mcp.lipmichal.workers.dev. When last checked on 2026-11-24 it was working: it answers and lists its tools. It declares 5 tools, including calculate_sample_size, estimate_test_duration, test_ab_significance, fisher_exact_test, check_peeking_risk.
Exact A/B test sample size, duration, z-test, chi-square, Fisher-Freeman-Halton and peeking risk.
489 connections through 5 shared values. Tap any node.
Exact sample size per variant for an A/B test on a conversion rate (two independent proportions): baseline rate, minimum detectable effect (relative or absolute), alpha, power, one or two-sided, several variants with optional Bonferroni, and unequal allocation. Uses the pooled/unpooled normal formula (same as R power.prop.test) and also reports the figure Evan Miller's calculator gives, so the two can be reconciled.
| Parameter | Type | Description |
|---|---|---|
| mde * | number | Minimum detectable effect. Relative by default (0.10 = a 10% lift); set mde_type "absolute" for percentage points as a proportion (0.01 = 1 point). |
| alpha | number | Significance level, default 0.05. |
| power | number | Statistical power, default 0.80. |
| sided | string | two-sided (default) or one-sided test. |
None yet. Changes appear after a server's second daily check.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
| mde_type | string | relative (default) or absolute. |
| variants | integer | Number of arms including control. 2 = A/B, 3 = A/B/C. |
| bonferroni | boolean | Split alpha across the variant-vs-control comparisons (Bonferroni). |
| baseline_rate * | number | Control conversion rate as a proportion, for example 0.042 for 4.2%. |
| allocation_ratio | number | Users in each variant per user in control. 1 = even split. |
{
"name": "calculate_sample_size",
"title": "A/B test sample size calculator",
"description": "Exact sample size per variant for an A/B test on a conversion rate (two independent proportions): baseline rate, minimum detectable effect (relative or absolute), alpha, power, one or two-sided, several variants with optional Bonferroni, and unequal allocation. Uses the pooled/unpooled normal formula (same as R power.prop.test) and also reports the figure Evan Miller's calculator gives, so the two can be reconciled.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"baseline_rate",
"mde"
],
"properties": {
"mde": {
"type": "number",
"description": "Minimum detectable effect. Relative by default (0.10 = a 10% lift); set mde_type \"absolute\" for percentage points as a proportion (0.01 = 1 point).",
"exclusiveMinimum": 0
},
"alpha": {
"type": "number",
"default": 0.05,
"description": "Significance level, default 0.05.",
"exclusiveMaximum": 0.5,
"exclusiveMinimum": 0
},
"power": {
"type": "number",
"default": 0.8,
"description": "Statistical power, default 0.80.",
"exclusiveMaximum": 1,
"exclusiveMinimum": 0.5
},
"sided": {
"enum": [
"two",
"one"
],
"type": "string",
"default": "two",
"description": "two-sided (default) or one-sided test."
},
"mde_type": {
"enum": [
"relative",
"absolute"
],
"type": "string",
"default": "relative",
"description": "relative (default) or absolute."
},
"variants": {
"type": "integer",
"default": 2,
"maximum": 20,
"minimum": 2,
"description": "Number of arms including control. 2 = A/B, 3 = A/B/C."
},
"bonferroni": {
"type": "boolean",
"default": false,
"description": "Split alpha across the variant-vs-control comparisons (Bonferroni)."
},
"baseline_rate": {
"type": "number",
"description": "Control conversion rate as a proportion, for example 0.042 for 4.2%.",
"exclusiveMaximum": 1,
"exclusiveMinimum": 0
},
"allocation_ratio": {
"type": "number",
"default": 1,
"maximum": 10,
"description": "Users in each variant per user in control. 1 = even split.",
"exclusiveMinimum": 0
}
},
"additionalProperties": false
},
"annotations": {
"title": "Sample size",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}How many days an A/B test must run: from a known sample size per variant, or from baseline rate and MDE (computed as in calculate_sample_size), plus daily visitors and the share of traffic in the test. Returns exact days and the recommended whole weeks (to cover weekday effects).
| Parameter | Type | Description |
|---|---|---|
| mde | number | Minimum detectable effect (relative by default). |
| alpha | number | Significance level, default 0.05. |
| power | number | |
| mde_type | string | one of ["relative","absolute"] |
| variants | integer | Number of arms including control. |
| baseline_rate | number | Control conversion rate, for computing the sample size. |
| traffic_share | number | Fraction of those visitors entered into the test, default 1. |
| daily_visitors * | number | Eligible visitors per day across the whole site or page. |
| sample_size_per_variant | integer | Known users per arm. If omitted, give baseline_rate and mde. |
{
"name": "estimate_test_duration",
"title": "A/B test duration estimator",
"description": "How many days an A/B test must run: from a known sample size per variant, or from baseline rate and MDE (computed as in calculate_sample_size), plus daily visitors and the share of traffic in the test. Returns exact days and the recommended whole weeks (to cover weekday effects).",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"daily_visitors"
],
"properties": {
"mde": {
"type": "number",
"description": "Minimum detectable effect (relative by default).",
"exclusiveMinimum": 0
},
"alpha": {
"type": "number",
"default": 0.05,
"description": "Significance level, default 0.05.",
"exclusiveMaximum": 0.5,
"exclusiveMinimum": 0
},
"power": {
"type": "number",
"default": 0.8,
"exclusiveMaximum": 1,
"exclusiveMinimum": 0.5
},
"mde_type": {
"enum": [
"relative",
"absolute"
],
"type": "string",
"default": "relative"
},
"variants": {
"type": "integer",
"default": 2,
"maximum": 20,
"minimum": 2,
"description": "Number of arms including control."
},
"baseline_rate": {
"type": "number",
"description": "Control conversion rate, for computing the sample size.",
"exclusiveMaximum": 1,
"exclusiveMinimum": 0
},
"traffic_share": {
"type": "number",
"default": 1,
"maximum": 1,
"description": "Fraction of those visitors entered into the test, default 1.",
"exclusiveMinimum": 0
},
"daily_visitors": {
"type": "number",
"description": "Eligible visitors per day across the whole site or page.",
"exclusiveMinimum": 0
},
"sample_size_per_variant": {
"type": "integer",
"description": "Known users per arm. If omitted, give baseline_rate and mde.",
"exclusiveMinimum": 0
}
},
"additionalProperties": false
},
"annotations": {
"title": "Test duration",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Is an A/B test result statistically significant? From visitors and conversions per group: two-proportion z-test (pooled), one or two-sided p-value, Wald confidence interval for the difference, relative lift, Pearson chi-square with and without Yates correction (R prop.test), Fisher exact p for the same 2x2 table, and a sample ratio mismatch (SRM) check against the planned split.
| Parameter | Type | Description |
|---|---|---|
| alpha | number | Significance level, default 0.05. |
| alternative | string | greater = variant converts better than control. |
| expected_split | number | Planned share of traffic in control, for the SRM check. Default 0.5. |
| control_visitors * | integer | |
| variant_visitors * | integer | |
| control_conversions * | integer | |
| variant_conversions * | integer |
{
"name": "test_ab_significance",
"title": "A/B test significance calculator",
"description": "Is an A/B test result statistically significant? From visitors and conversions per group: two-proportion z-test (pooled), one or two-sided p-value, Wald confidence interval for the difference, relative lift, Pearson chi-square with and without Yates correction (R prop.test), Fisher exact p for the same 2x2 table, and a sample ratio mismatch (SRM) check against the planned split.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"control_visitors",
"control_conversions",
"variant_visitors",
"variant_conversions"
],
"properties": {
"alpha": {
"type": "number",
"default": 0.05,
"description": "Significance level, default 0.05.",
"exclusiveMaximum": 0.5,
"exclusiveMinimum": 0
},
"alternative": {
"enum": [
"two-sided",
"greater",
"less"
],
"type": "string",
"default": "two-sided",
"description": "greater = variant converts better than control."
},
"expected_split": {
"type": "number",
"default": 0.5,
"description": "Planned share of traffic in control, for the SRM check. Default 0.5.",
"exclusiveMaximum": 1,
"exclusiveMinimum": 0
},
"control_visitors": {
"type": "integer",
"exclusiveMinimum": 0
},
"variant_visitors": {
"type": "integer",
"exclusiveMinimum": 0
},
"control_conversions": {
"type": "integer",
"minimum": 0
},
"variant_conversions": {
"type": "integer",
"minimum": 0
}
},
"additionalProperties": false
},
"annotations": {
"title": "Significance test",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Exact p-value for a contingency table of counts. 2x2: Fisher exact test (two-sided, greater or less, as R fisher.test). Larger r x c tables (for example 3 variants x converted/not, or 4 x 4 survey tables): Fisher-Freeman-Halton exact test by a network algorithm. Also returns Pearson chi-square and how many cells have expected counts below 5, so you can see when the chi-square approximation is unsafe.
| Parameter | Type | Description |
|---|---|---|
| table * | array | Rows of counts, for example [[12, 488], [25, 475]] (rows = groups, columns = outcomes). |
| alternative | string | One-sided options apply to 2x2 only; greater = odds ratio above 1. |
{
"name": "fisher_exact_test",
"title": "Fisher exact and Fisher-Freeman-Halton test",
"description": "Exact p-value for a contingency table of counts. 2x2: Fisher exact test (two-sided, greater or less, as R fisher.test). Larger r x c tables (for example 3 variants x converted/not, or 4 x 4 survey tables): Fisher-Freeman-Halton exact test by a network algorithm. Also returns Pearson chi-square and how many cells have expected counts below 5, so you can see when the chi-square approximation is unsafe.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"table"
],
"properties": {
"table": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "integer",
"minimum": 0
},
"maxItems": 12,
"minItems": 2
},
"maxItems": 12,
"minItems": 2,
"description": "Rows of counts, for example [[12, 488], [25, 475]] (rows = groups, columns = outcomes)."
},
"alternative": {
"enum": [
"two-sided",
"greater",
"less"
],
"type": "string",
"default": "two-sided",
"description": "One-sided options apply to 2x2 only; greater = odds ratio above 1."
}
},
"additionalProperties": false
},
"annotations": {
"title": "Exact test",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}What peeking does to an A/B test: the real false positive rate if you check a fixed-horizon test K times and stop at the first p < alpha (for example about 14% at 5 looks with alpha 0.05), and the Pocock and O'Brien-Fleming group sequential boundaries (z and nominal p per look) that keep the overall rate at alpha, for up to 10 equally spaced looks.
| Parameter | Type | Description |
|---|---|---|
| alpha | number | Significance level, default 0.05. |
| looks * | integer | How many times the result is checked, including the final look. Equally spaced. |
{
"name": "check_peeking_risk",
"title": "A/B test peeking and sequential testing risk",
"description": "What peeking does to an A/B test: the real false positive rate if you check a fixed-horizon test K times and stop at the first p < alpha (for example about 14% at 5 looks with alpha 0.05), and the Pocock and O'Brien-Fleming group sequential boundaries (z and nominal p per look) that keep the overall rate at alpha, for up to 10 equally spaced looks.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"looks"
],
"properties": {
"alpha": {
"type": "number",
"default": 0.05,
"description": "Significance level, default 0.05.",
"exclusiveMaximum": 0.5,
"exclusiveMinimum": 0
},
"looks": {
"type": "integer",
"maximum": 50,
"minimum": 1,
"description": "How many times the result is checked, including the final look. Equally spaced."
}
},
"additionalProperties": false
},
"annotations": {
"title": "Peeking risk",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Exact A/B test statistics: sample size for two proportions, test duration, two-proportion z-test and chi-square, Fisher exact and Fisher-Freeman-Halton r x c tests, and the false positive cost of peeking. Use these tools instead of mental arithmetic: inverse normal quantiles, exact hypergeometric sums and sequential boundaries are easy to get wrong by hand. Rates are proportions (4.2% = 0.042).
Names, descriptions and schemas were written by the server and are shown as data.
Shared addresses on big platforms (Cloudflare, Vercel and the like) put unrelated servers together; those are marked shared_infrastructure. A match is a pivot, not a link between operators.