shopper-mcp

v0.0.2
shopper-mcp Checked 4 days ago Published 1 month ago

MCP server that lets an AI agent shop on marketplaces through a background browser

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

shop_get_info Marketplace session state

Session state per marketplace: login, delivery address, pauses (captcha/block), docs topics. Call first in every session and again after login, captcha or address changes. Relay `tell_user` to the user in their language.

ParameterTypeDescription
marketplaces *arrayMarketplaces to check, e.g. ["ozon.ru"].

shop_docs Marketplace API docs

How a marketplace's internal API works: ready-made requests, response maps, jq filters, pitfalls. Read a topic before calling shop_request in that area; the API is undocumented.

ParameterTypeDescription
marketplace *string
topicstringTopic from shop_get_info, e.g. "search". Omit to list topics.

shop_request Marketplace API request

Request to a marketplace's internal API from the server's browser session, queued with pauses to avoid captchas. - Responses over ~20 KB come back as an overview of keys and sizes; repeat with jq. - On captcha the result has "relay": a link for the user to solve it; requests to that site pause until then. - Ordering, checkout and payment are blocked.

ParameterTypeDescription
marketplace *string
path *stringSite page path, API path starting with /api/, or a full URL of this site, as in shop_docs. E.g. "/search/?text=esp32&sorting=price".
bodyJSON body; makes the request POST. Omit for GET.
jqstringjq filter for the response; several outputs come back as an array. E.g. ".widgets.tileGridDesktop.items[] | {sku}".

shop_show Show a live tab to the user

Open a site page in the server's browser and get a temporary link where the user sees and controls it: login, captcha, picking on a map, checking a list. The user presses Done there when finished. The link is on 127.0.0.1 of the machine running this server; if the user is on another device, offer a tunnel (ssh -L, cloudflared).

ParameterTypeDescription
marketplace *string
pathstringPage path, e.g. the loginPath from shop_get_info.