development
location
documentation
public
API
Shopify
What is Access the Shopify Storefront API via MCP for AI assistants.?
This server provides access to the Shopify Storefront API via MCP, allowing AI assistants to query and interact with your Shopify store data. It supports product, collection, and inventory data access, cart management, GraphQL queries, and automatic token handling.
Documentation
Shopify Storefront MCP Server
This server provides access to the Shopify Storefront API via MCP, allowing AI assistants to query and interact with your Shopify store data.
Features
Access to product, collection, and inventory data
Cart creation and management
Support for GraphQL queries and mutations
Automatic token handling and validation
Easy integration with MCP-compatible AI assistants
Customer data is stored in user_data/customer.json and should be managed using the customer_data tool.
Managing Customer Data
The server provides a unified customer_data tool for managing all customer information. This tool consolidates create, read, update, and delete operations into a single interface.
Examples:
customer_data(operation="get")
# Get a specific field
customer_data(operation="get", field="name")
customer_data(operation="get", field="shipping_address")
# Update a specific field
customer_data(operation="update", field="name", value="Jane Doe")
customer_data(
operation="update",
shipping_address={
"address1": "123 Main St",
"address2": "Apt 4B",
"city": "New York",
"state": "NY",
"postal_code": "10001",
"country": "US"
}
)
# Add custom fields
customer_data(
operation="update",
custom_fields={
"preferences": {
"theme": "dark",
"notifications": "email",
"language": "en-US"
},
"loyalty_tier": "gold",
"last_purchase_date": "2023-06-15"
}
)
# Get a custom field
customer_data(operation="get", field="preferences")
customer_data(operation="get", field="loyalty_tier")
# Update single custom field
customer_data(operation="update", field="loyalty_tier", value="platinum")
# Delete a specific field
customer_data(operation="delete", field="phone")
customer_data(operation="delete", field="preferences")
# Delete all customer data
customer_data(operation="delete")
This consolidated tool simplifies integration with AI assistants by providing a consistent interface for all customer data operations, including both standard customer information and any custom fields that may be useful for personalization.
Data Privacy & Storage
Customer data is stored in user_data/customer.json. This file contains personal information and should not be committed to version control. The repository includes:
user_data/customer.json.example: A template file showing the expected structure with dummy data
Entries in .gitignore to prevent accidental commits of actual customer data
When deploying this server, the user_data/customer.json file will be created automatically when the customer_data tool is first used. You can also copy and rename the example file to get started:
All data stored in the customer file persists between server restarts. The file supports both standard customer fields (name, email, addresses) and arbitrary custom fields for AI personalization.
Creating Checkouts with Customer Data
The server makes it easy to create Shopify checkouts that include customer information by combining the customer_data and shopify_storefront_graphql tools.