mcp-shopify mcp

v1.0.0 · MCP Tool · ecommerce · registry.pascalai.org

Shopify Admin REST API 2024-01 — products, orders, customers, inventory. Auth: shop domain + accessToken. Operations: list_products, get_product, create_product, update_product, delete_product, list_orders, get_order, update_order, list_customers, get_customer, adjust_inventory.

shopifyecommerceproductsordersretail

Input Parameters

ParameterTypeDescription
operationrequired string Operation to perform. One of: list_products, get_product, create_product, update_product, delete_product, list_orders, get_order, update_order, list_customers, get_customer, adjust_inventory.
shoprequired string Shop domain (e.g. mystore.myshopify.com).
accessTokenrequired string Shopify Admin API access token.
productIdoptional string Product ID for get, update, delete operations.
orderIdoptional string Order ID for get_order, update_order.
customerIdoptional string Customer ID for get_customer.
variantIdoptional string Variant ID for adjust_inventory.
locationIdoptional string Location ID for adjust_inventory.
quantityoptional integer Quantity delta for adjust_inventory (positive=add, negative=subtract).
limitoptional integer Max results per page (default: 50, max: 250). Default: 50.
statusoptional string Order status filter: open, closed, cancelled, any (default: open). Default: open.
bodyoptional string JSON object with fields for create/update operations.

Output Fields

FieldTypeDescription
product object
products array[object]
order object
orders array[object]
customers array[object]
ok boolean
error string

Examples

List products

// Input
{
  "operation": "list_products",
  "shop": "mystore.myshopify.com",
  "accessToken": "shpat_xxx",
  "limit": 10
}

// Output
{
  "products": [
    {
      "id": 1,
      "title": "T-Shirt",
      "variants": []
    }
  ]
}

Install & Discovery

Install

ppm install mcp-shopify

Get JSON Schema

GET /v1/packages/mcp-shopify/1.0.0/schema

Discover by keyword

GET /v1/mcp/discover?q=shopify
Discovery hint: Install with ppm install mcp-shopify or invoke remotely via POST /v1/invoke/mcp-shopify on the MCP Service.

PascalAI Usage

uses toolslib;
var Tool := LoadTool('mcp-shopify');
var R := Tool.Call(JsonObj(['operation','list_products','shop','store.myshopify.com','accessToken','shpat_xxx']));
Writeln(R.ToJSON);