Connect Shopify to Claude or ChatGPT
The complete 2026 guide. Three architectures, two LLMs, every code sample you need, plus the platform that lets you skip the 10 hours of DIY plumbing.
You want to plug your Shopify store into a Large Language Model — Anthropic Claude or OpenAI ChatGPT — so an agent can audit your catalog, rewrite product descriptions, run conversion experiments, draft emails, or just answer "what's broken on my store today?" in plain English.
This guide is the complete 2026 reference. Three integration architectures. Code samples for both LLMs. Security and OAuth scope checklist. And, because gluing it all together yourself takes a working week, a comparison with BoostEcom — the platform Christopher Lasgi, Shopify expert since 2017, built on top of his own agency's playbooks so operators can ship the work in a single conversation.
By the end of this article you will know exactly:
- Which architecture fits your use case (MCP, function calling, or direct OAuth).
- How to connect your store to Claude (Anthropic API + MCP).
- How to connect your store to ChatGPT (OpenAI Chat Completions + tools).
- What scopes to grant — without over-permissioning.
- Why BoostEcom is the production-ready answer when you don't want to maintain glue code.
Use cases
Why connect Shopify to a LLM at all
The TL;DR: every minute you spend on Shopify is a candidate for automation the moment a model can call your store APIs.
The eight workflows that pay back the integration in the first week:
- Catalog audit — the LLM reads every product, flags missing schema, weak titles, broken metafields, dead images, low-conversion PDPs.
- SEO + GEO rewrite — bulk-rewrite titles, descriptions, meta tags optimised for Google + AI search engines (ChatGPT, Perplexity, Claude).
- Conversion experiments — generate A/B variants for hero copy, CTA labels, shipping thresholds, tested via Shopify markets or Intelligems — the partner BoostEcom uses for every CRO sprint.
- Email + SMS generation — feed Klaviyo flows from real product data, not invented bullet points.
- Customer support — drop-in chat that has read every order, every policy, every refund window — the merchant doesn't.
- Operator chat — "Hey, what's leaking in checkout this week?" answered with real numbers, not opinions.
- Real-time inventory copy — when stock dips below 5, the product page copy reflects scarcity automatically.
- Bulk image alt-text — every image, every locale, accessibility-compliant in minutes.
The integration unlocks all of them. The DIY cost: ~10 hours of plumbing per use case. The BoostEcom cost: a chat message to @Atlas.
Architectures
The three integration patterns
Pick one. Each has trade-offs.
1. Model Context Protocol (MCP)
The Anthropic-led standard now adopted by OpenAI, Google, Mistral, and
every serious tooling vendor. Your Shopify store exposes a MCP server
that the LLM connects to over stdio or HTTP, calling tools (get_products,
update_metafield, query_orders) the way a human calls Shopify Admin
buttons.
Pros: model-agnostic (write once, every LLM consumes), security boundaries are explicit (each tool ships its own scope check), supports streaming + cancellation natively, the de facto standard in 2026.
Cons: needs a server you operate (or one BoostEcom hosts for you,
shopify-admin MCP server on the
marketplace).
→ Recommended for Claude, where MCP is first-class. → Now also recommended for ChatGPT since OpenAI's MCP support shipped.
2. Function calling / tool use
The LLM exposes a function-calling API. You declare your Shopify operations as JSON schemas; the LLM emits a structured call; your backend executes it against Shopify Admin GraphQL or REST.
Pros: simpler than MCP (just an API call + schema), works with any LLM that supports tool use, no extra server to operate.
Cons: you write glue per LLM (Claude tool format vs OpenAI tool format diverge slightly), no streaming of intermediate state, no native cancellation.
→ Good for one-shot tasks ("write 30 product descriptions, return JSON").
3. Direct OAuth + API token
The "no LLM glue" path. The LLM never touches Shopify directly. Your backend authenticates against Shopify (OAuth or Custom App) and exposes ITS OWN APIs. You call those APIs from the LLM via simple HTTP.
Pros: total control, easiest to debug, scales to any LLM.
Cons: you've reinvented MCP without the protocol benefits. Maintenance burden grows linearly with use cases.
→ Use only for legacy projects where you can't introduce MCP.
Claude
Connect Shopify to Anthropic Claude
Step-by-step. Five minutes if you copy-paste.
Step 1 — Create a Shopify Custom App
In your store admin: Settings → Apps and sales channels → Develop apps → Create app. Grant the scopes you need (see the security section below). Install. Save the Admin API access token — you won't see it twice.
Step 2 — Pick the connection layer
Two options:
- MCP server (recommended) — install the
shopify-adminMCP server from the BoostEcom marketplace. Free. One npx command. - Direct API calls — call
https://{shop}.myshopify.com/admin/api/2025-10/graphql.jsonfrom your code, ferry the result to Claude as context.
Step 3 — Wire Claude
Anthropic's SDK expects a tools array. With MCP installed, the SDK
auto-discovers the available tools. Without MCP, declare them manually:
import Anthropic from "@anthropic-ai/sdk"
const claude = new Anthropic({ apiKey: process.env.ANTHROPIC_API_KEY })
const response = await claude.messages.create({
model: "claude-opus-4-7",
max_tokens: 4096,
tools: [
{
name: "get_products",
description: "List all products from the connected Shopify store.",
input_schema: {
type: "object",
properties: {
first: { type: "number", description: "Number of products to fetch" },
},
required: ["first"],
},
},
],
messages: [{ role: "user", content: "Audit my product catalog." }],
})
When Claude wants to call get_products, it returns a tool_use block.
Your loop executes the Shopify GraphQL query, returns the result as a
tool_result block, Claude continues. Standard tool use loop.
Step 4 — Deploy
For one-off scripts: a Node.js process or a Vercel function. For a production chat, you need session storage, retry logic, rate-limiting, and a way to scope each tool call to the right store. That's the part BoostEcom does for you — the platform spins up a Claude-powered chat on top of your store with @Atlas coordinating everything.
What you skip with BoostEcom
| DIY with Claude | BoostEcom + Claude | |---|---| | Bootstrap MCP server | One-click install | | Wire OAuth refresh | Automatic | | Track usage / billing | Built-in | | Multi-store routing | Native | | Audit log + replay | Native | | Voice interface | Hume EVI included | | Mobile + WhatsApp | Connectors included |
→ Free plan of BoostEcom includes daily Claude credits. Start now.
ChatGPT
Connect Shopify to OpenAI ChatGPT
Same shape, different SDK.
Step 1 — Create a Shopify Custom App
Identical to the Claude path. Grant scopes, install, save the Admin API token.
Step 2 — Pick the connection layer
OpenAI now supports MCP (since their 2025 GA). Three flavors:
- MCP via OpenAI Responses API (recommended) — same MCP server you install for Claude.
- Function calling — declare tools as JSON schemas, OpenAI emits structured calls.
- Custom GPT (ChatGPT-Plus tier) — declare an OpenAPI 3.1 spec, upload to ChatGPT, the user invokes via the GPT picker.
Step 3 — Wire OpenAI
Function calling example:
import OpenAI from "openai"
const openai = new OpenAI({ apiKey: process.env.OPENAI_API_KEY })
const response = await openai.chat.completions.create({
model: "gpt-5.4",
messages: [{ role: "user", content: "Audit my product catalog." }],
tools: [
{
type: "function",
function: {
name: "get_products",
description: "List products from the connected Shopify store.",
parameters: {
type: "object",
properties: {
first: { type: "number" },
},
required: ["first"],
},
},
},
],
})
When the model emits a tool_calls array, execute each call against
Shopify Admin GraphQL, append the result as a role: "tool" message,
loop until the model returns plain text. Standard tool-use loop, just
different field names than Claude.
Step 4 — Deploy
Same operational concerns as the Claude path: sessions, retries, rate-limits, scoping, billing, multi-store. Same answer: BoostEcom ships those concerns for you with ChatGPT-powered chat as a first-class mode (toggle "Use ChatGPT" in your project settings).
What you skip with BoostEcom
| DIY with ChatGPT | BoostEcom + ChatGPT |
|---|---|
| Manage OpenAI API key | OIDC via AI Gateway |
| Tool schema sync | Auto-derived from MCP |
| Cost tracking per store | Per-org credit ledger |
| Streaming UI | AI Elements built-in |
| BYOK option for power users | Native (/api/byok) |
Security
OAuth scopes — what to grant, what to refuse
The single biggest mistake: granting write_* blanket scopes to a LLM.
A model that hallucinates a delete_product call deletes products.
Scope every integration like a junior intern.
Read-only first (audits, reports, dashboards):
read_products read_customers read_orders read_content
read_inventory read_locations read_reports read_analytics
Authoring scopes (rewrite copy, generate metafields):
write_products write_content
Operations (only when the agent needs to ship work):
write_orders write_inventory write_discounts
write_themes (theme rewrites — danger zone)
Never grant to a generic LLM:
write_payment_terms write_payment_gateways
write_shipping write_users write_files
Add a per-tool gate. With MCP, this is one line per tool. With function
calling, write a middleware that checks (tool, scope, store_id) before
the call hits Shopify. BoostEcom's MCP server does this by default —
every tool ships with a scope check baked in.
Comparison
Claude vs ChatGPT for Shopify — picking your default
Both work. The choice depends on your day-job.
| Dimension | Claude (Opus 4.7) | ChatGPT (GPT-5.4) | |---|---|---| | Reasoning depth on audit tasks | Excellent — flagship | Excellent — flagship | | Long context (full catalog dump) | 1M tokens | 1M tokens | | Tool-use accuracy | Best-in-class for chained calls | Excellent, slightly less reliable on multi-step | | Latency on tool loops | Faster on streaming | Faster on first token | | Cost per audit (1k products) | ~$0.50 | ~$0.40 | | Compliance / data residency | EU + US options | EU + US options | | Integration ecosystem (MCP) | First-class, native | Now native via Responses API | | Brand familiarity (operator-facing) | High | Higher (consumer-facing) |
Our recommendation: Claude for agent autonomy and reasoning depth (deep audits, complex workflows), ChatGPT for operator-friendly chat UI and broad team adoption.
Better recommendation: don't pick. BoostEcom routes both through Vercel AI Gateway — Claude for hard reasoning, GPT for fast chat, you don't write a single line of routing logic.
The platform path
DIY vs BoostEcom — when does it pay back?
Honest math.
DIY path
- Bootstrap: 8 hours (MCP server, OAuth flow, scope plumbing, session storage)
- Per use case: 2-4 hours (audit script, prompt engineering, results UI)
- Maintenance: ~2 hours/week (Shopify API version bumps, model updates, billing tracking)
- Year-1 cost: ~120 hours engineering. At a $80/h freelance rate: $9,600.
BoostEcom path
- Bootstrap: 5 minutes (connect Shopify, pick a plan).
- Per use case: 0 (every audit / rewrite / experiment workflow is built-in).
- Maintenance: 0 (we ship Shopify API updates + model upgrades for you).
- Year-1 cost: starting at €0/month (free tier includes daily Claude credits) or €24/month (Unlimited plan: every workflow, every store, no caps). See plans.
Where DIY still wins
- You have a single, very narrow use case that fits in 50 lines of code forever.
- You have stricter compliance constraints than a multi-tenant SaaS can serve (deeply regulated industries).
- You enjoy maintaining glue code on your weekends.
For everyone else, BoostEcom returns the integration cost in the first month and adds the specialist agents on top: marketing, ops, support, finance, growth. That's the answer Christopher Lasgi built after eight years running BoostEcom Agency — the same playbooks that ran 8-figure DTC stores, now codified into a platform any operator can plug into.
Skip the plumbing. Connect your store. Done.
Start free, no credit card. Daily Claude credits included. ChatGPT also supported via the BYOK toggle if you have an existing OpenAI account.
FAQ
Frequently asked questions
Can I connect ChatGPT to Shopify without writing code?
Yes — install BoostEcom, connect your Shopify store via the Custom App flow, toggle "Use ChatGPT" in project settings. Five minutes, no code. For DIY, you'll need a Node.js or Python process that wires OpenAI tool calling to Shopify Admin GraphQL.
Can Claude execute changes on my store, or only read?
Both — depending on the OAuth scopes you grant. We strongly recommend
starting read-only (read_products, read_orders, etc.) and only
adding write_* scopes once you've watched Claude's behaviour for a few
days.
Is MCP better than function calling for Shopify?
In 2026, yes — MCP is now supported by every major LLM provider, so a single MCP server gets you Claude + ChatGPT + Gemini + future models for free. Function calling locks you into one LLM's JSON schema dialect.
Does BoostEcom store my Shopify data?
Only the metadata needed to run your workflows (product list, order history, knowledge base). Raw payment details, customer PII beyond name and email, and access tokens are encrypted at rest (AES-256-GCM). Full control via your org settings.
What's the cheapest way to try this?
The BoostEcom Free plan. Daily Claude credit grant from @Atlas. One store, one user. Upgrade to Unlimited (€24/month billed yearly) when the agent has paid for itself — typically week 2.
Can I bring my own Anthropic / OpenAI API key (BYOK)?
Yes. Settings → Tokens → BYOK. Useful if your security policy requires keys to live in your org's account, or if you want to attribute LLM spend to a separate budget.
How does BoostEcom compare to a custom GPT?
A custom GPT is a chat session anchored to one OpenAPI spec, hosted on ChatGPT's UI. BoostEcom is a full platform: chat + workflows + voice + multi-store + billing + marketplace + audit log. Different category. We recommend custom GPTs for personal experiments and BoostEcom for operating a real store.
Where do I see the article that started this guide?
Christopher Lasgi published the first version of this on the agency blog: boostecom.fr/blog — the version you're reading is the 2026 platform-grade rewrite, kept current as the LLM ecosystem evolves.
The shortcut to running Shopify with Claude or ChatGPT
Connect your store, set the direction, let @Atlas run the team. Built by Christopher Lasgi — Shopify expert since 2017, fondateur de BoostEcom Agency.