Unofficial MCP server that allows AI agents to discover Shopify storefronts and interact with them to fetch products, collections, and other store data through the Storefront API.
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.
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
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.
Troubleshooting
If you encounter authentication errors:
Verify token format: Storefront API tokens should start with shpsa_ (newer) or shpat_ (older)
Check store name: Ensure SHOPIFY_STORE_NAME is correct (without .myshopify.com)
Check API version: Make sure the API version is supported
Test token: Use cURL to test your token directly:
curl -X POST \
https://your-store.myshopify.com/api/2025-04/graphql.json \
- H "Content-Type: application/json" \
- H "X-Shopify-Storefront-Access-Token: your_token" \
- d '{"query": "query { shop { name } }"}'
Regenerate token: If issues persist, create a new token with proper scopes
Security Considerations
Never commit your .env file or any files containing API tokens
Use environment variables for all sensitive information
Consider setting up IP restrictions in your Shopify Admin
Review the permissions granted to your Storefront API token