
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
概覽
本機 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 指令碼取得。僅支援桌面用戶端。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Amazonads Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
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
- Amazon Ads Account: You need an active Amazon Ads account
- 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
- Go to Amazon Advertising API
- Sign in with your Amazon Ads account
- Navigate to the Developer Center and create a new application
- 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:
-
Create a
.envfile in the project root: -
Run the OAuth helper script:
-
Your browser will open to Amazon's authorization page
-
Sign in and authorize the application
-
The script will display your refresh token - copy it to your
.envfile
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
- Clone this repository:
- Install dependencies:
- Build the project:
Configuration
Environment Variables
Create a .env file or set the following environment variables:
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
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
Building
Development Mode
Watch for changes and rebuild automatically:
Testing the Server
Run the server directly:
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
-
Rate Limiting: The Amazon Ads API has rate limits. The client does not currently implement rate limiting logic.
-
Reporting API: The
get_campaign_performancetool 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
-
Error Handling: API errors are returned to the caller. Ensure proper credential configuration to avoid authentication errors.
-
Regions: Make sure to set the correct region (NA, EU, FE) based on your Amazon Ads account.
Security
- Never commit your
.envfile 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版本歷史
1- v0.1.1最新Sep 16, 2026
評分
已滿足適用檢查項的 40%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。