Amazonads Mcp

io.github.cprice70由 GitHub 帳號 cprice70 發布v0.1.1更新於 Oct 24, 2026

MCP server for Amazon Ads API - manage campaigns, keywords, bids, and performance reports

已驗證STDIO僅桌面資料與分析商業與電商

概覽

AI 產生的概覽

本機 MCP 伺服器,讓助理透過 Amazon Advertising API 檢視與管理亞馬遜廣告活動、關鍵字、出價與成效資料。

可以做什麼
  • 列出可用的亞馬遜廣告設定檔與帳戶
  • 取得廣告活動與商品廣告,可依狀態與類型篩選
  • 讀取廣告活動或廣告群組下的關鍵字
  • 建立新廣告活動並更新關鍵字出價金額
  • 取得廣告活動的曝光、點擊、花費與銷售額等成效指標
適用情境
適合在桌面聊天用戶端中讓助理檢視或調整亞馬遜廣告帳戶:檢查廣告活動與關鍵字、查看成效資料、修改出價,或建立商品推廣廣告活動。
執行需求
以 npm 套件 amazonads-mcp 形式透過 stdio 在本機執行,需要 Node.js,並依 README 複製專案、安裝相依套件與建置。需要有效的亞馬遜廣告帳戶與 API 存取權,設定 AMAZON_ADS_CLIENT_ID、AMAZON_ADS_CLIENT_SECRET、AMAZON_ADS_REFRESH_TOKEN,以及 AMAZON_ADS_REGION(NA、EU 或 FE)。更新權杖可透過隨附的 OAuth 指令碼取得。僅支援桌面用戶端。
安裝前請注意
需要亞馬遜廣告 API 憑證,包括機密項目 AMAZON_ADS_CLIENT_SECRET 與 AMAZON_ADS_REFRESH_TOKEN,可存取你的廣告帳戶,切勿提交到版本庫。伺服器可建立廣告活動並修改關鍵字出價,會直接影響實際廣告花費。README 指出未實作速率限制,成效報告為簡化實作,使用前應核對結果。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Amazonads Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Amazon Ads MCP Server

A Model Context Protocol (MCP) server that provides tools for interacting with the Amazon Advertising API. This server enables AI assistants to access and manage Amazon Ads campaigns, keywords, performance data, and more.

Features

This MCP server provides the following tools:

  • get_profiles: List all available Amazon Ads profiles/accounts
  • get_campaigns: Retrieve advertising campaigns with optional filtering by state and type
  • get_campaign_performance: Get performance metrics for campaigns (impressions, clicks, cost, sales)
  • get_keywords: Retrieve keywords for campaigns or ad groups
  • update_keyword_bid: Update bid amounts for specific keywords
  • create_campaign: Create new advertising campaigns
  • get_product_ads: Retrieve product ads for campaigns or ad groups

Prerequisites

  1. Amazon Ads Account: You need an active Amazon Ads account
  2. API Credentials: Register for Amazon Ads API access and obtain:
    • Client ID
    • Client Secret
    • Refresh Token

Getting Amazon Ads API Credentials

Step 1: Register Your Application
  1. Go to Amazon Advertising API
  2. Sign in with your Amazon Ads account
  3. Navigate to the Developer Center and create a new application
  4. You'll receive a Client ID and Client Secret - save these!
Step 2: Get Your Refresh Token

We provide a helper script to obtain your refresh token through the OAuth flow:

  1. Create a .env file in the project root:

    bash
    AMAZON_ADS_CLIENT_ID=your_client_id_hereAMAZON_ADS_CLIENT_SECRET=your_client_secret_here
  2. Run the OAuth helper script:

    bash
    npm run get-token
  3. Your browser will open to Amazon's authorization page

  4. Sign in and authorize the application

  5. The script will display your refresh token - copy it to your .env file

Step 3: Note Your Region

Determine your advertising region:

  • NA: North America (amazon.com)
  • EU: Europe (amazon.co.uk, amazon.de, etc.)
  • FE: Far East (amazon.co.jp, etc.)

Installation

  1. Clone this repository:
bash
git clone <your-repo-url>cd amazonads-mcp
  1. Install dependencies:
bash
npm install
  1. Build the project:
bash
npm run build

Configuration

Environment Variables

Create a .env file or set the following environment variables:

bash
AMAZON_ADS_CLIENT_ID=your_client_idAMAZON_ADS_CLIENT_SECRET=your_client_secretAMAZON_ADS_REFRESH_TOKEN=your_refresh_tokenAMAZON_ADS_REGION=NA  # Options: NA, EU, FEAMAZON_ADS_SANDBOX=false  # Set to true for testing with sandbox API

Claude Desktop Configuration

Add this server to your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%/Claude/claude_desktop_config.json

json
{  "mcpServers": {    "amazonads": {      "command": "node",      "args": ["/absolute/path/to/amazonads-mcp/build/index.js"],      "env": {        "AMAZON_ADS_CLIENT_ID": "your_client_id",        "AMAZON_ADS_CLIENT_SECRET": "your_client_secret",        "AMAZON_ADS_REFRESH_TOKEN": "your_refresh_token",        "AMAZON_ADS_REGION": "NA"      }    }  }}

Usage Examples

Once configured in Claude Desktop, you can ask Claude to:

  • "Show me all my Amazon Ads campaigns"
  • "What are the performance metrics for campaign ID 12345 from Jan 1 to Jan 31?"
  • "List all keywords for campaign 12345"
  • "Update the bid for keyword 67890 to $1.50"
  • "Create a new Sponsored Products campaign with a $50 daily budget"
  • "Show me all product ads in campaign 12345"

Development

Project Structure

amazonads-mcp/├── src/│   ├── index.ts              # Main MCP server implementation│   └── amazon-ads-client.ts  # Amazon Ads API client├── build/                     # Compiled JavaScript output├── package.json├── tsconfig.json└── README.md

Building

bash
npm run build

Development Mode

Watch for changes and rebuild automatically:

bash
npm run watch

Testing the Server

Run the server directly:

bash
npm start

The server communicates over stdio and expects MCP protocol messages.

API Coverage

This server currently supports:

  • Sponsored Products: Full support for campaigns, keywords, and product ads
  • Sponsored Brands: Campaign management (partial support)
  • Sponsored Display: Campaign management (partial support)
  • Reporting: Basic performance metrics (simplified implementation)

Important Notes

  1. Rate Limiting: The Amazon Ads API has rate limits. The client does not currently implement rate limiting logic.

  2. Reporting API: The get_campaign_performance tool uses a simplified implementation. For production use, you should implement the full async reporting flow:

    • Create report request
    • Poll for report completion
    • Download and parse report
  3. Error Handling: API errors are returned to the caller. Ensure proper credential configuration to avoid authentication errors.

  4. Regions: Make sure to set the correct region (NA, EU, FE) based on your Amazon Ads account.

Security

  • Never commit your .env file or expose API credentials
  • Refresh tokens should be stored securely
  • Consider implementing credential rotation for production use

Resources

License

MIT

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

來源:README.md,提交 f124534

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.1最新Sep 16, 2026

評分

已滿足適用檢查項的 40%

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

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

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

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

    請在儲存庫或註冊中心條目中宣告授權條款。