How to Connect Claude Code to Shopify via MCP (2026)
Connect Claude Code to your Shopify store using Cogny's managed MCP server. Use our built-in OAuth or bring your own Shopify dev app with custom scopes.
TL;DR
Cogny provides a managed, remote MCP server for Shopify. Two ways to connect:
- Quick setup — Use Cogny's built-in OAuth. No custom app needed. Done in 2 minutes.
- Bring your own dev app — Create a Shopify dev app with custom scopes for full control over permissions.
What you get:
- Single federated MCP server at
app.cogny.com/mcp— tools determined by connected accounts - Access to orders, products, customers, inventory, and analytics
- Automatic client credentials refresh
- Works with Claude Code, Claude Desktop, Cursor, Windsurf, and any MCP client
Time required: 2 minutes (quick setup) or 10 minutes (custom dev app) | Difficulty: Beginner | Prerequisites: Shopify store with admin access
Why Use a Managed MCP Server?
Building your own Shopify MCP integration requires:
- Creating a custom Shopify app in the Partner dashboard
- Configuring OAuth scopes and redirect URLs
- Implementing the OAuth handshake and token exchange
- Managing client credentials and token refresh
- Hosting and maintaining the MCP server
- Handling Shopify API versioning and rate limits
Cogny handles all of this. Whether you use our built-in OAuth or bring your own dev app, you get a working MCP endpoint without hosting anything.
What Can Claude Do With Shopify?
With the Shopify MCP server, Claude can:
- Query orders, revenue, and sales trends
- Analyze product performance and inventory levels
- Review customer data, segments, and lifetime value
- Track fulfillment status and shipping metrics
- Identify best-selling products and underperformers
- Cross-reference store data with ad spend (when other MCPs connected)
Option A: Quick Setup (3 Steps)
Use this if you want the fastest path to a working connection.
Step 1: Create a Cogny Account
Go to cogny.com, sign up, and create a warehouse.
Step 2: Connect Shopify
In your dashboard, find Shopify under the channels list and click connect.
Enter your store URL (yourstore.myshopify.com) and authorize Cogny to access your store data.
Step 3: Add to Claude Code
In your Cogny dashboard, generate an API key. Then add the Cogny MCP server to your Claude Code config. This is the same endpoint for all Cogny integrations — the tools available are determined by which accounts you've connected.
{
"mcpServers": {
"cogny": {
"type": "http",
"url": "https://app.cogny.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}
Done. Claude now has access to your Shopify data — and any other platforms you connect through Cogny.
Option B: Bring Your Own Dev App
Use this if you need custom OAuth scopes, want full control over app permissions, or your organization requires apps to be created under your own Shopify Partner account.
Step 1: Create a Shopify Dev App
- Go to the Shopify Developer Dashboard and sign in
- Select your organization (or create one if you don't have one yet)
- Click Apps in the left sidebar, then Create app
- Give your app a name (e.g., "Cogny MCP Connection") and click Create
Tip: The app URL for your dashboard will look like:
https://dev.shopify.com/dashboard/{org-id}/apps
Step 2: Create a New Release With Required Scopes
Before installing the app, you need to create a release that defines which API permissions the app has. Without this step, the app won't be authorized to read your store data.
- From your app's overview page, click Versions (or navigate to Release > Create version)
Direct URL pattern:
https://dev.shopify.com/dashboard/{org-id}/apps/{app-id}/versions/new
- Under Access scopes, add the following scopes:
read_checkouts
read_customers
read_discounts
write_discounts
write_inventory
read_inventory
read_locations
read_orders
read_products
write_products
What each scope allows:
| Scope | Permission |
|---|---|
read_checkouts | View abandoned checkouts and checkout data |
read_customers | View customer profiles and segments |
read_discounts / write_discounts | View and manage discount codes and price rules |
read_inventory / write_inventory | View and update inventory levels across locations |
read_locations | View store locations and fulfillment centers |
read_orders | View order history, transactions, and fulfillment |
read_products / write_products | View and manage products, variants, and collections |
- Click Create version to save the release
Important: The app must have a released version with scopes before it can be installed. If you skip this step, the installation will fail or the app won't have the necessary permissions.
Step 3: Install the App on Your Shopify Store
- Go back to your app's overview page in the Shopify Developer Dashboard
Direct URL pattern:
https://dev.shopify.com/dashboard/{org-id}/apps/{app-id}
- Click the Install app button
- Select the Shopify store where you want to install the app
- Review the permissions and confirm the installation
Step 4: Find Your OAuth Credentials
After installing, you need the OAuth client credentials to connect through Cogny:
- From your app's overview page in the Shopify Developer Dashboard, navigate to Client credentials (under the app settings or API credentials section)
- Copy the Client ID and Client secret
Keep these safe. The client secret is only shown once. If you lose it, you'll need to generate a new one.
Step 5: Connect to Cogny
- Go to your Cogny dashboard and open your warehouse
- Find Shopify under the channels list and click connect
- Select Use your own dev app (or "Custom app credentials")
- Enter your Client ID and Client secret from Step 4
- Enter your store URL (yourstore.myshopify.com)
- Complete the authorization flow
Step 6: Add to Claude Code
In your Cogny dashboard, generate an API key. Then add the Cogny MCP server to your Claude Code config:
{
"mcpServers": {
"cogny": {
"type": "http",
"url": "https://app.cogny.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}
Done. Claude now has access to your Shopify store data through your own dev app — with the exact scopes you configured.
Example Prompts
- "Show me top-selling products this month by revenue"
- "What's my average order value trend over the last 12 weeks?"
- "Which products have low inventory and high sales velocity?"
- "List customers with more than 3 orders and their total lifetime value"
- "Compare this month's revenue to last month by product category"
- "Find abandoned checkouts from the past week with cart value over $100"
Works With Any MCP Client
- Claude Code (CLI) / Claude Desktop (Mac/Windows)
- Cursor / Windsurf / Continue
- Any custom client built with the MCP SDK
Standard HTTP+SSE transport.
Security
- Read-only by default — Claude cannot modify products, orders, or store settings unless write scopes are enabled
- OAuth tokens stored in encrypted vault
- Automatic client_credentials refresh
- All requests proxied through Cogny (your Shopify API keys never leave the server)
- Revoke access anytime from Cogny or Shopify admin
- Custom app users: You control exactly which scopes are granted through your app release
Compared to Self-Hosted
| Feature | Cogny Managed | Cogny + Your Dev App | Fully Self-Hosted |
|---|---|---|---|
| Setup time | 2 minutes | 10 minutes | Hours |
| Custom app | Not needed | You create it | You create it |
| Scope control | Cogny defaults | You choose | You choose |
| API keys | Managed for you | You provide, Cogny stores | You manage |
| Token refresh | Automatic | Automatic | You build |
| API versioning | Managed | Managed | You update |
| Server hosting | Managed | Managed | You host |
Common Questions
Q: Does this work with Shopify Plus? Yes. All Shopify plans are supported with both setup options.
Q: Can Claude modify my store (update products, fulfill orders)? Not by default. Write operations require explicit opt-in through tool permissions. If you use your own dev app, you also control write access through the scopes you configure in your app release.
Q: What about Shopify's API rate limits? Cogny handles rate limiting transparently. No action needed on your end.
Q: Can I connect multiple Shopify stores? Yes. Each store gets its own connection, all accessible through the same MCP configuration.
Q: When should I use my own dev app vs. the quick setup? Use the quick setup for the fastest path. Bring your own dev app if your organization requires apps under your own Shopify Partner account, or if you need precise control over which API scopes are granted.
Q: What if I need to add more scopes later? If you're using your own dev app, go to the Shopify Developer Dashboard, create a new version with the additional scopes, and the changes will apply automatically. No need to reconfigure Cogny.
Q: I lost my client secret. What do I do? Go to your app's settings in the Shopify Developer Dashboard and generate a new client secret. Then update the credentials in your Cogny dashboard.
Next Steps
- Connect Google Ads via MCP — ad spend + revenue attribution
- Connect Meta Ads via MCP — social ad + e-commerce analysis
- Connect GA4 via MCP — on-site behavior data
- Shopify Cogny Integration Guide — deeper setup walkthrough
- E-Commerce Performance Signals — optimization strategies
About Cogny MCP Servers
Cogny provides managed, remote MCP servers for 12+ marketing and business platforms with built-in OAuth, token management, and enterprise-grade security.
Last Updated: April 2026
Try Cogny free
Connect your marketing platforms to Claude Code in under 2 minutes. No credit card required.