amazonads-mcp
Amazon Ads MCP Server
Model Context Protocol (MCP) サーバーで、Amazon Advertising API と連携するためのツールを提供します。このサーバーにより、AI アシスタントは Amazon Ads のキャンペーン、キーワード、パフォーマンスデータなどにアクセスして管理できるようになります。
機能
この MCP サーバーは以下のツールを提供します:
get_profiles: 利用可能なすべての Amazon Ads プロファイル/アカウントを一覧表示します
get_campaigns: ステータスとタイプによるオプションのフィルタリングで広告キャンペーンを取得します
get_campaign_performance: キャンペーンのパフォーマンス指標(インプレッション、クリック、コスト、売上)を取得します
get_keywords: キャンペーンまたは広告グループのキーワードを取得します
update_keyword_bid: 特定のキーワードの入札額を更新します
create_campaign: 新しい広告キャンペーンを作成します
get_product_ads: キャンペーンまたは広告グループの商品広告を取得します
Related MCP server: TikTok Ads MCP Server
前提条件
Amazon Ads アカウント: 有効な Amazon Ads アカウントが必要です
API 認証情報: Amazon Ads API アクセスに登録して以下を取得します:
Client ID
Client Secret
Refresh Token
Amazon Ads API 認証情報の取得
ステップ 1: アプリケーションの登録
Amazon Advertising API にアクセスします
Amazon Ads アカウントでサインインします
Developer Center に移動して新しいアプリケーションを作成します
Client ID と Client Secret が発行されます - これらを保存してください!
ステップ 2: Refresh Token の取得
OAuth フローを通じて refresh token を取得するためのヘルパースクリプトを提供しています:
プロジェクトのルートに
.envファイルを作成します:AMAZON_ADS_CLIENT_ID=your_client_id_here AMAZON_ADS_CLIENT_SECRET=your_client_secret_hereOAuth ヘルパースクリプトを実行します:
npm run get-tokenブラウザで Amazon の認証ページが開きます
サインインしてアプリケーションを承認します
スクリプトに refresh token が表示されます - それを
.envファイルにコピーします
ステップ 3: リージョンの確認
広告リージョンを確認します:
NA: 北米 (amazon.com)
EU: ヨーロッパ (amazon.co.uk、amazon.de など)
FE: 極東 (amazon.co.jp など)
インストール
このリポジトリをクローンします:
git clone <your-repo-url>
cd amazonads-mcp依存関係をインストールします:
npm installプロジェクトをビルドします:
npm run build設定
環境変数
.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 # Options: NA, EU, FE
AMAZON_ADS_SANDBOX=false # Set to true for testing with sandbox APIClaude Desktop の設定
このサーバーを Claude Desktop の設定ファイルに追加します:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.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"
}
}
}
}使用例
Claude Desktop で設定すると、Claude に以下のような依頼ができます:
「Amazon Ads のキャンペーンをすべて表示して」
「キャンペーン ID 12345 の 1月1日から1月31日までのパフォーマンス指標は?」
「キャンペーン 12345 のすべてのキーワードを一覧表示して」
「キーワード 67890 の入札額を $1.50 に更新して」
「日予算 $50 の新しい Sponsored Products キャンペーンを作成して」
「キャンペーン 12345 のすべての商品広告を表示して」
開発
プロジェクト構成
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ビルド
npm run build開発モード
変更を監視して自動的に再ビルドします:
npm run watchサーバーのテスト
サーバーを直接実行します:
npm startサーバーは stdio 経由で通信し、MCP プロトコルメッセージを想定しています。
API 対応状況
このサーバーは現在以下をサポートしています:
Sponsored Products: キャンペーン、キーワード、商品広告を完全サポート
Sponsored Brands: キャンペーン管理(部分サポート)
Sponsored Display: キャンペーン管理(部分サポート)
Reporting: 基本的なパフォーマンス指標(簡易実装)
重要な注意事項
レート制限: Amazon Ads API にはレート制限があります。現在、クライアントはレート制限のロジックを実装していません。
レポーティング API:
get_campaign_performanceツールは簡易実装を使用しています。本番環境では、完全な非同期レポートフローを実装する必要があります:レポートリクエストの作成
レポート完了のポーリング
レポートのダウンロードと解析
エラーハンドリング: API エラーは呼び出し元に返されます。認証エラーを避けるために、認証情報が正しく設定されていることを確認してください。
リージョン: Amazon Ads アカウントに基づいて正しいリージョン(NA、EU、FE)を設定してください。
セキュリティ
.envファイルをコミットしたり、API 認証情報を公開したりしないでくださいRefresh token は安全に保管してください
本番環境では認証情報のローテーションの実装を検討してください
リソース
ライセンス
MIT
コントリビューション
コントリビューションを歓迎します! お気軽に Pull Request を送ってください。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityFmaintenanceEnables 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.4
- Alicense-qualityBmaintenanceEnables AI assistants to manage TikTok advertising campaigns through the TikTok Ads API. Supports campaign creation, performance analytics, audience management, creative operations, and custom reporting through natural language interactions.48MIT
- AlicenseAqualityAmaintenanceEnables AI applications to interact with Amazon Advertising API through the Model Context Protocol. Supports campaign management, performance reporting, audience targeting, and comprehensive advertising operations across Amazon's advertising ecosystem.464MIT
- -license-quality-maintenanceEnables AI assistants to manage Google Ads accounts by providing tools for querying account data and performing write operations such as updating campaign budgets, statuses, and bidding strategies.2
Related MCP Connectors
Manage Google, Meta, Amazon, TikTok, LinkedIn & ChatGPT ads. 430 tools for campaigns & analytics.
Manage ad campaigns across Google, Meta, LinkedIn, Reddit, TikTok, and more via AI.
Manage ad campaigns across Google, Meta, LinkedIn, Reddit, TikTok, and more via AI.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/cprice70/amazonads-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server