How to Create a Custom Analysis Module
Step by Step: From Business Question to Interactive Report
Build Your Own Statistical Analysis
Every business has unique questions that off-the-shelf analytics tools cannot answer. Maybe you need a price elasticity analysis specific to your product catalog, a logistic regression on customer churn with your own feature set, or a time-series decomposition on a KPI no dashboard covers. MCP Analytics lets you describe that question in plain English and get a production-grade, reproducible R-based analysis module built for you automatically.
The result is not a one-off report. It is a reusable module: upload new data anytime and get an updated interactive report with charts, statistical interpretations, a full code appendix, and PDF export. This tutorial walks you through every step, from signing in to running your first analysis.
What You'll Need
- An MCP Analytics account — free to create at app.mcpanalytics.ai
- A dataset in CSV, Excel, TSV, JSON, or Parquet format
- A clear business question — the more specific, the better the module
- A paid plan or credits — module creation is included in Starter and Pro plans, or costs 1,000 credits on PAYG. See pricing
What You'll Get
- A custom R-based statistical analysis module tailored to your question
- Interactive HTML reports with charts, tables, and AI-generated interpretations
- Full R source code appendix for transparency and reproducibility
- PDF export with citations suitable for presentations and audits
- A reusable module — run it on new data whenever you want
- Private to your account by default
Step 1: Sign In to Your Account
Go to app.mcpanalytics.ai and sign in. If you do not have an account yet, click Sign Up — it takes less than a minute. No credit card is required to create an account.
Once signed in, navigate to the Modules tab in the left sidebar. You will see your existing modules (if any) and a "+ Create Module" button at the top.
Expected Outcome: You are signed in and looking at the Modules tab with the "+ Create Module" button visible.
Step 2: Describe Your Analysis
Click "+ Create Module". An AI assistant chat opens at the bottom of the screen. This is where you describe what you want in plain English. The assistant understands statistical methods, business contexts, and data structures.
Example Prompts
"I want to analyze customer churn drivers using logistic regression.
My data has columns for tenure, monthly_charges, contract_type,
and whether the customer churned."
"I need a price elasticity analysis for my retail data. I have
weekly prices and unit sales for 50 SKUs over 2 years."
"Build me a module that does survival analysis on employee
attrition. My HR dataset has hire_date, termination_date,
department, salary, and performance_rating."
The assistant asks clarifying questions to nail down the spec:
- What is the target variable or outcome you care about?
- Which columns are predictors and which are responses?
- Do you need specific statistical tests (e.g., ANOVA, regression, correlation)?
- What visualizations would be most useful?
Expected Outcome: A back-and-forth conversation that results in a clear analysis specification: what the module does, what columns it needs, and what output cards (charts and tables) it will produce.
Step 3: Upload Your Dataset
Before or during the conversation, upload your data via the Datasets tab. Click "Upload Dataset", select your file, and give it a descriptive name. Supported formats:
- CSV — comma-separated values (most common)
- Excel — .xlsx or .xls files
- TSV — tab-separated values
- JSON — newline-delimited or array-of-objects
- Parquet — columnar format for large datasets
Once uploaded, the assistant can see your dataset's columns, types, and sample values. It uses this information to suggest column mappings automatically.
Expected Outcome: Your dataset is uploaded and the assistant has identified the relevant columns for your analysis.
Step 4: Review and Submit
The assistant auto-fills the module specification form with everything discussed in the conversation:
Module Specification:
Title: Customer Churn Logistic Regression
Description: Identifies drivers of customer churn using logistic
regression with odds ratios and marginal effects.
Required Columns:
- customer_id (identifier)
- churned (binary: 0/1)
- tenure_months (numeric)
- monthly_charges (numeric)
- contract_type (categorical)
- total_charges (numeric)
Output Cards:
1. Model Summary — coefficients, p-values, AIC
2. Odds Ratios — forest plot with confidence intervals
3. ROC Curve — model discrimination
4. Confusion Matrix — prediction accuracy
5. Marginal Effects — how each predictor shifts churn probability
6. Feature Importance — ranked variable contributions
Analysis Method: Logistic Regression (GLM, family=binomial)
Review each section. You can edit titles, add or remove output cards, change column mappings, or ask the assistant to adjust anything. When you are satisfied, click Submit.
A billing confirmation dialog shows the cost:
- Starter or Pro plan: included in your subscription
- PAYG: 1,000 credits (deducted from your balance)
Expected Outcome: Your module request is submitted and you see a confirmation with the module name and a link to the tracking page.
Step 5: Track Your Build
Your module enters the autonomous build pipeline. You can track its progress in real-time at:
https://mcpanalytics.ai/track.html?m={module_name}
The tracking page is linked from your account page and from the confirmation email you receive after submission.
What Happens During the Build
The autonomous pipeline runs through these stages:
- Spec Validation — confirms the specification is complete and internally consistent
- R Code Generation — AI writes the analysis code card by card, following the spec
- Visual Verification — renders the report and checks each chart for correctness
- Deployment — packages the module and deploys it to the production platform
- Production Test — runs the module against your dataset on the live server
- Quality Review — automated review of statistical output and narrative
- Marketing Assets — generates a description page and catalog entry
Typical build time: 20–45 minutes. You do not need to keep the page open. The system sends you an email when your module is ready, with a direct link to run your first analysis.
Expected Outcome: The tracking page shows your module progressing through each pipeline stage, and you receive an email when it is ready.
Step 6: Run Your Analysis
Once the build completes, your module appears in two places:
- Your Modules tab in the web app at app.mcpanalytics.ai
- The analysis catalog at mcpanalytics.ai/analysis/
To run the analysis:
- Click on your module
- Upload a CSV (or select an existing dataset) with matching columns
- Map any columns if the names differ from the spec
- Click Run Analysis
Within seconds, you receive a full interactive report:
Your Report Includes:
- Interactive Charts — hover, zoom, filter
- Statistical Tables — coefficients, p-values, confidence intervals
- AI Interpretations — plain-English explanations of each finding
- Code Appendix — full R source code used to generate the analysis
- PDF Export — print-ready report with citations
- Data Quality Summary — missing values, outliers, distributions
Expected Outcome: A complete interactive report for your custom analysis, ready to share, export, or re-run on new data.
Ready to Build Your Custom Module?
Stop forcing your business questions into generic dashboards. Describe what you need, upload your data, and get a publication-quality analysis module built in under an hour.
Create Your First Module
Sign in, describe your analysis in plain English, and the platform builds it for you. No R knowledge required.
Create a Module Now →What you get:
- A custom R-based analysis module tailored to your exact question
- Interactive reports with charts, tables, and AI interpretations
- Full source code for transparency and reproducibility
- PDF export with citations
- Reusable on new data anytime
- 20–45 minute build time, fully autonomous
Learn more about the custom module system on the Custom Analysis overview page, or check pricing and plans.
Next Steps
1. Run It from Your AI Agent
If you use Claude Desktop, Cursor, or another MCP client, you can request and run modules directly from your AI assistant without opening a browser. See the MCP agent tutorial.
2. Explore the Analysis Catalog
Browse pre-built modules for common analyses — churn prediction, cohort retention, price elasticity, A/B testing, and more — at the analysis catalog.
3. Connect Live Data Sources
Instead of uploading CSVs manually, connect Google Analytics, Google Search Console, Shopify, or Stripe as live data sources. See the API documentation.
4. Share with Your Team
Modules are private by default. You can share a module with team members or make it available to your organization from the module settings page.
Troubleshooting
"+ Create Module" button is not visible
Module creation requires a paid plan (Starter, Pro, or PAYG with credits). If you are on the Demo tier, upgrade your plan to unlock this feature.
Build failed or stuck
The pipeline retries automatically on transient failures. If your module stays in a failed state for more than an hour, check the tracking page for error details. Common causes: ambiguous column mappings, unsupported analysis types, or datasets with too few rows. Adjust the spec and resubmit.
Report looks wrong
If a chart is blank or an interpretation seems off, check that your data matches the column spec (correct types, no unexpected nulls). You can re-run the analysis with a cleaned dataset. For persistent issues, contact support.