# Fairshop SKU Margins

> Fairshop SKU Margins is an open-source MCP server for e-commerce. Works out contribution margin per SKU and channel from your sales, fees and costs. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, Self-hosted
- **Website:** https://fair-agents.com/fairshop.html
- **Repository:** https://github.com/fpavia111-creator/fairshop-agents/tree/HEAD/packages/fairshop-sku-margins
- **MCP Registry name:** io.github.fpavia111-creator/fairshop-sku-margins
- **Categories:** [e-commerce](https://ai-powered.com/categories/e-commerce)
- **Listing updated:** 2026-11-29

## About

Fairshop SKU Margins is a Node package that reads exported sales, marketplace fee, shipping label and unit cost files and calculates contribution margin for each product on each sales channel. It runs locally and returns the figures to an AI assistant through the Model Context Protocol, so the numbers can be discussed in conversation without copying spreadsheets around.

The margin calculation takes off the fees, label costs and unit cost recorded in your own files, so the result reflects the channels you actually sell through. Fee schedules and cost inputs are whatever your exports and settings contain, and the server does not look up live marketplace terms.

It suits online sellers and the bookkeepers or operations staff who review channel profitability, particularly those comparing margins across marketplaces. It is published as part of a wider set of Fairshop back-office checks, and this package covers the SKU margin piece only.

## Features

- **Margin per SKU and channel:** Calculates contribution margin for each product separately on each sales channel.
- **Fee and label deduction:** Subtracts marketplace fees and shipping label costs from sales before margin is reported.
- **Unit cost input:** Uses the unit cost recorded in your own files for each SKU.
- **Runs over stdio:** Starts as a local MCP server that AI clients connect to over standard input and output.
- **Local file processing:** Reads the exported files on your computer rather than logging in to any store or platform.

## Good for

- Compare profit per product across Amazon, Shopify and other channels
- Spot SKUs that lose money once marketplace fees and labels are counted
- Ask an AI assistant to explain why a product's margin dropped month to month
- Review channel pricing decisions with exported sales and cost data

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add fairshop-sku-margins -- npx -y fairshop-sku-margins
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "fairshop-sku-margins": {
      "command": "npx",
      "args": [
        "-y",
        "fairshop-sku-margins"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "fairshop-sku-margins": {
      "command": "npx",
      "args": [
        "-y",
        "fairshop-sku-margins"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "fairshop-sku-margins": {
      "command": "npx",
      "args": [
        "-y",
        "fairshop-sku-margins"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "fairshop-sku-margins": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "fairshop-sku-margins"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add fairshop-sku-margins -- npx -y fairshop-sku-margins
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.fairshop-sku-margins]
command = "npx"
args = ["-y", "fairshop-sku-margins"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "fairshop-sku-margins": {
      "command": "npx",
      "args": [
        "-y",
        "fairshop-sku-margins"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user fairshop-sku-margins npx -- -y fairshop-sku-margins

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "fairshop-sku-margins": {
      "command": "npx",
      "args": [
        "-y",
        "fairshop-sku-margins"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "fairshop-sku-margins": {
      "command": "npx",
      "args": [
        "-y",
        "fairshop-sku-margins"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "fairshop-sku-margins": {
      "command": "npx",
      "args": [
        "-y",
        "fairshop-sku-margins"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "fairshop-sku-margins": {
      "command": "npx",
      "args": [
        "-y",
        "fairshop-sku-margins"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "fairshop-sku-margins": {
      "command": "npx",
      "args": [
        "-y",
        "fairshop-sku-margins"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "fairshop-sku-margins": {
      "command": "npx",
      "args": [
        "-y",
        "fairshop-sku-margins"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "fairshop-sku-margins": {
      "command": "npx",
      "args": [
        "-y",
        "fairshop-sku-margins"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "fairshop-sku-margins": {
      "command": "npx",
      "args": [
        "-y",
        "fairshop-sku-margins"
      ]
    }
  }
}
```

## FAQ

### How do I install Fairshop SKU Margins?

It is published on npm as fairshop-sku-margins, version 0.1.0, and runs over stdio transport.

### Does Fairshop SKU Margins connect to my store or marketplace accounts?

No. It reads the files you export and does not log in to your store, a marketplace, a payment processor, a carrier or your bank.

### Are fee schedules updated automatically?

No. Fee schedules and rate cards are settings you confirm yourself, and the server does not know current marketplace terms.

### Is Fairshop SKU Margins free?

Yes. Fairshop SKU Margins is open source, so you can use and self-host it for free.

### How do I add Fairshop SKU Margins to Claude Code?

Run this command in your terminal: claude mcp add fairshop-sku-margins -- npx -y fairshop-sku-margins

### What are the best alternatives to Fairshop SKU Margins?

The closest alternatives to Fairshop SKU Margins are Fairshop Shipping Costs, Fairshop Stockouts, Fairshop Return Reasons, Marginrule pricing agent and Fairshop Payouts.

## Where this comes from

- Description: written from the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Fairshop Shipping Costs](https://ai-powered.com/mcp/fairshop-shipping-costs): Fairshop Shipping Costs is an MCP server for e-commerce.
- [Fairshop Stockouts](https://ai-powered.com/mcp/fairshop-stockouts): Fairshop Stockouts is an MCP server for e-commerce.
- [Fairshop Return Reasons](https://ai-powered.com/mcp/fairshop-return-reasons): Fairshop Return Reasons is an open-source MCP server for e-commerce.
- [Marginrule pricing agent](https://ai-powered.com/mcp/marginrule-pricing-agent): Marginrule pricing agent is a free MCP server for e-commerce.
- [Fairshop Payouts](https://ai-powered.com/mcp/fairshop-payouts): Fairshop Payouts is a paid MCP server for finance and payments.
- [Fairshop Affiliate Commissions](https://ai-powered.com/mcp/fairshop-affiliate-commissions): Fairshop Affiliate Commissions is an MCP server for e-commerce.
- [Fairshop Store Shrink](https://ai-powered.com/mcp/fairshop-store-shrink): Fairshop Store Shrink is an MCP server for e-commerce.
- [Fairshop Retailer Deductions](https://ai-powered.com/mcp/fairshop-retailer-deductions): Fairshop Retailer Deductions is a paid MCP server for e-commerce.

---
Source: https://ai-powered.com/mcp/fairshop-sku-margins
