mcpField
T
tariff-calculator-amazon

tariff-calculator-amazon

github.com/nexscope-aiOther8141.2k installsUpdated 9w ago
Repository

About tariff-calculator-amazon

A tariff and landed-cost calculator skill for international Amazon sellers. It estimates duties and taxes across trade routes, suggests HS codes from product descriptions, and supports custom routes and trade-agreement rates.

Key features

  1. 01Tariff rate lookup
  2. 02HS code suggestions
  3. 03Section 301 duty calculation
  4. 04VAT/GST calculation
  5. 05Landed-cost breakdown
  6. 06Trade agreement rates

Use cases

  1. 01Estimate import costs for products
  2. 02Look up product HS codes
  3. 03Compare costs across trade routes
  4. 04Calculate applicable agreement rates

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/nexscope-ai/amazon-skills --skill tariff-calculator-amazon

After installing, type/tariff-calculator-amazonin Claude Code to confirm it loaded.

Bundled filesscripts/calculator.pyscripts/hs_lookup.py

Details

From the project README

Tariff Calculator — Amazon 💰

Universal tariff and landed cost calculator for international Amazon sellers.

Installation

npx skills add nexscope-ai/eCommerce-Skills --skill tariff-calculator-amazon -g

Features

  • Universal Trade Routes — Any origin to any destination
  • Tariff Rate Lookup — HS code → duty rate
  • Section 301 Tariffs — US additional duties on China imports
  • VAT/GST Calculation — EU, UK, CA, AU, CN rates
  • Landed Cost — Complete cost breakdown
  • HS Code Matcher — Product description → HS code suggestions
  • Trade Agreements — USMCA, EVFTA, RCEP preferential rates

Supported Trade Routes

RouteKey TariffsVAT/GST
🇨🇳 → 🇺🇸 China → USASection 301 (7.5-25%)N/A
🇨🇳 → 🇪🇺 China → EUStandard duties19-22%
🇨🇳 → 🇬🇧 China → UKStandard duties20%
🇺🇸 → 🇪🇺 USA → EUStandard duties19-22%
🇪🇺 → 🇺🇸 EU → USAStandard dutiesN/A
🇺🇸 → 🇨🇳 USA → ChinaRetaliatory tariffs13% VAT
🇨🇳 → 🇨🇦 China → CanadaStandard duties5% GST
🇨🇳 → 🇦🇺 China → AustraliaStandard duties10% GST
CustomUser-definedUser-defined

Section 301 Tariffs (China → USA)

HS ChapterProductsAdditional Rate
84xxComputers, machinery25%
85xxElectronics (some)0-25%
94xxFurniture, lighting25%
95xxToys25%
61/62Apparel7.5%
64xxFootwear7.5%
42xxBags, accessories7.5%

Landed Cost Formula

Landed Cost = 
    FOB Value
  + International Freight
  + Insurance
  + Import Duty
  + VAT/GST (if applicable)
  + Customs Clearance
  + Port Fees
  + Inland Freight

Usage

Basic Calculation
python3 scripts/calculator.py
With Parameters
python3 scripts/calculator.py '{
  "hs_code": "8518300000",
  "origin_country": "CN",
  "destination_country": "US",
  "fob_value": 5000.00,
  "quantity": 500,
  "freight_cost": 200.00
}'
HS Code Lookup
python3 scripts/hs_lookup.py "wireless earbuds"
python3 scripts/hs_lookup.py "bluetooth speaker"
Custom Trade Route
python3 scripts/calculator.py '{
  "hs_code": "9503009000",
  "origin_country": "VN",
  "destination_country": "DE",
  "fob_value": 10000.00,
  "quantity": 1000,
  "freight_cost": 500.00,
  "custom_duty_rate": 0.047,
  "custom_vat_rate": 0.19
}'

Output Example

💰 Tariff & Landed Cost Report

Product: Wireless Bluetooth Earbuds
HS Code: 8518300000
Route: China 🇨🇳 → USA 🇺🇸

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

📦 Cost Breakdown

FOB Value               $  5,000.00
International Freight   $    200.00
Insurance               $     15.00
CIF Value               $  5,215.00

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🏛️ Duties & Taxes

Base Duty (0.0%)        $      0.00
Section 301 (0.0%)      $      0.00
Total Duty              $      0.00
Customs Clearance       $    150.00
Port Fees               $     50.00

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

💵 Landed Cost Summary

Total Landed Cost       $  5,515.00
Per Unit Cost           $     11.03

Trade Agreement Support

AgreementCountriesBenefit
USMCAUS, Mexico, CanadaReduced/zero duties
EVFTAEU, VietnamReduced duties
RCEPAsia-PacificReduced duties
UK-JapanUK, JapanReduced duties

Custom Configuration

Create a custom config for your routes:

{
  "default_origin": "CN",
  "default_destination": "US",
  "include_insurance": true,
  "insurance_rate": 0.003,
  "customs_fee": 150,
  "port_fee": 50
}

Part of Nexscope AI — AI tools for e-commerce sellers.

Comments

Markdown supported