Summary
mercari shops API (GraphQL) for shops on Mercari Shops in Japan: products and variant stock, orders, shipping with tracking codes, cancellations and buyer inquiries. Personal API access token; needs a Mercari agreement and a registered Japanese IP address, so self-hosted only.
Try asking
Example prompts for Mercari Shops
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.
Self-hosted only. Mercari Shops answers only requests from fixed IP addresses in Japan that are registered with Mercari, and AnythingMCP Cloud cannot meet that, so this connector is not available on AnythingMCP Cloud. It works on an AnythingMCP instance you run yourself on a Japanese connection whose address you register with Mercari.
Mercari Shops
mercari shops API (GraphQL) for shops on Mercari Shops in Japan: products and variant stock, orders, shipping with tracking codes, cancellations and buyer inquiries. Personal API access token; needs a Mercari agreement and a registered Japanese IP address, so self-hosted only.
Setup
Self-hosted only, and a contract with Mercari: Mercari answers only requests from fixed IP addresses in Japan that the company has registered with Mercari in advance (others get 404, sandbox and production separately), and API use needs an agreement with Mercari, which assigns the API client name used in the User-Agent. AnythingMCP Cloud cannot meet the Japanese IP requirement, so the connector is offered on self-hosted installations whose outbound address is registered.
- Agree API use with Mercari (inquiry form for Mercari Shops partners) and register the fixed Japanese IP address of your AnythingMCP server. Mercari sends your API client name.
- In the shop administration page of Mercari Shops, issue a Personal API Access Token (up to 10 per shop, no expiry; sandbox and production tokens are separate). Paste it into
MERCARI_SHOPS_API_TOKEN. - Put your client name and version into
MERCARI_SHOPS_USER_AGENT, in the formCLIENTNAME/1.0.0(use0.0.0when you have no version).
Where to start: mercari_shops_get_shop checks the token. mercari_shops_list_order_transactions with statuses WAITING_FOR_SHIPPING lists orders to ship; mercari_shops_list_inquiries with status AWAITING_SELLER lists buyer messages to answer.
Shipping an order: 1) mercari_shops_get_order_transaction (products[].unshippedQuantity is what can still ship), 2) mercari_shops_create_order_shipping with product, variant and quantity lines and an idempotency key, 3) mercari_shops_update_shipping_tracking_code, 4) mercari_shops_complete_order_shipping once handed to the carrier. mercari_shops_list_order_shippings and mercari_shops_list_order_cancellations read the state. mercari_shops_cancel_order_transaction refunds the buyer and is installed switched off.
Products and stock: mercari_shops_list_products (keyword on name or SKU prefix), mercari_shops_get_product, mercari_shops_get_product_variant (exact SKU), mercari_shops_create_product, mercari_shops_update_product, and mercari_shops_update_variants for stock of up to 20 variants per call. Allowed values: mercari_shops_get_listing_options, mercari_shops_list_product_categories (leaf categories only), mercari_shops_list_shipping_configurations. mercari_shops_delete_product is installed switched off; set status UNOPENED to hide a product.
Buyer inquiries: mercari_shops_list_inquiries, mercari_shops_list_inquiry_messages, mercari_shops_reply_to_inquiry, mercari_shops_update_inquiry_status. New data can take 2 to 3 seconds to appear. The older transaction message API is being retired in favour of inquiries.
Generic GraphQL: the connector also offers mercari_shops_graphql_query for other read queries from the reference; the generic mutation tool is installed switched off.
Formats and pitfalls: prices and fees are integers in yen; prices go from 300 to 9,999,999 and stock up to 9,999. Lists are Relay connections: read edges[].node, and pass pageInfo.endCursor as after while hasNextPage is true. Errors come with HTTP 200 in errors (FAILED_PRECONDITION, BAD_USER_INPUT, PRODUCT_DIFFERENCE_FOUND for a parallel change: read again and retry); 401 is a wrong token or environment, 404 an unregistered IP address. Rate limits are counted per shop across all tokens. Mercari plans a cart feature with breaking changes to some order APIs and an auction sales format (December 2026); check the reference's release schedule.
Prerequisites: MERCARI_SHOPS_API_TOKEN, MERCARI_SHOPS_USER_AGENT
Install the connector locally
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
Open http://localhost:3000/connectors/store, pick Mercari Shops and paste in the env vars listed under Prerequisites.
Available tools
| Tool | What it does |
|---|---|
mercari_shops_get_shop | The shop behind the token: id, name, description, shopStatus, businessKind (person, sole proprietorship, corporation)… |
mercari_shops_list_products | The shop's products: id, name, description, price (yen), status (OPENED public, UNOPENED private), condition, images, shipping method… |
mercari_shops_get_product | One product by id with price, status, condition, images, shipping settings, categories and variants with stock |
mercari_shops_get_product_variant | One variant by id or exact SKU code: id, name, skuCode, janCode, stockQuantity and its product id and name. Faster than searching products… |
mercari_shops_get_listing_options | Values allowed when creating or updating products, in one call: product conditions, shipping methods (depend on the shop's business kind)… |
mercari_shops_list_product_categories | All product categories: id, name, parentId, hasChild. Only categories with hasChild false can be set on a product. The list is long; search… |
mercari_shops_list_shipping_configurations | The shop's shipping fee configurations (needed when the buyer pays shipping): id, displayId, title, type and per-destination details |
mercari_shops_list_order_transactions | Orders (order transactions): id, status (WAITING_FOR_PAYMENT, WAITING_FOR_SHIPPING, COMPLETING, COMPLETED, CANCELING, CANCELED), orderType… |
mercari_shops_get_order_transaction | One order transaction by id with status, buyer, shipping address, amounts and products with shipped and unshipped quantities. While… |
mercari_shops_list_order_shippings | Shippings created for an order transaction: id, status (CREATED, WAITING_FOR_SIZING, COMPLETING, COMPLETED, CANCELED), shipping method… |
mercari_shops_list_order_cancellations | Cancellations of an order transaction: id, status, cancelReasonType, refund amounts for products, shipping and payment fee, canceled… |
mercari_shops_create_order_shipping | Start shipping products of an order transaction: creates an order shipping for the given product, variant and quantity lines. Give a unique… |
mercari_shops_update_shipping_tracking_code | Set the tracking code of an order shipping so the buyer can follow the parcel (optional for Mercari shipping, recommended otherwise) |
mercari_shops_complete_order_shipping | Mark an order shipping as shipped (completes it); the buyer is notified. Do it after the parcel has been handed to the carrier |
mercari_shops_cancel_order_transaction | Cancel a whole order transaction with a reason; the buyer is refunded. Asynchronous, not allowed after 365 days. It cannot be undone.… |
mercari_shops_create_product | Create a product: name (max 130), description (max 3,000), leaf categoryId, condition, https image URLs (max 20), price in yen (300 to… |
mercari_shops_update_product | Update a product: any of name, description, price (yen), status (OPENED or UNOPENED), condition, images, category, shipping settings.… |
mercari_shops_update_variants | Update up to 20 variants at once, each found by id or skuCode: stockQuantity (overwrites, max 9,999), name, janCode or maxQuantityPerOrder.… |
mercari_shops_delete_product | Delete a product. It cannot be undone; set status UNOPENED with mercari_shops_update_product to hide it instead. Installed switched off |
mercari_shops_list_inquiries | Buyer inquiries (the message inbox): id, status (OPENED_BY_BUYER, AWAITING_SELLER, HANDLING_BY_SELLER, AWAITING_BUYER, RESOLVED)… |
mercari_shops_list_inquiry_messages | Messages of one inquiry, newest first: id, body (empty when blocked or deleted), from (BUYER or SELLER), sentAt, status. Up to 200 per page |
mercari_shops_reply_to_inquiry | Send a message to the buyer in an inquiry (max 1,000 characters). Give a unique idempotency_key and reuse it on retry; ALREADY_EXISTS means… |
mercari_shops_update_inquiry_status | Set an inquiry to HANDLING_BY_SELLER (you are on it) or RESOLVED |
Example prompts
- "Which Mercari Shops orders are waiting for shipping?"
- "Add the tracking code 1234-5678-9012 to order transaction TX123456789."
- "Which products have no stock left in any variant?"
- "Which buyer inquiries are still open?"
- "Reply to the latest inquiry that the item ships tomorrow."
Next steps
Was this guide helpful?