Give Claude a trusted profit engine for your Shopify business.
Connect Claude, ChatGPT, Gemini or an agent workflow to MarginOS. Ask what is profitable, what is leaking money and what to fix next. Every answer comes from the same figures your team sees in MarginOS, instead of guessing or inventing them, and names what is estimated or missing.
For assistants, agents, and the people who approve them.
MarginOS provides read-only business lookups for AI assistants and agent workflows. It does not change your store, campaigns, costs, inventory, or settings.
How did last week go, and what should I fix first?
Contribution profit was $8,400 last week, on sales of $31,200, slightly ahead of the pace you need for this month's goal.
Fix first: stop pushing the Starter Bundle on Paid Social. Every order it brings in loses $6.40 once fulfillment, payment fees and returns come out. Over the last 30 days that was 800 orders and about $5,100 of profit gone. Open the move in MarginOS
Then: reprice the 2-pack. Shipping now eats 31% of its gross profit.
Known gap: no storage charges from your 3PL are on record yet, so these profits may read a little high.
Looked up: Company pulse (last 7 days) · Active alerts · Profit & Inventory grid
Ask next: "Prove the Starter Bundle's profit, line by line."
Illustrative example
How it works
Ask. Verify. Act.
01
Ask
Ask in plain English, the way you would ask your CFO.
No dashboard to learn, no export to build.
"Which best-sellers lose money once fulfillment and returns are counted?"
02
Verify
Answers come from MarginOS's pre-computed profit model, not from your assistant doing sums on raw orders, and they name what is estimated or missing. Ask for the proof and you get every line behind a product's profit, each traced to the order or invoice it came from, adding up to the exact figure on screen.
A profit number your CFO or finance team can inspect, reconcile and challenge, not one they have to take on trust.
"Prove the Starter Bundle's profit, line by line."
03
Act
Your assistant reads the moves MarginOS ranks by profit impact: what to scale, fix, stop or protect, with the reason and the MarginOS page where you act on it.
Your team meets with a decision, not a debate about whose numbers are right.
Stop pushing the Starter Bundle on Paid Social. Each order loses $6.40 after fulfillment and returns.
AI Assistants & Agents
Where MarginOS fits
Assistant
Answers questions when your team asks, in Claude, ChatGPT or Gemini.
Agent workflow
Reads approved MarginOS data as one step in a larger automated process, for example one run from Claude Code.
MarginOS
Supplies the grounded profit numbers and the evidence behind them. Assistants and agents can read MarginOS, but never change anything in it.
MarginOS does not decide or execute changes on your behalf.It supplies the grounded numbers, ranked decisions, and evidence. Your team or approved workflow decides what happens next.
Connect
Connected in about two minutes
Paste one address into Claude, ChatGPT or Gemini, approve it in MarginOS, and ask your first question. No API key, client ID or secret, so there is nothing to copy, store or leak.
These are questions revenue dashboards and ad platforms cannot answer reliably because they require profit after product cost, fulfillment, shipping, fees, and returns.
Ask in plain English. Your assistant picks the right lookup itself, and the answer matches what you would see on the matching MarginOS screen.
Track real profit
"What was our real contribution profit yesterday, after fulfillment, fees and returns, and are we on pace for this month's plan?"get_company_pulse
"Is our gross margin holding up over the last 30 days compared with the last 90?"get_unit_economics
"What does each DTC order actually earn after costs, and how big is wholesale next to it?"get_business_lines
Find profit leaks
"What should I fix first, and what is it costing us in profit?"get_active_signals
"Which best-sellers lose money once 3PL fulfillment, shipping and returns are counted?"get_sku_economics
"Which products are customers paying so far below list price that we drop under our margin floor?"get_sku_economics
Spend where profit grows
"Where should our next $10,000 of ad spend go, judged on profit after ad spend, not ROAS?"get_channel_economics
"Which product families lose money per order on Paid Social?"get_portfolio_cells
"Are Canadian orders still profitable after cross-border shipping and fulfillment, compared with everywhere else?"get_unit_economics
Protect profitable customers
"Which of our most profitable customers, by lifetime profit after returns, are at risk of churning?"get_customer_profit
"Which acquisition channel brings the customers who end up in our top profit tier?"get_customer_profit
"Which of our most profitable customers are due to reorder in the next two weeks?"get_customer_profit
Free up cash
"How much cash is stuck in slow and dead stock right now?"get_inventory_health
"Which profitable products are close to stocking out, and how much revenue is at risk?"get_inventory_health
"Which product families tie up the most cash for the least profit?"get_portfolio_cells
Check the numbers before you act
"What does fulfillment really cost us per order, and is that from 3PL invoices or estimated?"get_logistics_costs
"Which product costs are missing or estimated before I trust these margins?"get_data_trust
"Prove this SKU's 30-day profit line by line, so I can send it to my accountant."prove_metric
"Has every data source synced today, or is anything stale?"get_connection_info
Example answer
Ask your assistant: "Prove this product's profit."
Plenty of tools claim AI-powered analytics. Few show the math and admit what is missing. Ask for a proof and your assistant answers with the full working behind the figure on that product's MarginOS page:
The formula
The six lines that add up to the last 30 days of contribution profit
Where each cost came from, and how sure MarginOS is of it
What is estimated or missing
When each source last synced
A check that the lines add up to the number on screen
Hand it to your accountant or CFO and ask them to bless it. Honestly, we beg you to. That is the standard we want every profit figure to meet.
A profit figure your finance team has tied out is one you can price, spend and plan on, whoever asked the question: you, your assistant or an agent.
Every proof ties to the exact figure on that product's MarginOS page, for the last 30 days, in your reporting currency, with nothing converted or extrapolated. MarginOS only proves what it can show line by line, which is why your finance team can check every proof it gives.
prove_metric("CB-1201")Last 30 days · USD · DTC
Cold Brew Concentrate, 32 oz
512 units sold, 9 refunded, 503 kept, across 488 orders
Product costSupplier invoice, freight, and receiving
-$6,912
FulfillmentShipStation labels, shared parcels split by weight
-$4,386
Payment feesShopify Payments, as charged
-$712
Refund feesProcessing fees kept on refunded orders
-$12
Contribution profit
$7,538
Estimated or missing
EstimatedReceiving. No charges on record, so your configured 15% of the fulfillment bill is added to product cost.
MissingStorage. No charges on record yet, so this profit may read a little high.
The six lines add up to $7,538, the figure on screenShopify synced 8:14 AM · ShipStation 7:52 AM
Illustrative example
Customer proof
Rated 5 out of 5
There are so many dashboards and apps that show revenue by product, but actually drilling down into which products and customers drive true profitability, MarginOS has been so helpful for that. It has helped inform how we price and promote our products so we can grow our business profitably.
Each one works the same way: paste the server address https://app.marginos.com/api/v1/mcp into your AI app, then an admin approves it on a MarginOS page and chooses the business it reads.
Claude
Claude on the web, the desktop app or Claude Code. The Free plan allows one custom connector.
1Go to Customize > Connectors, click +, then Add custom connector.
2Paste the server address and click Add. No client ID or secret is needed.
3Click Connect, sign in to MarginOS, choose the business and click Approve.
4In a chat, open Connectors and switch MarginOS on.
On a Team or Enterprise plan, an owner adds the connector once and each person approves it for themselves.
ChatGPT
ChatGPT on the web, on a Plus, Pro, Business, Enterprise or Education plan, with developer mode on.
1Turn on Developer mode under Settings > Security and login.
2Under Plugins, click + to create an app and paste the server address.
3If asked how to sign in, choose OAuth. No client ID or secret is needed.
4Approve it on the MarginOS page, then switch MarginOS on in a chat under Developer mode.
In a Business or Enterprise workspace, your ChatGPT admin may need to allow developer mode first.
Gemini
The Gemini web app with a personal Google account. Google currently offers custom apps in English, to people 18 or over in the US, with Keep Activity on.
1Open Settings > Connected Apps, then Add a custom app under Custom apps.
2Paste the server address and click Next. No credentials are needed.
3Approve it on the MarginOS page.
4In a chat, type @ and choose MarginOS.
Once added on the web, MarginOS also works in the Gemini mobile app.
Claude Code
claude mcp add --transport http marginos https://app.marginos.com/api/v1/mcp
Then type /mcp inside Claude Code and follow the sign-in steps in your browser.
After you approve
Admins see every connection under Account Setup > Developer APIs > Connected AI apps: the app, who approved it, when, when it was last used, and its status. Any admin can disconnect any connection, and it stops working straight away.
Only an admin of the business can approve a connection. A team member without admin rights asks an admin to connect it.
Each lookup returns the same pre-computed figures as the matching MarginOS screen. Your assistant does not do its own sums on your raw orders.
Assistants and agents discover these tools by themselves when they connect, through the MCP server at https://app.marginos.com/api/v1/mcp. This list is for the people who build and approve them. Every lookup also takes an optional question: your latest message, word for word, which MarginOS keeps with the lookup record for 90 days.
Prove a number New
prove_metric
How any product's 30-day contribution profit is built: each cost line, where it came from, how sure MarginOS is of it, and a check that the lines add up.
Inputs
The SKU, exactly as the Catalog page shows it, and how many recent cost records to list per cost (1 to 50).
Limits
One product's last 30 days of contribution profit, in your reporting currency, so the proof always matches the figure on screen. For any other window, date range, channel, customer or currency it returns no proof rather than an approximate one.
Company pulse
get_company_pulse
Yesterday's contribution profit and revenue, month to date against your plan, and the Performance Snapshot for any window from 1 to 90 days.
Inputs
Window: the last 1, 7, 30, 60 or 90 days (30 by default).
Limits
Pre-computed, the same figures as the Command Center.
Unit economics
get_unit_economics
Gross margin, profit per order, CAC, LTGP:CAC, CAC recovery, and payback. Name a shipping country to see its orders and contribution profit next to everywhere else.
Inputs
Window (1 to 90 days), and optionally a two-letter shipping country for the 30, 60 or 90-day windows.
Limits
CAC, LTGP and payback stay whole-business, because ad spend has no country. Some figures follow the window, others use their own fixed period, and the answer says which.
Active alerts
get_active_signals
Top Moves, Risk Radar, and Data Health in the Command Center's order, each with what happened, what it means, and what to do.
Inputs
One group or all three, and how many alerts per group.
Limits
5 per group by default, up to 25. An alert's amount is the sales, cost or spend it touches, never profit.
Catalog Profit
get_sku_economics
Every SKU with its profit class, margin, list price against what customers actually paid, returns, stock, and data flags. Filter by class or flag, or narrow to one shipping country.
Inputs
Profit class, a search on title, SKU or family, product status, shipping country, and flags such as missing cost, high returns or below the margin floor. Sort on any key figure.
Limits
Up to 50 SKUs per call, DTC only. Active products unless all are asked for.
Profit & Inventory grid
get_portfolio_cells
Each product family by channel, with profit, LTGP:CAC, returns, weeks of cover, cash tied up, and plan variance.
Inputs
Channel, product family or status (Healthy, Watch, At Risk), sorted on the figure you pick.
Limits
Up to 50 cells per call, DTC only, last 30 days.
Channel economics
get_channel_economics
Profit before and after ad spend, CAC, 90-day profit per customer, LTGP:CAC, MER, and return rate for every acquisition channel.
Inputs
Window: the last 1, 7, 30, 60 or 90 days (30 by default).
Limits
DTC only. LTGP:CAC stays empty under 30 new customers in the window, and the 90-day figures are left empty over 1 or 7 days.
Customer Profit
get_customer_profit
Customers ranked by lifetime gross profit after returns, with tier, lifecycle, churn risk, and LTGP:CAC. Filter by tier, stage, channel, or business line. Pseudonyms only.
Inputs
Value tier, lifecycle stage, acquisition channel and business line, sorted by lifetime gross profit, LTGP:CAC, next reorder or last order.
Limits
Up to 25 customers per call and 4 pages, so 100 per filter. Reference codes, never names or exact order dates.
Business lines
get_business_lines
The last 90 days of DTC revenue and gross profit, plus wholesale, marketplace, and retail revenue.
Inputs
None.
Limits
Lines other than DTC carry revenue only, because their extra fees are not modeled yet.
Inventory health
get_inventory_health
Weeks of cover, slow and dead stock, cash conversion days, stockout risk, and stock with no known cost.
Inputs
None.
Limits
When some stock has no known cost, slow and dead stock count only products that have one, and the answer says the real figure is likely higher.
Logistics costs
get_logistics_costs
Cost per order, share of revenue, split by cost type, and top carrier services, flagged when the figures are estimated rather than invoiced.
Inputs
None.
Limits
The last 30 days. Each cost type says whether it is already inside gross profit.
Data trust
get_data_trust
Product-cost coverage, warehouse data health, stock with no known cost, and open Data Health alerts.
Inputs
None.
Limits
The last 30 days, DTC business line.
Connection check
get_connection_info
Which business the connection reads, which app connected it and when, and each connected data source with when it last sent data.
Inputs
None.
Limits
Ad accounts are not listed here. Ad spend is in channel economics.
No invented numbers
The rules your assistant gets with every connection
MarginOS sends these instructions to every assistant that connects, so it reads the figures the way MarginOS means them. Where MarginOS has no number, your assistant gets no number.
How to read the figures
Read readFirst before quoting any figure. Every answer starts with it, and it names the gaps behind that answer.You hear what a number is missing before you act on it, not after.
null means not measured, or nothing to divide (for example, no sales). It never means zero.A blank never turns into a fake $0 that makes a cost look free or a channel look perfect.
A status of warming_up means nothing is computed yet.Right after you connect, you get "not ready yet", not a report full of zeros.
When a product has no cost on record, MarginOS uses your store's Average COGS % of revenue as a stand-in, if you have set one, and labels the result an estimate. If you have not set one, its cost shows as N/A with a Missing COGS alert, never a made-up number, until you add the cost. A missing receiving (inbound) bill is always estimated, as a percentage of the fulfillment bill that the alert names.A product with no cost never quietly passes as a 100% margin. It gets a labelled estimate or an N/A with a loud alert, so you never scale it on a margin that is not real. Set an Average COGS % and every product gets an estimate instead of N/A.
An alert's amountInvolved30d is the sales, cost or spend it touches, not profit. Alerts' amounts are never added together.Your assistant cannot add alerts up into a scary "you are losing $80,000" headline that is not true.
Delivery margin is shipping charged minus fulfillment cost. Its % is of shipping charged, and it reads 0% when no shipping was charged, which is not break-even.Free-shipping orders are not reported as break-even when fulfillment is costing you money.
A trend's changePercent is a percentage change, so it is large on a small base.A +300% on a tiny base is not sold to you as a breakthrough.
Stock on SKUs set to keep selling when out of stock (oversell) is left out of on-hand value, cash conversion days, slow and dead stock, weeks of cover and stockout risk, and reported on its own.Pre-orders and made-to-order items do not distort your cash tied up or set off false stockout warnings.
How to word the answer
So answers read like a finance summary: the decision first, every number labelled, nothing hidden.
State each finding first, then its reason. Never open a point with a question.
Lead with profit, MarginOS's own figure, and give sales as context.
Label every figure with what it is (sales $X, profit $Y, N orders) in its own clause. Never stack unlabeled figures in brackets.
When a source is not connected or a cost is missing, say so and name it instead of guessing.
Two edge cases it is warned about
In Catalog Profit, weeks of cover reads 0 both when there is no stock and when stock is not counted, so the assistant is told it cannot tell the two apart.
In Inventory health, when some stock has no known cost, slow and dead stock count only the products that have one, so the assistant is told the real cash stuck is likely higher.
Both are spelled out so a zero or a partial total is never read as better news than it is.
Privacy and records
What it cannot see, and what MarginOS keeps
What your assistant cannot see
Customer identities: no names, email addresses, phone numbers or postal addresses, and no exact order dates. Customer Profit uses reference codes.Your assistant still learns which customers make you money, without your shoppers' personal details reaching an AI provider.
Any answer that slips through with contact details or a customer ID. MarginOS checks every answer before it leaves and holds that one back.A safety net behind the first rule, in case a figure ever carries identifying data by mistake.
Alerts about customer privacy requests. Your assistant is told how many were left out, not what they say.A shopper's request to erase their data stays between you and them.
Other businesses. A connection reads only the one chosen on the approval page.Agencies and multi-brand owners cannot leak one brand's numbers into another brand's conversation.
What MarginOS keeps, exactly
Enough to trace what was looked up if an answer is questioned, and nothing more.
For each lookup: which lookup it was, what was asked for (such as the time window), whether it worked and how long it took.
Your question, when the assistant passes it along. Email addresses, phone numbers and long codes such as keys are replaced with placeholders before it is stored.
Never the rest of your conversation, and never the assistant's reply.
Records are deleted automatically after 90 days. Disconnecting stops new records, and existing ones still expire at 90 days.
If a shopper asks your store to erase their data, any stored question that names that shopper in full is erased too.
The approval page says it plainly, with your app's name in it, for example: "MarginOS keeps a record of what Claude looks up, and the question you asked, for 90 days."
Freshness and limits
How current the answers are
Your assistant reads the same snapshots as your MarginOS screens. A figure is only as fresh as the older of two clocks: when the source's data arrived, and when the screen was last rebuilt.
Company pulse, unit economics and channel economics take the last 1, 7, 30, 60 or 90 days, 30 by default. The other lookups each use a fixed period of their own.
Some answers are worked out live from the ledger on each call and carry computedAt. Saved figures carry asOf.
Before the first snapshot exists, figures come back as N/A with a warming_up status, never as $0.
Ask "When did each source last send data?" and the connection check answers it.
Page sizes
Alerts: 5 per group by default, up to 25.
Catalog Profit and the Profit & Inventory grid: up to 50 rows per call.
Customer Profit: up to 25 customers per call and 4 pages, so 100 per filter.
Messages you may see
"This answer was withheld because it contained customer-identifying data."
The answer contained customer contact details or a customer ID, so MarginOS held all of it back.
"Only an admin of a MarginOS business can connect an AI app"
The person approving has no admin rights on an active business. An admin connects it instead.
The approval request has expired
The approval link is only valid for a short time. Connect again from the AI app to get a fresh one.
No longer active
The admin who approved it is no longer an admin, or the business is suspended. Disconnect it and connect again.
Asked to sign in again
After about a month without use, the AI app asks you to approve again. Each approval adds a new row under Connected AI apps.
Questions
Common questions about MarginOS and AI assistants
Does MarginOS work with ChatGPT?
Yes. ChatGPT on the web connects to MarginOS on a Plus, Pro, Business, Enterprise or Education plan with developer mode turned on. You add MarginOS as an app with the server address https://app.marginos.com/api/v1/mcp, then an admin approves it on a MarginOS page.
Does MarginOS work with Claude?
Yes. Claude on the web, the Claude desktop app and Claude Code can all connect. You add MarginOS as a custom connector with the server address, then approve it on a MarginOS page. On the Free plan, Claude allows one custom connector.
Does MarginOS work with Gemini?
Yes, in the Gemini web app with a personal Google account. Google currently offers custom apps in English to people aged 18 or over in the US, with Keep Activity turned on. Once added on the web, MarginOS also works in the Gemini mobile app.
Can AI agents use MarginOS, not just chat assistants?
Yes. An agent workflow, for example one run from Claude Code, connects through the same read-only MCP server and the same admin approval as a chat assistant. It gets the same lookups and the same rules, and it cannot change anything in MarginOS, your store, your campaigns or your settings.
Can my AI assistant change anything in MarginOS, my store or my ad accounts?
No. The connection is read-only. There are no write actions, so your assistant cannot change settings, costs, alerts or connections in MarginOS. MarginOS itself never edits your store, campaigns, orders or warehouse settings.
Does the assistant see my customers' names or email addresses?
No. No lookup returns a customer's name, email address, phone number or postal address. Customer Profit lists customers under a reference code, never with exact order dates. MarginOS also checks every answer before it leaves and holds back any answer that contains customer contact details or a customer ID.
What happens when MarginOS does not have a number?
Your assistant gets no number. A figure MarginOS cannot back with your data comes back empty, never as a guess or a zero, and readFirst at the top of each answer names the gap, such as a missing product cost or a source that is not connected.
How fresh are the numbers my assistant gets?
The same as your MarginOS screens. The Command Center and channel figures rebuild about every 15 minutes, new-customer figures and Customer Profit at least once a day. Shopify data arrives within moments, ad spend at least once a day, and warehouse costs daily or as your warehouse raises them. Your assistant can check when each source last sent data.
Does MarginOS keep my conversations?
No. MarginOS only sees the lookups your assistant makes, plus your question when the assistant passes it along. It keeps a record of those for 90 days, with contact details masked. It never receives the rest of the conversation or the assistant's reply.
Who can connect an AI assistant to MarginOS?
Only an admin of the business in MarginOS can approve a connection. Each connection reads one business, and any admin can disconnect any connection at any time under Account Setup > Developer APIs > Connected AI apps.
Does the MCP server cost extra?
No. Every MarginOS plan includes every feature, every integration and unlimited users for one flat monthly fee, and the MCP server is one of those features.
Give your assistant numbers it cannot make up.
Connect MarginOS and ask your first question in about two minutes.