Magento MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
git clone https://github.com/thomastx05/magento-mcp.git
cd magento-mcp
npm install
npm run build
2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add -e "MAGENTO_BASE_URL=${MAGENTO_BASE_URL}" magento-mcp -- node "<FULL_PATH_TO_MAGENTO_MCP>/dist/index.js"

Replace <FULL_PATH_TO_MAGENTO_MCP>/dist/index.js with the actual folder you prepared in step 1.

Required:MAGENTO_BASE_URL+ 6 optional
README.md

Administer Adobe Commerce and Magento 2 instances via AI assistants

Magento MCP Server

An MCP (Model Context Protocol) server for Adobe Commerce / Magento 2 administration. Connects AI assistants like Claude, Windsurf, Cursor, and other MCP-compatible clients to your Magento instance for business-level operations — catalog management, promotions, CMS, diagnostics, and more.

Features

  • 30+ tools for Magento administration via the standard MCP protocol
  • OAuth 1.0 (HMAC-SHA256) integration authentication — no 2FA prompts
  • Two-phase commit for bulk operations (prepare → review → commit)
  • Built-in guardrails — bulk caps, price change warnings, confirmation requirements
  • Multi-store aware — explicit scope handling for websites, stores, and store views
  • Audit logging — every action logged with timestamps, user, and parameters

Available Tools

Auth & Scope

  • auth.login / auth.logout / auth.whoami — session management
  • scope.list_websites_stores / scope.set_default — multi-store scope

Catalog

  • catalog.search_products — search with filters, pagination, field projection
  • catalog.get_product — full product details by SKU
  • catalog.prepare_bulk_update / catalog.commit_bulk_update — two-phase bulk product updates

Pricing

  • pricing.prepare_bulk_price_update / pricing.commit_bulk_price_update — safe bulk price changes with threshold warnings

Promotions

  • promotions.search_rules / promotions.get_rule — find and inspect cart price rules
  • promotions.prepare_cart_price_rule_create / promotions.commit_cart_price_rule_create — create rules safely
  • promotions.update_rule / promotions.enable_rule / promotions.disable_rule
  • promotions.generate_coupons / promotions.export_coupons

CMS

  • cms.search_pages / cms.get_page — find and read CMS pages
  • cms.prepare_bulk_update_pages / cms.commit_bulk_update_pages
  • cms.search_blocks / cms.get_block
  • cms.prepare_bulk_update_blocks / cms.commit_bulk_update_blocks

SEO

  • seo.prepare_bulk_update_url_keys / seo.commit_bulk_update_url_keys — URL key changes with collision detection
  • seo.bulk_update_meta — bulk meta title/description/keyword updates
  • seo.report_redirect_chains — find redirect chain issues

Diagnostics

  • diagnostics.product_display_check — why isn't my product showing?
  • diagnostics.indexer_status_report — indexer health check
  • diagnostics.inventory_salable_report — MSI stock/salable quantity

Cache

  • cache.purge_by_url / cache.purge_product / cache.purge_category — targeted cache invalidation (Fastly or fallback)

Quick Start

Prerequisites

  • Node.js 18+
  • A Magento 2 / Adobe Commerce instance
  • An Integration configured in Magento with appropriate API permissions

Installation

git clone https://github.com/thomastx05/magento-mcp.git
cd magento-mcp
npm install
npm run build

Magento Integration Setup

  1. In Magento Admin, go to System > Integrations > Add New Integration
  2. Give it a name (e.g., "MCP Server")
  3. Under API, select the resources you want to expose
  4. Save and Activate the integration
  5. Copy the four OAuth credentials:
    • Consumer Key
    • Consumer Secret
    • Access Token
    • Access Token Secret

MCP Client Configuration

Add to your MCP client config (e.g., mcp_config.json for Windsurf, claude_desktop_config.json for Claude Desktop):

{
  "mcpServers": {
    "magento-mcp": {
      "command": "node",
      "args": ["C:/path/to/magento-mcp/dist/index.js"],
      "env": {
        "MAGENTO_BASE_URL": "https://your-magento-instance.com",
        "MAGENTO_OAUTH_CONSUMER_KEY": "your_consumer_key",
        "MAGENTO_OAUTH_CONSUMER_SECRET": "your_consumer_secret",
        "MAGENTO_OAUTH_TOKEN": "your_access_token",
        "MAGENTO_OAUTH_TOKEN_SECRET": "your_access_token_secret"
      }
    }
  }
}

Alternative: Username/Password Auth

If you prefer admin token auth instead of OAuth (requires handling 2FA if enabled):

{
  "env": {
    "MAGENTO_BASE_URL": "https://your-magento-instance.com",
    "MAGENTO_ADMIN_USERNAME": "your_admin_user",
    "MAGENTO_ADMIN_PASSWORD": "your_admin_password"
  }
}

Usage

Once configured, call auth.login first to establish a session, then use any tool:

> auth.login
Login successful (OAuth 1.0 integration)

> catalog.search_products { filters: { name: { value: "%eye drops%", condition: "like" } } }
Found 12 products...

> diagnostics.inventory_salable_report { sku: "PROD-001" }
Qty: 3,805 | In Stock: Yes | Backorders: Enabled

Architecture

src/
  index.ts              # MCP server entry point (McpServer + StdioServerTransport)
  config/index.ts       # Configuration & guardrail defaults
  actions/              # Tool handlers (one file per domain)
    auth.ts
    catalog.ts
    pricing.ts
    promotions.ts
    cms.ts
    seo.ts

Tools (10)

catalog.search_productsSearch products with filters, pagination, and field projection
catalog.get_productRetrieve full product details by SKU
catalog.prepare_bulk_updatePrepare a bulk product update
catalog.commit_bulk_updateCommit a prepared bulk product update
pricing.prepare_bulk_price_updatePrepare bulk price changes with threshold warnings
promotions.search_rulesFind and inspect cart price rules
cms.search_pagesFind and read CMS pages
seo.report_redirect_chainsFind redirect chain issues
diagnostics.indexer_status_reportCheck indexer health status
cache.purge_by_urlPurge cache for a specific URL

Environment Variables

MAGENTO_BASE_URLrequiredThe base URL of the Magento instance
MAGENTO_OAUTH_CONSUMER_KEYOAuth consumer key
MAGENTO_OAUTH_CONSUMER_SECRETOAuth consumer secret
MAGENTO_OAUTH_TOKENOAuth access token
MAGENTO_OAUTH_TOKEN_SECRETOAuth token secret
MAGENTO_ADMIN_USERNAMEAdmin username for password auth
MAGENTO_ADMIN_PASSWORDAdmin password for password auth

Configuration

claude_desktop_config.json
{"mcpServers": {"magento-mcp": {"command": "node", "args": ["C:/path/to/magento-mcp/dist/index.js"], "env": {"MAGENTO_BASE_URL": "https://your-magento-instance.com", "MAGENTO_OAUTH_CONSUMER_KEY": "your_consumer_key", "MAGENTO_OAUTH_CONSUMER_SECRET": "your_consumer_secret", "MAGENTO_OAUTH_TOKEN": "your_access_token", "MAGENTO_OAUTH_TOKEN_SECRET": "your_access_token_secret"}}}}

Try it

Search for products matching 'eye drops' and provide a summary of their current stock levels.
Check the status of all indexers and report any that are not in a 'ready' state.
Create a new cart price rule for a 10% discount on all items in the 'Electronics' category.
Identify any redirect chain issues currently affecting the store's SEO.
Prepare a bulk update to change the meta description for all products in the 'Home Decor' category.

Frequently Asked Questions

What are the key features of Magento MCP Server?

30+ tools for Magento administration via MCP protocol. Secure OAuth 1.0 (HMAC-SHA256) authentication. Two-phase commit workflow for safe bulk operations. Built-in guardrails for bulk caps and price change warnings. Multi-store awareness for websites, stores, and store views.

What can I use Magento MCP Server for?

Automating routine catalog updates and bulk price adjustments. Performing store health diagnostics and indexer monitoring. Managing CMS content and SEO metadata at scale. Streamlining promotion and coupon code generation workflows.

How do I install Magento MCP Server?

Install Magento MCP Server by running: git clone https://github.com/thomastx05/magento-mcp.git && cd magento-mcp && npm install && npm run build

What MCP clients work with Magento MCP Server?

Magento MCP Server works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Magento MCP Server docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare