MCP server for Amazon Ads API - manage campaigns, keywords, bids, and performance reports
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.
This MCP server provides the following tools:
We provide a helper script to obtain your refresh token through the OAuth flow:
Create a .env file in the project root:
AMAZON_ADS_CLIENT_ID=your_client_id_here
AMAZON_ADS_CLIENT_SECRET=your_client_secret_here
Run the OAuth helper script:
npm run get-token
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 .env file
Determine your advertising region:
git clone <your-repo-url>
cd amazonads-mcp
npm install
npm run build
Create a .env file or set the following environment variables:
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 API
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
{
"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"
}
}
}
}
Once configured in Claude Desktop, you can ask Claude to:
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
Watch for changes and rebuild automatically:
npm run watch
Run the server directly:
npm start
The server communicates over stdio and expects MCP protocol messages.
This server currently supports:
Rate Limiting: The Amazon Ads API has rate limits. The client does not currently implement rate limiting logic.
Reporting API: The get_campaign_performance tool uses a simplified implementation. For production use, you should implement the full async reporting flow:
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.
.env file or expose API credentialsMIT
Contributions are welcome! Please feel free to submit a Pull Request.
Source-derived launch command. Check the maintainer’s required arguments and credentials before running:
npx -y amazonads-mcpMerge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.
{
"mcpServers": {
"io-github-cprice70-amazonads-mcp": {
"command": "npx",
"args": [
"-y",
"amazonads-mcp"
]
}
}
}Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.
Claude Desktop setup referenceamazonads-mcpnpmio.github.cprice70/amazonads-mcp works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.
~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.~/.cursor/mcp.jsonRestart Cursor for changes to take effect..vscode/mcp.jsonReload VS Code window for changes to take effect.~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect..mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.