A Model Context Protocol (MCP) server that provides integration with Shopify for product listing and search functionality.
- List Products: Retrieve a list of products from your Shopify store
- Search Products: Search products by title or handle
- Node.js 18 or higher
- A Shopify store with Admin API access
- Shopify access token with appropriate permissions
-
Clone this repository
-
Install dependencies:
npm install
-
Copy
.env.exampleto.envand fill in your Shopify credentials:cp .env.example .env
Then edit
.envwith your actual values:SHOPIFY_STORE_DOMAIN=your-store.myshopify.com SHOPIFY_ACCESS_TOKEN=your-access-token
-
Build the project:
npm run build
Add the server to your Claude Desktop configuration:
{
"mcpServers": {
"shopify": {
"command": "node",
"args": ["/path/to/your/mcp/build/index.js"],
"env": {
"SHOPIFY_STORE_DOMAIN": "your-store.myshopify.com",
"SHOPIFY_ACCESS_TOKEN": "your-access-token"
}
}
}
}You can also run the server directly:
SHOPIFY_STORE_DOMAIN=your-store.myshopify.com SHOPIFY_ACCESS_TOKEN=your-token node build/index.jsLists products from the Shopify store.
Parameters:
limit(optional): Number of products to return (max 250, default 50)page(optional): Page number for pagination (default 1)
Searches products by title or handle.
Parameters:
query(required): Search querylimit(optional): Number of products to return (max 250, default 50)
To modify the server:
- Edit files in the
src/directory - Run
npm run buildto compile TypeScript - Test your changes
MIT