
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 分
请在仓库或注册中心条目中声明许可证。