ต้นแบบ · รุ่นทดลอง: มีทุก server ในทะเบียนทางการ อัปเดตทุก 30 นาที เข้าสู่ระบบด้วย Google เพื่อเขียนรีวิวได้แล้ว
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · อธิบายเป็นภาษาคน

OpenAI Ads MCP

โดย trakkr-aisearchรุ่น 0.1.7i★ 4iบนเครื่องหรือคลาวด์
ชื่อใน registryio.github.trakkr-aisearch/openai-ads-mcp

วิธีติดตั้ง

ภาพรวม

คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)

OpenAI Ads MCP for ChatGPT Ads campaigns, creatives, audiences, insights, and conversions.

ใช้ทำอะไรได้

ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry

  • การเชื่อมต่อ: บนเครื่องหรือคลาวด์
  • ช่องทาง (transport): stdio, Streamable HTTP
  • หมวด: การตลาดและโซเชียล
  • ต้องใส่ค่าเหล่านี้: OPENAI_ADS_API_KEY, X-OpenAI-Ads-API-Key

ติดตั้ง

เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง

ผลตรวจผ่าน 4/4 · สิ่งที่คุณถามผ่านเซิร์ฟเวอร์ของผู้ทำ (openai-ads-mcp.trakkr.ai)

ขั้นแรก: คุณใช้ AI ตัวไหน

เลือกแอปที่คุณใช้ ขั้นตอนจะขึ้นด้านล่าง

ต่อกับ Claude ได้ · ประมาณ 5 นาที

ต้องมีคีย์ของ OpenAI Ads MCP (สมัครที่เว็บของผู้ทำ อาจมีค่าใช้จ่าย) · ตั้งครั้งเดียวที่ claude.ai หรือแอปบนคอม แล้วใช้ในแชตได้ · บัญชีฟรีเพิ่มได้ 1 ตัว

  1. สมัครและสร้างคีย์ของ OpenAI Ads MCP

    เปิดเว็บของผู้ทำ สมัครบัญชีแล้วสร้างคีย์ (API key) เก็บไว้ ใช้ในขั้นถัดไป อาจมีค่าใช้จ่าย

    เปิดเว็บของ OpenAI Ads MCP ↗

  2. เปิดหน้า Connectors ของ Claude

    CustomizeConnectors

    CustomizeConnectors1+ Add2https://…3Add4
  3. กด “+ Add” → “Add custom connector” แล้วกรอก 2 ช่องนี้

    คัดลอกจากที่นี่ไปวางในช่องชื่อเดียวกันบนหน้าจอของ Claude แล้วกด Continue

    Name · ชื่อOpenAI Ads MCP
    Remote MCP server URL · ที่อยู่https://openai-ads-mcp.trakkr.ai/mcp

    ที่หัวข้อ Request headers เพิ่มชื่อและค่านี้

    ชื่อ headerX-OpenAI-Ads-API-Key
    ค่า<วางคีย์ของคุณตรงนี้>

    วางคีย์ในช่องของแอปเท่านั้น อย่าวางในแชตหรือส่งให้ใคร

    หัวข้อ Authentication ปล่อยตามที่ Claude ตรวจเจอ แล้วกด Add

  4. เปิดใช้ในแชต

    +ConnectorsOpenAI Ads MCP

  5. ลองเลย

    ใช้ OpenAI Ads MCP บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง

    ✓ ถ้า Claude บอกว่ากำลังใช้ OpenAI Ads MCP หรือมีชื่อเครื่องมือของ OpenAI Ads MCP ขึ้นในคำตอบ แปลว่าต่อสำเร็จ

ชื่อเมนูตรวจกับหน้าช่วยเหลือของ Anthropic เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป

ChatGPT ยังต่อ OpenAI Ads MCP ไม่ได้

OpenAI Ads MCP ต้องใส่คีย์ส่วนตัวตอนต่อ แต่หน้าช่วยเหลือของ OpenAI พูดถึงแค่การเข้าสู่ระบบแบบ OAuth ยังไม่มีวิธีใส่คีย์ที่เราตรวจได้

คุณทำแบบนี้แทนได้

ก · ใช้แอปที่ต่อ OpenAI Ads MCP ได้

  • ต้องมีคีย์ของ OpenAI Ads MCP (สมัครที่เว็บของผู้ทำ อาจมีค่าใช้จ่าย) · ตั้งครั้งเดียวที่ claude.ai หรือแอปบนคอม แล้วใช้ในแชตได้ · บัญชีฟรีเพิ่มได้ 1 ตัว
  • ต้องมีคีย์ของ OpenAI Ads MCP (สมัครที่เว็บของผู้ทำ อาจมีค่าใช้จ่าย)
  • ต้องมีคีย์ของ OpenAI Ads MCP (สมัครที่เว็บของผู้ทำ อาจมีค่าใช้จ่าย)
  • ต้องมีคีย์ของ OpenAI Ads MCP (สมัครที่เว็บของผู้ทำ อาจมีค่าใช้จ่าย)

ข · ตัวอื่นในหมวด การตลาดและโซเชียล ที่ต่อกับ ChatGPT ได้

เลือกจากตัวที่ใช้มากในหมวดเดียวกัน เฉพาะตัวที่ต่อด้วยที่อยู่ได้โดยไม่ต้องใส่คีย์

ต่อกับ Claude Code ได้ · ประมาณ 5 นาที

ต้องมีคีย์ของ OpenAI Ads MCP (สมัครที่เว็บของผู้ทำ อาจมีค่าใช้จ่าย)

  1. สมัครและสร้างคีย์ของ OpenAI Ads MCP

    เปิดเว็บของผู้ทำ สมัครบัญชีแล้วสร้างคีย์ (API key) เก็บไว้ ใช้ในขั้นถัดไป อาจมีค่าใช้จ่าย

    เปิดเว็บของ OpenAI Ads MCP ↗

  2. เปิด Terminal

    Mac: กด Command+Space พิมพ์ Terminal · Windows: เปิด PowerShell

  3. วางคำสั่งนี้แล้วกด Enter

    claude mcp add --transport http openai-ads https://openai-ads-mcp.trakkr.ai/mcp --header 'X-OpenAI-Ads-API-Key: ใส่ค่าของคุณ'

    แก้ “ใส่ค่าของคุณ” เป็นคีย์ของคุณก่อนกด Enter

    วางคีย์ในช่องของแอปเท่านั้น อย่าวางในแชตหรือส่งให้ใคร

  4. พิมพ์ /mcp ใน Claude Code

    ต้องเห็น OpenAI Ads MCP ในรายการและขึ้นว่าเชื่อมต่อแล้ว

  5. ลองเลย

    ใช้ OpenAI Ads MCP บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง

    ✓ ถ้า Claude Code บอกว่ากำลังใช้ OpenAI Ads MCP หรือมีชื่อเครื่องมือของ OpenAI Ads MCP ขึ้นในคำตอบ แปลว่าต่อสำเร็จ

ชื่อเมนูตรวจกับหน้าช่วยเหลือของ Anthropic เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป

ต่อกับ Cursor ได้ · ประมาณ 5 นาที

ต้องมีคีย์ของ OpenAI Ads MCP (สมัครที่เว็บของผู้ทำ อาจมีค่าใช้จ่าย)

  1. สมัครและสร้างคีย์ของ OpenAI Ads MCP

    เปิดเว็บของผู้ทำ สมัครบัญชีแล้วสร้างคีย์ (API key) เก็บไว้ ใช้ในขั้นถัดไป อาจมีค่าใช้จ่าย

    เปิดเว็บของ OpenAI Ads MCP ↗

  2. กดปุ่มนี้เพื่อเปิด Cursor

    เปิดใน Cursor

    Cursor จะถามยืนยันการติดตั้ง ให้กด Install

  3. ใส่คีย์ในช่องที่ว่างไว้

    ในค่าตั้งของ OpenAI Ads MCP ช่อง X-OpenAI-Ads-API-Key ยังว่าง ใส่คีย์ของคุณแล้วบันทึก

    วางคีย์ในช่องของแอปเท่านั้น อย่าวางในแชตหรือส่งให้ใคร

  4. เปิดแชตของ AI ใน Cursor โหมด Agent

  5. ลองเลย

    ใช้ OpenAI Ads MCP บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง

    ✓ ถ้า Cursor บอกว่ากำลังใช้ OpenAI Ads MCP หรือมีชื่อเครื่องมือของ OpenAI Ads MCP ขึ้นในคำตอบ แปลว่าต่อสำเร็จ

ชื่อเมนูตรวจกับหน้าช่วยเหลือของ Cursor เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป

ต่อกับ VS Code ได้ · ประมาณ 5 นาที

ต้องมีคีย์ของ OpenAI Ads MCP (สมัครที่เว็บของผู้ทำ อาจมีค่าใช้จ่าย)

  1. สมัครและสร้างคีย์ของ OpenAI Ads MCP

    เปิดเว็บของผู้ทำ สมัครบัญชีแล้วสร้างคีย์ (API key) เก็บไว้ ใช้ในขั้นถัดไป อาจมีค่าใช้จ่าย

    เปิดเว็บของ OpenAI Ads MCP ↗

  2. กดปุ่มนี้เพื่อเปิด VS Code

    เปิดใน VS Code

    VS Code จะถามยืนยันการติดตั้ง ให้กด Install

  3. ใส่คีย์ในช่องที่ว่างไว้

    ในค่าตั้งของ OpenAI Ads MCP ช่อง X-OpenAI-Ads-API-Key ยังว่าง ใส่คีย์ของคุณแล้วบันทึก

    วางคีย์ในช่องของแอปเท่านั้น อย่าวางในแชตหรือส่งให้ใคร

  4. เปิดแชตของ AI ใน VS Code โหมด Agent

  5. ลองเลย

    ใช้ OpenAI Ads MCP บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง

    ✓ ถ้า VS Code บอกว่ากำลังใช้ OpenAI Ads MCP หรือมีชื่อเครื่องมือของ OpenAI Ads MCP ขึ้นในคำตอบ แปลว่าต่อสำเร็จ

ชื่อเมนูตรวจกับหน้าช่วยเหลือของ VS Code เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป

โปรแกรมอื่นที่ใช้ MCP ได้ เช่น Windsurf, Zed หรือ Gemini CLI มีวิธีเพิ่มต่างกัน ดูวิธีของแต่ละตัวในหน้ารวมโปรแกรม

ดูโปรแกรมที่ใช้ MCP ทั้งหมด →

ที่อยู่สำหรับโปรแกรมที่ต่อผ่านเว็บ

ที่อยู่https://openai-ads-mcp.trakkr.ai/mcp

ค่าตั้งแบบไฟล์ JSON อยู่ในหัวข้อ “สำหรับคนเขียนโค้ด” ด้านล่าง

ติดตรงไหน? ถามคนที่ใช้ OpenAI Ads MCP อยู่💬 พูดคุย →
สำหรับคนเขียนโค้ด: คำสั่ง Terminal และค่าตั้ง JSON

ต่อผ่านเว็บ

Claude Code

claude mcp add --transport http openai-ads https://openai-ads-mcp.trakkr.ai/mcp --header 'X-OpenAI-Ads-API-Key: ใส่ค่าของคุณ'

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "openai-ads": {
      "url": "https://openai-ads-mcp.trakkr.ai/mcp",
      "headers": {
        "X-OpenAI-Ads-API-Key": "ใส่ค่าของคุณ"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "openai-ads": {
      "type": "http",
      "url": "https://openai-ads-mcp.trakkr.ai/mcp",
      "headers": {
        "X-OpenAI-Ads-API-Key": "ใส่ค่าของคุณ"
      }
    }
  }
}

ติดตั้งในเครื่อง

Claude Code

claude mcp add openai-ads --env OPENAI_ADS_API_KEY='ใส่ค่าของคุณ' --env OPENAI_ADS_MCP_READONLY='ใส่ค่าของคุณ' --env OPENAI_ADS_BUDGET_CEILING_USD='ใส่ค่าของคุณ' -- npx -y openai-ads-mcp

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "openai-ads": {
      "command": "npx",
      "args": [
        "-y",
        "openai-ads-mcp"
      ],
      "env": {
        "OPENAI_ADS_API_KEY": "ใส่ค่าของคุณ",
        "OPENAI_ADS_MCP_READONLY": "ใส่ค่าของคุณ",
        "OPENAI_ADS_BUDGET_CEILING_USD": "ใส่ค่าของคุณ"
      }
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "openai-ads": {
      "command": "npx",
      "args": [
        "-y",
        "openai-ads-mcp"
      ],
      "env": {
        "OPENAI_ADS_API_KEY": "ใส่ค่าของคุณ",
        "OPENAI_ADS_MCP_READONLY": "ใส่ค่าของคุณ",
        "OPENAI_ADS_BUDGET_CEILING_USD": "ใส่ค่าของคุณ"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "openai-ads": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "openai-ads-mcp"
      ],
      "env": {
        "OPENAI_ADS_API_KEY": "ใส่ค่าของคุณ",
        "OPENAI_ADS_MCP_READONLY": "ใส่ค่าของคุณ",
        "OPENAI_ADS_BUDGET_CEILING_USD": "ใส่ค่าของคุณ"
      }
    }
  }
}

ค่าที่ต้องใส่เอง

  • OPENAI_ADS_API_KEY ความลับ จำเป็น env
    OpenAI Ads API key from Ads Manager. Scoped to one ad account.
  • OPENAI_ADS_MCP_READONLY env
    Set to 1 for first connection so write tools are hidden.
  • OPENAI_ADS_BUDGET_CEILING_USD env
    Optional budget guard for spend-changing tools. Defaults to 100.
  • X-OpenAI-Ads-API-Key ความลับ HTTP header
    OpenAI Ads API key from Ads Manager. Required only for Ads API tool calls; discovery, initialize, and tools/list work without it.

ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README

สรุป

ดาวน์โหลดต่อสัปดาห์i
206/สัปดาห์
licensei
ไม่ระบุ license
การเชื่อมต่อ
บนเครื่องหรือคลาวด์
ช่องทาง (transport)
stdio, streamable-http
รุ่นล่าสุดi
0.1.7
ส่งเข้า registryi
22 ก.ค. 2569
แก้โค้ดล่าสุดi
22 ก.ค. 2569
ผู้ทำ
trakkr-aisearch
แพ็กเกจ
npm: openai-ads-mcp
pypi: openai-ads-mcp
เว็บผู้ทำ
trakkr.ai
สถานะใน registry
ใช้งานอยู่

ใช้กับโปรแกรมไหนได้

ดูจากแบบการต่อของ server ตัวนี้ และเอกสารของผู้ทำโปรแกรมแต่ละตัว ตรวจเมื่อ 10 พ.ย. 2569

ต่อผ่านคลาวด์ได้ใน

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatOpen WebUIRaycast

ติดตั้งบนเครื่องได้ใน

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

ดูโปรแกรมทั้งหมดพร้อมข้อดีข้อเสีย →

คู่มือที่เกี่ยวข้อง

ทำอะไรได้บ้าง

ชื่อและคำอธิบายเครื่องมือตามที่ server ตอบมาเมื่อ 11 พ.ย. 2569 ผู้ทำเป็นคนเขียน ไม่ใช่เรา แสดงเป็นข้อความล้วน

  • get_account

    Get the authenticated OpenAI Ads account. Use this first to verify that OPENAI_ADS_API_KEY works and to read account id, name, timezone, currency, and settings.

  • list_campaigns

    List campaigns in the authenticated ad account with cursor pagination.

  • get_campaign

    Get one campaign by id.

  • list_ad_groups

    List ad groups for a campaign.

  • get_ad_group

    Get one ad group by id.

  • list_ads

    List ads in an ad group.

  • get_ad

    Get one ad by id, including review_status and creative metadata.

  • get_insights

    Get performance insights for account, campaign, ad group, or ad scope. Supports fields, filters, sort, product/country/device segments, time ranges, and cursor pagination.

  • list_audiences

    List custom audiences for the authenticated ad account.

  • get_audience

    Get one custom audience by id.

  • search_geo

    Search geo targets for targeting.locations.include and return ids usable in campaign targeting.

  • manage_conversions

    Manage conversion pixels, API keys, event settings, and conversion reporting.

  • draft_context_hints

    Draft deterministic context_hints for an ad group from product, audience, intent, and keywords.

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 11 พ.ย. 2569

  • ✓ ผ่าน

    ตัวตนผู้ทำตรงกับ repo

    ชื่อใน registry ยืนยันด้วยบัญชี GitHub trakkr-aisearch ซึ่งเป็นเจ้าของ repo

  • ✓ ผ่าน

    ยังมีคนดูแล

    มีการแก้โค้ดล่าสุด 4 เดือนที่ผ่านมา

  • … ยังไม่ตรวจ

    มีสัญญาอนุญาต (license)

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • ✓ ผ่าน

    endpoint ตอบ

    ตอบกลับใน 205 ms (HTTP 200)

  • – ไม่เกี่ยว

    ล็อกอินแบบ OAuth

    ไม่ต้องล็อกอิน

  • ✓ ผ่าน

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    อ่านคำอธิบายเครื่องมือ 13 ตัวแล้ว ไม่พบคำสั่งแอบแฝงถึง AI

พูดคุย

ถาม แชร์เคล็ดลับ หรือแจ้งว่าใช้ไม่ได้ เรียงตามที่คนกดว่ามีประโยชน์

ยังไม่มีใครโพสต์ ถามหรือแชร์เป็นคนแรกได้เลย

ข้อความในส่วนนี้เขียนโดยผู้ใช้ ไม่ใช่ทีม PopNx

เข้าสู่ระบบด้วย Google เพื่อโพสต์

รีวิวจากผู้ใช้

ยังไม่มีรีวิว

เข้าสู่ระบบด้วย Google เพื่อเขียนรีวิว

เทียบกับตัวอื่นในหมวด การตลาดและโซเชียลi

  • ดาวมากกว่า 94% ของอีก 3778 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 18% ของอีก 3778 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 3778 ตัวในหมวดนี้

เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo

คำถามที่พบบ่อย

OpenAI Ads MCP ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 4 จาก 4 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

ต้องใส่ค่าเหล่านี้: OPENAI_ADS_API_KEY, X-OpenAI-Ads-API-Key

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

ได้ทั้งสองแบบ จะลงในเครื่องหรือต่อผ่านคลาวด์ก็ได้

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด 4 เดือนที่ผ่านมา และส่งรุ่นล่าสุด (0.1.7) เข้า registry 4 เดือนที่ผ่านมา

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต่อผ่าน URL จึงใช้กับโปรแกรมที่รับ remote MCP ได้ เช่น ChatGPT แผน Business ขึ้นไป

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี PostHog MCP Server, Openshorts, Google Ads + Meta Ads + SEO/GEO MCP

ตัวที่ใช้แทนได้

server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว

อ่านการ์ด:↓ ดาวน์โหลดต่อสัปดาห์i★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

PostHog MCP Server

Official PostHog MCP Server for product analytics, feature flags, experiments, and more.

โดย PostHogใช้กันมาก★ 40.7Kอัปเดต 10 เดือนที่ผ่านมา

รันบนคลาวด์

Openshorts

Turn long videos into viral vertical shorts and publish them to TikTok, Instagram and YouTube.

โดย mutonbyใช้กันมาก★ 7.6Kอัปเดต 3 เดือนที่ผ่านมา

รันบนคลาวด์

Google Ads + Meta Ads + SEO/GEO MCP

Google Ads, Meta Ads, Google Analytics (GA4) & Search Console MCP server by Ryze AI

โดย irinabuht12-ossใช้กันมาก★ 7.2Kอัปเดต 30 วันที่ผ่านมา

รันบนคลาวด์

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ

openai-ads-mcp

Trakkr tracks the full AI-visibility funnel, organic and paid. This is the open-source paid-side companion.

openai-ads-mcp is a typed Model Context Protocol server for OpenAI Ads, ChatGPT Ads, and OpenAI's Advertiser API. It lets Claude, Cursor, Codex, VS Code, and other MCP clients inspect Ads accounts, read performance insights, build paused campaigns, upload creatives, manage audiences, and send conversion events.

People often search for this as a ChatGPT Ads MCP because the ads appear in ChatGPT. The package keeps the OpenAI Ads MCP name because ChatGPT Ads are managed through OpenAI Ads, Ads Manager, and the OpenAI Advertiser API.

Current public release: 0.1.7.

It ships in two runtimes with the same tool names, arguments, defaults, safety model, and vendored OpenAPI reference:

RuntimeBest installPackage path
Pythonuvx openai-ads-mcppython/
Nodenpx -y openai-ads-mcptypescript/

The goal is simple: make OpenAI Ads workable from an AI assistant without making spend easy to trigger by accident.

Install

Python with uvx:

export OPENAI_ADS_API_KEY="..."

export OPENAI_ADS_MCP_READONLY=1 uvx openai-ads-mcp

Python with pip:

python -m pip install openai-ads-mcp

export OPENAI_ADS_API_KEY="..." export OPENAI_ADS_MCP_READONLY=1 openai-ads-mcp

Node with npx:

export OPENAI_ADS_API_KEY="..."

export OPENAI_ADS_MCP_READONLY=1 npx -y openai-ads-mcp

Node with npm:

npm install -g openai-ads-mcp

export OPENAI_ADS_API_KEY="..." export OPENAI_ADS_MCP_READONLY=1 openai-ads-mcp

For local development from this monorepo:

cd services/openai-ads-mcp/python

python -m pip install -e . python -m openai_ads_mcp

cd ../typescript npm install npm run build node dist/index.js

Configuration

Create an Ads API key in OpenAI Ads Manager, then pass it as an environment variable.

export OPENAI_ADS_API_KEY="..."

Recommended first connection:

export OPENAI_ADS_MCP_READONLY=1

uvx openai-ads-mcp

Or with Node:

export OPENAI_ADS_MCP_READONLY=1

npx -y openai-ads-mcp

Readonly mode hides every write tool. They are absent from tools/list and cannot be called. Once you have confirmed the account and inspected data, unset OPENAI_ADS_MCP_READONLY to enable writes.

Optional environment variables:

VariablePurpose
OPENAI_ADS_API_KEYRequired bearer key for https://api.ads.openai.com/v1.
OPENAI_ADS_API_BASE_URLOptional HTTPS override for tests or proxies.
OPENAI_ADS_MCP_READONLYSet to 1 or true to register read tools only.
OPENAI_ADS_BUDGET_CEILING_USDOptional budget guard. Default 100.

Discovery Metadata

This repo includes server.json for the official MCP Registry and downstream MCP directories. The canonical registry name is:

io.github.trakkr-aisearch/openai-ads-mcp

The Node package includes the matching mcpName, and the Python package README includes the matching mcp-name marker for PyPI ownership verification.

The registry metadata also advertises the hosted read-only Streamable HTTP endpoint:

https://openai-ads-mcp.trakkr.ai/mcp

That hosted endpoint is for discovery and read-only usage. It does not store or use a Trakkr-owned OpenAI Ads API key. The hosted endpoint allows anonymous initialize and tools/list; Ads API tool calls require the caller to send X-OpenAI-Ads-API-Key.

MCP client examples

Claude Code, Python runtime
claude mcp add openai-ads \

-e OPENAI_ADS_API_KEY=your_ads_key_here \ -e OPENAI_ADS_MCP_READONLY=1 \ -- uvx openai-ads-mcp

Claude Code, Node runtime
claude mcp add openai-ads \

-e OPENAI_ADS_API_KEY=your_ads_key_here \ -e OPENAI_ADS_MCP_READONLY=1 \ -- npx -y openai-ads-mcp

Cursor or Claude Desktop
{

"mcpServers": { "openai-ads": { "command": "uvx", "args": ["openai-ads-mcp"], "env": { "OPENAI_ADS_API_KEY": "your_ads_key_here", "OPENAI_ADS_MCP_READONLY": "1" } } } }

Use "command": "npx" and "args": ["-y", "openai-ads-mcp"] for the Node runtime.

Codex CLI
[mcp_servers.openai_ads]

command = "uvx" args = ["openai-ads-mcp"] env = { OPENAI_ADS_API_KEY = "your_ads_key_here", OPENAI_ADS_MCP_READONLY = "1" }

MCP Registry

Registry-compatible clients should discover this server by name:

io.github.trakkr-aisearch/openai-ads-mcp

The registry metadata lists npm, PyPI, and the hosted Streamable HTTP endpoint. The hosted endpoint does not require an API key for discovery, but it does require X-OpenAI-Ads-API-Key for Ads API tool calls.

Docker

The repository includes production Dockerfiles for hosted Streamable HTTP deployments:

docker build -t openai-ads-mcp .

docker run --rm -p 8080:8080 \ -e OPENAI_ADS_MCP_HOSTED_PUBLIC=1 \ -e OPENAI_ADS_MCP_TELEMETRY_SALT="local-test-salt" \ openai-ads-mcp

The narrower typescript/Dockerfile is used by the Cloud Run deploy script. For local stdio use, prefer uvx openai-ads-mcp or npx -y openai-ads-mcp.

Streamable HTTP

The Node runtime can also serve MCP over Streamable HTTP for hosted or team deployments:

export OPENAI_ADS_MCP_HTTP_TOKEN="choose_a_long_random_token"

export OPENAI_ADS_MCP_READONLY=1 npx -y openai-ads-mcp --http

Defaults:

  • URL: http://127.0.0.1:8080/mcp locally, or https://your-host/mcp behind a proxy.
  • Health checks: GET /healthz, GET /health, and GET /ready.
  • Remote mode forces OPENAI_ADS_MCP_READONLY=1 unless OPENAI_ADS_MCP_HTTP_ALLOW_WRITES=1 is set.
  • OPENAI_ADS_MCP_HTTP_TOKEN protects the MCP endpoint with Authorization: Bearer .
  • Clients may send X-OpenAI-Ads-API-Key per request, or the server can use a server-side OPENAI_ADS_API_KEY.

Useful hosted env vars:

VariablePurpose
PORT or OPENAI_ADS_MCP_HTTP_PORTHTTP port. Default 8080.
OPENAI_ADS_MCP_HTTP_PATHMCP path. Default /mcp.
OPENAI_ADS_MCP_HEALTH_PATHHealth path. Default /healthz.
OPENAI_ADS_MCP_HTTP_TOKENOptional bearer token required by hosted clients.
OPENAI_ADS_MCP_HTTP_ALLOW_WRITESSet to 1 only when you want write tools exposed over HTTP.
OPENAI_ADS_MCP_HTTP_CORS_ORIGINOptional CORS origin. Default *.

For public hosted endpoints, keep writes disabled and require users to bring their own Ads API key per request. Do not put a shared Ads API key in browser-visible config.

Public hosted mode

For a public discovery endpoint, use:

export OPENAI_ADS_MCP_HOSTED_PUBLIC=1

export OPENAI_ADS_MCP_TELEMETRY_SALT="long_random_value" npx -y openai-ads-mcp --http

Hosted public mode:

  • forces readonly mode
  • refuses to start if OPENAI_ADS_MCP_HTTP_ALLOW_WRITES=1
  • refuses to start if OPENAI_ADS_API_KEY is present
  • rejects X-OpenAI-Ads-API-Base-Url
  • allows anonymous initialize and tools/list
  • requires X-OpenAI-Ads-API-Key for Ads API tool calls
  • rate-limits discovery and tool calls
  • logs only redacted summaries, hashes, counts, status, latency, and client metadata

The production runbook is in HOSTED_DEPLOY.md.

Tool Surface

The Python and Node runtimes expose the same 27 tools.

GroupTools
Accountget_account
Campaignslist_campaigns, get_campaign, create_campaign, update_campaign, set_campaign_state
AdGroupslist_ad_groups, get_ad_group, create_ad_group, update_ad_group, set_ad_group_state
Adslist_ads, get_ad, upload_creative, create_ad, update_ad, set_ad_state
Insightsget_insights
Audienceslist_audiences, get_audience, search_geo, manage_audience
Conversionsmanage_conversions, send_conversions
Helpersbuild_campaign, draft_context_hints, bulk_ab_test_hints
High-use tools
ToolWhat it does
get_accountGets the ad account and confirms the API key works.
get_insightsReads account, campaign, ad group, or ad insights with fields, filters, sort, segments, and cursor pagination.
create_campaignCreates a paused campaign with a guarded lifetime budget, including conversion-optimized campaigns with one event setting.
upload_creativeUploads an image URL or local image file and returns file_id.
create_adCreates a paused ad. chat_card requires target_url and file_id.
build_campaignCreates one paused campaign, one paused ad group, and paused ads in a guarded workflow.
draft_context_hintsDeterministically drafts API-shaped context_hints with no hidden LLM call.
send_conversionsSends conversion events to https://bzr.openai.com/v1/events?pid=... after local validation, with optional validate_only. Supports obref and mobile app lifecycle events.

get_insights accepts the current tagged time-range shape, for example:

{"type":"unix_range","start":1764547200,"end":1765152000}

The older nested shape is normalized for backward compatibility.

For conversion optimization, pass bidding_type="conversions" and exactly one conversion_event_setting_ids value to create_campaign. The campaign cannot use product-feed mode, and child ad groups must bill by click. build_campaign offers the same path through its singular conversion_event_setting_id helper argument. The bid is a CPA input even though OpenAI bills the child ad group per click.

OpenAI's Bulk API remains a limited preview and is not exposed as a general MCP tool. Product-feed campaign objects are supported, but feed connection and catalog upload still happen in Ads Manager or through OpenAI's supported SFTP flow.

Safety Model

This server can affect real ad spend, so the defaults are deliberately cautious.

  1. Create tools default to paused. build_campaign creates every object paused.
  2. Activations are separate tools: set_campaign_state, set_ad_group_state, and set_ad_state.
  3. Budget-setting paths enforce OPENAI_ADS_BUDGET_CEILING_USD, default 100.
  4. To exceed the ceiling, pass confirm_budget=True.
  5. OPENAI_ADS_MCP_READONLY=1 hides every write tool entirely.
  6. Conversion ingest validates at most 1000 events per call, timestamps no older than 7 days, and timestamps no more than 10 minutes in the future.
  7. Use validate_only=true to validate a conversion batch without ingesting it.
  8. The server never logs API keys or conversion user data.

MCP annotations are set on every tool. Read tools use readOnlyHint. Write tools use readOnlyHint=false. Activation and budget-changing tools are marked destructive and open-world so hosts can prompt before running them.

Worked Example

First, connect safely:

export OPENAI_ADS_API_KEY="..."

export OPENAI_ADS_MCP_READONLY=1 uvx openai-ads-mcp

Ask your assistant:

Call get_account and list_campaigns. Confirm the Ads key works and show me what already exists.

Then restart without readonly mode and build a paused campaign:

Use draft_context_hints for "AI visibility monitoring software" aimed at growth teams with comparison intent.

Then call build_campaign with:

  • name: "AI visibility category test"
  • budget_usd: 50
  • ad_group: name "Growth teams", billing_event "click", max_bid_usd 1.25, context_hints from the draft
  • ads: two chat_card variants using my uploaded file_id

Do not activate anything.

Review the returned campaign, ad group, ads, budget, targeting, and review status. When you are ready to go live, activate each layer explicitly:

Call set_campaign_state with state="activate".

Call set_ad_group_state with state="activate". Call set_ad_state for the approved ad with state="activate".

The Organic Half

Paid placements answer: where did you buy attention?

Trakkr answers: where does your brand show up orga

ตัดมาแค่ช่วงต้น อ่านต่อใน repo