amazon-ads-mcp
Provides tools to query Amazon Advertising data (Sponsored Products, Sponsored Brands, Sponsored Display), run Amazon DSP reports, and execute Amazon Marketing Cloud SQL workflows.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@amazon-ads-mcp Show me my Sponsored Products campaign performance for last week"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
amazon-ads-mcp
Production-ready MCP server connecting Amazon Advertising data to Claude and any MCP-compatible client.
Query Sponsored Products, Sponsored Brands and Sponsored Display structure and performance, run Amazon DSP reports, and execute Amazon Marketing Cloud (AMC) SQL workflows — all in natural language, with live data straight from the Amazon Ads API. No mock data, ever.
Features
23 read-only tools across profiles, Sponsored Products (v3), Sponsored Brands (v4), Sponsored Display, unified Reporting v3, Amazon DSP, and AMC
Data accuracy by construction — every number comes live from Amazon; downloaded reports pass integrity checks (column presence, non-negative metric invariants, daily date-coverage) and totals are computed server-side so the model never sums truncated samples
Resilient HTTP layer — OAuth token refresh with single-flight de-duplication, client-side token-bucket rate limiting, exponential backoff with jitter,
Retry-Afterhonoring on 429, one automatic re-auth on 401Fast on large accounts — TTL response cache for entity reads,
nextToken/index pagination passthrough, parallel tool calls are safe (rate limiter serializes the wire)Secure by default — secrets only via environment variables, redacted from logs, never written to disk; logs go to stderr (stdout is reserved for the MCP protocol)
Two transports — stdio for Claude Desktop / Claude Code, streamable HTTP for Docker or remote deployment
Tested — 36 unit/integration tests including full MCP wire-protocol tests with the Amazon API mocked at the fetch boundary
Related MCP server: Marketing Analytics MCP Server
Architecture
flowchart LR
subgraph Client["MCP Client"]
C[Claude Desktop / Claude Code / any MCP host]
end
subgraph Server["amazon-ads-mcp"]
T[MCP tool layer<br/>zod-validated schemas]
V[Validation & reconciliation]
H[HTTP client<br/>retries · rate limit · cache]
A[Token manager<br/>LwA refresh, single-flight]
end
subgraph Amazon["Amazon"]
LWA[Login with Amazon<br/>OAuth token endpoint]
API[Amazon Ads API<br/>NA / EU / FE]
S3[Signed report URLs]
end
C -- stdio / streamable HTTP --> T
T --> V --> H
H --> A --> LWA
H --> API
H -- report download<br/>no auth headers --> S3Async reporting flow (Reporting v3, DSP, AMC all follow it):
sequenceDiagram
participant Claude
participant MCP as amazon-ads-mcp
participant Ads as Amazon Ads API
Claude->>MCP: create_report(dates, columns, ...)
MCP->>Ads: POST /reporting/reports
Ads-->>MCP: reportId (PENDING)
loop until COMPLETED (1–15 min typical)
Claude->>MCP: get_report_status(reportId)
MCP->>Ads: GET /reporting/reports/{id}
end
Claude->>MCP: download_report(reportId)
MCP->>Ads: fetch signed URL, gunzip, validate
MCP-->>Claude: reconciled totals + row sample (+ optional JSON file)Prerequisites
You need Amazon Ads API access (this is Amazon's process, not this project's):
An Amazon Ads account (seller, vendor, or agency).
A Login with Amazon (LwA) security profile with the Amazon Ads API scope approved — apply via the onboarding guide.
A refresh token generated through the LwA authorization-code grant for your own account (create authorization grant).
Plus Node.js ≥ 20 (or Docker).
New to all of this? Follow the step-by-step User Guide — it walks through Amazon API onboarding, refresh-token generation, installation, and Claude setup with no prior knowledge assumed.
Installation
git clone https://github.com/Imsamiullah09/amazon-ads-mcp.git
cd amazon-ads-mcp
npm ci
npm run buildEnvironment variables
Copy .env.example and fill it in:
Variable | Required | Description |
| ✅ | LwA client id ( |
| ✅ | LwA client secret |
| ✅ | LwA refresh token ( |
| ✅ |
|
| Default advertiser profile (else pass | |
|
| |
| HTTP port, default | |
| Client-side request ceiling, default | |
| Entity-read cache TTL, default | |
| Retry attempts for 429/5xx, default | |
| pino level, default | |
| Where |
Claude Desktop
Add to claude_desktop_config.json (Settings → Developer → Edit Config), or copy examples/claude_desktop_config.json:
{
"mcpServers": {
"amazon-ads": {
"command": "node",
"args": ["/absolute/path/to/amazon-ads-mcp/dist/index.js"],
"env": {
"AMAZON_ADS_CLIENT_ID": "amzn1.application-oa2-client.…",
"AMAZON_ADS_CLIENT_SECRET": "…",
"AMAZON_ADS_REFRESH_TOKEN": "Atzr|…",
"AMAZON_ADS_REGION": "NA",
"AMAZON_ADS_PROFILE_ID": "1234567890"
}
}
}
}Restart Claude Desktop and ask: “Run a health check on my Amazon Ads connection.”
Claude Code
claude mcp add amazon-ads \
-e AMAZON_ADS_CLIENT_ID=… -e AMAZON_ADS_CLIENT_SECRET=… \
-e AMAZON_ADS_REFRESH_TOKEN=… -e AMAZON_ADS_REGION=NA \
-- node /absolute/path/to/amazon-ads-mcp/dist/index.jsDocker
cp .env.example .env # fill in credentials
docker compose up -d # streamable HTTP on http://127.0.0.1:3000/mcpThe compose file binds to localhost only: the HTTP endpoint deliberately ships without its own auth layer (it holds a single advertiser's credentials). For remote access, front it with your own reverse proxy and authentication. For stdio inside Docker: docker run -i --env-file .env -e MCP_TRANSPORT=stdio amazon-ads-mcp.
Example prompts
“List my advertiser profiles and tell me which marketplaces I'm in.”
“Show all enabled Sponsored Products campaigns and their daily budgets.”
“Create a daily campaign performance report for the last 30 days, wait for it, and summarize spend, sales and ACOS by campaign.”
“Pull a search-term report for May and find queries with clicks but zero purchases.”
“Which ASINs am I advertising in ad group X?”
“Run my AMC workflow
path_to_conversionfor last week and give me the download links.”
More in examples/prompts.md. Full tool reference in docs/API.md.
Data accuracy & reconciliation
No mock data. Every tool hits the live Amazon Ads API; errors are surfaced (with Amazon's request id) instead of silently degraded.
download_reportvalidates each report: requested columns present, invariant metrics (impressions, clicks, cost, sales…) non-negative, and daily reports checked for date-coverage gaps.Totals are computed once, server-side, and returned alongside a bounded row sample — the model is explicitly instructed to quote reconciled totals rather than re-sum samples.
Entity reads are cached for 60 s by default (configurable, or disable with
AMAZON_ADS_CACHE_TTL_SECONDS=0); report status/downloads are never cached.Caveat that applies to any Amazon Ads integration: Amazon's own attribution metrics are restated for up to ~14 days after the fact, so a report pulled today can legitimately differ from the same report pulled next week. That is Amazon-side behavior, not a sync bug.
Verified capabilities vs. assumptions
This project distinguishes what is verified against Amazon's public documentation from what depends on your account's entitlements:
Area | Status |
Profiles | ✅ Verified, generally available |
Sponsored Products v3 ( | ✅ Verified |
Sponsored Brands v4 ( | ✅ Verified |
Sponsored Display ( | ✅ Verified for self-service SD accounts |
Reporting v3 ( | ✅ Verified |
Amazon DSP reports & orders | ⚠️ Entitlement-gated. Requires a DSP seat with API access; without it Amazon returns 403. Endpoint media-type versions evolve — pin against Amazon's DSP docs for your account type. |
AMC workflows/executions | ⚠️ Entitlement-gated + evolving. Requires a provisioned AMC instance with your LwA client allow-listed. Endpoint shapes follow the AMC Reporting API; verify against the AMC docs for your instance before relying on them in production. |
Write operations (create/update campaigns, bids, budgets) | ❌ Intentionally not implemented in v1. This server is read/reporting-only to make it safe against production ad spend. PRs welcome behind an explicit opt-in flag. |
Rate limits | Amazon's limits are dynamic and undocumented; this server enforces a client-side ceiling and honors 429 |
Development
npm run dev # run from source (tsx)
npm test # vitest suite (36 tests, no network — fetch is mocked)
npm run typecheck # strict TS
npm run build # emit dist/See docs/ARCHITECTURE.md for module layout and design decisions, and CONTRIBUTING.md for workflow. Security policy: SECURITY.md.
License
Available Tools
23 toolsamc_create_workflowCreate AMC workflow (SQL)A
Save an AMC SQL workflow on an instance. AMC SQL queries clean-room event tables (impressions, clicks, conversions); aggregation thresholds apply — queries returning user-level data are rejected by AMC.
Inputs: entityId (required), marketplaceId (required), instanceId (required), workflowId (required), +1 more.
amc_execute_workflowExecute AMC workflow (async)A
Start an execution of a saved AMC workflow over a time window. Returns an execution id; poll with amc_get_execution, then fetch results with amc_get_download_urls.
Inputs: entityId (required), marketplaceId (required), instanceId (required), workflowId (required), +3 more.
amc_get_download_urlsGet AMC result download URLsARead-only
Get signed download URLs (CSV) for a SUCCEEDED AMC workflow execution. URLs expire after a short period.
Inputs: entityId (required), marketplaceId (required), instanceId (required), executionId (required).
amc_get_executionCheck AMC execution statusARead-only
Check the status of an AMC workflow execution (PENDING/RUNNING/SUCCEEDED/FAILED).
Inputs: entityId (required), marketplaceId (required), instanceId (required), executionId (required).
amc_list_instancesList AMC instancesARead-only
List Amazon Marketing Cloud instances for an AMC entity. REQUIRES a provisioned AMC instance with this API client allow-listed; otherwise returns 403 (an Amazon entitlement, not a server bug).
Inputs: entityId (required), marketplaceId (required).
amc_list_workflowsList AMC workflowsBRead-only
List saved AMC SQL workflows on an instance.
Inputs: entityId (required), marketplaceId (required), instanceId (required).
create_reportCreate performance report (async)A
Request an async performance report (Reporting v3) for Sponsored Products, Brands or Display. Returns a reportId immediately; reports typically complete in 1–15 minutes (up to ~3h for large accounts). Poll with get_report_status, then fetch data with download_report. Common reportTypeIds: spCampaigns, spTargeting, spSearchTerm, spAdvertisedProduct, sbCampaigns, sdCampaigns. Example columns for spCampaigns: campaignId, campaignName, impressions, clicks, cost, purchases14d, sales14d (+ date when timeUnit=DAILY).
Inputs: startDate (required), endDate (required), adProduct (required), reportTypeId (required), +5 more.
download_reportDownload + validate report dataARead-only
Download a COMPLETED report, decompress it, run data-integrity checks (column presence, non-negative metrics, daily date coverage) and return reconciled totals plus a row sample. Large result sets are NOT dumped into chat: totals are computed server-side and the full dataset can be saved to a local JSON file via saveAs. Always present the reconciliation totals rather than re-summing sample rows.
Inputs: reportId (required), profileId, maxRowsInline, saveAs.
dsp_create_reportCreate DSP report (async)A
Request an async Amazon DSP report (impressions, viewability, conversions, etc.) for a DSP account. Requires DSP API access. Returns a reportId; poll with dsp_get_report until the report has a download location.
Inputs: accountId (required), startDate (required), endDate (required), profileId, +5 more.
dsp_get_reportCheck DSP report statusARead-only
Check status of a DSP report. When complete, the response includes a signed download location URL valid for a limited time.
Inputs: accountId (required), reportId (required), profileId.
dsp_list_ordersList DSP ordersARead-only
List Amazon DSP orders (campaigns) for a DSP advertiser profile. REQUIRES DSP entity access on your API client — accounts without a DSP seat get HTTP 403 (an Amazon entitlement, not a server bug).
Inputs: profileId, startIndex, count.
get_profilesList advertiser profilesARead-only
List all Amazon Ads advertiser profiles (accounts) accessible to these credentials in the configured region. Returns profileId, marketplace, currency, timezone and account info. Call this first: the profileId scopes every other tool.
Inputs: no named parameters.
get_report_statusCheck report statusARead-only
Check the status of an async report created with create_report. Status flows PENDING → PROCESSING → COMPLETED (or FAILURE with a reason). When COMPLETED, use download_report.
Inputs: reportId (required), profileId.
health_checkConnection health checkARead-only
Verify credentials and connectivity: refreshes the LwA access token and lists profiles, reporting region, latency and configuration (secrets redacted). Use to diagnose auth/setup issues.
Inputs: no named parameters.
sb_list_ad_groupsList Sponsored Brands ad groupsARead-only
List Sponsored Brands ad groups (v4), optionally filtered by campaign ids.
Inputs: profileId, stateFilter, campaignIds, maxResults, +1 more.
sb_list_campaignsList Sponsored Brands campaignsARead-only
List Sponsored Brands campaigns (v4) with budgets, states and dates. Paginate with nextToken. Use create_report (adProduct SPONSORED_BRANDS) for performance metrics.
Inputs: profileId, stateFilter, campaignIds, maxResults, +1 more.
sd_list_ad_groupsList Sponsored Display ad groupsARead-only
List Sponsored Display ad groups with bid optimization settings and states.
Inputs: profileId, stateFilter, startIndex, count.
sd_list_campaignsList Sponsored Display campaignsBRead-only
List Sponsored Display campaigns with budgets, tactics and states. Uses startIndex/count pagination (not nextToken).
Inputs: profileId, stateFilter, startIndex, count.
sp_list_ad_groupsList Sponsored Products ad groupsARead-only
List Sponsored Products ad groups (v3), optionally filtered to specific campaigns. Paginate with nextToken.
Inputs: profileId, stateFilter, campaignIds, maxResults, +1 more.
sp_list_campaignsList Sponsored Products campaignsARead-only
List Sponsored Products campaigns (v3) with budgets, states, targeting type and dates. Paginate with nextToken. For performance metrics, use create_report instead — entity endpoints return configuration, not spend/sales.
Inputs: profileId, stateFilter, campaignIds, maxResults, +1 more.
sp_list_keywordsList Sponsored Products keywordsARead-only
List Sponsored Products keywords (v3) with match types, bids and states. Filter by campaignIds or adGroupIds; paginate with nextToken.
Inputs: profileId, stateFilter, campaignIds, maxResults, +2 more.
sp_list_product_adsList Sponsored Products product adsBRead-only
List Sponsored Products product ads (v3): which ASINs/SKUs are advertised in which ad groups, with states.
Inputs: profileId, stateFilter, campaignIds, maxResults, +2 more.
sp_list_targetsList Sponsored Products product/category targetsARead-only
List Sponsored Products targeting clauses (v3): product, category and auto-targeting expressions with bids and states.
Inputs: profileId, stateFilter, campaignIds, maxResults, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 23 tools
Each tool targets a distinct resource and action, with clear prefixes (amc_, dsp_, sb_, sd_, sp_) and descriptive verbs (create, list, get, download). No two tools are ambiguous; even similar listing tools differ by ad product type.
Most tools follow a consistent pattern: domain prefix (e.g., amc_, dsp_, sp_) + verb + noun. The only slight deviation is 'health_check', which uses noun_noun instead of verb_noun, but it's a common exception. Overall, naming is predictable and well-structured.
With 23 tools covering AMC workflows, multiple ad product types (Sponsored Products, Brands, Display), DSP, and general profile/health, the number is well-scoped. Each tool earns its place, and there is no bloat or redundancy.
The tool surface is strong for listing and reporting but lacks mutation operations (create, update, delete) for campaigns, ad groups, keywords, and targets. There are no tools to manage budgets or bids, which are essential for advertising management, leaving notable gaps.
Maintenance
Related MCP Connectors
Conversational access to advertising performance data, creative analysis, and campaign insights
Conversational access to advertising performance data, creative analysis, and campaign insights
Agents that run your Amazon ads. Read-only Amazon Ads, sales and search data.
Amazon Ads and Seller Central for your AI assistant: reports, campaign management and seller data.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables users to analyze, manage, and optimize digital advertising campaigns through natural language conversations in Claude, offering performance insights, interactive visualizations, and campaign management for platforms like Amazon Ads.5ISC
- FlicenseBqualityDmaintenanceEnables natural language querying of marketing analytics across Google Search Console, GA4, Google Ads, HubSpot, and Bing. Provides tools for search queries, traffic, campaign performance, and composite cross-platform rollups.79-

AdCrunch MCP Serverofficial
FlicenseNot gradedqualityCmaintenanceEnables querying ad campaign performance and setup across Meta, TikTok, and Google Ads using natural language through AI agents.1-- AlicenseAqualityDmaintenanceEnables AI assistants to interact with the Amazon Advertising API to manage campaigns, keywords, product ads, and retrieve performance metrics.949 npm3MIT