Open-source e-commerce platform for Ruby.
## Spree Commerce MCP Server: Modular Commerce The **Spree Commerce MCP Server** integrates Spree's modular e-commerce platform into Google Antigravity, enabling developers to build custom commerce solutions through AI-assisted headless commerce workflows. ### Why Spree Commerce MCP? - **Modular Design**: Use only the components you need - **Headless Ready**: REST and GraphQL APIs included - **Multi-Vendor**: Built-in marketplace capabilities - **Multi-Store**: Manage multiple storefronts - **Open Source**: BSD-3 licensed Ruby platform ### Key Features #### 1. Product Management ```javascript // Create product const product = await spree.createProduct({ name: "Modular Product", description: "Built with Spree", price: 99.99, sku: "SPREE-001", shipping_category_id: 1, taxon_ids: [1, 2] }); // Add images await spree.addProductImage({ productId: product.id, attachment: imageBase64, alt: "Product image" }); // Create variant await spree.createVariant({ productId: product.id, sku: "SPREE-001-BLU", price: 99.99, optionValues: [{ optionType: "Color", value: "Blue" }] }); ``` #### 2. Order and Checkout ```javascript // Create cart const cart = await spree.createCart(); // Add item to cart await spree.addItem({ cartToken: cart.token, variantId: variant.id, quantity: 2 }); // Apply coupon await spree.applyCoupon({ cartToken: cart.token, couponCode: "SAVE10" }); // Complete checkout const order = await spree.completeCheckout({ cartToken: cart.token, paymentSource: paymentData, shippingAddress: addressData }); ``` ### Configuration ```json { "mcpServers": { "spree": { "command": "npx", "args": ["-y", "@anthropic/mcp-spree"], "env": { "SPREE_API_URL": "https://your-store.com/api/v2", "SPREE_API_KEY": "your-api-key" } } } } ``` ### Use Cases **Marketplace**: Build multi-vendor marketplaces. **Custom Commerce**: Create tailored e-commerce solutions. **Headless Stores**: Power custom storefronts with Spree backend. The Spree Commerce MCP Server brings modular commerce to your workflow.
{
"mcpServers": {
"spree": {}
}
}