Triple Whale connector for Claude Code

Use Porter’s Triple Whale connector for Claude Code to pull blended ROAS, MER and new customer metrics into your terminal, then turn them into files, scripts and scheduled reports in your own project.

  • Save daily blended ROAS and MER as CSV
  • Track new customer CPA and ROAS
  • Run a weekly Triple Whale report from a script
  • Check Triple Whale against your ad platforms
G2★★★★★Rated 4.6/5 from 288 G2 reviews (October 2026) · Used by 1,600+ marketing teams and agencies

By · Last updated November 26, 2026

Claude Codeporter connected
Show Total Sales, Blended Ad Spend, Blended ROAS and MER by Date for the last 4 days and save it to reports/tw-daily.csv
porter / Triple Whale / Trailgear Demo✓ 4 rows
Saved reports/tw-daily.csv. Blended ROAS held above 3 except on Sunday.
DateTotal SalesBlended ROAS
Thu$12,4803.4
Fri$14,1203.6
Sat$11,9403.1
Sun$8,3102.4
Demo data, Trailgear Demo account
749 Triple Whale metrics
01Setup

How to connect Triple Whale to Claude Code

Connecting Triple Whale to Claude Code takes 3 steps and no API keys: connect your Triple Whale stores in Porter with a Triple Whale API key, add Porter’s MCP server to Claude Code with one command, then sign in from /mcp and ask. The same server also works in Cursor, VS Code and Codex, as Porter’s Triple Whale MCP server page shows. Using the Claude app instead? See the Triple Whale connector for Claude.

Before you start

  • You need Claude Code installed (Anthropic’s Claude Code overview), a free Porter account and a Triple Whale store where you can generate API keys.
  • Works with any Claude model in Claude Code, from Opus to Sonnet and Haiku.
  1. Step 1: Connect Triple Whale in Porter

    Sign up free at Porter, pick Triple Whale as the source and sign in with a Triple Whale API key. Tick every store you want Claude Code to read.

  2. Step 2: Add Porter to Claude Code

    In your terminal, run this command. It adds Porter for every project on your machine; drop --scope user to add it to the current project only.

    Terminal
    claude mcp add --transport http --scope user porter https://mcp.portermetrics.com/mcp

    Or, inside Claude Code, install Porter’s plugin, which adds the server and Porter’s skill together: /plugin marketplace add portermetrics/porter, then /plugin install porter-metrics@portermetrics.

  3. Step 3: Sign in and ask

    Start claude, type /mcp, pick porter and sign in with the Google account you use in Porter. When porter shows as connected, paste this prompt:

    Prompt
    Which Triple Whale stores can you see? For the last 14 days, show Total Sales, Orders, Blended Ad Spend, Blended ROAS and MER by Date, and save it to reports/tw-daily.csv.

Guides and videos

app.portermetrics.com / create
Porter's Select accounts window for Triple Whale with the Connect button
First, in Porter, open Triple Whale and select Connect.
Porter's Connect your Triple Whale account form with the API key and store domain fields
Then, paste your Triple Whale API key and store domain.
$ claude mcp add --transport http --scope user porter https://mcp.portermetrics.com/mcp

$ claude mcp list
porter: https://mcp.portermetrics.com/mcp (HTTP)
Then, add Porter's MCP server from your terminal.
> /mcp
porter · needs authentication → Authenticate

> Which Triple Whale accounts can you see?
● porter - list_accounts (MCP)
Trailgear Demo
After you sign in from /mcp, Claude Code lists your Triple Whale accounts.
02Use cases and prompts

What you can do in Claude Code

Claude Code works inside your project, so Triple Whale answers can become files, scripts and dashboards instead of chat replies. Each use case has a prompt to copy and uses the Triple Whale fields Porter reads.

Can Claude Code export Triple Whale metrics?

The problemTriple Whale dashboards are built for screens, not for your own models.

What Claude Code doesClaude Code pulls Total Sales, Orders, Blended Ad Spend, Blended ROAS and MER by Date through Porter and writes them to a CSV.

What you getA daily blended file in your repo, ready for your models.

Prompt
For the last 30 days, show Total Sales, Orders, Blended Ad Spend, Blended ROAS and MER by Date from Triple Whale, and save it as data/tw-daily.csv.

What do new customers cost?

The problemBlended ROAS mixes new and returning buyers.

What Claude Code doesClaude Code pulls New Customers CPA, New Customer ROAS, New Customer Orders and New Customer Revenue.

What you getA clear view of what it costs to win a new customer.

Prompt
For the last 30 days, show New Customers CPA, New Customer ROAS, New Customer Orders and New Customer Revenue by week from Triple Whale, and save it to reports/tw-new-customers.csv.

Can I schedule a Triple Whale report with Claude Code?

The problemTriple Whale’s summary is live, but the Monday note still needs last week’s numbers copied out.

What Claude Code doesA scheduled claude -p run compares Total Sales, Blended Ad Spend, Blended ROAS, MER and New Customers CPA with the week before.

What you getreports/tw-weekly.md with blended results ready for the Monday note.

Prompt
claude -p "Compare last week with the week before in Triple Whale: Total Sales, Blended Ad Spend, Blended ROAS, MER and New Customers CPA. Write it to reports/tw-weekly.md" --allowedTools "mcp__porter" "Write"

Does Triple Whale spend match my ad platforms?

The problemBlended spend should equal the sum of each platform’s spend.

What Claude Code doesClaude Code pulls Blended Ad Spend from Triple Whale and spend from each connected ad platform through the same server and flags the gaps.

What you getA daily check that your attribution data is complete.

Prompt
For the last 14 days, compare Triple Whale Blended Ad Spend by Date with the sum of daily spend from every ad platform I connected in Porter, and save the days that differ by more than 5% to reports/tw-check.csv.
03Why Porter

Why Porter for Triple Whale in Claude Code

Porter keeps your Triple Whale API key out of your project and puts blended metrics next to the ad platforms and stores behind them, so you can check one against the other.

✓

One server for all your sources

The same porter server answers about Triple Whale, Meta Ads, Google Ads, GA4 and Shopify, so one script can pull every channel.

⊞

Changes only after you approve

Claude Code can make changes through Porter where the platform allows them, and each change waits for your yes.

⚙

Your key stays in Porter

Your Triple Whale API key lives in Porter, not in your project or terminal history.

↻

Hosted dashboards when a file isn’t enough

Ask for a Porter AI dashboard and it is published at its own link, synced automatically and ready to share with a client.

04Dashboard

Dashboard template

Start from a ready-made Triple Whale template, or ask Claude Code to build a live one with AI dashboards.

AI dashboards

Build a live Triple Whale dashboard from your terminal

Describe the dashboard in one sentence and Porter builds it. A client-ready dashboard in minutes, with no chart dragging and no BI tool to learn. Ask Claude Code:

Prompt
Build a live Triple Whale dashboard for my account with the last 30 days, the main KPIs and a weekly trend.
Live URLEach dashboard at its own link: no login, no app, no download
Auto-syncFresh Triple Whale data, nobody re-exports each period
Scheduled deliveryEmail or PDF sends on a set day
White labelYour logo and branding for clients
Sharing permissionsView or edit access per person

Or start from a template

05Pricing

Pricing

You can start free, since Porter’s Triple Whale connector for Claude comes with every plan. Use the calculator for your number of accounts, or see Porter pricing for every plan.

What you get

  • Free plan: never expires, with unlimited connected accounts and the last 15 days of data in Claude (30 days in Data Studio and Sheets)
  • Reporting: from $12.50 per account a month billed annually, or $15 month to month for one account
  • Billing: each Triple Whale store counts as one account, with volume discounts and no per-seat fee
  • No credits needed: Claude’s Triple Whale questions are reads, so they use no AI credits
  • Trial: 14 days of full access, no card

Price calculator

$33.33/mo$6.67 per account

An account is one ad account, Stripe account, store, page or GA4 property. The Free plan never expires and has unlimited accounts, with the last 15 days of data in AI chats.

06Data and actions

Triple Whale data Claude can use

The Triple Whale connector gives Claude 750 fields: 749 Summary Page metrics in 61 groups, plus Date. The groups run from store and blended numbers to Pixel, ad channels, email and subscriptions, but only 123 metrics come day by day. Labels are in the full list of Triple Whale fields, while the source is Triple Whale's Summary Page API reference.

12 Triple Whale fields Claude uses most

FieldWhat it's for
Blended ROAStriple_whale_roasOrder revenue ÷ blended ad spend, by day
MERtriple_whale_merBlended ad spend ÷ order revenue × 100
Blended Ad Spendtriple_whale_blended_adsEvery connected channel plus custom expenses marked as ad spend
New Customers CPAtriple_whale_new_customers_cpanCAC: ad spend ÷ new customers
New Customer ROAStriple_whale_new_customers_roasNew-customer sales ÷ blended ad spend
Net Profittriple_whale_total_net_profitRevenue − returns − expenses − ad spend
Total Salestriple_whale_net_salesGross sales − discounts − returns + shipping + tax
Orderstriple_whale_ordersOrders in the period
New Customer Revenuetriple_whale_new_customer_salesSales from first-time buyers
Returning Customer Revenuetriple_whale_rc_revenueSales from repeat buyers
LTVtriple_whale_unique_customer_salesSales ÷ unique customers, period total
Sessionstriple_whale_pixel_visit_sessionsPixel sessions, 30-minute inactivity rule

Product stats

WhatTriple Whale connector
Fields750: 749 Summary Page metrics in 61 groups, plus Date
Daily metrics123 come day by day; the other 626 come as period totals
BreakdownsDate only; no campaign, ad, product or order split
ActionsReads only; your Triple Whale store stays as you set it
History30 days on the Free plan, 15 in AI chats
AccessAPI key with the Summary Page: Read scope
MarketplacesAmazon, TikTok Shop and Walmart groups, mostly as period totals

See all 750 Triple Whale fields

07Security

Is it safe?

Yes. Porter's Triple Whale connector for Claude Code reads your Summary Page through an API key with the Summary Page: Read scope. Your orders, ads and settings in Triple Whale stay exactly as you set them.

Use a user who keeps access

When you create the key, use a Triple Whale user who will keep access to the store.

What the connector needs from Triple Whale

Porter only needs the Summary Page: Read scope, so leave the Write scopes unticked. Triple Whale shows a new key once, when you generate it, so paste it into Porter before you close the popup.

08FAQ

FAQ

Answers on setup, scope, scripts and credits, plus fixes for the most common Claude Code errors with Triple Whale. Setup questions every source shares, like where Claude Code saves the server and how to share it with your team, are in the Claude Code hub FAQ.

Can I add Klaviyo results to the Triple Whale report?

Yes. Connect Klaviyo in Porter and ask for campaign results next to Total Sales. Claude Code writes both to one weekly file.

Can I compare Triple Whale with Northbeam?

Yes. Both connect in Porter, so Claude Code can put their numbers side by side for the same dates.

Do Claude Code questions use Porter credits?

Reading Triple Whale data uses no AI credits, so questions and reports on this page are free on every plan.

Troubleshooting

Why does /mcp show porter as needing authentication?

Claude Code adds the server before you sign in. Pick porter in /mcp, choose Authenticate and sign in with the Google account you use in Porter.

Why does my claude -p script stop and ask for permission?

Scripts can’t answer permission prompts. Pass the tools the script may use, for example --allowedTools "mcp__porter" "Write", so Claude Code can read Porter and save files without stopping.

Why does Claude Code see my store but return no data?

Usually the API key was revoked or lacks access to that store. Create a new key in Triple Whale, reconnect in Porter, then ask again.

09Next

More Claude connectors

Blended numbers make more sense when they sit next to the store, email and ad data behind them. Porter also adds each of those through the same MCP URL. Add the ones your blended ROAS and profit come from, or browse all Claude connectors instead:

Not only Claude. Send Triple Whale data anywhere

The same Porter account and connection also send Triple Whale data to these destinations, at no extra cost.

Try the connector in Claude Code

Porter’s Triple Whale connector for Claude Code takes one command, so your first blended ROAS file can land in your project today.

Free plan · 14-day trial · No card needed

E-commerce marketers: blended ROAS, MER and new customer costs land in one file.

Growth marketers: attribution gets checked against each ad platform.

Agencies: one script builds the weekly report for every client store.