Summary
Let your AI run your AliExpress shop: orders and delivery addresses, shipment declarations with your own carrier, products with prices and stock, categories, disputes and settlement statements. Uses your own seller app on the AliExpress Open Platform.
Guided setup
Connect AliExpress Seller to Gemini in 2 minutes
Start a free trial on AnythingMCP Cloud, connect AliExpress Seller in the guided setup, then add your MCP URL to Gemini. No code and no server to run.
No credit card · 7-day trial · Self-host alternative available
Try asking
Example prompts for AliExpress Seller
Click any prompt to copy it. Paste into Claude, ChatGPT, Cursor, Gemini, Copilot or OpenClaw to run it against this connector.
Claude is AI and can make mistakes. Please double-check responses.
💡 No install? Use cloud.anythingmcp.com directly. Sign in, click Connectors → AliExpress Seller, paste the app key and secret, click Authorize and sign in with the shop's seller account, mint an MCP API key and you're done. No Docker, no
git clone, no local server.
AliExpress Seller + Gemini
Let your AI run your AliExpress shop: orders and delivery addresses, shipment declarations with your own carrier, products with prices and stock, categories, disputes and settlement statements. Uses your own seller app on the AliExpress Open Platform.
Prerequisites
See the full setup instructions baked into the connector (visible in the in-app store when you select the connector). The required environment variables for this connector are:
ALIEXPRESS_SELLER_APP_KEY, ALIEXPRESS_SELLER_APP_SECRET
Step 1 — Get credentials
What you need: an AliExpress seller account, a developer account on the AliExpress Open Platform and an app of your own in the category Seller-inhouse Developer. AliExpress reviews the developer profile and has to approve that app category before the app can be created: nobody but AliExpress can speed this up, and it can refuse. Its Chinese FAQ names 2 to 5 working days for the developer review; no time is given for the category.
- At https://openservice.aliexpress.com click Create Account (or sign in). Then complete your profile under your user ID, Profile: choose the developer type, fill in the fields and upload the documents AliExpress asks for. AliExpress reviews the profile.
- Open the App Console and click Create. In the list of app categories click Apply on Seller-inhouse Developer (for an AliExpress seller who builds an app for their own use), write why you need it in the Reason field and click OK. The category shows Pending until AliExpress approves it, then Active. Only one app can be created per category.
- On the approved category click Create App. Enter an app name and, as callback URL, the address of this server followed by
/api/iop-auth/callback(on AnythingMCP Cloud:https://cloud.anythingmcp.com/api/iop-auth/callback), then click Submit. - Click APP Overview, then Manage on your app. Copy the App Key into
ALIEXPRESS_SELLER_APP_KEY. Under Basic Information click View and copy the App Secret intoALIEXPRESS_SELLER_APP_SECRET. - On the same page look at API Permission Group: a group marked Inactive has to be requested with Apply and a reason before its APIs answer.
- Under App Console, App Management, Auth Management enter the seller account of your shop in the seller authorization whitelist and submit. A self-developed app can bind up to 50 shops, and only shops that are legally related to the developer: the same company, parent and subsidiary, the same parent company, or the same legal representative or majority shareholder.
- On the connector page click Authorize. AliExpress shows its sign-in page: select the country, enter the seller account and password of the shop and click Sign in And Authorize. You come back to AnythingMCP on your own.
Token lifetime: AnythingMCP keeps the access token and the refresh token encrypted, reads how long they last from the answer of AliExpress (expires_in and refresh_expires_in, in seconds) and renews the access token by itself. A renewal brings a new refresh token but does not move the end date of the refresh token. When that date is reached (or AliExpress answers refresh_expires_in 0), click Authorize again. The Auth Management page shows the durations of your app; the Chinese guide of AliExpress names 365 days for the access token and 730 days for the refresh token of a self-developed seller app.
How it signs: every call goes to /sync with the API name in method, plus app_key, access_token, a millisecond timestamp, sign_method=sha256 and sign, the upper-case HMAC-SHA256 of all parameters sorted by name, keyed with the App Secret. The secret never leaves AnythingMCP.
Where to start
- The shop:
aliexpress_seller_get_seller_profile(seller id, country, quotation currency, product counts) andaliexpress_seller_get_shop_info(shop id, name and URL). - Orders:
aliexpress_seller_list_orderswithorder_statusWAIT_SELLER_SEND_GOODS lists what has to be shipped;aliexpress_seller_get_ordergives amounts, sub-orders and tracking;aliexpress_seller_get_order_receipt_infothe delivery address. - Shipping with your own carrier:
aliexpress_seller_list_order_shipping_servicessays per sub-order whether it ships with your own carrier (DBS) or with platform logistics;aliexpress_seller_list_shipment_providersgives the provider codes;aliexpress_seller_declare_shipmentsends carrier and tracking number to AliExpress and costs nothing;aliexpress_seller_modify_shipmentcorrects it (twice at most, within ten days).aliexpress_seller_list_packagesshows the packages and their status. - Platform logistics (switched off at install, because they order a logistics service for the shop):
aliexpress_seller_list_seller_addressesfor the pickup address,aliexpress_seller_pack_orderto create the package,aliexpress_seller_ship_platform_packageto hand it over,aliexpress_seller_cancel_packageto undo a package. Printing the waybill is not included: AliExpress returns it as a file inside the answer, print it from the seller centre. - Products:
aliexpress_seller_list_productsby status,aliexpress_seller_get_productwith every SKU,aliexpress_seller_update_pricesandaliexpress_seller_update_stockbysku_code,aliexpress_seller_set_products_online, andaliexpress_seller_set_products_offline(switched off). Posting, editing and deleting products are not included. - Catalogue settings:
aliexpress_seller_list_categories,aliexpress_seller_list_publishable_categoriesandaliexpress_seller_list_freight_templates. - Disputes:
aliexpress_seller_list_disputesandaliexpress_seller_get_disputeare reads.aliexpress_seller_accept_dispute_solutionis switched off: accepting a proposal is binding and can refund the buyer. - Money:
aliexpress_seller_list_settlement_billslists the settlement statements. The connector never pays, refunds or withdraws by itself.
Ids and formats
- Order, sub-order, product and dispute ids are long numbers: pass them as text, digits only. The sub-order id (
child_idin the order list,idinchild_order_listof an order) is what the shipping tools calltradeOrderItemId. - Order times are US Pacific Time, written
yyyy-MM-dd HH:mm:ss. Package and dispute filters take Unix time in milliseconds. Settlement periods are writtenYYYY/MM/dd, their release dates are Unix milliseconds. - Amounts are objects with
amount(a decimal string) andcurrency_code; prices you send are decimal strings in the currency of the product. - Lists page from 1: orders and disputes up to 50 per page, packages up to 50, products fewer than 100. Price and stock updates take at most 20 products with 200 SKUs each.
order_statusFINISH covers completed and closed orders alike, and is only returned when asked for.endReasonin theextend_mapof its sub-orders tells them apart.
Answers and errors: results sit under aliexpress_..._response (the API name with underscores). Many calls answer 200 and carry their own verdict inside: result.success with errorCode and errorMessage (or error_code and error_message), update_success with update_failed_list for price and stock updates. Always read it before telling the user a write worked. Refusals of the gateway come as error_response with a code: IllegalAccessToken when the authorization ended (AnythingMCP renews the token once and retries), InvalidAppkey or IncompleteSignature when key and secret do not match, InsufficientPermission when the app lacks the API permission group, and a call limit code when the quota of the app category is used up.
Step 2 — Install the adapter
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
Step 3 — Add the connector in Gemini
Your server URL: in AnythingMCP, open MCP Servers → the server this connector is on, and copy its URL (
https://cloud.anythingmcp.com/mcp/…). Use it wherever this guide showsYOUR_SERVER_ID.
Gemini CLI reads MCP servers from ~/.gemini/settings.json (on Windows %USERPROFILE%\.gemini\settings.json). Add:
{
"mcpServers": {
"anythingmcp": {
"httpUrl": "https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID",
"headers": { "X-API-Key": "YOUR_MCP_API_KEY" }
}
}
}
- Create an MCP API key in AnythingMCP under MCP Servers → your server → API keys, and paste it in place of
YOUR_MCP_API_KEY. - Save the file and restart
gemini. - Run
/mcpinside Gemini CLI (orgemini mcp listin your shell) —anythingmcpshould show as connected. - Start prompting — Gemini CLI can now call the
AliExpress Sellertools.
Available tools
| Tool | What it does |
|---|---|
aliexpress_seller_get_seller_profile | The merchant profile of the authorized seller account: seller_id, country, quotation_currency (the currency the shop quotes prices in)… |
aliexpress_seller_get_shop_info | The shop behind the authorization: shop_id, shop_name, shop_type, shop_url, merchant_login_id, the country_code chosen at registration and… |
aliexpress_seller_list_orders | List the orders of the shop, one page at a time. Per order: order_id, order_status, gmt_create, gmt_pay_time, gmt_update, pay_amount… |
aliexpress_seller_get_order | Everything about one order: order_status, logistics_status, fund_status, issue_status, the amounts (init_oder_amount for the products… |
aliexpress_seller_get_order_receipt_info | The delivery address of one order, for shipping it: contact_person, address, address2, detail_address, city, province, zip, country (two… |
aliexpress_seller_list_order_shipping_services | The logistics service on each sub-order of an order: tradeOrderItemId, shipmentServiceCode, shipmentServiceName and… |
aliexpress_seller_list_shipment_providers | The carriers a package with these sub-orders may ship with. shipmentProviderList gives per provider shipmentProviderCode (the code… |
aliexpress_seller_list_seller_addresses | The pickup and return addresses saved for the shop: pickupSellerAddressList and refundSellerAddressList, each entry with addressId, name… |
aliexpress_seller_list_packages | The fulfilment packages of the shop, by order, by package or by creation time, reaching back 90 days. dataSource gives per package… |
aliexpress_seller_declare_shipment | Declare that sub-orders were shipped with your own carrier (DBS, not platform logistics): AliExpress records the carrier and the tracking… |
aliexpress_seller_modify_shipment | Correct a shipment declared with aliexpress_seller_declare_shipment: replace the tracking number and the carrier of one parcel. AliExpress… |
aliexpress_seller_pack_order | Create a platform logistics package for sub-orders of an order (online packaging): AliExpress books the shipment with its logistics partner… |
aliexpress_seller_ship_platform_package | Mark a packed platform logistics package as ready to ship: after this the logistics partner comes to collect the parcel. Not for parcels… |
aliexpress_seller_cancel_package | Cancel a platform logistics package created with aliexpress_seller_pack_order, so the order can be packed again. The logistics guide of… |
aliexpress_seller_list_products | List the products of the shop in one status, one page at a time: product_id, subject (title), product_min_price and product_max_price over… |
aliexpress_seller_get_product | One product in full: product_status_type, category_id, currency_code, product_price, the titles and descriptions per language… |
aliexpress_seller_update_prices | Set the price of SKUs, for up to 20 products and 200 SKUs per product in one call. Prices are decimal strings in the currency of the… |
aliexpress_seller_update_stock | Set the stock of SKUs to absolute numbers, for up to 20 products and 200 SKUs per product in one call. Returns update_success (true only… |
aliexpress_seller_set_products_online | Put offline products back on sale, up to 50 per call. Returns result.success, modify_count (how many went online) and error_details with… |
aliexpress_seller_set_products_offline | Take products off sale: buyers can no longer order them until aliexpress_seller_set_products_online puts them back. Returns result.success… |
aliexpress_seller_list_categories | The categories below one AliExpress category: per entry id, level, isleaf (products can only be posted in a leaf category), names in… |
aliexpress_seller_list_publishable_categories | The seller's own category tree, one level at a time: per child children_category_id, level (1 for a root category), is_leaf_category and… |
aliexpress_seller_list_freight_templates | The freight (shipping) templates of the shop: template_id, template_name and is_default. A product points to its template with… |
aliexpress_seller_list_disputes | List the disputes buyers opened against the shop, one page at a time: issue_id, order_id, parent_order_id, buyer_login_id, issue_status… |
aliexpress_seller_get_dispute | One dispute in full: issue_status and reverse_detail_status (for example wait_for_seller_response), issue_reason, order_id, product_id… |
aliexpress_seller_accept_dispute_solution | Accept one proposal of a dispute in the name of the seller. This is a binding decision: AliExpress then carries out the proposal, which can… |
aliexpress_seller_list_settlement_bills | The settlement statements of a shop that AliExpress pays per period: per statement statement_id, statement_status, start_time and end_time… |
Example prompts
- "Which AliExpress orders are waiting for me to ship?"
- "Declare the shipment of order 8187654321098765 with Cainiao tracking LP00123456789012."
- "Which disputes are open, and what do the buyers ask for?"
- "Set the stock of SKU AE-CASE-14-BLK to 300 and the price to 4.99 USD."
- "Show last month's settlement statements."
FAQ
Do I paste an access token? No. You paste the App Key and App Secret of your Seller-inhouse Developer app, add the shop to the app's seller whitelist, and click Authorize on the connector page. AliExpress's sign-in page asks for the shop's seller account, and the connector keeps and renews the tokens itself.
What does it cover, and what not? Orders and delivery addresses, shipment declarations with your own carrier, packages, products with prices and stock, categories, freight templates, disputes and settlement statements. Posting or editing products and buyer messages are not covered.
Which tools install switched off? The platform logistics tools (aliexpress_seller_pack_order, aliexpress_seller_ship_platform_package, aliexpress_seller_cancel_package), aliexpress_seller_set_products_offline and aliexpress_seller_accept_dispute_solution. Switch them on on the connector page only if the AI should use them.
Where does Gemini CLI look for MCP servers? In ~/.gemini/settings.json for your user, or in .gemini/settings.json inside a project. gemini mcp list shows each server and whether it connects.
Next steps
Was this guide helpful?