Connect your Amazon Ads, Seller/Vendor Central, Amazon DSP, and Amazon Marketing Cloud data to OpenAI's Codex CLI through MCP. Query campaigns, manage inventory, analyze DSP performance, and run AMC queries — all from your terminal.
$ codex mcp add map --url https://app.marketplaceadpros.com/mcp
✓ Added MCP server "map"
$ codex
> Show DSP line items pacing under 80% this week
for Brand X, then suggest budget shifts.
codex mcp add map --url https://app.marketplaceadpros.com/mcp
codex
config.toml directlyCodex stores MCP server configuration in ~/.codex/config.toml (or a project-scoped .codex/config.toml in trusted projects). Both the CLI and the IDE extension read from the same file. Add this block:
[mcp_servers.map]
url = "https://app.marketplaceadpros.com/mcp"
Then trigger the OAuth flow once:
codex mcp login map
You can verify the server is active inside a Codex TUI session with /mcp.
If OAuth isn't an option (e.g. headless server with no browser), generate an API key on the Integrations page, export it as an env var, and point Codex at it via bearer_token_env_var:
export MAP_API_KEY="your_api_key_here"
Then in ~/.codex/config.toml:
[mcp_servers.map]
url = "https://app.marketplaceadpros.com/mcp"
bearer_token_env_var = "MAP_API_KEY"
Codex will send Authorization: Bearer $MAP_API_KEY on every request.
If you want a read-only setup, or want Codex to prompt before each write, you can scope tools and approval mode per-server in config.toml:
[mcp_servers.map]
url = "https://app.marketplaceadpros.com/mcp"
default_tools_approval_mode = "prompt" # or "auto" / "approve"
startup_timeout_sec = 20
tool_timeout_sec = 120
# Optionally restrict to specific tools:
# enabled_tools = ["ask_report_analyst", "list_brands", "list_resources"]
See the Codex MCP docs for the full list of options.
Manage every layer of your Amazon business from Codex — ads, catalog, and programmatic — through one MCP connection.
Sponsored Products, Brands, and Display. Spend, sales, ACOS, ROAS, keyword and search-term analysis, bid and budget recommendations.
Orders, FBA inventory, catalog data, listings, and Brand Analytics reports. Cross-reference inventory before scaling spend.
Programmatic display campaigns, line items, creatives, and pacing. Browse, analyze, and optimize DSP from the terminal.
Run AMC queries through AI — cross-channel attribution, new-to-brand analysis, audience insights. Closed Beta
Turn on Edit Mode to update campaigns, ad groups, keywords, and budgets. Codex confirms each change before applying; every write is logged.
Because it's a CLI, you can pipe Codex into shell scripts, cron jobs, or CI pipelines for unattended reports and checks.
Codex CLI is OpenAI's open-source coding agent that runs in your terminal. It can execute commands, edit files, and call MCP servers — including the Marketplace Ad Pros MCP for Amazon Ads, Seller/Vendor Central, DSP, and AMC. Codex CLI docs →
Run codex mcp add map --url https://app.marketplaceadpros.com/mcp in your terminal. The next time you start a Codex session you'll be redirected to your browser to log in and authorize access. No API keys to copy.
All of your connected Amazon Ads accounts (Sponsored Products, Sponsored Brands, Sponsored Display, DSP), Seller Central and Vendor Central data, Brand Analytics reports, and Amazon Marketing Cloud queries — all through the same MCP connection.
Not unless you ask it to. Access is read-only by default. You can opt in to write access in your settings, and even then Codex confirms before making any change. Everything is logged. More on AI editing.
Connecting your Amazon Ads accounts is free. A $20 two-week trial gives you full access. AI Connect starts at $10/week. Optimization plans with daily recommendations start at $149/month. Codex CLI itself is free from OpenAI but uses your OpenAI API credits.
Get more out of Codex with these resources.
Fix hallucinations and wrong-account mistakes with 5 proven strategies.
Read the GuideFree account connection. $20 two-week trial. AI Connect from $10/week.
Get Started Free