PHPackages                             magebitcom/magento2-mcp-report-tools - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. magebitcom/magento2-mcp-report-tools

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

magebitcom/magento2-mcp-report-tools
====================================

Report-domain MCP tools for Magebit\_Mcp (admin Reports menu + admin Dashboard + statistics refresh)

v1.0.0(2w ago)0107—7.1%1MITPHPPHP &gt;=8.1

Since May 6Pushed 2w agoCompare

[ Source](https://github.com/magebitcom/magento2-mcp-report-tools)[ Packagist](https://packagist.org/packages/magebitcom/magento2-mcp-report-tools)[ RSS](/packages/magebitcom-magento2-mcp-report-tools/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (3)Dependencies (2)Versions (5)Used By (0)

Magento2 MCP - Report Tools
===========================

[](#magento2-mcp---report-tools)

This is a sub-module for the [Magento2 MCP module](https://github.com/magebitcom/magento2-mcp-module)

---

Report-domain MCP tools for `Magebit_Mcp`. Exposes the admin **Reports** menu (sales, tax, customer, product, review, search-term, cart, newsletter), the admin **Dashboard** summary, a **Customers Online** live view, and the **Statistics** refresh machinery — all as MCP tools.

Each read tool is a thin wrapper over the same Magento collection or service the admin grid uses, so row counts and totals match the admin UI exactly. Statistics refresh tools dispatch the same aggregation models as `Magento\Reports\Controller\Adminhtml\Report\Statistics\RefreshRecent` / `RefreshLifetime`.

Install
-------

[](#install)

```
composer require magebitcom/magento2-mcp-report-tools
bin/magento module:enable Magebit_McpReportTools
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento cache:flush
```

Tool catalog
------------

[](#tool-catalog)

### Shopping cart (live)

[](#shopping-cart-live)

ToolWhat it does`reports.cart.products`Products currently sitting in open carts with quantities and carts count.`reports.cart.abandoned`Quotes that started checkout but were not converted.### Marketing (live)

[](#marketing-live)

ToolWhat it does`reports.marketing.search_terms`Storefront search queries with popularity and number of matching products.`reports.marketing.newsletter_problems`Newsletter queue problem reports (bounces, send failures).### Reviews (live)

[](#reviews-live)

ToolWhat it does`reports.reviews.by_product`Products ranked by review count with average rating.`reports.reviews.by_customer`Customers ranked by review count.### Sales (aggregated)

[](#sales-aggregated)

All sales reports read from the `*_aggregated_created` / `*_aggregated_updated`tables populated by `reports.statistics.refresh_*`. Arguments are shared: `from`, `to`, `period` (day/month/year), `store_id?`, `show_empty?`, `order_statuses?`.

ToolWhat it does`reports.sales.orders`Revenue / profit / quantity / tax / shipping / discount per period.`reports.sales.tax`Tax collected per rate, per period.`reports.sales.invoiced`Invoiced vs. paid vs. outstanding per period.`reports.sales.shipping`Shipping revenue per carrier / method / period.`reports.sales.refunds`Online and offline refunds per period.`reports.sales.coupons`Coupon usage and discount amount per rule / period.### Customers

[](#customers)

ToolWhat it does`reports.customers.orders`Order count per customer, date-ranged.`reports.customers.totals`Lifetime / period spend per customer.`reports.customers.new`Newly registered customer accounts per period.`reports.customers.online`Live snapshot of visitors (logged in or guest), with cart contents and last activity.### Products

[](#products)

ToolWhat it does`reports.products.viewed`Most-viewed products, aggregated (daily/monthly/yearly).`reports.products.bestsellers`Bestselling products by quantity sold, aggregated.`reports.products.low_stock`Products at or below their notify-stock threshold.`reports.products.ordered`Quantity ordered per product within a date range.`reports.products.downloads`Downloadable-product link purchases and downloads.### Dashboard

[](#dashboard)

ToolWhat it does`reports.dashboard.summary`One-call roll-up that mirrors the admin Dashboard — lifetime sales, average order, revenue for a period, recent orders, top search terms, top bestsellers.### Statistics refresh (write)

[](#statistics-refresh-write)

Write tools require the global `magebit_mcp/general/allow_writes` flag **and**the token's own `allow_writes` flag to be `1`. Both refresh tools require explicit confirmation so MCP clients prompt before firing.

ToolConfirm?What it does`reports.statistics.status`no (read)Last-refresh timestamp and flag state per aggregation code.`reports.statistics.refresh_recent`yesAggregates the last 25 hours (default) for the selected report codes. Mirrors admin *Refresh Statistics for Last Day*.`reports.statistics.refresh_lifetime`yesAggregates all time for the selected report codes. Mirrors admin *Refresh Lifetime Statistics*. **Heavy** — on stores with 500k+ orders this can take several minutes and will elevate DB load. Run off-peak.Both refresh tools also implement `Magebit\Mcp\Api\UnderlyingAclAwareInterface`with `Magento_Reports::statistics` as the underlying Magento admin resource, so they block calls from admins who wouldn't be allowed to refresh stats in the admin UI.

Extending
---------

[](#extending)

See `docs/EXTENDING.md` for:

- adding a new report tool that reuses the shared search-builder pattern;
- registering a new aggregation code with `AggregationRegistry` (e.g. a payment-module-specific settlement report);
- adding a field resolver to enrich an existing report row.

License
-------

[](#license)

Released under the [MIT License](LICENSE).

---

[![magebit (1)](https://private-user-images.githubusercontent.com/58505474/416166496-cdc904ce-e839-40a0-a86f-792f7ab7961f.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODA4NTE5NDksIm5iZiI6MTc4MDg1MTY0OSwicGF0aCI6Ii81ODUwNTQ3NC80MTYxNjY0OTYtY2RjOTA0Y2UtZTgzOS00MGEwLWE4NmYtNzkyZjdhYjc5NjFmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA2MDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNjA3VDE3MDA0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJhYjI0YTlmZjU5MWVmZDQ1Y2IyZmQ5YTY5NzkzOTk4MDIxNGRmMjEzMDkwZDc0NjZjZTIzMGFiOTIxNzQzZmQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.7BIjmBB8VJzJMi7TQf6OJEhLXq2ShwGQswFXmZQVHyQ)](https://private-user-images.githubusercontent.com/58505474/416166496-cdc904ce-e839-40a0-a86f-792f7ab7961f.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODA4NTE5NDksIm5iZiI6MTc4MDg1MTY0OSwicGF0aCI6Ii81ODUwNTQ3NC80MTYxNjY0OTYtY2RjOTA0Y2UtZTgzOS00MGEwLWE4NmYtNzkyZjdhYjc5NjFmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA2MDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNjA3VDE3MDA0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJhYjI0YTlmZjU5MWVmZDQ1Y2IyZmQ5YTY5NzkzOTk4MDIxNGRmMjEzMDkwZDc0NjZjZTIzMGFiOTIxNzQzZmQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.7BIjmBB8VJzJMi7TQf6OJEhLXq2ShwGQswFXmZQVHyQ)

*Have questions or need help? Contact us at *

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance98

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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 ~10 days

Total

3

Last Release

14d ago

Major Versions

v0.0.2 → v1.0.02026-05-26

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10514036?v=4)[magebit](/maintainers/magebit)[@Magebit](https://github.com/Magebit)

---

Top Contributors

[![KristofersOzolinsMagebit](https://avatars.githubusercontent.com/u/58505474?v=4)](https://github.com/KristofersOzolinsMagebit "KristofersOzolinsMagebit (8 commits)")

### Embed Badge

![Health badge](/badges/magebitcom-magento2-mcp-report-tools/health.svg)

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

###  Alternatives

[elgentos/regenerate-catalog-urls

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

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

Magento2 Prometheus Exporter

68353.9k](/packages/run-as-root-magento2-prometheus-exporter)[myparcelnl/magento

A Magento 2 module that creates MyParcel labels

1859.0k](/packages/myparcelnl-magento)[loki/magento2-components

Core module for defining Alpine.js components with advanced AJAX features

1010.0k22](/packages/loki-magento2-components)[magepal/magento2-form-field-manager

Customer and Address Form Fields Manager for Magento2

293.9k](/packages/magepal-magento2-form-field-manager)[mage-os/module-llm-txt

AI-powered LLMs.txt generation for Magento 2 / Mage-OS stores. Help AI systems understand your store with OpenAI-generated content.

223.3k](/packages/mage-os-module-llm-txt)

PHPackages © 2026

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