Canopy API

co.canopyapi由 canopyapi.co 發布官方發布者v2.1.0更新於 Oct 24, 2026

Amazon product API & MCP server: search, prices, reviews, sellers, deals, and ASIN lookup by Canopy.

已驗證Streamable HTTP可網頁執行網頁搜尋與抓取資料與分析商業與電商

概覽

AI 產生的概覽

由 Canopy 提供的託管式 Amazon 商品資料 MCP 伺服器,以結構化 JSON 工具支援商品搜尋、價格、報價、評論、賣家、優惠與 ASIN 查詢。

可以做什麼
  • 依 ASIN、網址或 GTIN 查詢商品詳情,並取得變體、賣家報價與 Buy Box 資訊、庫存與銷量估算、熱門評論
  • 依篩選與排序搜尋商品,取得搜尋字詞建議、目前優惠、暢銷榜與暢銷分類
  • 瀏覽 Amazon 分類架構,查看含商品與子分類的分類詳情
  • 取得賣家與作者資料及其商品清單
  • 在 ASIN 與 ISBN、UPC、EAN 等 GTIN 識別碼之間互相轉換
適用情境
適合需要即時 Amazon 商品資料的情境:購物比價、價格與報價監控、結合暢銷排名與銷量估算的選品研究、商品目錄補齊,或彙整客戶評論。
執行需求
使用 mcp.canopyapi.co/mcp 的遠端 Streamable HTTP 端點,無需本機安裝。每個請求都需憑證:OAuth 2.1 登入(支援的用戶端會自動探索),或在 canopyapi.co 申請的 Canopy API 金鑰,透過 CANOPY-API-KEY 標頭傳送(也接受 API-KEY、X-API-KEY 與 Bearer 形式)。自行部署需要 Node.js 與 Cloudflare Workers 環境。
安裝前請注意
17 個工具皆為唯讀,但查詢內容與 API 金鑰會傳送到 Canopy 的託管服務,並進一步存取 Amazon 資料。API 金鑰是計費憑證:不要寫進共用的外掛或套件檔案,只在用戶端設定。憑證缺少或無效會回傳 HTTP 401。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Canopy API,將其新增到工作區。
  2. 連接 所需的 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/co.canopyapi%2Fmcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。 客戶端會在首次連接時完成 OAuth 登入。

{
  "mcpServers": {
    "canopy-api": {
      "type": "http",
      "url": "https://mcp.canopyapi.co/mcp"
    }
  }
}

README

Canopy MCP Server — Amazon Product Data API for AI Agents

An Amazon product data API served over the Model Context Protocol. Connect Claude, ChatGPT, Cursor, or any MCP client to real-time Amazon data — an Amazon search API, reviews API, price tracker, ASIN lookup, best sellers, deals, and sales estimates — powered by the Canopy API. No headless browsers, no brittle HTML scraping: typed JSON over standard MCP tools.

Built with xmcp and deployed on Cloudflare Workers. Use the hosted remote MCP server at https://mcp.canopyapi.co/mcp or self-host from this repo. Setup guides and client walkthroughs live on the Amazon MCP server page.

Why an Amazon MCP server?

AI agents and LLM apps increasingly need live e-commerce data. This server gives any MCP-capable assistant or agent framework direct tool access to Amazon:

  • Shopping assistants — an Amazon search API for agents: query products, compare prices and Buy Box offers, surface deals and coupons in chat
  • Price monitoring & competitive intelligence — an Amazon price tracker API for prices, stock estimates, and seller offers on any ASIN
  • Product research & market analysis — an Amazon product research tool with best seller rankings, sales estimates, and category taxonomies
  • Catalog enrichment — ASIN lookup and ASIN ↔ GTIN/UPC/ISBN/EAN conversion, plus images, variants, and specs
  • Review analysis — an Amazon reviews API returning top customer reviews with ratings, helpful votes, and media for summarization

Works as a Claude MCP server (Desktop, Code, and the claude.ai connectors directory), a ChatGPT MCP connector (Apps SDK, with rich product widgets), in Cursor and the MCP Inspector, and with any agent built on the MCP SDK, LangChain, or the OpenAI Agents SDK.

Features

  • 17 Amazon Data Tools — product info, variants, offers, stock, sales, reviews, search, autocomplete, categories, best sellers, sellers, authors, deals, and ASIN/GTIN lookup
  • Streamable HTTP transport at /mcp (current MCP spec)
  • File-based tools — one file per tool under src/tools/
  • Type Safety — TypeScript types generated from the Canopy OpenAPI spec via openapi-typescript
  • Flexible Auth — OAuth 2.1 sign-in (Supabase authorization server, dynamic client registration) or an API key in any of four header formats
  • CORS Enabled — preflight + custom API key headers allowed

Quick Start

Use the hosted server (no install)

Add the remote MCP server to your client and sign in with OAuth, or supply a Canopy API key:

https://mcp.canopyapi.co/mcp

Claude and other OAuth-capable MCP clients will walk you through sign-in automatically. Get an API key at canopyapi.co, and see the Amazon MCP server guide for per-client setup instructions.

Install as an Agent Plugin

This repository is an Agent Plugin (specification 1.0.0). The plugin root is the repository root. A compatible client reads plugin.json, loads skills from skills/, and connects to the MCP server declared in mcp.json.

text
canopy-api-mcp/├── plugin.json          # Agent Plugins 1.0.0 manifest├── mcp.json             # hosted Streamable HTTP server└── skills/    └── amazon-product-research/        ├── SKILL.md        └── references/tools.md

mcp.json points at the same hosted endpoint as above:

json
{  "mcpServers": {    "canopy": {      "type": "streamable-http",      "url": "https://mcp.canopyapi.co/mcp"    }  }}

Authorization stays in the client. OAuth-capable clients discover sign-in from the server. The plugin does not embed an API key: Agent Plugins treats headers as public package data, not a place for secrets. If a client only supports a static header, set CANOPY-API-KEY in that client.

Cursor. After the plugin is listed, install it from Customize or the Cursor Marketplace. To try the directory before it is listed, copy this repository to ~/.cursor/plugins/local/canopy-api-mcp (a symlink that points outside that folder is ignored), reload the window, and confirm the Canopy server and the amazon-product-research skill in Customize.

Other Agent Plugins clients. Load this directory. The client needs Agent Plugins 1.0.0 and the streamable-http transport. There is no archive and no registry protocol in the specification: the package is this directory.

server.json is unchanged. It is the MCP Registry server card, a separate format from plugin.json. npm install, npm run dev, and npm run deploy are unchanged.

Validate the package against the published schemas:

bash
npm run validate:plugin

Run it yourself

You'll need a Canopy API key from canopyapi.co.

bash
npm installnpm run dev      # xmcp watcher + wrangler dev (local Workers runtime)npm run deploy   # build + wrangler deploy --env production

Testing

Run npm test to build the worker and run the regression suite. Output-schema tests use mocked REST responses to verify that null-valued fields (unavailable prices, coupons, ratings) are stripped before reaching MCP clients, that responses match the advertised JSON Schema, and that malformed values are still rejected. These tests do not require a real Canopy API key.

Use the MCP Inspector and connect to http://localhost:8787/mcp (or your deployed URL). Provide the API key as a request header:

bash
npx -y @modelcontextprotocol/inspector@latest

Or with curl:

bash
curl -X POST http://localhost:8787/mcp \  -H "Content-Type: application/json" \  -H "Accept: application/json, text/event-stream" \  -H "CANOPY-API-KEY: $CANOPY_API_KEY" \  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'

Authentication

Every request must carry credentials. Two modes are supported:

1. OAuth 2.1 (recommended for MCP clients). OAuth-capable clients discover the flow automatically: an unauthenticated request returns 401 with WWW-Authenticate: Bearer resource_metadata="https://mcp.canopyapi.co/.well-known/oauth-protected-resource". Supabase is the authorization server (dynamic client registration supported); consent lives at canopyapi.co. The verified user's Canopy API key is resolved server-side.

2. API key headers. Any of these forms works (checked in this order):

  • CANOPY-API-KEY: your-api-key
  • API-KEY: your-api-key
  • X-API-KEY: your-api-key
  • Authorization: Bearer your-api-key

A missing or invalid credential returns HTTP 401 with a JSON-RPC error before the request reaches the MCP transport (see src/middleware.ts).

Available Tools

All 17 tools are read-only (readOnlyHint: true) and annotated with a title.

Product Information

  • get_amazon_product — product details by ASIN, URL, or GTIN
  • get_amazon_product_variants — product variants
  • get_amazon_product_offers — seller offers and Buy Box info
  • get_amazon_product_stock — stock level estimates
  • get_amazon_product_sales — sales estimates (weekly, monthly, annual)
  • get_amazon_product_top_reviews — top customer reviews (title, body, rating, helpful votes, images/videos)

Search & Discovery

  • search_amazon_products — search with filters and sorting
  • get_amazon_autocomplete — search term suggestions
  • get_amazon_deals — current deals, optionally filtered by category
  • get_amazon_bestsellers — best-selling products for a category
  • get_amazon_bestseller_categories — best seller category list

Categories

  • get_amazon_categories — root category taxonomy
  • get_amazon_category — category details with products and subcategories

Entities

  • get_amazon_seller — seller information and product listings
  • get_amazon_author — author information and book listings

Identifiers

  • get_amazon_asin_from_gtin — ASIN lookup by ISBN/UPC/EAN
  • get_amazon_gtin_from_asin — GTIN lookup by ASIN

Project Structure

canopy-api-mcp/├── plugin.json                 # Agent Plugins 1.0.0 manifest├── mcp.json                    # MCP server declaration (Streamable HTTP)├── skills/│   └── amazon-product-research/│       ├── SKILL.md│       └── references/tools.md├── server.json                 # MCP Registry server card (separate from plugin.json)├── LICENSE                     # MIT License├── src/│   ├── tools/                  # one file per tool (auto-discovered by xmcp)│   │   ├── get-amazon-product.ts│   │   └── ...│   ├── lib/│   │   └── api-key.ts          # reads API key from extra.authInfo│   ├── middleware.ts           # auth middleware (lifts header → authInfo.token)│   ├── api-client.ts           # type-safe Canopy REST client│   └── types/│       └── api.d.ts            # generated from OpenAPI├── xmcp.config.ts              # xmcp config (endpoint, CORS, paths)├── wrangler.jsonc              # Cloudflare Workers config├── worker-entry.ts             # Workers entry (unchanged)├── tsconfig.json└── package.json

Type Safety

src/types/api.d.ts is generated from the Canopy OpenAPI spec. Regenerate when the API changes:

bash
npm run generate

Scripts

  • npm run dev — xmcp watcher + wrangler dev (local Workers runtime)
  • npm run build — xmcp build --cf (emits worker.js for Cloudflare)
  • npm run deploy — build + wrangler deploy --env production
  • npm run delete — remove the deployed Worker
  • npm run generate — regenerate API types from the OpenAPI spec
  • npm run validate:plugin — check plugin.json, mcp.json, and skills/ against Agent Plugins 1.0.0

Migration from v1.x

v2.0 replaces ModelFetch with xmcp. The MCP endpoint moved from /sse/mcp (deprecated SSE transport mount) to /mcp (current Streamable HTTP convention). Update any clients accordingly.

License

This project is released under the MIT License. Copyright (c) 2026 Canopy API.

Related

來源:README.md,提交 5adb656

工具

0
該伺服器需要登入,因此 SourceWeft 無法在沒有帳號的情況下讀取其工具,也未收錄。已連接帳號所能看到的內容可能因帳號及其權限而異。

版本歷史

1
  1. v2.1.0最新Sep 16, 2026

評分

已滿足適用檢查項的 85%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分