Connector guide6-minute read23 MCP tools7 languages

Mercari Shops MCP Server: Products, Stock and Orders

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.

HCBy HelpCode teamUpdated 6 min read Open-source on GitHub

Open source · AGPL-3.0 · runs on your own server

Mercari Shops

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.

tools

23

Region

JP

Category

E-commerce

Authentication

Bearer Token

Required env vars

MERCARI_SHOPS_API_TOKENMERCARI_SHOPS_USER_AGENT
Self-host with Docker

Open source · AGPL-3.0 · runs on your own server

  • 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

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.

Mercari Shops · live via MCP
Share
Opus 4.7

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.

  1. 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.
  2. 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.
  3. Put your client name and version into MERCARI_SHOPS_USER_AGENT, in the form CLIENTNAME/1.0.0 (use 0.0.0 when 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

ToolWhat it does
mercari_shops_get_shopThe shop behind the token: id, name, description, shopStatus, businessKind (person, sole proprietorship, corporation)…
mercari_shops_list_productsThe shop's products: id, name, description, price (yen), status (OPENED public, UNOPENED private), condition, images, shipping method…
mercari_shops_get_productOne product by id with price, status, condition, images, shipping settings, categories and variants with stock
mercari_shops_get_product_variantOne 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_optionsValues allowed when creating or updating products, in one call: product conditions, shipping methods (depend on the shop's business kind)…
mercari_shops_list_product_categoriesAll 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_configurationsThe shop's shipping fee configurations (needed when the buyer pays shipping): id, displayId, title, type and per-destination details
mercari_shops_list_order_transactionsOrders (order transactions): id, status (WAITING_FOR_PAYMENT, WAITING_FOR_SHIPPING, COMPLETING, COMPLETED, CANCELING, CANCELED), orderType…
mercari_shops_get_order_transactionOne order transaction by id with status, buyer, shipping address, amounts and products with shipped and unshipped quantities. While…
mercari_shops_list_order_shippingsShippings created for an order transaction: id, status (CREATED, WAITING_FOR_SIZING, COMPLETING, COMPLETED, CANCELED), shipping method…
mercari_shops_list_order_cancellationsCancellations of an order transaction: id, status, cancelReasonType, refund amounts for products, shipping and payment fee, canceled…
mercari_shops_create_order_shippingStart 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_codeSet the tracking code of an order shipping so the buyer can follow the parcel (optional for Mercari shipping, recommended otherwise)
mercari_shops_complete_order_shippingMark 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_transactionCancel a whole order transaction with a reason; the buyer is refunded. Asynchronous, not allowed after 365 days. It cannot be undone.…
mercari_shops_create_productCreate 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_productUpdate a product: any of name, description, price (yen), status (OPENED or UNOPENED), condition, images, category, shipping settings.…
mercari_shops_update_variantsUpdate up to 20 variants at once, each found by id or skuCode: stockQuantity (overwrites, max 9,999), name, janCode or maxQuantityPerOrder.…
mercari_shops_delete_productDelete a product. It cannot be undone; set status UNOPENED with mercari_shops_update_product to hide it instead. Installed switched off
mercari_shops_list_inquiriesBuyer inquiries (the message inbox): id, status (OPENED_BY_BUYER, AWAITING_SELLER, HANDLING_BY_SELLER, AWAITING_BUYER, RESOLVED)…
mercari_shops_list_inquiry_messagesMessages 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_inquirySend 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_statusSet 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?

Your Mercari Shops agent is one click away.

Install the connector, paste the key, prompt your AI client. Free for 7 days, no credit card.

Related guides

Connectors

Connect Mercari Shops to ChatGPT via MCP

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.

Connectors

Connect Mercari Shops to Claude via MCP

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.

Connectors

Connect Mercari Shops to Microsoft Copilot via MCP

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.

Connectors

Connect Mercari Shops to Cursor via MCP

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.

Connectors

Connect Mercari Shops to Gemini CLI via MCP

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.

Connectors

Connect Mercari Shops to Meta Muse via MCP

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.