Open-source headless commerce platform.
## Medusa MCP Server: Open Source Commerce The **Medusa MCP Server** integrates Medusa's open-source commerce platform into Google Antigravity, enabling developers to build custom e-commerce solutions through AI-assisted headless commerce workflows. ### Why Medusa MCP? - **Open Source**: Free, MIT-licensed commerce engine - **Headless First**: API-first architecture for any frontend - **Extensible**: Plugin system for custom functionality - **Multi-Region**: Built-in multi-currency and region support - **Developer Experience**: TypeScript, modern tooling ### Key Features #### 1. Product Management ```javascript // Create product const product = await medusa.createProduct({ title: "Custom Product", description: "Built with Medusa", handle: "custom-product", status: "published", options: [{ title: "Size" }], variants: [ { title: "Small", prices: [{ amount: 2999, currency_code: "usd" }], options: [{ value: "S" }], inventory_quantity: 100 } ] }); // Update product await medusa.updateProduct({ id: product.id, title: "Updated Product", status: "published" }); // List products const products = await medusa.listProducts({ status: ["published"], limit: 50 }); ``` #### 2. Order Processing ```javascript // Get orders const orders = await medusa.listOrders({ status: ["pending"], expand: ["items", "customer"] }); // Create fulfillment await medusa.createFulfillment({ order_id: orders[0].id, items: [{ item_id: "item_123", quantity: 1 }], metadata: { tracking_number: "TRACK123" } }); // Process refund await medusa.createRefund({ order_id: orders[0].id, amount: 1500, reason: "Customer request" }); // Update order await medusa.updateOrder({ id: orders[0].id, metadata: { notes: "Priority shipping" } }); ``` ### Configuration ```json { "mcpServers": { "medusa": { "command": "npx", "args": ["-y", "@anthropic/mcp-medusa"], "env": { "MEDUSA_BACKEND_URL": "https://your-medusa-backend.com", "MEDUSA_API_TOKEN": "your-api-token" } } } } ``` ### Use Cases **Custom Storefronts**: Build unique shopping experiences with any frontend. **Marketplace**: Create multi-vendor marketplaces with plugins. **Subscription Commerce**: Implement recurring billing with extensions. The Medusa MCP Server brings open-source headless commerce to your workflow.
{
"mcpServers": {
"medusa": {}
}
}