How to connect Shopify to Cursor

Trusted by teams atAWSGleanZoomAirtable

30 min · no commitment · see it on your stack

Shopify logo
Cursor logo
divider

Introduction

Cursor is one of the leading AI-powered code editors. It is built to help developers write, understand, and refactor code faster with AI assistance built directly into the editor.

And in this guide, I will explain the easiest and most secure way to connect your Shopify account to Cursor via Composio Connect, so it can create a new product called 'Summer T-Shirt', add product ID 1234 to 'Holiday Specials' collection, delete the image with ID 5678 from product ID 4321, and more without ever putting your account credentials at risk.

Also integrate Shopify with

Why Composio?

  • 1,000+ SaaS toolkits out of the box. Skip the work of building and maintaining integrations, Composio gives you instant access to a vast catalog of pre-built connectors.
  • One MCP server for every app. Connect any of your applications on demand through a single endpoint, rather than juggling a separate server for each app.
  • Smart, context-aware tool loading. Unlike traditional MCP servers that dump every available tool into the LLM context window, Composio searches for and loads only the tools relevant to the task at hand. A remote CLI workbench lets LLMs compose these tools into workflows for complex automation.

Connect Shopify to Cursor

Option 1

Click on this button.

Install in Cursor

Option 2

Add to your Cursor mcp.json

If option 1 does not work, do it manually.

Open .cursor/mcp.json in your project root (or ~/.cursor/mcp.json for global config) and add the following configuration:

bash
{
  "mcpServers": {
    "composio": {
      "url": "https://connect.composio.dev/mcp"
    }
  }
}

Authorize in your browser

Restart Cursor, then click "Connect" next to Composio in MCP Tools settings.

Cursor MCP Tools settings with Connect button next to Composio

A browser window will open to authorize.

Composio authorization browser window

Connect your Shopify account

Back in Cursor, ask the agent to connect to Shopify or give it any Shopify-related task.

For example, ask it to:

  • "Create a new product called 'Summer T-Shirt'"
  • "Add product ID 1234 to 'Holiday Specials' collection"
  • "Delete the image with ID 5678 from product ID 4321"

It will prompt you to authenticate and authorize access to Shopify.

That is it. Composio tools are now available in Cursor, and your Shopify account is ready to use.

What is the Shopify MCP server, and what's possible with it?

The Shopify MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Shopify account. It provides structured and secure access to your store, so your agent can perform actions like managing products, processing orders, handling collections, organizing images, and managing customers on your behalf.

  • Product management and automation: Let your agent create new products, update existing listings, or delete products from your Shopify store quickly and accurately.
  • Order creation and fulfillment: Direct your agent to generate new orders, associate them with customers, and streamline your sales process with minimal manual input.
  • Collection organization: Ask your agent to create custom collections, add products to collections, or remove collections to keep your store categories organized and up to date.
  • Product image handling: Have your agent add new images to products, count existing images for inventory tracking, or remove outdated images from your catalog.
  • Customer management: Automate the creation of new customer records, making it easy to onboard shoppers and keep your CRM current without lifting a finger.

Supported Tools & Triggers

Tools
Add product to custom collectionAdds a product to an existing *custom collection*, optionally specifying its `position` if the collection is manually sorted.
Count product imagesRetrieves the total count of images for a shopify product, useful for inventory management or display logic; the provided `product id` must exist in the store.
Create a custom collectionCreates a new custom collection in a shopify store, requiring a unique title for manually curated product groupings (e.
Create CustomerTool to create a new customer in shopify.
Create an orderCreates a new order in shopify, typically requiring line items; if `customer id` is provided, it must correspond to an existing customer.
Create a productCreates a new product in a shopify store; a product title is generally required.
Create Product ImageTool to create a new product image for a given product.
Delete custom collectionPermanently deletes a custom collection from a shopify store using its `collection id`; this action is irreversible and requires a valid, existing `collection id`.
Delete a productDeletes a specific, existing product from a shopify store using its unique product id; this action is irreversible.
Delete product imageDeletes a specific image from a product in shopify, requiring the `product id` of an existing product and the `image id` of an image currently associated with that product.
Get All CustomersRetrieves customer records from a shopify store, with options for filtering, selecting specific fields, and paginating through the results.
Get collection by IDRetrieves a specific shopify collection by its `collection id`, optionally filtering returned data to specified `fields`.
Get collectsRetrieves a list of collects from a shopify store, where a collect links a product to a custom collection.
Get collects countRetrieves the total count of collects (product-to-collection associations) in a shopify store.
Get custom collectionsRetrieves a list of custom collections from a shopify store, optionally filtered by ids, product id, or handle.
Get custom collections countRetrieves the total number of custom collections in a shopify store.
Get CustomerRetrieves detailed information for a specific customer from a shopify store, provided their valid and existing `customer id`.
Get customer ordersRetrieves all orders for a specific, existing customer in shopify using their unique customer id.
Get order listRetrieves a list of orders from shopify using default api settings and filters.
Get order by idRetrieves a specific shopify order by its unique id, which must correspond to an existing order.
Get productRetrieves details for an existing shopify product using its unique product id.
Get product imageRetrieves detailed information for a specific product image, identified by its id and its associated product id, from a shopify store.
Get Product ImagesRetrieves all images for a shopify product, specified by its `product id` which must correspond to an existing product.
Get productsRetrieves a list of products from a shopify store.
Get products countRetrieves the total, unfiltered count of all products in a shopify store.
Get products in collectionRetrieves all products within a specified shopify collection, requiring a valid `collection id`.
Get Shop DetailsRetrieves comprehensive administrative information about the authenticated shopify store, as defined by the shopify api.
Update OrderUpdates the phone number for an existing shopify order, identified by its id; pass `phone=none` to remove the current phone number.

Conclusion

You have successfully connected Shopify to Cursor using Composio Connect. Your agent can now use Shopify securely without exposing credentials in prompts or local scripts.

How to build Shopify MCP Agent with another framework

FAQ

What are the differences in Tool Router MCP and Shopify MCP?

With a standalone Shopify MCP server, the agents and LLMs can only access a fixed set of Shopify tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from Shopify and many other apps based on the task at hand, all through a single MCP endpoint.

Can I use Tool Router MCP with Cursor?

Yes, you can. Cursor fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right Shopify tools.

Can I manage the permissions and scopes for Shopify while using Tool Router?

Yes, absolutely. You can configure which Shopify scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

How safe is my data with Composio Tool Router?

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your Shopify data and credentials are handled as safely as possible.

Used by agents from

Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai

Never worry about agent reliability

We handle tool reliability, observability, and security so you never have to second-guess an agent action.