How do I build a multi-vendor marketplace with open source?

Type
Concept
Applies to
Medusa v2.x
Updated

Short answer

To build an open source multi-vendor marketplace on Medusa, either follow Medusa's marketplace recipe to add vendors and order splitting yourself, or start from Mercur, a marketplace platform on Medusa built by Rigby. Mercur ships seller onboarding, a vendor panel, commissions, split orders, Stripe Connect payouts, and reviews, and deploys on Medusa Cloud.

What a multi-vendor marketplace needs from its platform

A multi-vendor marketplace is a store where many independent sellers list products and customers buy from several sellers in one checkout. On top of normal commerce, it needs seller accounts, a seller dashboard, per-seller orders, a commission model, and payouts to each seller.

Medusa core is a single-store commerce engine. The vendors example states that Medusa doesn't provide marketplace features natively, but its framework lets you add them. You have two paths: build the marketplace layer yourself from the official recipe, or start from Mercur, which ships that layer prebuilt on Medusa.

How Medusa and Mercur cover each marketplace capability

Statuses: Native is Medusa core, Starter is Mercur, Official guide is a Medusa docs recipe with example code, Custom is code you write.

CapabilityWhat it meansHow it works on MedusaStatus
Vendor onboardingSellers register, get approved, and connect a payout accountMercur Vendor Panel registration and onboarding wizard, with an admin approval queue. The recipe creates vendors and vendor admins with a custom actor typeStarter or Official guide
Vendor dashboardEach seller manages only their own storeMercur Vendor Panel at /seller. The Medusa Admin is for super admins only, so the recipe path needs a dashboard you buildStarter
Per-vendor products and ordersProducts and orders belong to a sellerModule links between a vendor and the Product and Order modulesStarter or Official guide
Order splittingOne cart becomes one order per sellerMercur order groups; the recipe's vendor order workflowStarter or Official guide
CommissionThe marketplace keeps a share of each saleMercur Commission module: percentage or fixed rates scoped by seller, product, type, collection, or categoryStarter
PayoutsEach seller receives their shareMercur Payout module with a Stripe Connect provider; you decide when to trigger payoutsStarter
ReviewsCustomers rate products and sellersMercur Review module with operator moderation and seller repliesStarter
Cart, checkout, paymentsOne checkout across sellersMedusa Cart and Payment modules with the Stripe providerNative

Path 1: build on the Medusa marketplace recipe

The Marketplace recipe shows how to create a Marketplace Module with vendor data models, link vendors to products and orders, protect vendor API routes with a custom actor type, and split a cart into one order per vendor with a workflow. The full code is in the marketplace example repository.

Choose this path when your marketplace model is unusual, for example rentals, services, or a restaurant-delivery flow, and you want to own every data model. Commissions, payouts, and a vendor dashboard are yours to build.

Path 2: start from Mercur

Medusa describes Mercur as an open core marketplace platform built by its Expert partners at Rigby. The Mercur repository is MIT licensed. Mercur runs Copy to clipboard@mercurjs/core as a plugin on Medusa and adds an Admin Panel for operators and a Vendor Panel for sellers.

bun create mercur-app@latest

Mercur projects deploy on Medusa Cloud. Mercur's Medusa Cloud guide says one deployment serves the API, the admin panel at /dashboard, and the vendor panel at /seller. The basic template doesn't ship a storefront, so you build one on the Mercur Store API or start from Mercur's separate storefront repository.

Medusa and Mercur vs Sharetribe vs WooCommerce + Dokan vs from scratch

Prices are as of October 2026, from each vendor's own pricing page.

OptionModelPriceMarketplace featuresBest for
Medusa + MercurOpen source, self-hosted or on Medusa CloudFree to self-host; Medusa Cloud from $29 per month, 0% GMV feeSellers, commissions, split orders, Stripe Connect payouts, reviewsTeams with a developer who want to own the code
SharetribeHosted SaaS with no-code tools and code accessBuild $39 per month; Live $199 per month billed yearly, no transaction fees, usage above 1M credits billedListings, transactions, reviews, Stripe paymentsFounders without a developer
WooCommerce + DokanWordPress pluginDokan Lite free; paid plans from $149 per year list priceVendor dashboard, commission types; Stripe Express in Professional and aboveTeams already on WordPress
From scratchCustom code on any stackDeveloper timeOnly what you buildTeams that need no commerce engine at all

When Medusa is not the right choice

  • No developer on the team. Mercur and the recipe both need someone to run and change code. Sharetribe is built to launch without coding.
  • A small marketplace on an existing WordPress site. Dokan adds sellers to WooCommerce without a new stack.
  • You expect payouts to run with zero code. Mercur's payout docs state that core doesn't ship the job that decides when an order is paid out. You write that trigger.

Who runs marketplaces on Medusa

Foraged moved to Medusa after trying WooCommerce and a fully custom build, and serves over 1,000 local sellers of wild and specialty foods. Medusa's marketplace page also lists Patyna, Poland's largest vintage marketplace, which uses custom post-order splitting on Medusa.

Common questions

Does Medusa support multi-vendor marketplaces natively?

No. Medusa core is a single-store commerce engine, and its docs say it doesn't provide marketplace features natively. You add them with the official marketplace recipe or by starting from Mercur, which runs on Medusa.

Is Mercur free to use?

Mercur's main GitHub repository is MIT licensed, so you can self-host it without a license fee. Medusa describes Mercur as an open core platform, so check Rigby's site for any paid offerings.

Can I deploy a Mercur marketplace on Medusa Cloud?

Yes. Mercur's Medusa Cloud guide shows importing the project with packages/api as the Medusa root directory, and Medusa Cloud plans start at $29 per month with a 0% GMV fee.

Is Medusa a good Dokan or Sharetribe alternative?

Medusa with Mercur fits teams with a developer who want to own the code and the marketplace logic. Sharetribe fits founders who want a hosted no-code launch, and Dokan fits teams already on WordPress and WooCommerce.