How do I build an artisan marketplace with AI coding help?
- Type
- Applies to
- Medusa v2.x
- Updated
Short answer
To build a local artisan marketplace with AI coding help, start from Mercur, an open-source marketplace platform built on Medusa. Each artisan gets a Vendor Panel to manage their own products and orders, and Stripe Connect pays their share to their bank. Deploy on Medusa Cloud and customize with an AI agent that reads Mercur's bundled docs.
Before you start
This path is for a founder who codes a bit with an AI agent. It uses Mercur, an open-source marketplace platform built on Medusa by Rigby, a Medusa Expert partner. Medusa is the commerce engine underneath: products, carts, orders, and payments.
- Node.js v24.22.1+ or v22.23.4+, Bun v1.3+, Git, and PostgreSQL v14+ (Mercur requirements)
- A Stripe account with Connect enabled
- A GitHub account and a Medusa Cloud account
- An AI coding agent such as Claude Code, Cursor, or Codex
Which tech to use for an artisan marketplace
An artisan marketplace needs four things: seller accounts, per-seller product management, one checkout that splits orders per seller, and automatic payouts. You can build them from scratch, rent them from a hosted marketplace builder, or start from Mercur on Medusa. Sharetribe figures are from Sharetribe's pricing page as of November 2026.
Mercur is the middle path: a working marketplace on day one, changeable in code.
How each artisan gets their own shop and manages products
In Mercur, each artisan is a seller with their own account. They register at Copy to clipboard/seller/register, complete an onboarding wizard, and appear in your admin approval queue. Once approved, they log in to the Vendor Panel at Copy to clipboard/seller and manage their own offers, orders, returns, payouts, and team members.
You run the marketplace from the operator Admin Panel at Copy to clipboard/dashboard. There you approve sellers and set commission rates by seller, product, type, collection, or category. Products and orders are stored in Medusa's Product and Order modules, linked to the seller.
The basic Mercur template has no storefront. You build the artisan shop pages on the Mercur Store API, or start from the storefront app in the Mercur repository.
How artisans get paid automatically with Stripe Connect
Stripe Connect is Stripe's product for paying sellers on a platform. Mercur's Stripe connector plugin, Copy to clipboard@mercurjs/stripe-connector-plugin (Mercur 2.3.9 and later), charges the customer once for a cart that spans several artisans (Mercur Stripe Connect docs). Each new artisan gets a Stripe Express account and an onboarding link to verify their identity and bank account.
Payouts run without code from you. When an order is fulfilled and its payment captured, the plugin transfers the artisan's share, minus your commission, to their Stripe balance. A later refund takes the artisan's share back. Every night, the plugin nets each artisan's balance into one settlement and sends it to their bank.
Your marketplace is the merchant of record. Customers see your statement descriptor, and refunds and disputes land on your Stripe account first. The plugin supports Express connected accounts only.
Your first two weeks building the marketplace
- Day 1: create the project. Run Copy to clipboard
bun create mercur-app@latest. It installs dependencies, seeds a database with three demo sellers, and starts the API at Copy to clipboardlocalhost:9000. - Days 2-3: connect your AI agent. New Mercur projects include Copy to clipboard
AGENTS.mdand Copy to clipboardCLAUDE.mdfiles that point agents to version-matched docs in Copy to clipboardnode_modules/@mercurjs/docs(Building with AI). Add Medusa's Agent Skills and the Docs MCP server so the agent can look up Medusa APIs too. - Days 3-4: set up Stripe Connect. Run Copy to clipboard
bun add @mercurjs/stripe-connector-plugin, configure its two webhook secrets, and follow a test order from checkout to a test seller's bank with Mercur's Stripe Connect quickstart. - Days 5-7: shape the artisan experience. Ask your agent to add onboarding fields such as a maker story, and set your commission rate.
- Days 8-10: build the storefront. Add seller shop pages and product listings on the Mercur Store API.
- Days 11-12: test payouts and refunds. Place a two-artisan order, fulfill it, refund one item, and check the transfers, reversals, and settlement under Integrations and Stripe in the Admin Panel.
- Days 13-14: deploy. Push to GitHub, import the repo in Medusa Cloud with Copy to clipboard
/packages/apias the root directory, and set Copy to clipboardMERCUR_BACKEND_URLwith the Build toggle on (Mercur Medusa Cloud guide).
When Mercur is not the right starting point
- You sell only your own work. A single-seller store or an Etsy shop is less work than a marketplace.
- Nobody can run code. An AI agent still needs someone to review changes, run builds, and handle deploys. A hosted builder such as Sharetribe fits better.
- You don't want to be the merchant of record. With Mercur and Stripe Connect, refunds, disputes, and chargebacks land on your platform account first.
Common questions
Can I build an artisan marketplace if I only code a bit?
Yes, with limits. Mercur gives you a working marketplace on Medusa, and an AI coding agent can make documented changes using Mercur's bundled docs and Medusa's Agent Skills. Someone still has to review code, run builds, and handle deploys.
Do artisans get paid automatically with Mercur?
Yes, with Mercur's Stripe connector plugin. When an order is fulfilled and its payment captured, the plugin transfers the artisan's share minus commission to their Stripe account, and a nightly settlement sends it to their bank.
Does each artisan get their own shop page?
Each artisan gets a seller account and a Vendor Panel to manage their own products, orders, and payouts. The public shop page is part of the storefront you build on the Mercur Store API.
How much does it cost to run an artisan marketplace on Mercur?
Mercur and Medusa are free to self-host. Medusa Cloud plans start at $29 per month with a 0% GMV fee, and Stripe charges its own payment and Connect fees.
Is Sharetribe easier than Mercur for an artisan marketplace?
Sharetribe is faster to launch without code, with a Live plan at $199 per month billed yearly as of November 2026. Mercur on Medusa takes more setup but gives you the full code to change seller, checkout, and payout rules.