Dev.to AI πŸ€– Ai πŸ‘ 0 πŸ“– 4 min read

Give your AI agent live Amazon, eBay and 1688 prices with one remote MCP server

Disclosure: I'm the developer of the HenryCrawl E-commerce Data MCP server used in this post. It's a paid product ($19/month). The setup steps work the same for any remote MCP server that needs an API key. Many useful M

Disclosure: I'm the developer of the HenryCrawl E-commerce Data MCP server used in this post. It's a paid product ($19/month). The setup steps work the same for any remote MCP server that needs an API key.

Many useful MCP servers are remote: an HTTPS endpoint that needs an API key. This post shows how to get that key from your client to the server in Claude Code, Claude Desktop and Cursor.

The example server returns live product data from Amazon (9 marketplaces), eBay (8 sites), 1688/AliExpress and Rakuten.

1. Check what the server offers (no key needed)

A remote MCP server speaks JSON-RPC over HTTP. You can list its tools with curl before you configure anything:

curl -s -X POST https://henrycrawl-ecommerce-mcp.henrycrawl.workers.dev/mcp \
  -H 'content-type: application/json' \
  -H 'accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

You get 7 tools: amazon_search, amazon_product, ebay_search, ebay_seller, china_sourcing, rakuten_search and account_usage. Each one comes with a JSON schema, which tells the model which parameters it can pass.

2. Connect it

You need a license key first (it starts with HENRY-). The setup guide in the repo explains how to get one: https://github.com/tidyware-app/henrycrawl-ecommerce-data-mcp

Claude Code

claude mcp add --scope user --transport http henrycrawl-ecommerce \
  https://henrycrawl-ecommerce-mcp.henrycrawl.workers.dev/mcp \
  --header "Authorization: Bearer YOUR_LICENSE_KEY"

--scope user makes the server available in every project. Start a new session, then run /mcp to check that it's connected.

Cursor

~/.cursor/mcp.json:

{
  "mcpServers": {
    "henrycrawl-ecommerce": {
      "url": "https://henrycrawl-ecommerce-mcp.henrycrawl.workers.dev/mcp",
      "headers": { "Authorization": "Bearer YOUR_LICENSE_KEY" }
    }
  }
}

Claude Desktop

In Claude Desktop, one way to send a header is the mcp-remote bridge (needs Node.js 18+):

{
  "mcpServers": {
    "henrycrawl-ecommerce": {
      "command": "npx",
      "args": [
        "-y", "mcp-remote",
        "https://henrycrawl-ecommerce-mcp.henrycrawl.workers.dev/mcp",
        "--header", "Authorization:${HENRYCRAWL_AUTH}"
      ],
      "env": { "HENRYCRAWL_AUTH": "Bearer YOUR_LICENSE_KEY" }
    }
  }
}

Tip: put the whole Bearer ... value in env instead of in args. This avoids a known issue with spaces in arguments on Windows.

Another option: Settings β†’ Connectors β†’ Add custom connector, with the key in the URL (.../mcp?key=YOUR_LICENSE_KEY). Whether custom connectors are available depends on your Claude plan, and since the key sits in the URL, don't share screenshots of that screen.

Restart the client after you edit the config.

3. What a result looks like

This is a real row from amazon_search on Amazon US, trimmed to the main fields:

{
  "asin": "B07FM5HLMF",
  "title": "Rambler 20 oz Stainless Steel Vacuum Insulated Tumbler w/MagSlider Lid",
  "brand": "YETI",
  "price": 35, "currency": "USD",
  "rating": 4.8, "reviewCount": 184300, "boughtInPastMonth": 3000,
  "isSponsored": false, "isPrime": false,
  "productUrl": "https://www.amazon.com/dp/B07FM5HLMF"
}

Prices are already numbers, so the model can sort, compare and compute without parsing strings like "$35.00".

Prompts that work well:

  • "Find the 20 cheapest Yeti Rambler 20 oz tumblers on Amazon US and on eBay US (new condition) and show the price gap in a table."
  • "Find 1688 suppliers for silicone phone cases, show unit price in USD and MOQ, and compare with the top Amazon US listings."
  • "Show the 20 newest listings from the eBay seller overflowoutlet and point out which ones are under $30."

4. Keep the agent's costs predictable

This is the part most people skip. Agents happily call tools in loops, so you want the server to tell the agent what each call cost.

Here is how this server meters usage:

  • $19/month gives 3,000 credits. Credits reset on the 1st (UTC) and don't roll over.
  • Amazon and eBay cost 1 credit per result, with a minimum of 20 credits per successful call. That means at most 150 Amazon/eBay calls a month. Asking for 3 results costs 20 credits; asking for 50 costs 50.
  • 1688/AliExpress and Rakuten cost 1 credit per result, minimum 2.
  • Empty results and calls that fail or time out on the server side cost nothing.
  • Every response includes credits_charged and credits_left, and account_usage is free.

Two habits that help:

  1. Ask for the rows you'll actually use. On Amazon and eBay, max_results between 20 and 50 gets the most data out of the 20-credit minimum.
  2. Filter at the source. min_price, max_price, condition and prime_only are applied before results come back, so fewer rows means fewer credits (never below the 20-credit minimum on Amazon and eBay).

Amazon and eBay calls take 20–120 s because they run a real browser. If your client gives up after about 60 s, lower max_results to 10 or fewer, then run account_usage to check whether that call was charged. If your client disconnects before the server finishes, the call can still complete and be charged.

Links

If you've wired up other key-protected remote MCP servers, I'd like to hear which client gave you the most trouble.

πŸ“° Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.