Skip to content
MCP server

Fairshop SKU Margins

Works out contribution margin per SKU and channel from your sales, fees and costs

Runs locally

Fairshop SKU Margins is an open-source MCP server for e-commerce. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, API, Self-hosted
Runs
Locally
Version
0.1.0
Listing updated

Similar MCP servers

Install

You install MCP servers on a computer. Send yourself the link.

Add with the CLI

Run in a terminal

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.

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.json

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

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

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.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.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.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.

VS Code setup guide

Add with the CLI

Run in a terminal

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

Or add to config.toml

Add to ~/.codex/config.toml

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

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "fairshop-sku-margins": {
      "command": "npx",
      "args": [
        "-y",
        "fairshop-sku-margins"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.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

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

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

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

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

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

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

    Cline setup guide

  • Zed

    Add to Zed settings.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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

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

    Junie

    Add to ~/.junie/mcp/mcp.json

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

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

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

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

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

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About Fairshop SKU Margins

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.

What it does

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

Pricing

Open source

Prices change. Check fair-agents.com before you buy.

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.

How AIPoweredBot checks servers