Shopify MCP Server provides a bridge to the Shopify GraphQL Admin API, enabling AI assistants to interact with store data through five specialized tools for product, customer, and order management. Built with TypeScript, it authenticates with Shopify using custom app access tokens and exposes functionality for searching products, retrieving customer information, querying orders with filters, and updating order details. The implementation handles GraphQL requests with comprehensive error reporting and can be configured through command-line arguments or environment variables. This server is particularly valuable for e-commerce store owners and managers who want to leverage AI assistants for inventory management, customer analysis, and order processing without switching to the Shopify admin interface.
Aucun avis encore. Soyez le premier à donner votre avis !
Connectez-vous pour rejoindre la conversation
Get all products or search by title. Inputs: searchTitle (optional string), limit (number): Maximum number of products to return.
Get a specific product by ID. Inputs: productId (string): ID of the product to retrieve.
Create a new product. Inputs: title (string, required), descriptionHtml (string, optional), handle (string, optional), vendor (string, optional), productType (string, optional), tags (array of strings, optional), status (string, optional), seo (object, optional), metafields (array of objects, optional), productOptions (array of objects, optional), collectionsToJoin (array of strings, optional).
Update an existing product's fields. Inputs: id (string, required), title (string, optional), descriptionHtml (string, optional), handle (string, optional), vendor (string, optional), productType (string, optional), tags (array of strings, optional), status (string, optional), seo (object, optional), metafields (array of objects, optional), collectionsToJoin (array of strings, optional), collectionsToLeave (array of strings, optional), redirectNewHandle (boolean, optional).
Delete a product. Inputs: id (string, required): Shopify product GID.
Create, update, or delete product options (e.g. Size, Color). Inputs: productId (string, required), action (string, required), options (array, required), optionId (string, optional), name (string, optional), position (number, optional), valuesToAdd (array of strings, optional), valuesToDelete (array of strings, optional), optionIds (array of strings, required for delete).
Create or update product variants in bulk. Inputs: productId (string, required), strategy (string, optional), variants (array, required).
Delete one or more variants from a product. Inputs: productId (string, required), variantIds (array of strings, required).
Get customers or search by name/email. Inputs: searchQuery (optional string), limit (optional number, default: 10): Maximum number of customers to return.
Update a customer's information. Inputs: id (string, required), firstName (string, optional), lastName (string, optional), email (string, optional), phone (string, optional), tags (array of strings, optional), note (string, optional), taxExempt (boolean, optional), metafields (array of objects, optional).
Get orders for a specific customer. Inputs: customerId (string, required), limit (optional number, default: 10): Maximum number of orders to return.
Get orders with optional filtering. Inputs: status (optional string), limit (optional number, default: 10): Maximum number of orders to return.
Get a specific order by ID. Inputs: orderId (string, required): Full Shopify order ID.
Update an existing order with new information. Inputs: id (string, required), tags (array of strings, optional), email (string, optional), note (string, optional), customAttributes (array of objects, optional), metafields (array of objects, optional), shippingAddress (object, optional).