# ChatGPT Ads

MCP server connecting your AI assistant to the ChatGPT Ads Advertiser API. Helps you inspect campaign metrics, conversion setups, and prepare changes.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI
- Author: get-mcp-ads
- License: Apache-2.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/get-mcp-ads/chatgpt-ads-mcp-server
- Updated: 2026-10-23
- HTML: https://affpapa.org/en/nevibecode/mcp/chatgpt-ads

## What it does

The package exposes 30 read tools covering ad accounts, campaigns, ad groups, chat card creatives, conversion metrics, custom audiences, and audit logs. Traffic flows directly to `api.ads.openai.com` via stdio without intermediate proxy layers.

All 28 mutation tools are disabled out of the box. Enabling them requires setting `OPENAI_ADS_ENABLE_WRITES` to `true`. Every write enforces a preview step, executing only the confirmed payload. New items stay paused upon creation, and starting actual ad delivery requires setting `OPENAI_ADS_ENABLE_ACTIVATION` to `true`.

The server requires an Advertiser API key generated in Ads Manager settings together with an `adacct_` account ID. Standard OpenAI Platform API tokens are rejected.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `OPENAI_ADS_API_KEY`, `OPENAI_ADS_ACCOUNT_ID`, `OPENAI_ADS_ENABLE_WRITES`, `OPENAI_ADS_ENABLE_ACTIVATION` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env OPENAI_ADS_API_KEY=<OPENAI_ADS_API_KEY> --env OPENAI_ADS_ACCOUNT_ID=<OPENAI_ADS_ACCOUNT_ID> --env OPENAI_ADS_ENABLE_WRITES=<OPENAI_ADS_ENABLE_WRITES> --env OPENAI_ADS_ENABLE_ACTIVATION=<OPENAI_ADS_ENABLE_ACTIVATION> --transport stdio chatgpt-ads -- npx -y @getmcpads/chatgpt-ads-mcp-server
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add chatgpt-ads --env OPENAI_ADS_API_KEY=<OPENAI_ADS_API_KEY> --env OPENAI_ADS_ACCOUNT_ID=<OPENAI_ADS_ACCOUNT_ID> --env OPENAI_ADS_ENABLE_WRITES=<OPENAI_ADS_ENABLE_WRITES> --env OPENAI_ADS_ENABLE_ACTIVATION=<OPENAI_ADS_ENABLE_ACTIVATION> -- npx -y @getmcpads/chatgpt-ads-mcp-server
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "chatgpt-ads": {
            "command": "npx",
            "args": [
                "-y",
                "@getmcpads/chatgpt-ads-mcp-server"
            ],
            "env": {
                "OPENAI_ADS_API_KEY": "<OPENAI_ADS_API_KEY>",
                "OPENAI_ADS_ACCOUNT_ID": "<OPENAI_ADS_ACCOUNT_ID>",
                "OPENAI_ADS_ENABLE_WRITES": "<OPENAI_ADS_ENABLE_WRITES>",
                "OPENAI_ADS_ENABLE_ACTIVATION": "<OPENAI_ADS_ENABLE_ACTIVATION>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "chatgpt-ads": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@getmcpads/chatgpt-ads-mcp-server"
            ],
            "env": {
                "OPENAI_ADS_API_KEY": "<OPENAI_ADS_API_KEY>",
                "OPENAI_ADS_ACCOUNT_ID": "<OPENAI_ADS_ACCOUNT_ID>",
                "OPENAI_ADS_ENABLE_WRITES": "<OPENAI_ADS_ENABLE_WRITES>",
                "OPENAI_ADS_ENABLE_ACTIVATION": "<OPENAI_ADS_ENABLE_ACTIVATION>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e OPENAI_ADS_API_KEY=<OPENAI_ADS_API_KEY> -e OPENAI_ADS_ACCOUNT_ID=<OPENAI_ADS_ACCOUNT_ID> -e OPENAI_ADS_ENABLE_WRITES=<OPENAI_ADS_ENABLE_WRITES> -e OPENAI_ADS_ENABLE_ACTIVATION=<OPENAI_ADS_ENABLE_ACTIVATION> chatgpt-ads npx -y @getmcpads/chatgpt-ads-mcp-server
```
Replace <…> with your own values

## When to use it
- read advertising performance with device, country, and platform breakdowns
- inspect campaign configurations and custom audiences without opening Ads Manager
- prepare ad changes using confirmed previews before sending updates

## Example prompts
- Check the ad account overview and current status using openai_ads_get_account
- Fetch campaign performance insights and conversion numbers for this week
- Draft a campaign update and generate a preview before saving changes

## Similar
- [Snapchat Ads](https://affpapa.org/en/nevibecode/mcp/snapchat-ads.md) — MCP server
- [thought-leadership-ads](https://affpapa.org/en/nevibecode/skills/thought-leadership-ads.md) — skill · 19900 installs
- [ads-creative](https://affpapa.org/en/nevibecode/skills/ads-creative.md) — skill · 4100 installs
- [ads-tiktok](https://affpapa.org/en/nevibecode/skills/ads-tiktok.md) — skill · 4100 installs
- [competitive-ads-extractor](https://affpapa.org/en/nevibecode/skills/nexu-io-competitive-ads-extractor.md) — skill · 2800 installs
- [tiktok-ads](https://affpapa.org/en/nevibecode/skills/tiktok-ads.md) — skill · 1300 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
