Paid Predictive & Customer Analytics API via x402. Unpaid tool calls return 402.
Maintain this server? Claim it
Call this server's tools from your browser. Nothing to install.
Requests go through mcptry because browsers can't call most MCP servers directly. Header values are sent to the server for that request only and are never stored or logged.
Tool list from our last check. Connect live to refresh it.
Detect mean or mean-variance changepoints with PELT, BIC/AIC or custom penalties, and MAD-based noise scaling. Price $0.03 USDC. POST /api/v1/predictive-analytics/changepoint-detect. An unpaid call returns the x402 payment terms and does not run.
This tool isn't marked read-only, so it may change something on the server or in an account you connected.
Pick your client. Values in capitals, like YOUR_TOKEN, are yours to fill in.
Run in a terminal
claude mcp add --transport http predictive-analytics https://www.brainiac.software/mcp/predictive-analytics
Detect mean or mean-variance changepoints with PELT, BIC/AIC or custom penalties, and MAD-based noise scaling. Price $0.03 USDC. POST /api/v1/predictive-analytics/changepoint-detect. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| model | string | |
| values* | array | |
| penalty | any | |
| minSegment | integer |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"values"
],
"properties": {
"model": {
"enum": [
"mean",
"meanvar"
],
"type": "string",
"default": "mean"
},
"values": {
"type": "array",
"items": {
"type": "number"
},
"maxItems": 100000,
"minItems": 4
},
"penalty": {
"anyOf": [
{
"enum": [
"bic",
"aic"
],
"type": "string"
},
{
"type": "number",
"exclusiveMinimum": 0
}
],
"default": "bic"
},
"minSegment": {
"type": "integer",
"default": 2,
"maximum": 10000,
"minimum": 1
}
}
}Compute ROC-AUC, average precision, Brier score, confusion at a threshold, Youden-optimal threshold and equal-width calibration bins from binary labels and scores. Price $0.02 USDC. POST /api/v1/predictive-analytics/classification-metrics. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| labels* | array | |
| scores* | array | |
| threshold | number | |
| calibrationBins | integer |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"labels",
"scores"
],
"properties": {
"labels": {
"type": "array",
"items": {
"anyOf": [
{
"type": "number",
"const": 0
},
{
"type": "number",
"const": 1
}
]
},
"maxItems": 1000000,
"minItems": 2
},
"scores": {
"type": "array",
"items": {
"type": "number"
},
"maxItems": 1000000,
"minItems": 2
},
"threshold": {
"type": "number",
"default": 0.5,
"maximum": 1,
"minimum": 0
},
"calibrationBins": {
"type": "integer",
"default": 10,
"maximum": 100,
"minimum": 2
}
}
}Fit BG/NBD purchase frequency and Gamma-Gamma spend models, then return P(alive), expected purchases over a horizon, expected value and undiscounted CLV per customer. Price $0.05 USDC. POST /api/v1/predictive-analytics/clv-bg-nbd. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| margin | number | |
| horizon | number | |
| customers* | array | |
| minRepeatCustomers | integer |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"customers"
],
"properties": {
"margin": {
"type": "number",
"default": 1,
"exclusiveMinimum": 0
},
"horizon": {
"type": "number",
"default": 10,
"exclusiveMinimum": 0
},
"customers": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"frequency",
"recency",
"T"
],
"properties": {
"T": {
"type": "number",
"exclusiveMinimum": 0
},
"id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"recency": {
"type": "number",
"minimum": 0
},
"frequency": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"monetaryValue": {
"type": "number",
"exclusiveMinimum": 0
}
}
},
"maxItems": 100000,
"minItems": 20
},
"minRepeatCustomers": {
"type": "integer",
"default": 10,
"maximum": 100000,
"minimum": 1
}
}
}Build day/week/month cohort retention in classic or rolling mode from signup and activity dates, with partial-period flags and a size-weighted curve. Price $0.03 USDC. POST /api/v1/predictive-analytics/cohort-retention. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| asOf* | string | |
| mode | string | |
| events* | array | |
| period | string | |
| timezone | string |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"events",
"asOf"
],
"properties": {
"asOf": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"mode": {
"enum": [
"classic",
"rolling"
],
"type": "string",
"default": "classic"
},
"events": {
"type": "array",
"items": {
"type": "object",
"required": [
"userId",
"signup",
"activity"
],
"properties": {
"signup": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"userId": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"activity": {
"type": "array",
"items": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"maxItems": 10000,
"minItems": 1
}
}
},
"maxItems": 200000,
"minItems": 1
},
"period": {
"enum": [
"day",
"week",
"month"
],
"type": "string",
"default": "month"
},
"timezone": {
"type": "string",
"default": "UTC",
"maxLength": 64,
"minLength": 1
}
}
}Pairwise Pearson/Spearman/Kendall correlations with p-values, optional partial correlations, and Holm/BH/Bonferroni adjustment across pair-method tests. Price $0.03 USDC. POST /api/v1/predictive-analytics/correlation-analysis. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| rows* | array | |
| adjust | string | |
| columns* | array | |
| methods | array | |
| partial | array |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"columns",
"rows"
],
"properties": {
"rows": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": [
"number",
"null"
]
}
},
"maxItems": 50000,
"minItems": 1
},
"adjust": {
"enum": [
"none",
"holm",
"bh",
"bonferroni"
],
"type": "string",
"default": "none"
},
"columns": {
"type": "array",
"items": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"maxItems": 100,
"minItems": 1
},
"methods": {
"type": "array",
"items": {
"enum": [
"pearson",
"spearman",
"kendall"
],
"type": "string"
},
"default": [
"pearson"
],
"maxItems": 3,
"minItems": 1
},
"partial": {
"type": "array",
"items": {
"type": "object",
"required": [
"x",
"y"
],
"properties": {
"x": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"y": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"given": {
"type": "array",
"items": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"default": [],
"maxItems": 20
}
}
},
"maxItems": 100
}
}
}Maximise the Cox partial likelihood with Efron or Breslow ties, return hazard ratios with SEs, concordance, and a rank-time proportional-hazards check. Price $0.05 USDC. POST /api/v1/predictive-analytics/cox-regression. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| ties | string | |
| subjects* | array | |
| confidence | number |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"subjects"
],
"properties": {
"ties": {
"enum": [
"efron",
"breslow"
],
"type": "string",
"default": "efron"
},
"subjects": {
"type": "array",
"items": {
"type": "object",
"required": [
"time",
"event",
"covariates"
],
"properties": {
"time": {
"type": "number",
"exclusiveMinimum": 0
},
"event": {
"anyOf": [
{
"type": "number",
"const": 0
},
{
"type": "number",
"const": 1
}
]
},
"covariates": {
"type": "object",
"propertyNames": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"additionalProperties": {
"type": "number"
}
}
}
},
"maxItems": 100000,
"minItems": 2
},
"confidence": {
"type": "number",
"default": 0.95,
"exclusiveMaximum": 1,
"exclusiveMinimum": 0
}
}
}Density-based clustering with Euclidean or haversine distance, core/border/noise labelling, and an optional k-distance knee suggestion for eps. Price $0.04 USDC. POST /api/v1/predictive-analytics/dbscan-cluster. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| eps* | number | |
| rows* | array | |
| metric | string | |
| columns* | array | |
| kDistance | boolean | |
| minSamples | integer |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"columns",
"rows",
"eps"
],
"properties": {
"eps": {
"type": "number",
"exclusiveMinimum": 0
},
"rows": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": [
"number",
"null"
]
}
},
"maxItems": 50000,
"minItems": 1
},
"metric": {
"enum": [
"euclidean",
"haversine"
],
"type": "string",
"default": "euclidean"
},
"columns": {
"type": "array",
"items": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"maxItems": 100,
"minItems": 1
},
"kDistance": {
"type": "boolean",
"default": false
},
"minSamples": {
"type": "integer",
"default": 5,
"maximum": 1000,
"minimum": 2
}
}
}Fit a classification or regression CART tree with depth and leaf limits, readable rules, feature importance and optional predictions. Price $0.03 USDC. POST /api/v1/predictive-analytics/decision-tree-train. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| rows* | array | |
| task* | string | |
| target* | array | |
| columns* | array | |
| predict | array | |
| maxDepth | integer | |
| minSamplesLeaf | integer |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"task",
"columns",
"rows",
"target"
],
"properties": {
"rows": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": [
"number",
"null"
]
}
},
"maxItems": 50000,
"minItems": 2
},
"task": {
"enum": [
"classification",
"regression"
],
"type": "string"
},
"target": {
"type": "array",
"items": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"maxLength": 64,
"minLength": 1
}
]
},
"maxItems": 50000,
"minItems": 2
},
"columns": {
"type": "array",
"items": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"maxItems": 100,
"minItems": 1
},
"predict": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "number"
}
},
"maxItems": 10000
},
"maxDepth": {
"type": "integer",
"default": 5,
"maximum": 20,
"minimum": 1
},
"minSamplesLeaf": {
"type": "integer",
"default": 1,
"maximum": 1000,
"minimum": 1
}
}
}Estimate group Kaplan-Meier curves with Greenwood log-log confidence intervals, median survival, survival at chosen times, and a multi-group log-rank test. Price $0.04 USDC. POST /api/v1/predictive-analytics/kaplan-meier-survival. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| at | array | |
| subjects* | array | |
| confidence | number |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"subjects"
],
"properties": {
"at": {
"type": "array",
"items": {
"type": "number",
"exclusiveMinimum": 0
},
"maxItems": 1000
},
"subjects": {
"type": "array",
"items": {
"type": "object",
"required": [
"time",
"event"
],
"properties": {
"time": {
"type": "number",
"exclusiveMinimum": 0
},
"event": {
"anyOf": [
{
"type": "number",
"const": 0
},
{
"type": "number",
"const": 1
}
]
},
"group": {
"type": "string",
"default": "all",
"maxLength": 64,
"minLength": 1
}
}
},
"maxItems": 100000,
"minItems": 2
},
"confidence": {
"type": "number",
"default": 0.95,
"exclusiveMaximum": 1,
"exclusiveMinimum": 0
}
}
}Lloyd k-means with k-means++ seeding, optional standardisation, nInit restarts, silhouette and inertia for a k range, and stable label renumbering. Price $0.04 USDC. POST /api/v1/predictive-analytics/kmeans-cluster. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| k | integer | |
| rows* | array | |
| seed | integer | |
| nInit | integer | |
| kRange | array | |
| columns* | array | |
| maxIter | integer | |
| standardize | boolean |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"columns",
"rows"
],
"properties": {
"k": {
"type": "integer",
"maximum": 50,
"minimum": 2
},
"rows": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": [
"number",
"null"
]
}
},
"maxItems": 50000,
"minItems": 1
},
"seed": {
"type": "integer",
"default": 42,
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
"nInit": {
"type": "integer",
"default": 10,
"maximum": 50,
"minimum": 1
},
"kRange": {
"type": "array",
"items": [
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": 2
},
{
"type": "integer",
"maximum": 50,
"minimum": -9007199254740991
}
],
"maxItems": 2,
"minItems": 2,
"additionalItems": false
},
"columns": {
"type": "array",
"items": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"maxItems": 100,
"minItems": 1
},
"maxIter": {
"type": "integer",
"default": 300,
"maximum": 1000,
"minimum": 1
},
"standardize": {
"type": "boolean",
"default": true
}
}
}Mine frequent itemsets and association rules with support, confidence, lift, leverage and conviction from caller baskets. Price $0.04 USDC. POST /api/v1/predictive-analytics/market-basket-rules. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| baskets* | array | |
| maxRules | integer | |
| minSupport | number | |
| minConfidence | number | |
| maxItemsetSize | integer |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"baskets"
],
"properties": {
"baskets": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"maxItems": 200,
"minItems": 1
},
"maxItems": 200000,
"minItems": 1
},
"maxRules": {
"type": "integer",
"default": 1000,
"maximum": 100000,
"minimum": 1
},
"minSupport": {
"type": "number",
"default": 0.01,
"maximum": 1,
"exclusiveMinimum": 0
},
"minConfidence": {
"type": "number",
"default": 0.5,
"maximum": 1,
"exclusiveMinimum": 0
},
"maxItemsetSize": {
"type": "integer",
"default": 3,
"maximum": 10,
"minimum": 2
}
}
}Centre (and optionally standardise) columns, decompose the covariance, and return eigenvalues, explained ratios, signed loadings and optional scores. Price $0.03 USDC. POST /api/v1/predictive-analytics/pca. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| rows* | array | |
| columns* | array | |
| components | integer | |
| standardize | boolean | |
| returnScores | boolean |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"columns",
"rows"
],
"properties": {
"rows": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": [
"number",
"null"
]
}
},
"maxItems": 50000,
"minItems": 1
},
"columns": {
"type": "array",
"items": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"maxItems": 100,
"minItems": 1
},
"components": {
"type": "integer",
"maximum": 100,
"minimum": 1
},
"standardize": {
"type": "boolean",
"default": false
},
"returnScores": {
"type": "boolean",
"default": true
}
}
}Fit logistic propensity scores, match treated to controls 1:1 on the logit within a caliper, and report SMD balance and common-support counts. Price $0.04 USDC. POST /api/v1/predictive-analytics/propensity-score-match. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| seed | integer | |
| order | string | |
| units* | array | |
| replacement | boolean | |
| caliperSdLogit | number |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"units"
],
"properties": {
"seed": {
"type": "integer",
"default": 42,
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
"order": {
"enum": [
"descending_score",
"ascending_score",
"random"
],
"type": "string",
"default": "descending_score"
},
"units": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"treated",
"covariates"
],
"properties": {
"id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"treated": {
"anyOf": [
{
"type": "number",
"const": 0
},
{
"type": "number",
"const": 1
}
]
},
"covariates": {
"type": "object",
"propertyNames": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"additionalProperties": {
"type": "number"
}
}
}
},
"maxItems": 100000,
"minItems": 10
},
"replacement": {
"type": "boolean",
"default": false
},
"caliperSdLogit": {
"type": "number",
"default": 0.2,
"exclusiveMinimum": 0
}
}
}Train a small seeded random forest, report out-of-bag accuracy or R², and estimate permutation feature importance with Fisher-Yates shuffles. Price $0.05 USDC. POST /api/v1/predictive-analytics/random-forest-importance. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| rows* | array | |
| seed | integer | |
| task* | string | |
| trees | integer | |
| target* | array | |
| columns* | array | |
| maxDepth | any | |
| maxFeatures | any | |
| minSamplesLeaf | integer | |
| permutationRepeats | integer |
Score customers 1–bins on recency, frequency and monetary value with average ranks for ties, then map scores to Champions/Loyal/New/At risk/Hibernating or a custom rule list. Price $0.03 USDC. POST /api/v1/predictive-analytics/rfm-segment. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| asOf | string | |
| bins | integer | |
| customers | array | |
| segmentMap | any | |
| transactions | array |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"asOf": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"bins": {
"type": "integer",
"default": 5,
"maximum": 10,
"minimum": 3
},
"customers": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"recencyDays",
"frequency",
"monetary"
],
"properties": {
"id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"monetary": {
"type": "number",
"minimum": 0
},
"frequency": {
"type": "number",
"exclusiveMinimum": 0
},
"recencyDays": {
"type": "number",
"minimum": 0
}
}
},
"maxItems": 100000,
"minItems": 1
},
"segmentMap": {
"anyOf": [
{
"type": "string",
"const": "default"
},
{
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"r",
"f"
],
"properties": {
"f": {
"type": "array",
"items": [
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": 1
},
{
"type": "integer",
"maximum": 10,
"minimum": -9007199254740991
}
],
"maxItems": 2,
"minItems": 2,
"additionalItems": false
},
"m": {
"type": "array",
"items": [
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": 1
},
{
"type": "integer",
"maximum": 10,
"minimum": -9007199254740991
}
],
"maxItems": 2,
"minItems": 2,
"additionalItems": false
},
"r": {
"type": "array",
"items": [
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": 1
},
{
"type": "integer",
"maximum": 10,
"minimum": -9007199254740991
}
],
"maxItems": 2,
"minItems": 2,
"additionalItems": false
},
"name": {
"type": "string",
"maxLength": 64,
"minLength": 1
}
}
},
"maxItems": 100,
"minItems": 1
}
],
"default": "default"
},
"transactions": {
"type": "array",
"items": {
"type": "object",
"required": [
"customerId",
"date",
"amount"
],
"properties": {
"date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"amount": {
"type": "number"
},
"customerId": {
"type": "string",
"maxLength": 128,
"minLength": 1
}
}
},
"maxItems": 1000000,
"minItems": 1
}
}
}We read every tool's name, description and inputs the way the model will, looking for instructions hidden from you. A clean result means no warning signs, not a guarantee. Scanned Nov 19, 2026.
No readOnlyHint / destructiveHint annotations, so clients can't tell a read from a write without asking.
Fix: Add annotations to each tool, e.g. { readOnlyHint: true } for tools that only read.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"task",
"columns",
"rows",
"target"
],
"properties": {
"rows": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": [
"number",
"null"
]
}
},
"maxItems": 50000,
"minItems": 2
},
"seed": {
"type": "integer",
"default": 42,
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
"task": {
"enum": [
"classification",
"regression"
],
"type": "string"
},
"trees": {
"type": "integer",
"default": 100,
"maximum": 500,
"minimum": 10
},
"target": {
"type": "array",
"items": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"maxLength": 64,
"minLength": 1
}
]
},
"maxItems": 50000,
"minItems": 2
},
"columns": {
"type": "array",
"items": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"maxItems": 100,
"minItems": 1
},
"maxDepth": {
"anyOf": [
{
"type": "integer",
"maximum": 20,
"minimum": 1
},
{
"type": "null"
}
],
"default": null
},
"maxFeatures": {
"anyOf": [
{
"enum": [
"sqrt",
"log2"
],
"type": "string"
},
{
"type": "integer",
"maximum": 100,
"minimum": 1
}
],
"default": "sqrt"
},
"minSamplesLeaf": {
"type": "integer",
"default": 1,
"maximum": 1000,
"minimum": 1
},
"permutationRepeats": {
"type": "integer",
"default": 5,
"maximum": 50,
"minimum": 1
}
}
}