Official Magento 2 e-commerce integration
## Magento 2 Official MCP Server: Enterprise Commerce The **Magento 2 Official MCP Server** integrates Adobe Commerce (Magento) into Google Antigravity, enabling developers to manage enterprise e-commerce operations through AI-assisted store management. ### Why Magento 2 MCP? - **Enterprise Ready**: Built for large-scale B2B and B2C commerce - **Customizable**: Extensive customization with extensions - **Multi-Store**: Manage multiple storefronts from one backend - **PWA Studio**: Build progressive web app storefronts - **Adobe Integration**: Connect with Adobe Experience Cloud ### Key Features #### 1. Product Management ```javascript // Create product const product = await magento.createProduct({ product: { sku: "PROD-001", name: "Enterprise Product", price: 299.99, status: 1, visibility: 4, type_id: "simple", attribute_set_id: 4, weight: 1.0, extension_attributes: { stock_item: { qty: 100, is_in_stock: true } } } }); // Update product await magento.updateProduct({ sku: "PROD-001", product: { price: 249.99, custom_attributes: [ { attribute_code: "special_price", value: "199.99" } ] } }); // Get products by category const products = await magento.getProducts({ searchCriteria: { filter_groups: [ { filters: [{ field: "category_id", value: "10", condition_type: "eq" }] } ] } }); ``` #### 2. Order and Customer Management ```javascript // Get orders const orders = await magento.getOrders({ searchCriteria: { filter_groups: [ { filters: [{ field: "status", value: "pending", condition_type: "eq" }] } ] } }); // Create shipment await magento.createShipment({ orderId: 123, items: [{ order_item_id: 456, qty: 1 }], tracks: [ { carrier_code: "ups", title: "UPS", track_number: "1Z999..." } ] }); // Create invoice await magento.createInvoice({ orderId: 123, capture: true }); ``` ### Configuration ```json { "mcpServers": { "magento": { "command": "npx", "args": ["-y", "@anthropic/mcp-magento"], "env": { "MAGENTO_BASE_URL": "https://your-store.com", "MAGENTO_ACCESS_TOKEN": "your-access-token" } } } } ``` ### Use Cases **Enterprise Commerce**: Manage large-scale e-commerce operations. **B2B Sales**: Configure customer-specific pricing and catalogs. **Multi-Store**: Manage multiple brands from one installation. The Magento 2 MCP Server brings enterprise commerce to your development workflow.
{
"mcpServers": {
"magento": {
"mcpServers": {
"magento2": {
"env": {
"MAGENTO_URL": "https://yourstore.com",
"MAGENTO_ACCESS_TOKEN": "YOUR_TOKEN"
},
"args": [
"-y",
"@boldcommerce/magento2-mcp"
],
"command": "npx"
}
}
}
}
}