Skip to main content

Announcing StackOne Defender: leading open-source prompt injection guard for your agent Read More

Magento MCP Server
for AI Agents

Production-ready Magento MCP server with 125 extensible actions — plus built-in authentication, security, and optimized execution.

Magento logo
Magento MCP Server
Built by StackOne StackOne

Coverage

125 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 125 pre-built actions, fully extensible via the Connector Builder — plus managed authentication, prompt injection defense, and optimized agent context. Connect it from MCP clients like Claude Desktop, Cursor, and VS Code, or from agent frameworks like OpenAI Agents SDK, LangChain, and Vercel AI SDK.

All Magento MCP Tools and Actions

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

  • Get Cart

    Retrieve cart details by ID

Cart Items

  • Update Cart Item

    Update quantity of item in cart

  • Remove Cart Item

    Remove an item from the cart

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

    Get specific credit memo by ID (ACL Magento_Salescreditmemo)

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)

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

    Retrieve a list of invoices

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)

  • 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

  • List Tier Prices

    Get tier prices for products

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)

  • 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

    Add images or videos to a product (ACL Magento_Catalogproducts)

  • 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

  • List Categories

    Get category tree

  • 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

    Get shipping label for a shipment (ACL Magento_Salesshipment)

  • 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

  • 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

  • Void Payment (Preview)

    Void an authorized but uncaptured invoice payment

  • Refund Payment (Preview)

    Process a payment refund for a paid invoice

  • 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.

MCP Clients

Agent Frameworks

Claude Desktop
{
  "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>"
      ]
    }
  }
}

More Commerce MCP Servers

Klaviyo

162+ actions

Stripe

133+ actions

Square

125+ actions

BigCommerce

120+ actions

Eventbrite

73+ actions

Gorgias

69+ actions

GoCardless

66+ actions

Magento MCP Server FAQ

Magento MCP server vs direct API integration — what's the difference?
A Magento MCP server and direct API integration serve different use cases. Direct API integration is for software-to-software — backend code calling Magento. A Magento MCP server is for AI agents — MCP clients like Claude and Cursor, plus framework agents built with OpenAI, LangChain, or Vercel AI — discovering and calling Magento at runtime. StackOne provides both.
How does Magento authentication work for AI agents?
Magento authentication for AI agents works through a StackOne Connect Session. Create one via the dashboard or the SDK — you get an auth link and ready-to-paste config for Claude Desktop, Cursor, and other MCP clients. Your user authenticates their own Magento account; StackOne handles token exchange, storage, and refresh. Credentials never reach the LLM, and each user is isolated via origin_owner_id.
Are Magento MCP tools vulnerable to prompt injection?
Yes — Magento MCP tools can be vulnerable to indirect prompt injection. Any tool that reads user-written content — documents, messages, tickets, records, or free-text fields — is a potential vector. StackOne Defender scans every tool response before it enters the agent's context — regex patterns in ~1ms, then a MiniLM classifier in ~4ms. 88.7% accuracy, CPU-only.
What is the context bloat of a Magento agent and how do I avoid it?
Context bloat happens when Magento tool schemas and API responses eat your Magento agent's memory, preventing it from reasoning effectively. A single Magento query can return a massive JSON response, and connecting multiple tools compounds the problem. Tools Discovery and Code Mode reduce context bloat — loading only relevant tools per query and keeping raw responses out of the agent's context.
Can I limit which actions my Magento agent can access?
Yes — you can limit which actions your Magento agent can access directly from the StackOne dashboard. Toggle actions on or off, or restrict them to specific accounts, with no code changes to your agent. Session tokens can be scoped to exact actions so if one leaks, exposure stays contained.
Can I create custom agent actions for my Magento MCP server?
Yes — you can create custom agent actions for your Magento MCP server using Connector Builder. It's an integration agent your coding assistant (Claude Code, Cursor, or Copilot) can invoke to research Magento's API, generate production-ready connector YAML, test against the live API, and validate before you ship.
When should I NOT use a Magento MCP server?
Skip a Magento MCP server if your integration is purely software-to-software — direct Magento API integration is simpler when no AI agent is involved. For deterministic, compliance-critical operations (financial transactions, regulatory reporting), direct API gives you predictable behavior without agent-driven decision-making. MCP shines when AI agents need to dynamically discover and call Magento actions at runtime.
What AI frameworks and AI clients does the StackOne Magento MCP server support?
The StackOne Magento MCP server supports both. MCP clients (paste-and-go apps): Claude Desktop, Claude Code, Cursor, VS Code, Goose. Agent frameworks (code SDKs you build with): OpenAI Agents SDK, Anthropic, Vercel AI, Google ADK, CrewAI, Pydantic AI, LangChain, LangGraph, Azure AI Foundry.

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.