home / mcp / shopify mcp server

Shopify MCP Server

Queries Shopify data via GraphQL MCP, enabling product, customer, and order management.

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "anass319-shopify-mcp": {
      "command": "npx",
      "args": [
        "shopify-mcp",
        "--accessToken",
        "<YOUR_ACCESS_TOKEN>",
        "--domain",
        "<YOUR_SHOP>.myshopify.com"
      ],
      "env": {
        "MYSHOPIFY_DOMAIN": "your-store.myshopify.com",
        "SHOPIFY_ACCESS_TOKEN": "your_access_token"
      }
    }
  }
}

You can use the Shopify MCP Server to interact with Shopify store data through a GraphQL-based MCP interface. It enables you to manage products, customers, and orders via a unified set of functions, making it easier to build integrations and automation that rely on live store data.

How to use

To use this MCP server, install it locally or run it through your preferred MCP client, then connect using the provided command patterns. You will authenticate with your Shopify store using an access token and specify your store’s domain. Once connected, you can perform product, customer, and order operations through the available tools.

How to install

Prerequisites: install Node.js version 16 or higher.

Install the package globally (optional):

npm install -g shopify-mcp

Additional setup and configuration

Choose one of the following approaches to run the MCP server. Use the command that matches how you prefer to run the server.

Option 1: Run via NPX (per-instance invocation)

{
  "mcpServers": {
    "shopify": {
      "command": "npx",
      "args": [
        "shopify-mcp",
        "--accessToken",
        "<YOUR_ACCESS_TOKEN>",
        "--domain",
        "<YOUR_SHOP>.myshopify.com"
      ]
    }
  }
}

Authentication and environment setup

If you prefer environment variables, create a .env file with your credentials and run the server using the same MCP command. You can also supply the values directly in the command line as shown above.

SHOPIFY_ACCESS_TOKEN=your_access_token
MYSHOPIFY_DOMAIN=your-store.myshopify.com

Direct installation (alternative)

You can start the server directly after installation using the following command form.

npm install -g shopify-mcp
shopify-mcp --accessToken=<YOUR_ACCESS_TOKEN> --domain=<YOUR_SHOP>.myshopify.com

Available tools

get-products

Retrieve all products or search by title with optional limit to control results.

get-product-by-id

Fetch detailed information for a single product by its Shopify ID.

createProduct

Create a new product in the store with title, description, vendor, type, tags, and status (ACTIVE, DRAFT, ARCHIVED).

get-customers

Retrieve customers or search by name or email with an optional limit.

update-customer

Update a customer's information including name, email, phone, tags, notes, tax exemptions, and metafields.

get-customer-orders

Retrieve orders for a specific customer with a limit.

get-orders

Query orders with optional status filtering and limit.

get-order-by-id

Get a specific order by its full Shopify Order ID.

update-order

Update an existing order with tags, email, notes, custom attributes, metafields, and shipping address.