PHPackages                             ayasoftware/magento2-mcp-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. ayasoftware/magento2-mcp-api

ActiveMagento2-module[API Development](/categories/api)

ayasoftware/magento2-mcp-api
============================

Magento 2 MCP API - Additional REST API endpoints for Magento 2 MCP Server

1.2.1(1mo ago)09MITPHPPHP ^8.3 || ^8.4

Since May 11Pushed 1mo agoCompare

[ Source](https://github.com/ayasoftware/magento2-mcp-api)[ Packagist](https://packagist.org/packages/ayasoftware/magento2-mcp-api)[ RSS](/packages/ayasoftware-magento2-mcp-api/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (6)Versions (7)Used By (0)

Magento 2 MCP API
=================

[](#magento-2-mcp-api)

Additional REST API endpoints for Magento 2 MCP Server that extend Magento's native capabilities.

Version
-------

[](#version)

**Current Version:** 1.2.1

Installation
------------

[](#installation)

```
composer require ayasoftware/magento2-mcp-api
php bin/magento module:enable Ayasoftware_McpApi
php bin/magento setup:upgrade
php bin/magento cache:flush
```

Features
--------

[](#features)

### Indexer Management

[](#indexer-management)

Advanced indexer operations beyond Magento's default REST API.

### Coupon Management

[](#coupon-management)

Update individual coupon properties (not available in Magento's default REST API).

Layout
------

[](#layout)

- `composer.json`
- `src/registration.php`
- `src/etc/module.xml`
- `src/etc/acl.xml`
- `src/etc/di.xml`
- `src/etc/webapi.xml`
- `src/Api/IndexerManagementInterface.php`
- `src/Model/IndexerManagement.php`
- `src/Api/CouponManagementInterface.php`
- `src/Model/CouponManagement.php`

Endpoints
---------

[](#endpoints)

### Indexer Management

[](#indexer-management-1)

- `POST /V1/mg_indexer_reindex` - Reindex all indexers
- `GET /V1/mg_indexer_info` - Get info for all indexers
- `GET /V1/mg_indexer_info/:indexerId` - Get info for specific indexer
- `POST /V1/mg_indexer_reindex/:indexerId` - Reindex specific indexer
- `POST /V1/mg_indexer_reindex_search` - Reindex search index only
- `GET /V1/mg_indexer_status` - Get status for all indexers
- `GET /V1/mg_indexer_status/:indexerId` - Get status for specific indexer

### Coupon Management

[](#coupon-management-1)

- `PUT /V1/mg_coupon/:couponId` - Update coupon properties

#### Update Coupon Example

[](#update-coupon-example)

```
curl -X PUT "https://your-store.com/rest/V1/mg_coupon/123" \
  -H "Authorization: Bearer your-access-token" \
  -H "Content-Type: application/json" \
  -d '{
    "couponData": {
      "code": "SUMMER2026",
      "usage_limit": 1000,
      "usage_per_customer": 5,
      "expiration_date": "2026-08-31"
    }
  }'
```

**Updatable Fields:**

- `code` - Coupon code string
- `usage_limit` - Maximum number of times coupon can be used
- `usage_per_customer` - Maximum uses per customer
- `times_used` - Current usage count
- `expiration_date` - Expiration date (Y-m-d format)
- `is_primary` - Whether this is the primary coupon for the rule

License
-------

[](#license)

MIT

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance88

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~3 days

Total

6

Last Release

59d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2abe8ab4836303228a670f9dcc0080462a253c1cadd0b3f140086fdca8627e45?d=identicon)[hmatardeveloper](/maintainers/hmatardeveloper)

---

Top Contributors

[![ayasoftware](https://avatars.githubusercontent.com/u/374977?v=4)](https://github.com/ayasoftware "ayasoftware (7 commits)")

### Embed Badge

![Health badge](/badges/ayasoftware-magento2-mcp-api/health.svg)

```
[![Health](https://phpackages.com/badges/ayasoftware-magento2-mcp-api/health.svg)](https://phpackages.com/packages/ayasoftware-magento2-mcp-api)
```

###  Alternatives

[mollie/magento2

Mollie Payment Module for Magento 2

1131.9M16](/packages/mollie-magento2)[smile/elasticsuite

Magento 2 merchandising and search engine built on ElasticSearch

8064.7M50](/packages/smile-elasticsuite)[elgentos/regenerate-catalog-urls

Regenerate Catalog URL Rewrites (products, categories, cms pages)

2842.6M](/packages/elgentos-regenerate-catalog-urls)[run-as-root/magento2-prometheus-exporter

Magento2 Prometheus Exporter

68357.9k](/packages/run-as-root-magento2-prometheus-exporter)[buckaroo/magento2

Buckaroo Magento 2 extension

32420.3k8](/packages/buckaroo-magento2)[magento/module-upward-connector

Magento module used for routing all frontend requests through UPWARD-PHP.

24434.4k1](/packages/magento-module-upward-connector)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
