WooCommerce connector for Claude Code

Use Porter’s WooCommerce connector for Claude Code to pull sales, orders and order status into your terminal, then turn them into files, scripts and scheduled reports in your own project.

  • Save store sales as CSV in your repo
  • Compare month to date with last month
  • See how much revenue is still pending
  • Join store sales with your ad spend
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
Compare this month to date with the same days last month and save it to reports/woo-mtd.csv
porter / WooCommerce / Trailgear Demo✓ 4 rows
Saved reports/woo-mtd.csv. Total sales are up 9%; refunds grew faster.
MetricThis monthLast month
Report total sales$42,180$38,690
Report net sales$38,940$36,120
Orders512478
Refunds$1,920$1,240
Demo data, Trailgear Demo account
414 WooCommerce fields
01Setup

How to connect WooCommerce to Claude Code

Connecting WooCommerce to Claude Code takes 3 steps and no API keys: connect your WooCommerce stores in Porter with a WooCommerce REST 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 WooCommerce MCP server page shows. Using the Claude app instead? See the WooCommerce connector for Claude.

Before you start

  • You need Claude Code installed (Anthropic’s Claude Code overview), a free Porter account and a WooCommerce store and an admin who can create a REST API key.
  • Works with any Claude model in Claude Code, from Opus to Sonnet and Haiku.
  1. Step 1: Connect WooCommerce in Porter

    Sign up free at Porter, pick WooCommerce as the source and sign in with a WooCommerce REST 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 WooCommerce stores can you see? Compare this month to date with the same days last month: Report total sales and Report net sales, and save it to reports/woo-mtd.csv.

Guides and videos

app.portermetrics.com / create

Create: WooCommerce to Claude

Sign in: WooCommerce

Select the accounts Claude can use.

$ 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 WooCommerce accounts can you see?
● porter - list_accounts (MCP)
Trailgear Demo
After you sign in from /mcp, Claude Code lists your WooCommerce accounts.
02Use cases and prompts

What you can do in Claude Code

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

Can Claude Code export WooCommerce sales?

The problemWooCommerce reports need plugins or exports before anyone can use them.

What Claude Code doesClaude Code pulls Report total sales and Report net sales through Porter and writes them to a CSV in your project.

What you getA clean sales file in your repo, ready for a model or a teammate.

Prompt
For my WooCommerce store, pull Report total sales and Report net sales by day for the last 90 days and save it as data/woo-daily.csv.

How much revenue is still pending?

The problemOrders on hold or processing aren’t money yet.

What Claude Code doesClaude Code lists Order grand total and order counts by Order status for the month.

What you getA clear view of what’s paid and what’s waiting.

Prompt
List Order grand total and the number of orders by Order status for this month, and save it to reports/woo-status.csv.

Can I schedule a WooCommerce report with Claude Code?

The problemWooCommerce reports show totals, but comparing this week with last means changing dates twice.

What Claude Code doesA weekly claude -p job compares Report total sales, Report net sales and orders for your store.

What you getreports/woo-weekly.md with sales and orders, week over week.

Prompt
claude -p "Compare last week with the week before for my WooCommerce store: Report total sales, Report net sales and orders. Write it to reports/woo-weekly.md" --allowedTools "mcp__porter" "Write"

Can Claude Code compare WooCommerce sales with my ad spend?

The problemAd platforms report their own revenue, which rarely matches your store.

What Claude Code doesClaude Code pulls daily net sales from WooCommerce and daily spend from your connected ad platforms through the same server.

What you getROAS on real store revenue.

Prompt
For the last 30 days, pull daily Report net sales from WooCommerce and daily spend from Meta Ads and Google Ads, and write daily blended ROAS to reports/woo-roas.csv.
03Why Porter

Why Porter for WooCommerce in Claude Code

Porter keeps your WooCommerce REST API key out of your project and puts store sales next to your ad platforms and 30+ other sources behind the same server.

✓

One server for all your sources

The same porter server answers about WooCommerce, 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 WooCommerce REST 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 WooCommerce template, or ask Claude Code to build a live one with AI dashboards.

AI dashboards

Build a live WooCommerce 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 WooCommerce 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 WooCommerce 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 WooCommerce 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 WooCommerce store counts as one account, with volume discounts and no per-seat fee
  • Changes: 1 AI credit per completed change; failed tasks are free, and the Free plan includes 100 credits a month
  • 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

WooCommerce data and actions in Claude Code

Through the WooCommerce connector, Claude reads 414 fields live from your store: sales reports, orders and line items, refunds, coupons, customers, products, variations and reviews. Porter also has 32 actions to look up and change orders, products, coupons and customers. Finally, labels and IDs are in the full list of WooCommerce fields.

The 12 WooCommerce fields Claude uses most

These 12 fields answer most store questions, including the use cases above.

FieldWhat it's for
Report net saleswoocommerce_report_net_salesNet sales for a period
Report total saleswoocommerce_report_total_salesGross sales for a period
Report total orderswoocommerce_report_total_ordersOrders; the AOV denominator
Report total refundswoocommerce_report_total_refundsRefunded in the period
Report top sellers quantity · Report top sellers titlewoocommerce_report_top_sellers_quantity · woocommerce_report_top_sellers_titleUnits sold by product
Period report sales · Datewoocommerce_date_report_total_sales · woocommerce_dateSales trend by day
Order grand totalwoocommerce_order_grand_totalOrder value
Order statuswoocommerce_order_statusPending, processing, on-hold, completed, cancelled, refunded, failed
Order coupon line codewoocommerce_order_coupon_line_codeCoupons used per order
Refund reason · Refund amountwoocommerce_refund_reason · woocommerce_refund_amountWhy and how much was refunded
Product stock quantity · Product stock statuswoocommerce_product_stock_quantity · woocommerce_product_stock_statusStock now
Is a paying customer?woocommerce_is_paying_customerRegistered buyers who have paid

What can Claude change in WooCommerce?

Claude can create and update products and variations, as well as stock, categories, orders, coupons and customers. It can also create refunds, and delete orders, products, variations, categories, customers and coupons.

Porter sends each change on its own, even though WooCommerce's batch endpoints take up to 100 objects (WooCommerce REST API docs). Store settings, payment gateways, shipping zones, tax and order notes stay in your WordPress admin.

Product stats

WhatWooCommerce connector
Fields414, from sales reports, orders and line items, refunds, coupons, customers, products, variations and reviews
Actions32, to look up and change orders, products, coupons and customers, each after you approve
FreshnessRead live from your store on every question
HistoryEvery order your store keeps, read live; 30 days on the Free plan, 15 in AI chats
Changes per callOne at a time, each shown before it runs
AccessWooCommerce REST API consumer key and secret, one per store
Store needsWooCommerce 3.5+, WordPress 4.4+ and pretty permalinks

See all 414 WooCommerce fields

07Security

Is it safe?

Yes, with 2 safeguards. Claude talks to Porter's WooCommerce connector rather than to your store directly. And Claude shows each change and asks before Porter sends it. Reads change nothing, your REST API key stays in Porter, and if you revoke the key in WooCommerce, access stops.

How Claude asks before changing WooCommerce

Nothing runs until you approve it, refunds included. Deleting with force is permanent, and customers and categories skip the trash, so check each delete before you approve it. Each completed change also uses one AI credit.

What the connector needs from WooCommerce

Porter needs a WooCommerce REST API consumer key and secret, one key per store. The store also needs WooCommerce 3.5+, WordPress 4.4+ and pretty permalinks. If a store has no HTTPS, it must use OAuth 1.0a (WooCommerce's REST API requirements).

In addition, firewalls must let /wp-json/wc/v3/ through. Orders and customers carry names, emails and addresses (WooCommerce's data privacy notice for MCP), so share access only with people who need it.

08FAQ

FAQ

Answers on setup, scope, scripts and credits, plus fixes for the most common Claude Code errors with WooCommerce. 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 Google Ads spend to the WooCommerce report?

Yes. Connect Google Ads in Porter and ask for Cost next to Report net sales. Claude Code reads both through one server and writes one file.

What key does Porter need?

A WooCommerce REST API key created by a store admin under WooCommerce, then Settings, Advanced, REST API.

Do Claude Code questions use Porter credits?

Reading WooCommerce data uses no AI credits. Each completed change, such as a change, uses 1 credit, and every Porter account gets 100 free credits a month.

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 REST API key lacks read permission, or the store blocks API requests. Check the key’s permissions in WooCommerce, then ask again.

09Next

More Claude connectors

Porter brings more than WooCommerce into Claude. Email, traffic and ad data from all Claude connectors reach the same chat through the same MCP URL as the WooCommerce connector. That puts store revenue next to what drives it, including email and ads. Connect the sources your store already sells through, then ask across all of them.

Not only Claude. Send WooCommerce data anywhere

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

Try the connector in Claude Code

Porter’s WooCommerce connector for Claude Code takes one command, so your first sales file can land in your project today.

Free plan · 14-day trial · No card needed

E-commerce marketers: store sales meet ad spend in one file.

Small business founders: pending revenue and refunds stand out each month.

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