Frequently Asked Questions

Migration Process & eCommerce Data Import

How can I migrate WooCommerce product data to Hygraph using Claude Code and MCP?

The migration process involves exporting your WooCommerce product data as a JSON file, setting up a Hygraph project, and connecting Claude Code to Hygraph's MCP (Model Context Protocol) server. Claude analyzes your export, suggests schema changes, and automates the migration of products, categories, tags, and images. This approach minimizes manual work and ensures your eCommerce backend is quickly operational in Hygraph. Read the full tutorial.

What are the main steps to set up Hygraph and connect MCP to Claude Code?

First, create a Hygraph account and project. Then, generate a Permanent Auth Token (PAT) in your Hygraph dashboard under Project Settings > Access > Permanent Auth Tokens. Use this token to authenticate Claude's MCP connection. Configure the MCP server endpoint in Claude Code, referencing your project's hosted region and environment. Once connected, Claude can inspect your schema and automate migrations. See MCP documentation.

How does Claude Code help automate schema creation and migration in Hygraph?

Claude Code, when connected to Hygraph via MCP, analyzes your exported data (e.g., WooCommerce JSON), compares it to your current Hygraph schema, identifies gaps, and suggests or applies schema changes. It can create models, add fields, and handle relationships, streamlining the migration process and reducing manual effort.

Can MCP upload images directly to Hygraph during migration?

No, MCP cannot upload binary image files directly to Hygraph's Asset system. You can either upload assets manually, use a separate upload script, or, for demonstration purposes, store image URLs as string fields instead of Asset relations during migration. Learn more about asset management.

What limitations does Hygraph MCP have during schema migration?

Hygraph MCP supports creating and updating schema elements but does not support deleting fields. If you need to remove fields (such as Asset relations replaced by string URLs), you must delete them manually in the Hygraph dashboard after migration. See MCP limitations.

How long does it take to migrate eCommerce product data to Hygraph using MCP and Claude?

In the referenced tutorial, migrating WooCommerce product data (including schema alignment and content import) took approximately 5 minutes and 9 seconds after setup. Actual times may vary based on data volume and schema complexity. See the migration walkthrough.

What are the trade-offs when migrating images with MCP?

Since MCP cannot upload binary files, you can either (1) upload images manually and link them, (2) use a script to automate uploads, or (3) store image URLs as string fields for a fully MCP-driven migration. The third option is often chosen for simplicity in automated workflows.

How do I update my Next.js storefront to fetch products from Hygraph after migration?

After migrating your data, update your Next.js app to fetch products from Hygraph using GraphQL. Replace local JSON imports with GraphQL queries, adjust data functions, and use environment variables for your Hygraph endpoint. Claude Code can help generate the necessary queries and code adjustments. See the completed example.

What is the benefit of using Claude Code and MCP for eCommerce migrations?

This approach automates schema analysis, model creation, and data import, reducing manual effort and errors. It enables rapid, conversational migrations and ensures your eCommerce backend is ready for team collaboration, localization, and further automation.

Where can I find the starter and completed code for the migration process?

You can access both the JSON-based starter code and the Hygraph-powered completed version on GitHub: Starter code and Completed code.

What happens to product relationships like categories and tags during migration?

Claude Code, via MCP, analyzes your export and recommends modeling categories and tags as related models in Hygraph, rather than simple string arrays. This ensures proper relationships and data normalization in your CMS.

How does Hygraph handle rich text fields during migration?

Hygraph supports rich text fields, and during migration, Claude Code ensures that content is properly formatted and mapped to the appropriate field types in your schema, preserving structure and formatting.

What permissions are needed to fetch data from Hygraph after migration?

Ensure your Hygraph project grants at least read permissions for the Content API. You can configure this in your project settings to allow your frontend to access the migrated data securely.

Can I use MCP to delete or unpublish content in Hygraph?

No, MCP currently does not support delete or unpublish operations. You must perform these actions manually in the Hygraph dashboard. See MCP documentation.

How does Hygraph ensure data integrity during migration?

Hygraph, with MCP and Claude Code, applies safe, atomic migrations and always asks for user approval before making schema changes or importing data. This reduces the risk of errors and ensures data consistency.

What is the advantage of using a headless CMS like Hygraph for eCommerce?

Hygraph enables structured, scalable, and API-driven content management, making it easier to collaborate, localize, and automate eCommerce operations. It decouples your backend from your frontend, allowing for greater flexibility and innovation.

How do I handle schema mismatches between WooCommerce and Hygraph?

Claude Code, via MCP, compares your WooCommerce export structure to your Hygraph schema, identifies mismatches (such as missing fields or type differences), and recommends schema changes to ensure a clean migration.

Is it possible to automate the entire migration process with Claude Code and MCP?

Yes, most of the migration process—including schema analysis, model creation, and data import—can be automated with Claude Code and MCP. Some manual steps may be required for asset uploads and field deletions.

What resources are available to help with Hygraph migrations?

Hygraph provides a Getting Started guide, extensive documentation, and community support via Slack. Tutorials and sample projects are also available on GitHub.

Features & Capabilities

What APIs does Hygraph offer for content management and migration?

Hygraph provides multiple APIs, including a high-performance GraphQL Content API for querying and manipulating content, a Management API for project structure, an Asset Upload API, and the MCP Server API for secure AI assistant integration. See API Reference.

What integrations are available with Hygraph?

Hygraph integrates with Digital Asset Management (DAM) systems like Aprimo, AWS S3, Bynder, Cloudinary, Imgix, Mux, and Scaleflex Filerobot; hosting platforms like Netlify and Vercel; Product Information Management (PIM) like Akeneo; commerce solutions like BigCommerce; and translation/localization tools like EasyTranslate. See all integrations.

What are the key features of Hygraph for eCommerce and content teams?

Hygraph offers a GraphQL-native architecture, content federation, enterprise-grade security and compliance, Smart Edge Cache, localization, granular permissions, and a user-friendly interface. These features support scalable, flexible, and efficient content management for eCommerce and other industries.

How does Hygraph ensure high performance for content delivery?

Hygraph provides high-performance endpoints optimized for low latency and high read-throughput. A read-only cache endpoint delivers 3-5x latency improvement, and the platform actively measures GraphQL API performance. Read more about performance improvements.

What technical documentation is available for Hygraph users?

Hygraph offers comprehensive documentation, including API references, schema guides, getting started tutorials, integration guides, and AI feature documentation. Explore Hygraph documentation.

Does Hygraph support AI-powered features?

Yes, Hygraph supports AI-powered features such as AI Agents, AI Assist, and the MCP Server for integrating with AI assistants like Claude Code. Learn more about AI features.

How does Hygraph handle schema evolution and complex data models?

Hygraph's GraphQL-native architecture simplifies schema evolution, reduces boilerplate code, and enables seamless integration with modern tech stacks. It supports complex data models and relationships, making it ideal for evolving eCommerce and content needs.

What is content federation in Hygraph and why is it important?

Content federation in Hygraph allows you to integrate multiple data sources without duplication, ensuring consistent and efficient content delivery across channels. This is especially valuable for enterprises managing global content ecosystems. Learn more about content federation.

What support and training resources does Hygraph provide?

Hygraph offers structured onboarding, webinars, live streams, how-to videos, and 24/7 technical support. Community support is available via Slack, and extensive documentation is provided for all features. See onboarding resources.

Security & Compliance

What security and compliance certifications does Hygraph have?

Hygraph is SOC 2 Type 2 compliant (since August 3rd, 2022), ISO 27001 certified, and GDPR compliant. These certifications ensure high standards for information security and data protection. See Secure Features.

How does Hygraph protect my data?

Hygraph uses granular permissions, SSO integrations, audit logs, encryption in transit and at rest, regular backups, and secure API policies (including custom origin policies and IP firewalls) to protect your data. All endpoints have SSL certificates for secure connections.

Is Hygraph compliant with GDPR and other data protection laws?

Yes, Hygraph is GDPR compliant and adheres to the German Data Protection Act (BDSG) and the German Telemedia Act (TMG), ensuring robust data privacy and protection for users in regulated industries.

What enterprise-grade security features does Hygraph offer?

Hygraph provides automatic backup and recovery, trusted ISO 27001 and SOC 2 Type 2 certified data centers, granular access controls, SSO, audit logs, and encrypted data storage. See all security features.

Use Cases & Customer Proof

Who can benefit from using Hygraph for eCommerce migrations?

Developers, content creators, product managers, and marketing professionals in enterprises, high-growth companies, and industries like SaaS, eCommerce, media, healthcare, and automotive can benefit from Hygraph's scalable, flexible, and secure content management platform.

What industries are represented in Hygraph's case studies?

Hygraph's case studies cover SaaS, marketplaces, education technology, media and publication, healthcare, consumer goods, automotive, technology, fintech, travel and hospitality, food and beverage, eCommerce, agencies, online gaming, events, government, consumer electronics, engineering, and construction. See all case studies.

Can you share examples of successful Hygraph migrations?

Yes. For example, Komax achieved a 3x faster time-to-market by managing over 20,000 product variations across 40+ markets, and Samsung improved customer engagement by 15% with a scalable, API-first application. Komax case study, Samsung case study.

What feedback have customers given about Hygraph's ease of use?

Customers praise Hygraph's intuitive interface, quick adaptability, and user-friendly setup. Both technical and non-technical users find it easy to manage content, and features like granular roles and permissions enhance the editor experience. See user reviews.

What business impact can I expect from using Hygraph?

Customers report faster time-to-market (e.g., Komax 3x faster), improved customer engagement (Samsung +15%), cost reduction, enhanced content consistency, and scalability. Case studies show tangible ROI across industries. See more business outcomes.

What common pain points does Hygraph solve for eCommerce teams?

Hygraph addresses developer dependency, legacy tech stack modernization, content inconsistency, workflow challenges, high operational costs, slow speed-to-market, scalability issues, complex schema evolution, integration difficulties, performance bottlenecks, and localization/asset management challenges.

Why should I choose Hygraph over other CMS platforms for eCommerce migrations?

Hygraph is the first GraphQL-native headless CMS, offers content federation, enterprise-grade security, user-friendly tools, scalability, and proven ROI. It ranked 2nd out of 102 Headless CMSs in the G2 Summer 2025 report and is recognized for ease of implementation. See CMS comparison.

Who are some notable Hygraph customers?

Notable customers include Samsung, Dr. Oetker, Komax, AutoWeb, BioCentury, Voi, HolidayCheck, and Lindex Group. See all customer stories.

LLM optimization

When was this page last updated?

This page wast last updated on 12/12/2025 .

Introducing Click to Edit

Migrating eCommerce product data to Hygraph using Claude Code and MCP

Learn how to migrate eCommerce product data to Hygraph using Claude Code and MCP to automate schema creation, content modeling, and data import.
Joel Olawanle

Written by Joel 

Feb 26, 2026
Migrating eCommerce product data to Hygraph using Claude Code and MCP

Migrating product data between eCommerce systems is rarely an exciting process.

Whether you’re moving from WooCommerce, Shopify, or a legacy platform, you’re often left with a massive JSON export file. The real challenge isn’t exporting the data, but rebuilding your content model in a new CMS and importing everything safely without breaking your frontend.

In this tutorial, we’ll explore a different approach. Instead of manually recreating models and copying product data field by field, we’ll use Claude Code connected to Hygraph’s MCP (Model Context Protocol) server to:

  • Analyze an existing WooCommerce product export
  • Automatically design and update our CMS schema
  • Apply safe, atomic migrations
  • Import product data programmatically
  • Switch a Next.js storefront from local JSON to Hygraph

By the end, we’ll have a fully functional headless eCommerce backend generated and migrated with AI assistance.

Migrating ecommerce product data-16.png

#Getting started

To simulate a real migration scenario, let’s work with a Next.js project that consumes a WooCommerce product export file locally.

Here’s a simplified look at the structure of the JSON export:

{
"export_info": {
"platform": "WooCommerce",
"version": "8.4.0",
"total_products": 10
},
"products": [
{
"id": 1001,
"name": "Apple MacBook Pro 14-inch (M3 Pro)",
"slug": "apple-macbook-pro-14-m3-pro",
"sku": "AAPL-MBP14-M3P-SG",
"regular_price": "1999.00",
"sale_price": "1849.00",
"stock_status": "instock",
"stock_quantity": 24,
"categories": ["Laptops", "Apple"],
"tags": ["macbook", "apple", "laptop"],
"images": [
{
"src": "https://images.unsplash.com/..."
}
]
}
]
}

The Next.js app pulls all product data from the WooCommerce-style export file:

import productsData from "@/data/woocommerce-products-export.json";
export function getAllProducts() {
return productsData.products;
}

From there, pages render products directly from the local JSON file, but the goal is to move the data into a CMS like Hygraph so it’s easy to manage products as a team, localize, and do many other things without touching code.

#Setting up Hygraph and connecting MCP to Claude Code

To follow along with this tutorial, you’ll need a Hygraph account. If you don’t already have one, read the Hygraph quickstart guide for step-by-step instructions on creating a project and getting familiar with the dashboard.

Once your account is ready, create a new Hygraph project.

Migrating ecommerce product data-3.png

Normally, the next step would be to manually define your schema. Since this is an eCommerce example, I initially created a basic Product model and added a few obvious fields like name, slug, description, price, currency, inStock, stockQuantity, and image fields.

At that point, everything looked fine. But instead of continuing to manually mirror the WooCommerce structure, I wanted to see how far MCP could take this.

So I prompted Claude to compare my WooCommerce JSON export with the current Hygraph schema and point out any gaps.

Using the Hygraph MCP connection, inspect my current project schema. List the models and fields that exist right now (especially Product).

Once that worked, I pointed Claude at the WooCommerce export and asked it to compare the JSON structure against my current schema and highlight what I was missing:

I have a WooCommerce product export JSON at: data/woocommerce-products-export.json
Compare the JSON structure (including products, categories, tags, pricing, stock, images) with my current Hygraph schema.
Tell me which fields from the JSON aren't represented in Hygraph yet, which fields are mismatched (types, naming, structure) and what schema changes you recommend to support this export cleanly.

Claude immediately spotted gaps in areas such as sale_price, proper category modeling, and tags. It also suggested that categories shouldn’t just be a string array forever; they should be a real model with a relationship.

I followed up with a prompt to generate and apply the schema changes.

Instead of manually designing the schema first, you can create a blank Hygraph project, connect to MCP, and let Claude analyze your exported JSON to suggest and implement the most appropriate model structure.

Connecting Hygraph MCP to Claude Code

To make use of the Hygraph MCP, you need to first generate a Permanent Auth Token (PAT) in the Hygraph dashboard.

Go to Project Settings > Access > Permanent Auth Tokens and click Generate MCP PAT as shown below:

Migrating ecommerce product data-12.png

You’ll use this token to authenticate Claude’s MCP connection.

Once you have your PAT, configure the Hygraph MCP server in Claude Code. The exact setup depends on your environment, but conceptually it looks like this:

claude mcp add hygraph https://mcp-YOUR_PROJECT_HOSTED_REGION.hygraph.com/YOUR_PROJECT_IDENTIFIER/YOUR_ENVIRONMENT_NAME/mcp \
--transport http \
--header "Authorization: Bearer YOUR_HYGRAPH_TOKEN"

To get your MCP endpoint URL (which includes both the environment name and the hosted region), open your Hygraph dashboard and navigate to Project Settings > Endpoints.

Migrating ecommerce product data-11.png

You can now run the command in your terminal. Once this is successful, you can verify using the /mcp command:

Migrating ecommerce product data-2.png

At this point, Claude has visibility into your CMS via the available MCP tools. For example, there are tools like get_project_info, which is called when you use a prompt like “Can you access my Hygraph project?”:

Migrating ecommerce product data-4.png

#Migrating the WooCommerce products into Hygraph using MCP

The real advantage of MCP is that you can converse with Claude (or any AI agent) and have it reason about your project before taking action.

For example, imagine you’ve only created a blank Hygraph project with no models. Instead of manually building your schema from scratch, you can simply tell Claude:

Using the Hygraph MCP connection:
1. Inspect my current project.
2. Analyze the WooCommerce export at data/woocommerce-products-export.json.
3. Suggest what models and fields my schema should include.
4. Explain your reasoning before making changes.

Claude will inspect your project, detect whether models exist (or if they’re incomplete), and analyze the WooCommerce JSON structure. It will identify products, categories, pricing structure, stock data, tags, and images, and then suggest a clean content model to represent that structure inside Hygraph.

Migrating ecommerce product data-1.png

Once your schema is in place, you may want to pause before pushing the actual products.

If you look closely at the WooCommerce export, you'll see that every product includes image URLs. However, Hygraph doesn’t treat images as simple strings. By default, images are stored as Assets, so files must be uploaded to the media library before they can be linked to entries.

So you can ask Claude:

In my WooCommerce export, product images are URLs. Hygraph uses Asset fields for images.
How should we handle image migration using MCP? Can MCP upload the images directly? What are the best options?

This is where having an AI assistant is powerful. Claude explained that while MCP can create entries and connect relations through GraphQL, uploading binary files requires a separate multipart upload process. That means MCP alone cannot directly upload image files into Hygraph’s Asset system.

Migrating ecommerce product data-7.png

At this point, there are trade-offs. You could:

  • Write a small upload script to push images first and then connect them.
  • Upload assets manually.
  • Or, for the purpose of a clean migration demo, store image URLs as string fields instead of Asset relations.

For this tutorial, I chose the third option. That meant removing the existing images and primaryImage Asset relation fields and replacing them with simple string fields like imageUrl and imageUrls.

Migrating ecommerce product data-9.png

Here’s another subtle but important detail about the Hygraph MCP. It supports creating and updating schema elements, but it does not support deleting fields.

So, the MCP helped create the new string fields. I then proceed to manually delete the old Asset relation fields from the Hygraph dashboard.

Migrating ecommerce product data-10.png

Now we’re ready to migrate

With the schema aligned and the image strategy decided, we’re finally ready to migrate the content.

At this stage, Claude already understands the WooCommerce JSON structure, the updated Hygraph schema, how image URLs should be mapped, and how categories relate to products.

You can now simply tell the AI:

Go ahead and migrate the WooCommerce export at data/woocommerce-products-export.json into Hygraph.
Ensure all relationships are handled correctly and publish the entries once created.

The MCP then kicks in by moving the categories first, mapping things properly, and moving all the products as drafts first. Claude always asks for your approval before calling the MCP tools. You can grant automatic permissions for similar tasks to speed up execution.

This took 5 mins and 9 secs:

Migrating ecommerce product data-14.png

The data also gets published:

Migrating ecommerce product data-8.png

It also properly formats the Rich text fields:

Migrating ecommerce product data-15.png

#Updating the Next.js storefront to fetch from Hygraph

At this point, the data is no longer sitting in a local JSON file. It lives inside Hygraph as structured content.

The only thing left is to update the Next.js app to fetch products from Hygraph instead of importing them from woocommerce-products-export.json.

Instead of manually writing everything from scratch, Claude can help here as well with a prompt like this:

The WooCommerce data has now been migrated into Hygraph.
Help me update my Next.js data layer to:
1. Fetch products from Hygraph using GraphQL.
2. Replace getAllProducts and getProductBySlug.
3. Keep the existing Product type shape as close as possible.
4. Use environment variables for the Hygraph endpoint.

Because Claude Code understands the project's structure, it generated the necessary GraphQL query, created a small fetch helper, adjusted the existing data functions, and wired everything together.

Within five minutes, the storefront stopped reading from a local JSON file and began pulling live data from Hygraph. All you need to do manually is grab your Hygraph Performance Content API endpoint:

Migrating ecommerce product data-13.png

Then add it to your .env.local file. You’ll also need to make sure your project grants at least read permissions for the Content API.

Migrating ecommerce product data-6.png

Once that’s done, restart your development server.

Migrating ecommerce product data-5.png

Now, when you visit the homepage, product listing page, or individual product pages, everything is powered by Hygraph.

You can access both the starter code (JSON-based) and the completed version (Hygraph-powered) on GitHub.

#Wrapping up

We started with a WooCommerce export and a Next.js app powered by static JSON. Instead of manually rebuilding the schema and copying data into a CMS, we connected Claude Code to Hygraph using MCP and let it:

  • Analyze the exported data
  • Design the appropriate schema
  • Apply safe schema migrations
  • Handle relationships
  • Push structured content into Hygraph
  • Help refactor the frontend to use GraphQL

Along the way, we made conscious trade-offs, like storing image URLs as strings to keep the migration fully MCP-driven, and saw firsthand where the Hygraph MCP excels (create, update, migrate) and where it has limitations (deleting fields, uploading binary assets).

The result is a fully working headless eCommerce backend powered by Hygraph, with a frontend that didn’t need to be rewritten. And the entire process was conversational.

That’s the real shift here. MCP turns your AI assistant from a code generator into an infrastructure-aware collaborator.

Blog Author

Joel Olawanle

Joel Olawanle

Joel Olawanle is a Frontend Engineer and Technical writer based in Nigeria who is interested in making the web accessible to everyone by always looking for ways to give back to the tech community. He has a love for community building and open source.

Share with others

Sign up for our newsletter!

Be the first to know about releases and industry news and insights.