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.
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.
- 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
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.
The plugin root is this repository. It points every client at the hosted server https://mcp.canopyapi.co/mcp and does not embed an API key. OAuth-capable clients discover sign-in from the server. If a client only supports a static header, set CANOPY-API-KEY in that client.
Two skills ship with the plugin: amazon-product-research and amazon-price-and-deals.
Cursor Marketplace. Install Canopy from Customize or the Cursor Marketplace after it is listed. The listing manifest is .cursor-plugin/plugin.json (name canopy, logo assets/canopy-icon.png). It points mcpServers at .mcp.json, a remote http server, so Cursor starts OAuth against https://mcp.canopyapi.co/mcp without a pasted key. Root mcp.json stays the Agent Plugins file and is not the Cursor listing config. To try it before it is listed, copy this repository to ~/.cursor/plugins/local/canopy (a symlink that points outside that folder is ignored), reload the window, and confirm the Canopy server and both skills in Customize.
Claude Code, from this repo. This repository is also a marketplace. In Claude Code:
claude plugin marketplace add canopy-api/canopy-api-mcp
claude plugin install canopy@canopy-apiOr, inside a session: /plugin marketplace add canopy-api/canopy-api-mcp, then /plugin install canopy@canopy-api. For one session without installing, run claude --plugin-dir /path/to/canopy-api-mcp. The manifest is .claude-plugin/plugin.json, the marketplace catalog is .claude-plugin/marketplace.json, and the server is .mcp.json (type: http). On first use, approve the Canopy OAuth prompt.
Claude.ai and Cowork. After the plugin is listed in Anthropic's directory, add Canopy from the directory. Sign in on the plugin's Connectors tab. The plugin uses the same URL as the existing Canopy connector.
Grok Build. After the plugin is in the xAI plugin marketplace, install it from /marketplace or:
grok plugin install canopy --trustThe first connection opens Canopy's OAuth flow. Skills load from skills/ and the server from .mcp.json.
Other Agent Plugins clients. This repository is also an Agent Plugin (specification 1.0.0). Those clients read root plugin.json (name canopy-api-mcp) and mcp.json (type: streamable-http). They need Agent Plugins 1.0.0. There is no archive and no registry protocol in the specification: the package is this directory.
server.json is the MCP Registry server card (co.canopyapi/mcp), separate from the plugin manifests. npm install, npm run dev, and npm run deploy are unchanged.
Validate the manifests (npm test runs the first command too; it checks that every manifest carries the same version):
npm run validate:plugin
claude plugin validate . --strict
grok plugin validate .Publishing steps for each marketplace are in submissions/README.md.
You'll need a Canopy API key from canopyapi.co.
npm install
npm run dev # xmcp watcher + wrangler dev (local Workers runtime)
npm run deploy # build + wrangler deploy --env productionRun 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:
npx -y @modelcontextprotocol/inspector@latestOr with curl:
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":{}}'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-keyAPI-KEY: your-api-keyX-API-KEY: your-api-keyAuthorization: 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).
All 17 tools are read-only (readOnlyHint: true) and annotated with a title.
get_amazon_product— product details by ASIN, URL, or GTINget_amazon_product_variants— product variantsget_amazon_product_offers— seller offers and Buy Box infoget_amazon_product_stock— stock level estimatesget_amazon_product_sales— sales estimates (weekly, monthly, annual)get_amazon_product_top_reviews— top customer reviews (title, body, rating, helpful votes, images/videos)
search_amazon_products— search with filters and sortingget_amazon_autocomplete— search term suggestionsget_amazon_deals— current deals, optionally filtered by categoryget_amazon_bestsellers— best-selling products for a categoryget_amazon_bestseller_categories— best seller category list
get_amazon_categories— root category taxonomyget_amazon_category— category details with products and subcategories
get_amazon_seller— seller information and product listingsget_amazon_author— author information and book listings
get_amazon_asin_from_gtin— ASIN lookup by ISBN/UPC/EANget_amazon_gtin_from_asin— GTIN lookup by ASIN
canopy-api-mcp/
├── .cursor-plugin/plugin.json # Cursor Marketplace manifest
├── .claude-plugin/
│ ├── plugin.json # Claude Code plugin manifest
│ └── marketplace.json # self-hosted Claude Code marketplace
├── .grok-plugin/plugin.json # Grok Build plugin manifest
├── .mcp.json # Claude Code, Cursor, and Grok MCP server (HTTP)
├── plugin.json # Agent Plugins 1.0.0 manifest
├── mcp.json # Agent Plugins MCP declaration (Streamable HTTP)
├── skills/
│ ├── amazon-product-research/
│ │ ├── SKILL.md
│ │ └── references/tools.md
│ └── amazon-price-and-deals/
│ └── SKILL.md
├── submissions/
│ ├── README.md # how to publish to each marketplace
│ └── xai-marketplace-entry.json # entry to paste into xai-org/plugin-marketplace
├── 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
src/types/api.d.ts is generated from the Canopy OpenAPI spec. Regenerate when the API changes:
npm run generatenpm run dev— xmcp watcher +wrangler dev(local Workers runtime)npm run build—xmcp build --cf(emitsworker.jsfor Cloudflare)npm run deploy— build +wrangler deploy --env productionnpm run delete— remove the deployed Workernpm run generate— regenerate API types from the OpenAPI specnpm run validate:plugin— checkplugin.json,mcp.json, andskills/against Agent Plugins 1.0.0
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.
This project is released under the MIT License. Copyright (c) 2026 Canopy API.