Migrate from Shopify to Medusa
In this guide, you'll learn how to use the Docs MCP server to migrate your store's data from Shopify into Medusa.
What is the Migration Tool?#
The get_import_data_from_shopify_or_other_platform_guide tool returns a complete, step-by-step implementation guide for migrating existing store data into Medusa from Shopify, including Shopify Plus.
Tell your AI agent what you want to bring over from Shopify, and it produces a working import that maps Shopify's data model onto Medusa's. Depending on the approach you choose, you can re-run the import whenever you need it.
The tool focuses on catalog data:
- Products, variants, prices, and images
- Inventory levels
- Collections and categories
It can also support other types, such as orders and customers.
Who is this Useful for?#
This tool is useful for:
- Merchants and teams migrating an existing store from Shopify to Medusa.
- Agencies and solution partners performing repeated Shopify migrations for clients.
- Teams running Medusa alongside a Shopify store that needs continuous data synchronization.
- Developers who need to seed a Medusa development environment with real catalog data.
Why Use This Tool?#
In a migration, a plausible-looking result is the most dangerous. The import runs and rows appear in the database, but problems surface later: products that aren't purchasable, images that break when you switch off the Shopify store, and records you can't match back to Shopify to re-sync.
Compared to reading the documentation yourself or asking a Medusa question, this tool gives you:
- A migration plan, not a pile of answers. Your agent gets the ordered approach for moving data from Shopify into Medusa, instead of assembling one from separate answers about importers, workflows, and file providers.
- Source-platform quirks accounted for. The curated Shopify guide covers how Shopify models and exports its data, knowledge that lives in Shopify's ecosystem, not Medusa's documentation.
- Imports you can run again. With the API-based approach, the import is idempotent and resumable, so the migration becomes ongoing synchronization instead of a one-time event.
Your agent still calls ask_medusa_question for the exact Medusa APIs and workflows involved. The guide decides the approach; the documentation supplies the details.
Migration Approaches#
The tool supports two migration approaches, and returns a different guide for each:
Approach | How it works | When to use it |
|---|---|---|
Custom (default) | Builds a custom module and workflows in your Medusa application that pull data from Shopify's API. The import is idempotent, resumable, and re-runnable, and you can trigger it from an admin widget, a scheduled job, a CLI command, or a webhook. | You need to migrate inventory levels or re-host images in Medusa's file provider, or you want ongoing synchronization rather than a one-time cutover. |
CSV | Builds a transform from Shopify's CSV export into the CSV format that Medusa's built-in product importer accepts. You then import the resulting file from the Medusa Admin. | You can't create an API app or credentials on Shopify, or you want a single minimum-effort cutover and will handle stock quantities and images yourself. |
The CSV approach is much faster to build, but it's lossy:
- It doesn't migrate inventory quantities.
- Images stay as URLs pointing to Shopify's CDN.
- Collections usually aren't part of the export.
- Most exports have no ID column, so you can't key records back to the source for later re-syncs.
How to Use the Migration Tool#
After connecting to the Docs MCP server, ask your AI agent to migrate your data. Your agent calls the migration tool with Shopify as the source platform, the data type, and the approach, then follows the returned guide.
For example:
Other prompts that trigger the tool:
What to Expect#
- Your AI agent asks which approach you want, if you haven't specified one, and explains the trade-offs.
- It calls the migration tool for Shopify, along with the data type and approach.
- It scaffolds the module, workflows, and any triggers or transforms the guide specifies.
- It guides you through running the import and verifying the migrated data.