1 ---
2 sidebar_label: Migrate from WooCommerce
3 ---
4
5 import { Prerequisites, Table } from "docs-ui"
6
7 export const metadata = {
8 title: `${pageNumber} Migrate from WooCommerce to Medusa`,
9 }
10
11 # {metadata.title}
12
13 In this chapter, you'll learn how to use the [Docs MCP server](../page.mdx) to migrate your store's data from WooCommerce into Medusa.
14
15 ## What is the Migration Tool?
16
17 The Docs MCP server exposes a `get_import_data_from_shopify_or_other_platform_guide` tool that returns a complete, step-by-step implementation guide for importing or migrating existing store data into Medusa from WooCommerce.
18
19 You tell your AI agent that you're coming from WooCommerce and what you want to bring over, and it produces a working import: your store's data lands in Medusa with WooCommerce's model mapped onto Medusa's, and, depending on the approach you choose, the import can be re-run whenever you need it.
20
21 The tool can produce a migration for any of the following data types:
22
23 - Products, variants, prices, and images
24 - Inventory levels
25 - Collections and categories
26
27 The migration can also support other types like orders and customers, but it's mainly catered toward catalog data.
28
29 <Note>
30
31 The same tool also has curated guides for [Shopify](../migrate-from-shopify/page.mdx) and [Magento / Adobe Commerce](../migrate-from-magento/page.mdx). It's platform agnostic beyond those: for any other source, it returns a generic migration guide, so you can use it to migrate from platforms like BigCommerce and commercetools. Always tell your AI agent the actual platform you're migrating from, since knowing the real platform helps your agent map its data model correctly.
32
33 </Note>
34
35 ---
36
37 ## Who is this Useful for?
38
39 This tool is useful for:
40
41 - Merchants and teams migrating an existing store from WooCommerce to Medusa.
42 - Agencies and solution partners performing repeated WooCommerce migrations for clients.
43 - Teams running Medusa alongside a WooCommerce store that needs continuous data synchronization.
44 - Developers who need to seed a Medusa development environment with real catalog data.
45
46 ---
47
48 ## Why Use This Tool?
49
50 A migration is the one task where a plausible-looking result is the most dangerous. The import runs, rows appear in the database, and the problems only surface later: products that aren't purchasable, images that break when the WooCommerce store is switched off, and records that can't be matched back to WooCommerce when you need to re-sync.
51
52 Compared to reading the documentation yourself or [asking a Medusa question](../ask-medusa-question/page.mdx), this tool gives you:
53
54 - **A migration plan rather than an accumulation of answers.** Your agent gets the ordered approach for moving data from WooCommerce into Medusa, instead of assembling one from separate answers about importers, workflows, and file providers.
55 - **Source-platform quirks accounted for.** The curated WooCommerce guide carries the specifics of how WooCommerce models and exports its data, which is knowledge that lives in WooCommerce's ecosystem rather than in Medusa's documentation.
56 - **Imports that can be run again.** When you choose the API-based approach, the result is built to be idempotent and resumable, so a migration becomes ongoing synchronization rather than a one-time event you can't repeat.
57
58 Your agent still calls `ask_medusa_question` while it works, for the exact Medusa APIs and workflows involved. The guide decides the approach; the documentation supplies the details.
59
60 ---
61
62 ## Migration Approaches
63
64 The tool supports two migration approaches, and the guide it returns differs based on the approach you choose:
65
66 <Table>
67 <Table.Header>
68 <Table.Row>
69 <Table.HeaderCell>
70 Approach
71 </Table.HeaderCell>
72 <Table.HeaderCell>
73 How it works
74 </Table.HeaderCell>
75 <Table.HeaderCell>
76 When to use it
77 </Table.HeaderCell>
78 </Table.Row>
79 </Table.Header>
80 <Table.Body>
81 <Table.Row>
82 <Table.Cell>
83
84 **Custom** (default)
85
86 </Table.Cell>
87 <Table.Cell>
88
89 Builds a custom module and workflows in your Medusa application that pull data from WooCommerce's API. The import is idempotent, resumable, and re-runnable, and it can be triggered from an admin widget, a scheduled job, a CLI command, or a webhook.
90
91 </Table.Cell>
92 <Table.Cell>
93
94 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.
95
96 </Table.Cell>
97 </Table.Row>
98 <Table.Row>
99 <Table.Cell>
100
101 **CSV**
102
103 </Table.Cell>
104 <Table.Cell>
105
106 Builds a transform from WooCommerce'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.
107
108 </Table.Cell>
109 <Table.Cell>
110
111 You can't create an API app or credentials on WooCommerce, or you want a single minimum-effort cutover and will handle stock quantities and images yourself.
112
113 </Table.Cell>
114 </Table.Row>
115 </Table.Body>
116 </Table>
117
118 The CSV approach is much faster to build, but it's lossy: inventory quantities aren't migrated, images stay as URLs pointing to WooCommerce's CDN, collections usually aren't part of the export, and most exports have no ID column, so records can't be keyed back to the source for later re-syncs.
119
120 <Note type="warning">
121
122 Don't mix the two approaches on the same store. The CSV path can't key records to source IDs, so running the API-based importer afterwards treats every record as new and fails on duplicate product handles.
123
124 </Note>
125
126 ---
127
128 ## How to Use the Migration Tool
129
130 <Prerequisites
131 items={[
132 {
133 text: "Docs MCP server connected to your AI tool or IDE",
134 link: "/learn/introduction/build-with-llms-ai/docs-mcp-server"
135 }
136 ]}
137 />
138
139 After [connecting to the Docs MCP server](../page.mdx#connect-to-the-docs-mcp-server), ask your AI agent to migrate your data. Your agent detects the intent, calls the migration tool with WooCommerce as the source platform, along with the data type and approach, then follows the returned guide.
140
141 For example:
142
143 ```bash title="Example prompt"
144 Migrate my WooCommerce store's products to Medusa.
145 ```
146
147 Other prompts that trigger the tool:
148
149 ```bash title="Example prompts"
150 Import our WooCommerce catalog into Medusa.
151 ```
152
153 ```bash title="Example prompts"
154 We're switching from WooCommerce. Move our products and customers over to Medusa.
155 ```
156
157 ### What to Expect
158
159 1. Your AI agent asks which approach you want, if you haven't specified one, and explains the trade-offs.
160 2. It calls the migration tool for WooCommerce, along with the data type and approach.
161 3. It scaffolds the module, workflows, and any triggers or transforms the guide specifies.
162 4. It guides you through running the import and verifying the migrated data.
163
164 <Note title="Tip">
165
166 If you're migrating multiple data types, ask your agent to start with products. Other entities, such as orders and inventory, reference products, so migrating products first avoids unresolved references.
167
168 </Note>
169
170 ---
171
172 ## Not a Docs MCP server user?
173
174 If you don't use the Docs MCP server but need help migrating your store's data to Medusa, contact our team for other options:
175
176 1. [WooCommerce Migration](https://medusajs.com/contact?type=mcp-server-woocommerce-migration)
177 2. [Other Platform Migration](https://medusajs.com/contact?type=mcp-server-other-platform-migration)