Connector guide7-minute read23 MCP tools7 languages

Connect OnBuy to Cursor via MCP

OnBuy API v2 for sellers on the British marketplace: orders with dispatch and tracking, listings with price and stock by SKU, winning-price checks, catalogue search and product creation, categories, brands, carriers and delivery options. Consumer key and secret key.

HCBy HelpCode teamUpdated 7 min read Open-source on GitHub

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

OnBuy

OnBuy

OnBuy API v2 for sellers on the British marketplace: orders with dispatch and tracking, listings with price and stock by SKU, winning-price checks, catalogue search and product creation, categories, brands, carriers and delivery options. Consumer key and secret key.

tools

23

Region

GB

Category

E-commerce

Authentication

Sign-in token

Required env vars

ONBUY_CONSUMER_KEYONBUY_SECRET_KEYONBUY_SITE_ID
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

OnBuy API v2 for sellers on the British marketplace: orders with dispatch and tracking, listings with price and stock by SKU, winning-price checks, catalogue search and product creation, categories, brands, carriers and delivery options. Consumer key and secret key.

Guided setup

Connect OnBuy to Cursor in 2 minutes

Start a free trial on AnythingMCP Cloud, connect OnBuy 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 OnBuy

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

OnBuy · 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 → OnBuy, paste your credentials, mint an MCP API key and you're done. No Docker, no git clone, no local server.

OnBuy + Cursor

OnBuy API v2 for sellers on the British marketplace: orders with dispatch and tracking, listings with price and stock by SKU, winning-price checks, catalogue search and product creation, categories, brands, carriers and delivery options. Consumer key and secret key.

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:

ONBUY_CONSUMER_KEY, ONBUY_SECRET_KEY, ONBUY_SITE_ID

Step 1 — Get credentials

Setting up takes about 3 minutes.

  1. Open the OnBuy API page in your Seller Control Panel (https://seller.onbuy.com/inventory/integrations/onbuy-api/). If you cannot open it, ask the OnBuy seller team for API access.
  2. Copy the Live consumer key into ONBUY_CONSUMER_KEY and the Live secret key into ONBUY_SECRET_KEY. Test keys work too, but only see test data.
  3. Enter the site ID in ONBUY_SITE_ID: 2000 for OnBuy UK.

The connector exchanges the two keys for an access token that lasts 15 minutes and renews it on its own. OnBuy ties each token to the address that asked for it, so all calls must leave from the same address: that is the case on AnythingMCP Cloud; on your own server avoid outbound connections that change address.

Where to start: onbuy_list_sites proves the keys work. onbuy_list_orders lists the orders awaiting dispatch; onbuy_get_order shows one in full.

Orders: onbuy_list_orders filters by status, ids and dates. Dispatch with onbuy_dispatch_orders (whole order or some products, with or without tracking), then set the exact carrier with onbuy_update_tracking and a code from onbuy_list_carriers. onbuy_cancel_orders and onbuy_refund_orders pay the buyer back and are installed switched off. There is no messaging API: buyer emails are relay addresses.

Listings: onbuy_list_listings, onbuy_update_listings (price and stock by SKU, up to 1000 per call), onbuy_create_listing on an existing product, onbuy_check_winning to see who holds the lead price. onbuy_delete_listings is installed switched off; set stock to 0 to pause a listing. onbuy_list_conditions and onbuy_list_delivery_options give the codes and template ids a listing can carry.

Products: OnBuy keeps one page per product (identified by its OPC) that several sellers list on. Search with onbuy_search_products first; only when nothing matches, create it with onbuy_create_product and follow the job with onbuy_get_queue or onbuy_list_queues. onbuy_list_categories, onbuy_get_category_features, onbuy_search_brands and onbuy_list_commission_tiers supply the ids and fees.

Formats: prices are pounds sterling as decimals; dates are UTC, written YYYY-MM-DD HH:MM:SS. Lists page with limit and offset, and metadata.total_rows gives the total. Batch calls answer 200 with a result per row: read success and message of each.

Limits: every request type has hourly and daily limits, shown on the API page of the Seller Control Panel. Batch price and stock changes into few large calls. A 429 means the limit 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 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 OnBuy tools.

Available tools

ToolWhat it does
onbuy_list_sitesList the OnBuy regional sites with site_id, name, country_code and default_localisation (2000 is OnBuy UK). A cheap call that proves the…
onbuy_list_ordersList orders, by default those awaiting dispatch: order_id, date, updated_at, status, price_subtotal, price_delivery, price_total and sales…
onbuy_get_orderRead one order: order_id, date, updated_at, status, price_subtotal, price_delivery, price_total and sales fees (GBP as decimal strings)…
onbuy_dispatch_ordersMark one or more orders as dispatched; OnBuy emails the buyer. With only order_id the whole order is dispatched; list products to dispatch…
onbuy_update_trackingAdd or correct the tracking number and the carrier of a dispatch that already exists. Use it to set the exact carrier with an…
onbuy_cancel_ordersCancel one or more orders. OnBuy refunds the buyer and the cancellation counts against the seller. It cannot be undone. Installed switched…
onbuy_refund_ordersRefund one or more orders in full or in part. This pays money back to the buyer and cannot be undone. Returns order_refund_id and…
onbuy_list_listingsList your product listings: name, sku, group_sku, price and sale_price (GBP), stock, condition, opc, product_url, handling_time…
onbuy_create_listingCreate your listing on a product that already exists on OnBuy (found with onbuy_search_products), with price and stock per condition.…
onbuy_update_listingsChange price, stock or the boost commission of up to 1000 listings by SKU in one call. OnBuy asks for large batches instead of one call per…
onbuy_delete_listingsDelete listings by SKU (up to 1000 per call). The offers disappear from OnBuy; to pause one, set its stock to 0 with onbuy_update_listings…
onbuy_check_winningCheck for a list of SKUs whether your listing is the winning one on its product page: per sku your price, the lead_price of the winning…
onbuy_search_productsSearch the OnBuy catalogue by name, barcode, OPC or MPN, to find out whether a product already exists before listing it: opc, name, url…
onbuy_create_productCreate a product that does not exist on OnBuy yet, optionally with your listing. The product is queued: the answer carries a queue_id, and…
onbuy_list_queuesList queued jobs such as product creations with their status (success, failed or pending), uid, opc, product_url and warning or error…
onbuy_get_queueRead one queued job: status (success, failed or pending), uid, the opc and product_url once created, and error or warning messages.…
onbuy_list_categoriesSearch the OnBuy category tree: category_id, name, category_tree (path), parent_id, can_list_in (only these accept listings)…
onbuy_get_category_featuresList the features of a category (such as Size or Colour): feature_id, name, whether it is required, and its options with option_id and…
onbuy_search_brandsSearch brands known to OnBuy by name: brand_id, name and type. Use the brand_id in onbuy_create_product. At most 100 rows per call.…
onbuy_list_carriersList the carriers OnBuy supports, optionally filtered by name: onbuy_carrier_code and carrier_name. The code is used in…
onbuy_list_conditionsList the listing conditions OnBuy accepts: condition_id, name and code (new, refurbished grades and so on). The code keys the listings of…
onbuy_list_commission_tiersList the commission tiers of the site: name, sales fee percentage, minimum amount in pence and thresholds, each with an id that matches…
onbuy_list_delivery_optionsList the delivery options set up on the seller account: template name and seller_delivery_template_id, country and region, delivery type…

Example prompts

  • "Which OnBuy orders are awaiting dispatch?"
  • "Update the price of SKU ONB-KETTLE-17 to 24.99 GBP and the stock to 80."
  • "Am I winning on the product with OPC Q8T4K9, and at what price?"
  • "Dispatch order T7X2-9KQ4 with Royal Mail tracking AB123456789GB."
  • "Find the OnBuy category and its features for a cordless vacuum."

FAQ

Where do the keys come from? From the OnBuy API page in your Seller Control Panel: copy the Live consumer key and secret key. Enter 2000 as the site ID for OnBuy UK. Test keys only see test data.

Does it work from my own server? Yes, as long as all calls leave from the same address: OnBuy ties each 15-minute token to the address that asked for it. AnythingMCP Cloud uses one fixed address.

Which tools install switched off? onbuy_cancel_orders and onbuy_refund_orders, which pay the buyer back, and onbuy_delete_listings. Switch them on on the connector page only if the AI should use them.

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 OnBuy to Cursor in 2 minutes

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

Related guides

Connectors

Connect OnBuy to ChatGPT via MCP

OnBuy API v2 for sellers on the British marketplace: orders with dispatch and tracking, listings with price and stock by SKU, winning-price checks, catalogue search and product creation, categories, brands, carriers and delivery options. Consumer key and secret key.

Connectors

Connect OnBuy to Claude via MCP

OnBuy API v2 for sellers on the British marketplace: orders with dispatch and tracking, listings with price and stock by SKU, winning-price checks, catalogue search and product creation, categories, brands, carriers and delivery options. Consumer key and secret key.

Connectors

Connect OnBuy to Microsoft Copilot via MCP

OnBuy API v2 for sellers on the British marketplace: orders with dispatch and tracking, listings with price and stock by SKU, winning-price checks, catalogue search and product creation, categories, brands, carriers and delivery options. Consumer key and secret key.

Connectors

Connect OnBuy to Gemini CLI via MCP

OnBuy API v2 for sellers on the British marketplace: orders with dispatch and tracking, listings with price and stock by SKU, winning-price checks, catalogue search and product creation, categories, brands, carriers and delivery options. Consumer key and secret key.

Connectors

Connect OnBuy to Meta Muse via MCP

OnBuy API v2 for sellers on the British marketplace: orders with dispatch and tracking, listings with price and stock by SKU, winning-price checks, catalogue search and product creation, categories, brands, carriers and delivery options. Consumer key and secret key.

Connectors

OnBuy MCP Server: Orders, Listings and Products

OnBuy API v2 for sellers on the British marketplace: orders with dispatch and tracking, listings with price and stock by SKU, winning-price checks, catalogue search and product creation, categories, brands, carriers and delivery options. Consumer key and secret key.