Connector guide16-minute read40 MCP tools7 languages

Connect Miravia to Cursor via MCP: Orders and Stock

Let your AI run your Miravia shop, the Alibaba group's marketplace in Spain, with the AliExpress orders and listings that come with it: orders and item lines, packing, tracking and ready-to-ship, shipping labels, products with price and stock, categories and brands, returns and refunds. Cancellations, refund decisions and product removal are installed switched off.

HCBy HelpCode teamUpdated 16 min read Open-source on GitHub

No credit card · 7-day trial · Self-host alternative available

Miravia Seller

Miravia Seller

Let your AI run your Miravia shop, the Alibaba group's marketplace in Spain, with the AliExpress orders and listings that come with it: orders and item lines, packing, tracking and ready-to-ship, shipping labels, products with price and stock, categories and brands, returns and refunds. Cancellations, refund decisions and product removal are installed switched off.

tools

40

Region

ES

Category

E-commerce

Authentication

Signed request (HMAC)

Required env vars

MIRAVIA_APP_KEYMIRAVIA_APP_SECRET
Install in one click on Cloud

7-day free trial · No credit card

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Open source · AGPL-3.0
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

Summary

Let your AI run your Miravia shop, the Alibaba group's marketplace in Spain, with the AliExpress orders and listings that come with it: orders and item lines, packing, tracking and ready-to-ship, shipping labels, products with price and stock, categories and brands, returns and refunds. Cancellations, refund decisions and product removal are installed switched off.

Guided setup

Connect Miravia Seller to Cursor in 2 minutes

Start a free trial on AnythingMCP Cloud, connect Miravia Seller in the guided setup, then add your MCP URL to Cursor. No code and no server to run.

No credit card · 7-day trial · Self-host alternative available

Try asking

Example prompts for Miravia Seller

Click any prompt to copy it. Paste into Claude, ChatGPT, Cursor, Gemini, Copilot or OpenClaw to run it against this connector.

Miravia Seller · live via MCP
Share
Opus 4.7

Claude is AI and can make mistakes. Please double-check responses.

💡 No install? Use cloud.anythingmcp.com directly. Sign in, click Connectors → Miravia 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.

Miravia Seller + Cursor

Let your AI run your Miravia shop, the Alibaba group's marketplace in Spain, with the AliExpress orders and listings that come with it: orders and item lines, packing, tracking and ready-to-ship, shipping labels, products with price and stock, categories and brands, returns and refunds. Cancellations, refund decisions and product removal are installed switched off.

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:

MIRAVIA_APP_KEY, MIRAVIA_APP_SECRET

Step 1 — Get credentials

What you need: a Miravia seller account, a Miravia Open Platform account with a Seller Profile and a Seller In House App there. About 20 minutes, plus Miravia's approval of the app for production use.

  1. Open https://open.miravia.com and create an Open Platform account (email and password, then the 6-digit code Miravia emails you). When Miravia asks for the profile, choose Seller Profile and log in with your Seller Center account: the profile is created after that login.
  2. In the App Console apply for the app category Seller In House App (Miravia wants the category permission before an app is created; a seller can have at most 5 such apps). Then click Create App and fill in App Name, Callback URL, Description and App Logo (jpg or png, about 100x100 px). The Callback URL is this server's address followed by /api/iop-auth/callback (on AnythingMCP Cloud: https://cloud.anythingmcp.com/api/iop-auth/callback).
  3. The app now appears on the App Management dashboard. Click Manage to open it and copy the App Key into MIRAVIA_APP_KEY and the App Secret into MIRAVIA_APP_SECRET.
  4. Miravia's tutorial puts two things between a new app key and production: pass Integration validation in the App Console (one orders scene, Orders single or Orders multiple, and either the Product or the Feed scene; with the validation method File you fill in Miravia's template and click Start test in the console), then open the app with Manage and, under Basic Information, click Apply Online next to App Status and give a reason. Once Miravia approves the request the status changes to Online. The tutorial does not say how long that takes.
  5. On the connector page click Authorize. Miravia's sign-in page opens: sign in with the seller account of the shop and approve. Miravia sends you back with a code, which AnythingMCP exchanges for the shop's tokens. AnythingMCP opens https://auth.miravia.com/apps/oauth/authorize; if Miravia shows an error there, compare that address with the authorization URL the App Console shows for your app under Manage.

Tokens: per Miravia's guide the access token lasts 14 days and the refresh token 712 days (about two years). AnythingMCP reads the real lifetimes from Miravia's token answer (expires_in and refresh_expires_in, in seconds), renews the access token on its own and adds it to every call: there is no token to paste. When the refresh token ends, or Miravia refuses it, the connector asks for a new sign-in: click Authorize again.

How it signs: every call carries app_key, access_token, a millisecond timestamp, sign_method=sha256 and sign, an upper-case HMAC-SHA256 keyed with the App Secret over the API path followed by every parameter sorted by name. The secret never leaves AnythingMCP. Miravia refuses a timestamp more than 7200 seconds off.

Where to start

  • The shop: miravia_get_seller (name, status, the countries it sells in, whether it is an M2A seller) and miravia_get_shipping_permission (may the seller ship orders itself).
  • Orders: miravia_list_orders needs created_after or update_after; then miravia_get_order for one order and miravia_get_order_items (or miravia_get_multiple_order_items for several orders) for the item lines with their status, package and tracking.
  • Products: miravia_list_products (by status, date or SKU, with stock details), miravia_search_products (the V2 listing with page numbers) and miravia_get_product for one product.
  • Returns: miravia_list_reverse_orders lists cancellations, returns and refunds; miravia_list_reverse_reasons gives the reasons a seller may reject one with.

Shipping an order: on the item lines delivery_option_sof 1 means the seller ships (DBS, Delivery by Seller), otherwise Miravia's carrier collects the parcel (DBM, Delivery by Miravia).

  • DBM: miravia_pack_order (returns the package_id), miravia_get_shipping_label for the label to print, then miravia_set_ready_to_ship.
  • DBS: miravia_pack_order, miravia_list_shipment_providers for the carrier's provider_code, miravia_update_tracking with your tracking number, then miravia_set_ready_to_ship (refused until the tracking number is set). Labels do not exist for DBS parcels.
  • miravia_fulfill_order is the V2 call that does the packing step in one request (for DBS with carrier and tracking number) and can be sent again to change the tracking number.
  • After hand-over a DBS parcel that Miravia cannot track itself is moved on with miravia_confirm_package_collected (shipped) and miravia_confirm_package_delivered (delivered). Both are switched off: they cannot be undone, and Miravia may blacklist a seller who reports a delivery that did not happen.

Miravia and AliExpress (M2A)

  • Orders, item lines, products and returns carry marketplace: miravia or ae. The list tools take it as a filter; without it they answer for both.
  • AliExpress orders are packed with the same tools, with two differences Miravia documents: in miravia_pack_order every entry is orderItemId:quantity, with a warehouse_code for parcels AliExpress logistics carries (DBA); in miravia_update_tracking the fields carrier_code and carrier_name are mandatory.
  • Unpaid orders, and orders locked for 15 minutes after payment while the buyer may still change the address, are not served: the order lists leave them out and a direct read answers error 98.
  • AliExpress orders can show three more statuses: NR Pending (the buyer reported the parcel as not received, the case is open), NR confirmed (the claim was accepted and the buyer is refunded) and Shipped_back_success (the parcel came back to the seller before delivery).
  • Products: prices are in EUR, the texts are sent in Spanish (Miravia translates them for the other countries), CountryPrice sets a price per country, CountryLevelStatusList and the marketplace value of the status tools (miravia, miravia_ES, miravia_PT, ae, ae_ES, ae_IT, ae_PT) switch a product on or off per marketplace and country. ae_product_info on a product shows how the last synchronisation to AliExpress went.
  • The V1 cancellation (miravia_check_order_cancellation, miravia_create_order_cancellation) is refused for Miravia-to-AliExpress orders (error 1001, cancellation not supported). miravia_cancel_order is the V2 cancellation; Miravia's pages do not say whether it takes those orders, so read its answer.

V1 and V2 calls: Miravia runs two generations side by side and says both stay for now, recommending a gradual move to V2. V2 here: miravia_search_products, miravia_create_or_update_product, miravia_update_price, miravia_update_quantity, miravia_update_sku_status, miravia_fulfill_order, miravia_cancel_order, miravia_accept_return_refund, miravia_reject_return_refund. V2 addresses a SKU by its seller SKU alone and takes at most 20 SKUs per call. Miravia's own AliExpress guide still walks through the V1 order calls (pack, tracking, ready to ship), so those are the ones to use for AliExpress orders.

Products

  • Category first: miravia_search_categories finds leaf categories by keyword, miravia_get_category_tree returns the whole tree (large), miravia_get_category_attributes the attributes of one category with the mandatory ones. Brands: miravia_search_brands by name (with your permission for it), miravia_list_brands page by page. A product without a brand is listed as No Brand.
  • Create and change: miravia_create_product and miravia_update_product (V1 payloads) or miravia_create_or_update_product (V2: a seller SKU that exists is updated, a new one is added). Image addresses must be reachable by Miravia; this connector has no image or video upload.
  • Price and stock: miravia_update_price_quantity (V1: price, sale price, quantity and country prices, up to 50 SKUs, 20 recommended), miravia_update_sellable_stock (V1: sellable quantity), miravia_update_price and miravia_update_quantity (V2, up to 20 SKUs, quantity also per warehouse). The default warehouse code is dropshipping.

Switched off at install (turn a tool on in the connector's tool list when you want the AI to use it, and confirm each call): miravia_cancel_order, miravia_create_order_cancellation, miravia_accept_return_refund, miravia_reject_return_refund, miravia_remove_product, miravia_deactivate_product, miravia_update_product_status, miravia_update_sku_status, miravia_confirm_package_collected, miravia_confirm_package_delivered. Miravia warns that a cancellation by the seller can affect the shop's ability to sell and can set the stock of the SKU to 0; a removed product cannot be restored.

Formats and pitfalls

  • Ids (order, order item, product, SKU) are long numbers: pass them as text. An order has an order_id and each line an order_item_id; packing returns the package_id (FP...) that the label, tracking and ready-to-ship calls need. A product has an item_id, each variant a SkuId, a ShopSku and your own SellerSku.
  • Times: order filters take ISO 8601 with an offset (2026-11-01T00:00:00+01:00) and order answers carry their own offset (Miravia's examples show +0800, so convert before quoting a time). Product times are Unix milliseconds, return times Unix seconds.
  • Paging: orders up to 100 per call with offset, and offset plus limit may not pass 5000 (narrow the time window instead); products up to 50 per call (10 for AliExpress products); returns by page_no and page_size.
  • Answers: a successful answer has code 0 and the result in data (the fulfilment calls use result.data and result.success). The V2 write calls answer per SKU or order line with status and an errors list: read it even when the call itself succeeded. A refusal has another code with type and message: IllegalAccessToken, IncompleteSignature or InvalidAppKey (authentication), InsufficientPermission or AppWhiteIpLimit (the app may not call this API, or its IP whitelist does not include this server), AppCallLimit or AppApiCallLimit (too many calls: wait).
  • Not covered: instant messaging with buyers (it needs its own app category at Miravia), image and video upload, the Feed API for bulk files, Fulfilment by Miravia stock and finance statements.

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 Cursor

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 shows YOUR_SERVER_ID.

Cursor reads MCP servers from ~/.cursor/mcp.json. Add this entry:

{
  "mcpServers": {
    "anythingmcp": {
      "url": "https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID",
      "headers": { "X-API-Key": "YOUR_MCP_API_KEY" }
    }
  }
}
  1. Create an MCP API key in AnythingMCP under MCP Servers → your server → API keys, and paste it in place of YOUR_MCP_API_KEY.
  2. Save the file and restart Cursor.
  3. Open Cursor → Settings → MCP and check that anythingmcp is listed and connected.
  4. Start chatting — the agent can now call the Miravia Seller tools.

Available tools

ToolWhat it does
miravia_get_sellerThe seller account behind this connector: seller_id, shop name, company name, short_code, email, location, status (ACTIVE, INACTIVE or…
miravia_get_shipping_permissionWhether the seller may ship orders with its own carrier (DBS, Delivery by Seller): DBS_permission true or false. True means the seller is…
miravia_list_ordersList orders by creation or update time, with optional status, marketplace and country filters. Per order: order_id, order_number…
miravia_get_orderOne order by its id: order_number, created_at, updated_at, statuses, price, payment_method, items_count, marketplace (miravia or ae)…
miravia_get_order_itemsThe item lines of one order: order_item_id, name, sku (your seller SKU), shop_sku, sku_id, status, item_price, paid_price, currency…
miravia_get_multiple_order_itemsThe item lines of several orders in one call: per order its order_id, order_number and order_items with the same fields as…
miravia_pack_orderPack item lines of one order into a parcel, the first fulfilment step (the order goes from pending to packed). Returns per line the…
miravia_update_trackingRegister the carrier and tracking number of a parcel the seller ships itself (DBS). Needed before miravia_set_ready_to_ship; refused for…
miravia_set_ready_to_shipMark a packed parcel as ready to ship (RTS). For a seller-delivered parcel the tracking number must be set first (error 700005 otherwise).…
miravia_fulfill_orderV2 fulfilment in one call: moves the given item lines of an order from 'to pack' to 'to hand over', like Pack and print in the Seller…
miravia_list_shipment_providersThe carriers a seller-delivered (DBS) parcel can be registered with: name, provider_code and, where Miravia gives them, carrier_info_list…
miravia_get_shipping_labelThe shipping label (AWB) of one packed parcel that Miravia's or AliExpress's logistics carries: doc_type, pdf_url (a download link valid…
miravia_confirm_package_collectedTell Miravia that the carrier collected a seller-delivered (DBS) parcel that is ready to ship: the parcel moves to shipped. Only for…
miravia_confirm_package_deliveredTell Miravia that a shipped seller-delivered (DBS) parcel reached the buyer, optionally with a proof-of-delivery link: the parcel moves to…
miravia_list_productsList the shop's products with their SKUs: total_products and per product item_id, primary_category, status and subStatus, attributes (name…
miravia_get_productOne product by item id or by seller SKU: item_id, primary_category, status and subStatus, attributes, images, variation (the variant fields…
miravia_search_productsThe V2 product listing: total_product, total_page, page and per product product_id, category_id, status and sub_status…
miravia_update_price_quantityV1 price and stock update for one or more SKUs: price, sale price, quantity and prices per country in one call. Up to 50 SKUs, 20…
miravia_update_sellable_stockV1 stock update: sets the sellable quantity of one or more SKUs (what buyers can still order, on top of what open orders reserve). Up to 50…
miravia_update_priceV2 price update by seller SKU, up to 20 SKUs per call. price is the list price in EUR with at most two decimals; sale_price is the…
miravia_update_quantityV2 stock update by seller SKU, up to 20 SKUs per call: the total quantity of the default warehouse, or the quantity per warehouse with…
miravia_create_productV1: create one product with one or more SKUs (up to 50, 20 recommended). Take the category from miravia_search_categories and its mandatory…
miravia_update_productV1: change attributes or SKUs of an existing product, or add SKUs to it (up to 50 per call, 20 recommended). The SellerSku is the key…
miravia_create_or_update_productV2: create a product or update it in one call, without item ids: a seller_sku that exists is updated, a new one is added to the product or…
miravia_remove_productPermanently remove whole products, or single SKUs of a product. It cannot be undone: a removed product has to be created again. Give…
miravia_deactivate_productV1: take a product, or one SKU of it, offline (inactive: no longer visible or sold). With marketplace only one side or one country is…
miravia_update_product_statusV1: activate or deactivate a product or some of its SKUs. With only item_id every SKU of the product changes. marketplace limits the change…
miravia_update_sku_statusV2: set the status of SKUs or whole products: active, inactive (offline) or delete (permanent: the product cannot be restored, and a wrong…
miravia_get_category_treeThe whole category tree of Miravia: per category category_id, name, leaf, permission (yes or no: restricted categories need an application…
miravia_search_categoriesFind leaf categories by a keyword in their name: every match comes with its full category path, from the top category down to the leaf…
miravia_get_category_attributesThe attributes of one category, for building a product: per attribute name (the key to send), label, input_type (text, numeric…
miravia_list_brandsAll brands known to Miravia, page by page: per brand its id, local_brand_name, global_brand_name, status (1 = usable) and main_categories.…
miravia_search_brandsFind brands by name: per match brandId, localBrandName (the name in Miravia's database) and permission (true when this shop may list…
miravia_check_order_cancellationCheck whether the seller can cancel item lines of an order (V1) and which reasons Miravia accepts: reason_options with reason_id and…
miravia_cancel_orderV2: cancel an order as the seller, wholly (name every item line) or partly (name some). It cannot be undone, and Miravia warns that…
miravia_create_order_cancellationV1: cancel item lines of an order as the seller, with a reason from miravia_check_order_cancellation. It cannot be undone, can set the…
miravia_list_reverse_ordersList reverse orders: cancellations, returns and refunds, of Miravia and AliExpress orders. Returns total, page_no and per reverse order…
miravia_list_reverse_reasonsThe reasons a seller can give when rejecting a return, refund or cancellation request, for one reverse order line: reason_id, text…
miravia_accept_return_refundV2: accept a buyer's refund-only, return-and-refund or cancellation request for item lines of an order, with the amount to refund in EUR.…
miravia_reject_return_refundV2: reject a buyer's refund, return or cancellation request for item lines of an order, with a reason, a comment the buyer reads and, for a…

Example prompts

  • "Which Miravia orders from yesterday are still waiting to be packed?"
  • "Pack order 320123456789012, add the Correos Express tracking number and set it ready to ship."
  • "Which of my AliExpress orders came in through Miravia this week?"
  • "Set the sellable stock of SKU MV-BOLSO-NEGRO to 25."
  • "Which return requests are open, and what reasons may I reject them with?"

FAQ

Do I paste an access token? No. You paste the App Key and App Secret of your Seller In House App and click Authorize on the connector page. Miravia's sign-in page asks for the shop's seller account, and the connector exchanges the code for tokens and renews them itself.

Does it include AliExpress? Yes. Miravia and AliExpress work as an alliance (M2A): the same account carries the shop's AliExpress orders and listings, marked with the marketplace ae.

Which tools install switched off? Cancellations (miravia_cancel_order, miravia_create_order_cancellation), refund decisions (miravia_accept_return_refund, miravia_reject_return_refund), delivery confirmations (miravia_confirm_package_collected, miravia_confirm_package_delivered) and product removal or deactivation (miravia_remove_product, miravia_deactivate_product, miravia_update_product_status, miravia_update_sku_status).

Does Cursor support custom MCP servers on the free tier? Yes — MCP is available on Hobby, Pro and Business plans.

Next steps

Was this guide helpful?

Connect Miravia Seller to Cursor in 2 minutes

Start a free trial on AnythingMCP Cloud, connect Miravia Seller in the guided setup, then add your MCP URL to Cursor. No code and no server to run.

Related guides

Connectors

Connect Miravia to ChatGPT via MCP: Orders and Stock

Let your AI run your Miravia shop, the Alibaba group's marketplace in Spain, with the AliExpress orders and listings that come with it: orders and item lines, packing, tracking and ready-to-ship, shipping labels, products with price and stock, categories and brands, returns and refunds. Cancellations, refund decisions and product removal are installed switched off.

Connectors

Connect Miravia to Claude via MCP: Orders and Stock

Let your AI run your Miravia shop, the Alibaba group's marketplace in Spain, with the AliExpress orders and listings that come with it: orders and item lines, packing, tracking and ready-to-ship, shipping labels, products with price and stock, categories and brands, returns and refunds. Cancellations, refund decisions and product removal are installed switched off.

Connectors

Connect Miravia to Microsoft Copilot via MCP

Let your AI run your Miravia shop, the Alibaba group's marketplace in Spain, with the AliExpress orders and listings that come with it: orders and item lines, packing, tracking and ready-to-ship, shipping labels, products with price and stock, categories and brands, returns and refunds. Cancellations, refund decisions and product removal are installed switched off.

Connectors

Connect Miravia to Gemini CLI via MCP

Let your AI run your Miravia shop, the Alibaba group's marketplace in Spain, with the AliExpress orders and listings that come with it: orders and item lines, packing, tracking and ready-to-ship, shipping labels, products with price and stock, categories and brands, returns and refunds. Cancellations, refund decisions and product removal are installed switched off.

Connectors

Connect Miravia to Meta Muse via MCP

Let your AI run your Miravia shop, the Alibaba group's marketplace in Spain, with the AliExpress orders and listings that come with it: orders and item lines, packing, tracking and ready-to-ship, shipping labels, products with price and stock, categories and brands, returns and refunds. Cancellations, refund decisions and product removal are installed switched off.

Connectors

Miravia MCP Server: Orders, Shipping and Products

Let your AI run your Miravia shop, the Alibaba group's marketplace in Spain, with the AliExpress orders and listings that come with it: orders and item lines, packing, tracking and ready-to-ship, shipping labels, products with price and stock, categories and brands, returns and refunds. Cancellations, refund decisions and product removal are installed switched off.