Profitlee Mcp

io.github.AronLEEdev由 GitHub 账号 AronLEEdev 发布v0.2.1更新于 Oct 25, 2026

MCP server for the Profitlee ecommerce profit calculator (Amazon FBA/FBM + TikTok Shop).

已验证STDIO仅桌面金融商业与电商

概览

AI 生成的概览

本地 MCP 服务器,让助手计算 Amazon FBA/FBM 与 TikTok Shop 的利润空间,并管理已保存的 Profitlee 方案。

可以做什么
计算 Amazon 或 TikTok Shop 商品在美、德、日区域的单件成本结构、毛利/净利率和月度损益,支持 FBA、FBM、TikTok FBT 或自发货模式,以及费用、广告、退货和销量等输入。列出并按 id 读取已保存的方案。保存、重命名、更新、复制和删除方案。结果来自 Profitlee 实时 API,而非本地重新实现的费用逻辑。
适用场景
适合评估电商产品盈利能力、比较不同履约模式与区域时使用,也适合让助手在 Profitlee 账户中保存并反复查看命名的计算方案。
运行要求
通过 npx 在本地运行,需要 Node.js 20 或更高版本,并能访问 Profitlee API。环境变量 PROFITLEE_API_TOKEN(Profitlee Pro 令牌)为可选项,仅方案相关工具需要;calculate_profit 无需令牌。可用 PROFITLEE_BASE_URL 覆盖 API 地址以便测试。
安装前请注意
方案工具需要以 PROFITLEE_API_TOKEN 传入 Profitlee Pro API 令牌,该令牌可访问你保存的方案。保存、更新、复制和删除工具会修改或移除你 Profitlee 账户中的数据。计算输入会发送至 Profitlee 的 API,结果取决于其当前费率表。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Profitlee Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

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:

json
{  "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

bash
npm installnpm 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

来源:README.md,提交 58b5fb3

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.2.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分