Magento MCP Server
for AI Agents
Connect your AI agent to StackOne's Magento MCP server and give it 128 MCP tools out of the box. Auth, tool execution, and security all managed.
Coverage
128 Agent Actions
Create, read, update, and delete across Magento — and extend your agent's capabilities with custom actions.
Authentication
Agent Tool Authentication
Per-user OAuth in one call. Your Magento MCP server gets session-scoped tokens with zero credentials stored on your infra.
Agent Auth →Security
Agent Protection
Every Magento tool response scanned for prompt injection in milliseconds — 88.7% accuracy, all running on CPU.
Prompt Injection Defense →Performance
Max Agent Context. Min Cost.
Free up to 96% of your agent's context window to enhance reasoning and reduce cost, on every Magento call.
Tools Discovery →What is the Magento MCP Server?
A Magento MCP server lets AI agents read and write Magento data through the Model Context Protocol — Anthropic's open standard for connecting LLMs to external tools. StackOne's Magento MCP server ships with 128 pre-built actions, fully extensible via the Connector Builder — plus managed authentication, prompt injection defense, observability, and agent execution runtime. Connect it from MCP clients like Claude Desktop, Claude Code, Cursor, Goose, and VS Code, or from agent frameworks like OpenAI Agents SDK, LangChain, and Vercel AI SDK.
All Magento MCP Tools
Every action from Magento's API, ready for your agent. Create, read, update, and delete — scoped to exactly what you need.
Attribute Sets
- Create Attribute Set
Create new attribute set (ACL Magento_Catalogattributes_attributes)
- Get Attribute Set
Get specific attribute set by ID (ACL Magento_Catalogattributes_attributes)
- Update Attribute Set
Update existing attribute set (ACL Magento_Catalogattributes_attributes)
- Delete Attribute Set
Delete attribute set (ACL Magento_Catalogattributes_attributes)
Carts
- Create Cart
Create a new shopping cart for the authenticated customer
- Get Cart
Retrieve cart details by ID
Cart Items
- Update Cart Item
Update the quantity or product options of an existing cart item.
- Remove Cart Item
Remove an item from the cart
Categories
- List Categories
Get category tree
- Search Categories
Search categories with filtering, sorting, and pagination
Categorys
- Create Category
Create a new category
- Get Category
Get category details
- Update Category
Update category information
- Move Category
Move category to different parent
- Delete Category
Delete a category
CMS Pages
- Create CMS Page
Create a new CMS page
- List CMS Pages
Get all CMS pages
- Get CMS Page
Get a specific CMS page
- Delete CMS Page
Delete a CMS page
CMS Blocks
- Create CMS Block
Create a new CMS block
- List CMS Blocks
Get all CMS blocks
- Get CMS Block
Get a specific CMS block
- Delete CMS Block
Delete a CMS block
Credit Memos
- Create Credit Memo
Create a credit memo for refund
- Search Credit Memos
Search and retrieve credit memos with filters (ACL Magento_Salescreditmemo)
- Get Credit Memo
Retrieve a credit memo by its numeric id. Obtain ids by first calling search_credit_memos, or capture them from the response of create_credit_memo. Requires ACL Magento_Sales::creditmemo.
Customer Groups
- Create Customer Group
Create new customer group (ACL Magento_Customergroup)
- List Customer Groups
Get all customer groups (ACL Magento_Customergroup)
- Get Customer Group
Get specific customer group by ID (ACL Magento_Customergroup)
- Update Customer Group
Update existing customer group (ACL Magento_Customergroup)
- Delete Customer Group
Delete customer group (ACL Magento_Customergroup) NOTE: Magento refuses deletion of groups that have customers assigned. Reassign or delete those customers first.
Default Customer Groups
- Get Default Customer Group
Get default customer group for a store (ACL Magento_Customergroup)
- Set Default Customer Group
Set default customer group (ACL Magento_Customergroup)
Customers
- Create Customer
Create a new customer account
- List Customers
Retrieve a list of customers with filtering
- Get Customer
Retrieve a specific customer by ID
- Update Customer
Update customer information
- Delete Customer
Delete a customer account
Source Items
- Get Source Items
Get inventory items for sources
- Update Source Items
Update inventory quantities at sources
Invoices
- Create Invoice
Create an invoice for an order
- Search Invoices
Search and retrieve invoices with filters (ACL Magento_Sales sales_invoice)
- Get Invoice
Get specific invoice by ID (ACL Magento_Salessales_invoice)
- List Invoices
List invoices for a given order context, with pagination. Prefer this when scoped to a known order; for richer cross-store filtering and free-text search use search_invoices instead.
Orders
- List Orders
Retrieve a list of orders with filtering
- Get Order
Retrieve a specific order by ID
Shipments
- Create Shipment
Create shipment for an order (ACL Magento_Salesship). Note: only orders in 'processing' status with shippable items can be shipped. Closed/cancelled/uninvoiced orders will be rejected with HTTP 400.
- Search Shipments
Search and retrieve shipments with filters (ACL Magento_Salesshipment)
- Get Shipment
Get specific shipment by ID (ACL Magento_Salesshipment)
Products
- Create Product
Create a new product (ACL Magento_Catalogproducts)
- List Products
Retrieve a list of products with filtering and pagination (ACL Magento_Catalogproducts)
- Update Product
Update an existing product (ACL Magento_Catalogproducts)
- Delete Product
Delete a product by SKU (ACL Magento_Catalogproducts)
Product Attributes
- Get Product Attributes
Retrieve all product attributes (ACL Magento_Catalogattributes_attributes)
- Get Product Attribute
Retrieve specific product attribute by code (ACL Magento_Catalogattributes_attributes)
Cart Price Rules
- Create Cart Price Rule
Create a new cart price rule
- List Cart Price Rules
Get all cart price rules
- Get Cart Price Rule
Get a specific cart price rule
- Update Cart Price Rule
Update an existing cart price rule
- Delete Cart Price Rule
Delete a cart price rule
Coupons
- List Coupons
Get all coupon codes
- Get Coupon
Get coupon details by ID
- Delete Coupon
Delete a coupon by ID
Tier Prices
- Add Tier Price
Add tier pricing to products
- Get Tier Prices
Fetch tier prices for one or more product SKUs
- List Tier Prices
Deprecated — use get_tier_prices. Retained for backward compatibility.
Tax Rates
- Create Tax Rate
Create a new tax rate
- List Tax Rates
Get all tax rates
- Get Tax Rate
Get a specific tax rate
- Update Tax Rate
Update an existing tax rate
- Delete Tax Rate
Delete a tax rate
Tax Rules
- Create Tax Rule
Create a new tax rule
- List Tax Rules
Get all tax rules
- Get Tax Rule
Get a specific tax rule
- Update Tax Rule
Update an existing tax rule
- Delete Tax Rule
Delete a tax rule
Other (52)
- Create Attribute Group
Create attribute group in set (ACL Magento_Catalogattributes_attributes) NOTE: requires unique attribute_group_name within the target attribute_set_id; duplicates return HTTP 400 'The attributeGroup can't be saved.'
- Create Guest Cart
Create a new guest shopping cart
- Add Item To Cart
Add a product to the cart
- Add Item To Guest Cart
Add a product to a guest cart
- Create Credit Memo (Refund)
Create credit memo for an order (ACL Magento_Salescreditmemo)
- Send Credit Memo Email
Send credit memo email to customer (ACL Magento_Salescreditmemo)
- Add Credit Memo Comment
Add comment to a credit memo (ACL Magento_Salescreditmemo)
- Create Stock Transfer
Transfer stock between sources
- Send Invoice Email
Send invoice email to customer (ACL Magento_Salessales_invoice)
- Add Order Comment
Add a comment to an existing order
- Add Product Media
Attach an image or video to a product. Supply the file bytes as base64 in entry.content.base64_encoded_data, with the original filename in entry.content.name and MIME type in entry.content.type. Requires ACL Magento_Catalog::products.
- Add Tracking To Shipment
Add tracking number to existing shipment (ACL Magento_Salesshipment)
- Send Shipment Email
Send shipment email to customer (ACL Magento_Salesshipment)
- Add Shipment Comment
Add comment to a shipment (ACL Magento_Salesshipment)
- List Product Attribute Sets
Get all product attribute sets (ACL Magento_Catalogattributes_attributes)
- Get Attribute Types
Get available attribute types (ACL Magento_Catalogattributes_attributes)
- Get Payment Methods
Get available payment methods
- Get Cart Totals
Calculate cart totals
- Get Category Products
Get products in a category
- Get Stock Status
Get stock status for a product SKU
- List Inventory Sources
Get all inventory sources
- Get Low Stock Items
Get products with low stock
- List Payment Transactions
Get payment transactions
- Get Payment Transaction (Preview)
Get specific payment transaction details
- Get Product By SKU
Retrieve a specific product by SKU (ACL Magento_Catalogproducts)
- Get Shipment Label
Returns the shipping label as base64 binary data. NOTE: returns an empty string if no label has been generated for the shipment.
- List Store Configurations
Get all store configurations
- List Websites
Get all websites
- List Store Groups
Get all store groups
- List Store Views
Get all store views
- List Modules
Get all installed modules
- List Tax Classes
Get all tax classes
- Set Shipping Information
Set shipping address and method
- Set Guest Cart Shipping Information
Set shipping address and method for guest cart
- Update Stock Item
Update stock information for a product (ACL Magento_CatalogInventorycataloginventory)
- Remove Coupon From Cart
Remove applied coupon from cart
- Delete Tracking From Shipment
Remove tracking number from shipment (ACL Magento_Salesshipment)
- Assign Attribute To Set
Assign attribute to attribute set (ACL Magento_Catalogattributes_attributes)
- Unassign Attribute From Set
Remove attribute from attribute set (ACL Magento_Catalogattributes_attributes)
- Estimate Shipping Methods
Get available shipping methods for cart
- Place Guest Order
Convert guest cart to order
- Place Order (Customer Cart)
Place an order from an authenticated customer's cart (created via create_cart). For guest carts use place_guest_order instead. Admin scope requires cartId; customer-scope tokens can use /mine — this connector uses admin auth so cartId is required.
- Assign Product To Category
Add a product to a category
- Validate Group Permissions
Check if customer group can be deleted (ACL Magento_Customergroup)
- Check Product Salability
Check if product is salable
- Bulk Assign Sources
Assign products to inventory sources
- Bulk Unassign Sources
Unassign products from sources
- Cancel Order
Cancel an existing order
- Capture Payment (Preview)
Capture payment for an invoice with pending payment NOTE: also requires the invoice to have an authorized, uncaptured transaction from an online/capture-eligible payment gateway. Invoices using offline methods (checkmo, banktransfer) will return 400 'The capture action is not available.'
- Void Payment (Preview)
Void an authorized but uncaptured invoice payment NOTE: only succeeds on invoices in authorized-but-uncaptured state. Already-captured, closed, or refunded invoices return 400 'The void action is not available.'
- Refund Payment
Process a payment refund for a paid invoice. NOTE: targets `/V1/invoices/{invoiceId}/refund` — endpoint availability depends on Magento version and installed modules. Magento 2.4+ may require `/V1/order/{orderId}/refund` instead.
- Generate Coupons
Generate coupon codes for a rule
Set Up Your Magento MCP Server in Minutes
One endpoint. Any framework. Your agent is talking to Magento in under 10 lines of code.
Agent Frameworks
{
"mcpServers": {
"stackone": {
"command": "npx",
"args": [
"-y",
"mcp-remote@latest",
"https://api.stackone.com/mcp?x-account-id=<account_id>",
"--header",
"Authorization: Basic <YOUR_BASE64_TOKEN>"
]
}
}
}Check More Commerce MCP Servers
172+ actions
133+ actions
125+ actions
120+ actions
85+ actions
83+ actions
72+ actions
Platform Resources
MCP Code Mode: Keeping Tool Responses Out of Agent Context
Anthropic's code_execution processes data already in context. Custom MCP code mode keeps raw tool responses in a sandbox. 14K tokens vs 500.
11 min
Comparing BM25, TF-IDF, and Hybrid Search for MCP Tool Discovery
Benchmarking BM25, TF-IDF, and hybrid search for MCP tool discovery across 916 tools. The 80/20 TF-IDF/BM25 hybrid hits 21% Top-1 accuracy in under 1ms.
10 min
Indirect Prompt Injection Defense for MCP Tools: A Technical Guide
MCP tools that read emails, CRM records, and tickets are indirect prompt injection vectors. Here's how we built a two-tier defense that scans tool results in ~11ms.
12 min
MCP vs A2A: Architecture, Security, and When to Use Each
MCP vs A2A: what each protocol standardizes, how they differ, their shared security risks including indirect prompt injection, and when to use one, both, or a hybrid architecture.
12 min
MCP vs API: What 200+ Connector Builds Taught Us
MCP wraps APIs, it doesn't replace them. After building 200+ connectors that serve both, here's when each approach wins.
14 min read
Magento MCP Server FAQ
Does StackOne have a Magento MCP server?
Magento MCP server vs direct API integration — what's the difference?
How does Magento authentication work for AI agents?
origin_owner_id.Are Magento MCP tools vulnerable to prompt injection?
What is the context bloat of a Magento agent and how do I avoid it?
Can I limit which actions my Magento agent can access?
Can I create custom agent actions for my Magento MCP server?
When should I NOT use a Magento MCP server?
What AI frameworks and AI clients does the StackOne Magento MCP server support?
Put your AI agents to work
All the tools you need to build and scale AI agent integrations, with best-in-class connectivity, execution, and security.