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 Gemini in 2 minutes
Start a free trial on AnythingMCP Cloud, connect OnBuy 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 OnBuy
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 → OnBuy, paste your credentials, mint an MCP API key and you're done. No Docker, no
git clone, no local server.
OnBuy + Gemini
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.
- 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. - Copy the Live consumer key into
ONBUY_CONSUMER_KEYand the Live secret key intoONBUY_SECRET_KEY. Test keys work too, but only see test data. - Enter the site ID in
ONBUY_SITE_ID:2000for 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 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
OnBuytools.
Available tools
| Tool | What it does |
|---|---|
onbuy_list_sites | List 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_orders | List orders, by default those awaiting dispatch: order_id, date, updated_at, status, price_subtotal, price_delivery, price_total and sales… |
onbuy_get_order | Read one order: order_id, date, updated_at, status, price_subtotal, price_delivery, price_total and sales fees (GBP as decimal strings)… |
onbuy_dispatch_orders | Mark 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_tracking | Add 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_orders | Cancel one or more orders. OnBuy refunds the buyer and the cancellation counts against the seller. It cannot be undone. Installed switched… |
onbuy_refund_orders | Refund 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_listings | List your product listings: name, sku, group_sku, price and sale_price (GBP), stock, condition, opc, product_url, handling_time… |
onbuy_create_listing | Create your listing on a product that already exists on OnBuy (found with onbuy_search_products), with price and stock per condition.… |
onbuy_update_listings | Change 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_listings | Delete 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_winning | Check 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_products | Search 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_product | Create 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_queues | List queued jobs such as product creations with their status (success, failed or pending), uid, opc, product_url and warning or error… |
onbuy_get_queue | Read one queued job: status (success, failed or pending), uid, the opc and product_url once created, and error or warning messages.… |
onbuy_list_categories | Search the OnBuy category tree: category_id, name, category_tree (path), parent_id, can_list_in (only these accept listings)… |
onbuy_get_category_features | List 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_brands | Search 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_carriers | List the carriers OnBuy supports, optionally filtered by name: onbuy_carrier_code and carrier_name. The code is used in… |
onbuy_list_conditions | List 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_tiers | List 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_options | List 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.
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?