How to Set Up the Shopify AI Toolkit with Cursor

Last updated
•
Expert reviewed
•
5 min read

Key takeaways

  • Install Shopify AI Toolkit with /add-plugin shopify in Cursor Chat.
  • For safer storefront changes, add Fudge to Cursor. It builds private drafts with visual previews; you control publishing.
  • Use Fudge’s saved brand context and ecommerce design references to give page and theme designs a stronger starting point.
  • Start with read-only store access. GraphQL writes through shopify store execute require --allow-mutations and confirmation.
  • Manual skills need updates. The toolkit reports code, searches and some prompt context by default; use the documented opt-out if needed.

To set up the Shopify AI Toolkit in Cursor, type /add-plugin shopify in Cursor Chat. Then ask a Shopify API question in chat to confirm it pulls current docs.

Once installed, your Cursor environment gets access to current Shopify documentation, code validation against bundled API schemas, and the ability to execute store operations through the Shopify CLI.

For storefront work, connect Fudge alongside Cursor before your first change. We recommend its private drafts and previews for reviewing the design before it reaches shoppers. Fudge uses your store’s theme, products and saved brand context; keep the toolkit for the developer work covered below.

For the full breakdown of what the toolkit does, how it works, and the governance risks around store execution, see our Shopify AI Toolkit overview.


Why you can trust us

Jacques has over 15 years of development experience and has worked with hundreds of Shopify stores. We build Fudge, SEO and AEO agents for Shopify stores, with a 4.9 rating on the Shopify App Store and a Built for Shopify badge. We use these tools daily.


Prerequisites

  • Cursor installed and running
  • Node.js 22.12 or higher for the current Shopify CLI. Check with node --version; use a supported Node release
  • Shopify CLI installed (required for store operations)
  • A Shopify store to connect to (only needed if you plan to execute store operations)

The plugin method is the simplest path and auto-updates with new capabilities.

Step 1: Install the plugin

In Cursor Chat, run Shopify’s documented command:

/add-plugin shopify

All available agent skills are included automatically.

Step 2: Verify it’s working

Open Cursor’s AI chat and ask something Shopify-specific:

What's the correct GraphQL mutation to create a new product in Shopify's Admin API?

Check that Cursor actually searches Shopify documentation and runs validation. Inspect the result before using the query; installing the plugin alone does not guarantee correct output.


Alternative: manual skills installation

If your setup can’t use the plugin, or you’d rather manage the skill yourself, install it directly:

npx skills add Shopify/shopify-ai-toolkit

This installs the toolkit’s single shopify skill, which covers every Shopify developer surface: the GraphQL Admin API, Shopify Functions, Polaris, Liquid, Hydrogen and Shopify CLI. Earlier versions shipped a separate skill per surface, such as shopify-admin and shopify-liquid. Those are deprecated and no longer updated, so if you installed any of them, remove them (for example npx skills remove shopify-admin shopify-liquid) and install the shopify skill instead.

Manually installed skills don’t auto-update. Run npx skills update periodically to stay current with Shopify’s API changes. Otherwise the bundled schemas drift from the live platform.


Alternative: MCP server setup

As an alternative for developer documentation and validation, you can connect to Shopify’s Dev MCP server by adding configuration to Cursor’s MCP settings. The Dev MCP server runs as a local server/client integration but makes network calls to Shopify endpoints for documentation search.

In Cursor, go to Cursor > Settings > Cursor Settings > Tools and MCP > New MCP server and add this configuration, as given in the Shopify AI Toolkit docs:

{
    "mcpServers": {
        "shopify-dev-mcp": {
            "command": "npx",
            "args": ["-y", "@shopify/dev-mcp@latest"]
        }
    }
}

This does not authenticate a store. Save and restart Cursor. If you see connection errors on Windows, Shopify’s docs give an alternative that runs the same command through cmd /k.


Telemetry and code transmission

Shopify’s telemetry disclosure lists documentation searches and results, validated code, usage metadata and, when supplied, the latest user prompt (up to 2,000 characters). Skill-use hooks can report usage too.

On Linux or macOS, create the opt-out file before using the toolkit:

mkdir -p ~/.config/shopify-ai-toolkit
touch ~/.config/shopify-ai-toolkit/opt-out

On Windows, create an empty file at %APPDATA%\shopify-ai-toolkit\opt-out.

Alternatively, set OPT_OUT_INSTRUMENTATION=true in the environment inherited by your assistant. Opting out of telemetry does not make documentation searches or authenticated store requests offline.


Connecting to your store

For store operations (not just code generation and validation), you need to authenticate.

Authentication flow

Ask Cursor to explain the target store and scopes, then approve authentication. Start with read-only product access:

shopify store auth --store yourstore.myshopify.com --scopes read_products

Approve the connection in Shopify. This is required for private store reads as well as writes. Reauthenticate if the token expires or you need different scopes.

Common OAuth scopes

What you want to doRequired scope
Read product dataread_products
Update productswrite_products
Read inventory levelsread_inventory
Adjust inventorywrite_inventory
Read order informationread_orders
Access customer dataread_customers

Always use the minimum scopes needed. Validation can report required scopes for supported operations, but write_products still grants access to ALL product write operations, not just the specific mutation you’re running.


What you can do with Cursor + Shopify AI Toolkit

Validated code generation

The biggest immediate benefit: Cursor can check its Shopify API output against a schema.

Without the toolkit, Cursor might generate GraphQL with deprecated fields, incorrect types, or non-existent mutations based on stale training data. Ask Cursor to run validation and inspect the result before you use a query or mutation.

Use Cursor’s codebase context

Cursor excels at understanding your full project. Combine the Shopify toolkit with Cursor’s codebase awareness:

Look at how I've structured the other product queries in this project and write a new one for fetching product recommendations, validated against the current Shopify API

Theme development

Work with Liquid templates with validation against Shopify’s theme rules - including schema blocks and LiquidDoc headers.

Hydrogen storefronts

Build headless storefronts with validated React components and correct imports.

Store operations

Read private store data after CLI authentication. GraphQL writes through shopify store execute require --allow-mutations and confirmation under the current skill instructions. Product updates can affect customer-facing data immediately; theme workflows can use unpublished copies.

Metafield management

Extend your store’s data model with metafield definitions and custom data.

Functions and extensions

Build backend customization - discounts, cart validation, delivery rules - and scaffold UI extensions.

For hands-on theme examples, see How to Add Custom Liquid Logic in Shopify.


Best practices for Cursor users

1. Query before you mutate

Always read current state before making changes:

First, show me the current product data for handle "summer-collection-tee", then update only the description

2. Be explicit about scope

Vague requests lead to broad mutations. Be specific:

Too vague:

Update my products for better SEO

Better:

Update the meta description for product handle "classic-tee" to: "Premium cotton classic tee. Available in 5 colors. Free shipping on orders over $50."

3. Push themes as unpublished

The toolkit supports --unpublished for theme pushes, but you need to ask for it explicitly. It’s not enforced by default.

4. Add a project rule

Create .cursor/rules/shopify.mdc with Shopify-specific instructions. Cursor treats .cursorrules as legacy in favor of project rules:

---
description: Shopify development rules
alwaysApply: true
---

When writing Shopify GraphQL:
- Always validate against the current Admin API schema
- Use the shopify skill for API queries
- Default to read operations unless explicitly asked to mutate
- For mutations, always query current state first
- For theme pushes, always use --unpublished flag

5. Review generated mutations before execution

When Cursor generates a store mutation, read through it before approving. Check:

  • Is it targeting the right product/resource?
  • Is the scope of the change what you intended (1 product vs. all products)?
  • Are existing field values being preserved or overwritten?

Limitations

  • Review depends on the operation. shopify store execute defaults to read queries. GraphQL writes through that command need --allow-mutations, and the current skill instructs the assistant to show the command, target and effects and wait for confirmation. Schema validation cannot judge whether a change is right for your business.
  • There is no universal draft and rollback workflow. Theme development can use previews and unpublished themes. Other API writes can update store records directly; keep the previous values when you may need to restore them.
  • Permissions cover resource types. A product write scope is broader than permission to change one description. Check the target store and resource before approving.
  • Manual skills need updates. Run npx skills update when you manage the installation yourself.

See the Shopify CLI execution reference and the toolkit’s confirmation rules.


Use Fudge alongside Shopify AI Toolkit

We recommend connecting Fudge to Cursor before making storefront changes. Use Fudge for landing pages and theme edits, with Shopify AI Toolkit available for API documentation, validation and custom development.

  • Keep the live storefront protected. Fudge prepares the change in a private draft with a visual preview. Its MCP tools cannot publish it; you review and publish in Fudge.
  • Give the design your store’s context. Fudge works with your existing theme, products and saved brand preferences. Ask it for ecommerce design references before it builds, then check the result on mobile.
  • Start with the right change. Ask Fudge for a store review to identify SEO or conversion opportunities before deciding what to build. Its saved context carries into the next request.

For example, use the toolkit to check an app’s GraphQL query, then ask Fudge to build the campaign page that presents the products. Connecting Fudge does not install the toolkit, and CLI access does not connect Fudge; each has its own setup and permissions.

Use Fudge to review [store.myshopify.com] and draft a landing page
for [collection]. Match the store's branding and show me a preview.
Use Shopify AI Toolkit if we need to check Shopify API or Liquid rules.

Quick reference

TaskHow
Install plugin/add-plugin shopify in Cursor Chat
Install all skills manuallynpx skills add Shopify/shopify-ai-toolkit
Update manual skillsnpx skills update
Auth with storeshopify store auth --store yourstore.myshopify.com --scopes read_products
Opt out of telemetryCreate ~/.config/shopify-ai-toolkit/opt-out
Check Node versionnode --version (22.12+ for Shopify CLI)

For the full picture on risks and governance, read our Shopify AI Toolkit overview. For setup on other platforms, see our Claude Code guide and OpenAI Codex guide.

Setup commands checked on 11 November 2026 against Shopify’s installation guide, CLI requirements and store authentication reference.


FAQ

Can I use Fudge and Shopify AI Toolkit in the same assistant?

Yes. Keep the toolkit for Shopify development references and CLI work, and connect Fudge for store reviews, saved brand context and storefront drafts. Each connection has separate authorization. Fudge drafts are reviewed and published in Fudge.

What's the benefit of Cursor + Shopify AI Toolkit vs other AI tools?

Cursor's codebase awareness helps it can reason about your existing project structure, conventions, and patterns when writing new Shopify code. The toolkit adds Shopify references and validation to that project context. Check that Cursor uses those tools and review the generated code.

Should I commit my Cursor project rules to the repo?

Yes. Project rules in .cursor/rules/ are project-level configuration that benefits the whole team, so committing them means anyone working on the project gets the same Shopify-aware Cursor behavior automatically. Use project rules for project conventions and Cursor settings (not committed) for personal preferences like UI choices.

Does Cursor persist Shopify store authentication across sessions?

Yes. Authentication tokens are managed by the Shopify CLI, not Cursor. Reauthenticate when a token expires or the requested scopes change. Cursor's chat history is separate from auth state; clearing chat history doesn't sign you out.

Can I use the Shopify Toolkit in Cursor's agent (autonomous) mode?

Yes. Agent mode can call validation and documentation tools the same as chat mode. Be more cautious with mutations in agent mode: autonomous loops can amplify errors. Use specific, scoped prompts and require explicit confirmation before any store-mutating action.

Will the Shopify Toolkit conflict with other Cursor extensions?

The Shopify plugin can be installed alongside other plugins. If you experience conflicts, check whether multiple extensions are competing to handle the same prompt category. Disable one to test.

Jacques's signature
Edit your Shopify storefront without code.

You might also be interested in

Jacques Blom
Jacques Blom
CTO at Fudge.