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 分

    请在仓库或注册中心条目中声明许可证。