# Commerce Layer Metrics MCP server

> Ask in plain English for order, cart and return stats, bestsellers and bundle data from Commerce Layer.

- Sign-in: See setup
- Connect in RevampKey: https://revampkey.com/marketplace/commerce-layer-metrics

## Agent skills (4)

- [Commerce Layer Metrics with AI: query orders, carts and returns safely](https://revampkey.com/marketplace/commerce-layer-metrics/skills/essentials.md): Turns plain questions into scoped Commerce Layer metric queries, confirming the organization and period first, and asks before changing any data.
- [Commerce Layer Metrics order performance review with AI](https://revampkey.com/marketplace/commerce-layer-metrics/skills/order-performance-review.md): Reviews order volume and value for a chosen period against a baseline, separating a genuine trend from a one-off spike. It reads the metrics and asks before changing anything.
- [Commerce Layer Metrics product cross-sell insights with AI](https://revampkey.com/marketplace/commerce-layer-metrics/skills/product-cross-sell-insights.md): Finds which products are bought together and which sell best in each market, then turns the result into bundling and merchandising suggestions with a stated confidence level. It only reads metrics and asks before changing anything in the store.
- [Commerce Layer Metrics returns quality check with AI](https://revampkey.com/marketplace/commerce-layer-metrics/skills/returns-quality-check.md): Investigates Commerce Layer returns by volume, timing and product or market to tell a real defect pattern from ordinary return noise. It reads the data and does not change any records.

All skills: https://revampkey.com/marketplace/commerce-layer-metrics/skills.md

Commerce Layer is a transactional commerce API for international brands. It lets you make any digital experience shoppable. Its Metrics API extracts data from your organization's order, return and cart history. Merchants who run online stores use it to see how their business is doing, and developers use it to build their own reports, dashboards and alerts. The connector is made by Pierluigi Viti.

Connect Commerce Layer Metrics from the Connectors tab in RevampKey. You need a Commerce Layer organization with order, return or cart history, plus API credentials that give a valid access token. Once connected, you can ask for order, cart and return stats and breakdowns by day, date range, currency or country. You can also ask for best-selling products by market, products frequently bought together, and customers who bought a specific product.

## What you can do

### Find bestsellers in each market

You run stores in several markets and want to know what sells where. You ask the agent for the best-selling products in each market. It reads the market data and lists the top products for each one, so you can compare them side by side.

### Check returns for last month

Your team wants to know whether returns rose last month. You ask the agent for return stats for that date range. It uses the returns tools to get counts and a breakdown by date, then summarizes the trend in a short list.

### See which promotions bring orders

A promotion ran for two weeks and you want to know how many orders used it. You ask the agent for orders tied to that promotion. It pulls those orders and summarizes how many there were and how they spread across the period.

## Things to ask

- Which products sold best in each market this year?
- How many orders did we get per day last week?
- Show me the latest carts that include the Trail Backpack in the UK market.
- Break down our returns by date for the last three months.
- Which orders used the SPRING25 promotion last quarter?

## What the agent can do

### Order stats and breakdowns

Search orders and get stats and breakdowns by day, date range or currency. The agent can read the numbers for a period you name and summarize how orders split across it.

`orders-breakdown`, `orders-date-breakdown`, `orders-search`, `orders-stats`, `orders-by-day`, `orders-by-currency`

### Order slices

Find orders tied to a bundle or a promotion, orders from customers with certain email domains, and archived orders. You can also see how many products sit in orders by country.

`orders-associated-with-a-specific-promotion`, `orders-by-bundle`, `latest-placed-orders-from-customers-with-specific-email-domains`, `latest-archived-orders`, `number-of-products-per-order-by-country`

### Carts

Get cart stats and breakdowns, including cart numbers by date. Search carts, or find the latest carts that contain a specific product from a specific market.

`carts-breakdown`, `carts-date-breakdown`, `carts-search`, `carts-stats`, `last-carts-with-a-specific-product-from-a-specific-market`

### Returns

Search returns and get return stats and breakdowns, including breakdowns by date range. Ask for a period and the agent summarizes what it finds.

`returns-breakdown`, `returns-date-breakdown`, `returns-search`, `returns-stats`

### Products and bundles

Find best-selling products by market, products frequently bought together, and customers who bought a specific product. These views help you see which items go together.

`fbt`, `frequently-bought-together-products`, `best-selling-products-by-market`, `customers_that_bought_a_specific_product`

## FAQ

### What do I need before I connect Commerce Layer Metrics to RevampKey?

You need a Commerce Layer account with an organization that has order, return or cart history. You also need API credentials that give you a valid access token. Then open the Connectors tab in RevampKey and connect Commerce Layer Metrics.

### What can the agent do and what can't it do in Commerce Layer Metrics?

The agent can find, read and summarize data through the 24 tools this connector provides. That covers order, cart and return stats and breakdowns, best-selling products, bundles and promotions. The listed tools read data. They do not create, edit or delete anything in your store.

### Does the agent change my data, and do I have to approve anything?

The agent asks before it changes anything. The listed tools only read and summarize data, so asking for a report does not change your orders, carts or returns. Check the agent's answers against your own Commerce Layer data before you act on them.

### Can I see bestsellers by market and products bought together in Commerce Layer?

Yes. The best-selling-products-by-market tool covers bestsellers for each market. The fbt and frequently-bought-together-products tools cover products bought together. The customers_that_bought_a_specific_product tool covers customers who bought a product you name.

### What can an AI agent do with the Commerce Layer Metrics MCP server?

It exposes 24 tools: 24 that read and 0 that create or change things. In RevampKey the agent asks before it runs any tool that changes data.

### Are there agent skills for Commerce Layer Metrics?

Yes. 4 SKILL.md playbooks teach an agent how to do real Commerce Layer Metrics work step by step. RevampKey installs them when you connect Commerce Layer Metrics; for Claude Code, Cursor or Codex you can copy them into your project.

## Tools (24)

- `best-selling-products-by-market`
- `carts-breakdown`
- `carts-date-breakdown`
- `carts-search`
- `carts-stats`
- `customers_that_bought_a_specific_product`
- `fbt`
- `frequently-bought-together-products`
- `last-carts-with-a-specific-product-from-a-specific-market`
- `latest-archived-orders`
- `latest-placed-orders-from-customers-with-specific-email-domains`
- `number-of-products-per-order-by-country`
- `orders-associated-with-a-specific-promotion`
- `orders-breakdown`
- `orders-by-bundle`
- `orders-by-currency`
- `orders-by-day`
- `orders-date-breakdown`
- `orders-search`
- `orders-stats`
- `returns-breakdown`
- `returns-date-breakdown`
- `returns-search`
- `returns-stats`

## Details

- Maker: Pierluigi Viti
- Setup: Connect from the app
- Documentation: https://docs.commercelayer.io/metrics

Page: https://revampkey.com/marketplace/commerce-layer-metrics
