mcpField
P
Profitlee Mcp

Profitlee Mcp

Local
github.com/AronLEEdevBusiness & Marketing0Updated 11w ago

About Profitlee Mcp

Profitlee Mcp is an MCP server for sellers evaluating Amazon FBA/FBM and TikTok Shop profitability. It calculates fee-adjusted margins and manages saved scenarios through Profitlee's API; calculation is available without a token, while scenario tools require a Pro token.

Key features

  1. 01Calculate per-unit costs, margins, and monthly P&L
  2. 02Account for platform, region, and fulfillment mode
  3. 03List, read, save, update, copy, and delete scenarios

Use cases

  1. 01Estimate profit for an Amazon product
  2. 02Compare TikTok Shop fulfillment outcomes
  3. 03Save and revisit product cost scenarios

MCP support

Exposes profit calculation and scenario-management tools to MCP clients. Calculation requires no token; scenario tools use a Profitlee Pro API token.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"profitlee": {
"command": "npx",
"args": [
"-y",
"profitlee-mcp"
],
"env": {
"PROFITLEE_API_TOKEN": "<PROFITLEE_API_TOKEN>",
"PROFITLEE_BASE_URL": "<PROFITLEE_BASE_URL>"
}
}
}
}
Run commandnpx -y profitlee-mcp
Environment variables to set
PROFITLEE_API_TOKENSecretProfitlee Pro API token (eck_live_...). Required only for the scenario tools; calculate_profit works without it.
PROFITLEE_BASE_URLOverride the Profitlee API origin (default https://profitlee.com). For testing.

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npmprofitlee-mcp0.2.1

Tools

7

Saved tool list · updated 3w ago

ParameterTypeRequiredDescription
platformenumNoSales platform. Default: amazon.amazon | tiktok_shop
regionenumYesMarketplace. US uses inches+pounds; DE/JP use cm+kg.us | de | jp
modeenumYesFulfillment mode. amazon: fba or fbm. tiktok_shop: fbt or self_fulfilled.fba | fbm | fbt | self_fulfilled
LnumberYesLength. US: inches; DE/JP: cm.
WnumberYesWidth. US: inches; DE/JP: cm.
HnumberYesHeight. US: inches; DE/JP: cm.
weightnumberYesUnit weight. US: pounds; DE/JP: kg.
fobnumberYesUnit manufacturing / FOB cost in the marketplace currency.
headShipnumberYesInbound freight cost allocated per unit.
dutynumberYesImport duty per unit.
pricenumberYesSelling price per unit (gross; VAT-inclusive for DE/JP).
ppcAcosnumberYesAdvertising ACoS as a 0-1 decimal (0.15 = 15%).
adSalesSharenumberNoAd-attributed share of sales, 0-1. Omit to default to 1.
returnRatenumberYesReturn rate as a 0-1 decimal (0.05 = 5%).
unsellableReturnRatenumberNoUnsellable share of returned units, 0-1. Omit to default to 1.
monthlyVolumeintegerYesUnits sold per month.
referralPctnumberYesReferral/commission fee as a 0-1 decimal (0.15 = 15%). Preferred.
referralCategorystring|nullNoAdvanced: a category slug that overrides referralPct. Leave unset and use referralPct.
isApparelbooleanYesWhether the product is apparel (affects some fees).
inboundOptionenumNoAmazon FBA only: inbound placement option.optimized | partial | single
storageMonthsnumberNoAmazon FBA only: number of months in storage.
storageSeasonenumNoAmazon FBA only: storage season (octDec is the Q4 peak).janSep | octDec
outboundShipPerUnitnumberNoFBM or TikTok self_fulfilled: outbound shipping per unit.
pickPackPerUnitnumberNoFBM or TikTok self_fulfilled: pick & pack per unit.
monthly3plStoragenumberNoFBM or TikTok self_fulfilled: total monthly 3PL storage.
storageMonthsPastFreenumberNoTikTok fbt only: months stored past the 60-day free window (0 if shipped before it ends).

Details

From the project README

profitlee-mcp

npm version license smithery badge Glama MCP Server

An MCP server for Profitlee — compute country-accurate Amazon FBA/FBM and TikTok Shop profit margins, and manage saved scenarios, from any MCP client (Claude Desktop, Claude Code, Cursor, …).

calculate_profit is free and needs no token. The scenario tools require a Profitlee Pro API token.

MCP registry name: io.github.AronLEEdev/profitlee-mcp

Quick start

Add to your MCP client config:

{
  "mcpServers": {
    "profitlee": {
      "command": "npx",
      "args": ["-y", "profitlee-mcp"],
      "env": {
        "PROFITLEE_API_TOKEN": "eck_live_xxx"
      }
    }
  }
}

PROFITLEE_API_TOKEN is optional — omit the whole env block to use calculate_profit only. Create a token on your Profitlee account page to unlock the scenario tools.

Requires Node.js 20+.

Tools

ToolAuthDescription
calculate_profitnoneFull per-unit cost stack, gross/net margin, and monthly P&L.
list_scenariosPro tokenList your saved scenarios.
get_scenarioPro tokenRead one scenario (inputs + outputs) by id.
save_scenarioPro tokenSave a named scenario from calculator inputs.
update_scenarioPro tokenRename and/or replace a scenario's inputs.
delete_scenarioPro tokenDelete a scenario by id.
copy_scenarioPro tokenDuplicate a scenario into a new one ("Copy of …").
calculate_profit inputs

Pick a platform + mode, give the product's physical and cost details, and Profitlee folds every fee into a single net margin. Rates are 0–1 decimals (e.g. 0.15 = 15%). US uses inches + pounds; DE/JP use cm + kg.

FieldNotes
platformamazon (default) or tiktok_shop.
regionus, de, or jp.
modeamazon: fba | fbm. tiktok_shop: fbt | self_fulfilled.
L, W, H, weightDimensions + unit weight.
fob, headShip, dutyUnit cost, inbound freight/unit, import duty/unit.
priceSelling price (gross; VAT-inclusive for DE/JP).
ppcAcos, returnRateAd ACoS and return rate (0–1).
monthlyVolumeUnits/month (scales the P&L).
referralPctReferral fee (0–1). Preferred over referralCategory.
isApparelAffects some fees.
mode-specificFBA: inboundOption, storageMonths, storageSeason. FBM / TikTok self-fulfilled: outboundShipPerUnit, pickPackPerUnit, monthly3plStorage. TikTok FBT: storageMonthsPastFree.

The Profitlee API is the source of truth for validation — incomplete or out-of-range inputs come back as a clear error listing the offending fields. Full field reference: https://profitlee.com/docs/api.

Environment variables

VarRequiredDefaultPurpose
PROFITLEE_API_TOKENNo—Pro token (eck_live_…); needed only for the scenario tools.
PROFITLEE_BASE_URLNohttps://profitlee.comOverride the API origin (testing).

How it works

The server is a thin wrapper over Profitlee's public HTTP API:

  • calculate_profit → POST /api/v1/calculate (public, no token).
  • scenario tools → /api/v1/scenarios* (require the Pro token; the server fails fast with a clear message if it's missing).

No fee logic is reimplemented here, so results always match the live Profitlee calculator and current fee tables.

Development

npm install
npm test       # vitest (27 tests)
npm run build  # tsc -> dist/
npm run dev    # run from source with tsx

Releasing

Maintainers: see PUBLISHING.md for npm publish + MCP registry steps. The registry manifest lives in server.json.

License

MIT

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.