原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。使用 Google 登录即可撰写评价。原型 · 每 30 分钟更新
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

OpenAI Ads MCP

作者:trakkr-aisearch版本 0.1.7i★ 4i电脑或云端官方网站 ↗
注册名称io.github.trakkr-aisearch/openai-ads-mcp

安装方法

What it does

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

  • Connects 电脑或云端
  • Account or key Cloud: Works without a key · add X-OpenAI-Ads-API-Key if you have one (often raises limits) · Local: Needs OPENAI_ADS_API_KEY
  • Category 营销与社交媒体

可搭配使用

教 AI 做这类工作的 Skill,可与本项一起使用

scroll-world

A skill that turn any brand into a scrollable 3D world landing page

作者:oso95★ 11,0551 个 skill

Skill · 操作手册

social-auto-upload

自动化上传视频到社交媒体:抖音、小红书、视频号、tiktok、youtube、bilibili

作者:dreammis★ 16,657 (whole repo)4 个 skill

Skill · 操作手册

native-subtitle-quote-image

保留视频内嵌字幕,精确取帧并生成 3:4 社交长图的 Agent Skill

作者:chengyi-ai★ 2,8881 个 skill

Skill · 操作手册

为什么排在这里

列表按使用分(满分 100)排序,由以下部分组成

热度8/80GitHub 星标或每周下载量:较大的计 60,较小的计 20
新鲜度3/1230 天内有发布或代码更新得满分
仍在响应8/8上次检查时云端端点有响应
使用分19/100

质量: 基础检查通过 5/5 项(仅展示,不用于排序) · 上升势头: 暂无数据 (只用于“上升中”标签)

安装

选择你使用的 AI 应用,然后复制设置。

用一句话让 AI 帮你安装

请帮我安装 OpenAI Ads MCP。按照 https://mcp.popnx.com/i/trakkr-aisearch-openai-ads-mcp.md 操作,先把命令给我看,等我同意后再运行。

粘贴到能在你电脑上工作的 AI(如 Claude Code、Cursor)。它会读取我们的步骤,先给你看命令,等你同意。无需密钥,无需注册。 · 查看 AI 会读取的全文

通过 5/5 项检查 · 你的提问会经过开发者的服务器(openai-ads-mcp.trakkr.ai) · ✓ 命令已检查 2026年11月14日

第一步:你用哪个 AI?

选择你用的应用,步骤会显示在下方。

可连接 Claude · 约 2 分钟

不需要密钥,不用安装程序 · 在 claude.ai 或桌面应用设置一次,即可在聊天中使用 · 免费账户可添加 1 个 · Team/Enterprise 方案由所有者(Owner)添加

  1. 打开 Claude 的 Connectors 页面

    CustomizeConnectors

    CustomizeConnectors1Add2https://…3Add4
  2. 点击“Add” → “Custom” → “Web”,填写这 2 项

    把这里的内容复制到 Claude 中同名的输入框,然后点击 Continue

    Name · 名称OpenAI Ads MCP
    Remote MCP server URL · 地址https://openai-ads-mcp.trakkr.ai/mcp

    在 Claude 检测到的登录设置页点击 Continue · Authentication 按作者说明选择(Sign in now、Sign in when needed 或 No sign in),然后点击 Add

  3. 在聊天中开启

    +ConnectorsOpenAI Ads MCP

  4. 试一试

    用 OpenAI Ads MCP 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude 说正在使用 OpenAI Ads MCP,或回答中出现 OpenAI Ads MCP 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

能否连接 ChatGPT 取决于方案

完整 MCP:网页版 ChatGPT Business、Enterprise 或 Edu · Pro:以读取/获取权限连接,修改数据的工具可能用不了 · Plus:官方文档尚未确认,如果在插件页看到添加自定义 MCP 的选项可以试试 · 仅限网页

  1. 在网页版 ChatGPT 打开添加 MCP 的页面

    Plugins+Add custom MCP server

    ChatGPTPlugins1+2https://…3Create4
  2. 填写名称和地址

    输入名称,在 Connection 下粘贴地址,勾选风险提示,然后点击 Create as a plugin

    Name · 名称OpenAI Ads MCP
    Connection · 地址https://openai-ads-mcp.trakkr.ai/mcp
  3. 在聊天中选择 OpenAI Ads MCP

    开启新聊天,输入前先从插件列表中选择 OpenAI Ads MCP

  4. 试一试

    用 OpenAI Ads MCP 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 ChatGPT 说正在使用 OpenAI Ads MCP,或回答中出现 OpenAI Ads MCP 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 OpenAI 帮助页面核实 · 你的界面可能因版本略有不同

可连接 Claude Code · 约 2 分钟

不需要密钥,不用安装程序

  1. 打开终端

    Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell

  2. 粘贴这条命令并按 Enter

    claude mcp add --transport http --scope user openai-ads https://openai-ads-mcp.trakkr.ai/mcp
  3. 在 Claude Code 中输入 /mcp

    应能看到 OpenAI Ads MCP 在列表中并显示已连接

  4. 试一试

    用 OpenAI Ads MCP 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude Code 说正在使用 OpenAI Ads MCP,或回答中出现 OpenAI Ads MCP 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

可连接 Cursor · 约 2 分钟

不需要密钥,不用安装程序

  1. 点击这个按钮打开 Cursor

    在 Cursor 中打开

    Cursor 会请你确认安装,点击 Install

  2. 在 Cursor 中以 Agent 模式打开 AI 聊天

  3. 试一试

    用 OpenAI Ads MCP 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Cursor 说正在使用 OpenAI Ads MCP,或回答中出现 OpenAI Ads MCP 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同

可连接 VS Code · 约 2 分钟

不需要密钥,不用安装程序

  1. 点击这个按钮打开 VS Code

    在 VS Code 中打开

    VS Code 会请你确认安装,点击 Install

  2. 在 VS Code 中以 Agent 模式打开 AI 聊天

  3. 试一试

    用 OpenAI Ads MCP 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 VS Code 说正在使用 OpenAI Ads MCP,或回答中出现 OpenAI Ads MCP 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同

其他支持 MCP 的应用(如 Windsurf、Zed、Gemini CLI)添加方式各不相同,请在应用列表中查看

查看所有支持 MCP 的应用 →

通过网页连接的应用使用的地址

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

JSON 设置在下方“开发者专用”中

卡住了?问问正在用 OpenAI Ads MCP 的人💬 讨论 →
开发者专用:终端命令和 JSON 设置

通过网页连接

Claude Code

claude mcp add --transport http --scope user openai-ads https://openai-ads-mcp.trakkr.ai/mcp

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "openai-ads": {
      "url": "https://openai-ads-mcp.trakkr.ai/mcp"
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "openai-ads": {
      "type": "http",
      "url": "https://openai-ads-mcp.trakkr.ai/mcp"
    }
  }
}

安装在电脑上

Claude Code

claude mcp add --scope user openai-ads --env OPENAI_ADS_API_KEY=your-value -- 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": "your-value"
      }
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "openai-ads": {
      "command": "npx",
      "args": [
        "-y",
        "openai-ads-mcp"
      ],
      "env": {
        "OPENAI_ADS_API_KEY": "your-value"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "openai-ads": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "openai-ads-mcp"
      ],
      "env": {
        "OPENAI_ADS_API_KEY": "your-value"
      }
    }
  }
}

需要你填写的值

  • OPENAI_ADS_API_KEY 机密 必填 env
    来自 Ads Manager 的 OpenAI Ads API 密钥。仅限于一个广告账户。
    查看英文原文OpenAI Ads API key from Ads Manager. Scoped to one ad account.
  • OPENAI_ADS_MCP_READONLY env
    首次连接时设置为 1,以隐藏写入工具。
    查看英文原文Set to 1 for first connection so write tools are hidden.
  • OPENAI_ADS_BUDGET_CEILING_USD env
    可选的预算保护,用于会产生费用的工具。默认值为100。
    查看英文原文Optional budget guard for spend-changing tools. Defaults to 100.
  • X-OpenAI-Ads-API-Key 机密 HTTP header
    来自 Ads Manager 的 OpenAI Ads API 密钥。仅在调用 Ads API 工具时需要;discovery、initialize 和 tools/list 无需该密钥即可工作。
    查看英文原文OpenAI Ads API key from Ads Manager. Required only for Ads API tool calls; discovery, initialize, and tools/list work without it.

说明为自动翻译,变量名保持原样;不确定时请查看原文。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

一览

每周下载量i
206/周
连接方式
电脑或云端
传输方式
stdio, streamable-http
最新版本i
0.1.7
发布到注册中心i
2026年7月22日
代码最后更新i
2026年7月22日
最近检查
2026年11月19日
作者
trakkr-aisearch
软件包
npm: openai-ads-mcp
pypi: openai-ads-mcp
网站
trakkr.ai
注册状态
活跃

哪些应用可以使用它

依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。

通过互联网连接,适用于

ClaudeChatGPTGooseLM 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

全部应用及其优缺点 →

它能做什么

工具名称和描述与服务器在 2026年11月19日 报告的完全一致。这些内容由作者撰写,不是我们写的;我们以纯文本形式显示。

  • 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

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月19日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 trakkr-aisearch 验证,该账户拥有此仓库

  • ✓ 通过

    仍在维护

    代码最后更新于4个月前

  • ✓ 通过

    有许可证

    使用 MIT

  • ✓ 通过

    端点有响应

    在 115 毫秒内响应(HTTP 200)

  • – 不适用

    使用 OAuth 登录

    无需登录

  • ✓ 通过

    工具描述中没有隐藏指令

    已读取 13 个工具描述,未发现针对 AI 的隐藏指令

云端地址最近 5 次检查中有 5 次响应 · 最近一次 115 ms · 检查于 2026年11月19日

已公开的漏洞(OSV.dev)

OSV.dev 中没有 openai-ads-mcp@0.1.7 的记录

只检查这个版本的包本身,不包括所有依赖 · 检查于 2026年11月15日

我们检查什么 → · JSON

作者:申请重新检查或报告信息错误
给作者:在 README 中加徽章

如果你是作者,可把这段代码贴到 README。徽章会链接回本页。

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/trakkr-aisearch-openai-ads-mcp.svg)](https://mcp.popnx.com/en/servers/trakkr-aisearch-openai-ads-mcp)

讨论

提问、分享技巧或报告无法使用。按“有帮助”数量排序。

还没有帖子,欢迎第一个提问或分享。

此处内容由用户撰写,不代表 PopNx 团队。

登录后发帖

用户评价

还没有评价

登录后写评价

与“营销与社交媒体”中的其他服务器比较i

  • 星标数多于此分类中其他 4190 个服务器的 94%
  • 发布到注册中心的时间比此分类中其他 4190 个服务器的 15% 更新
  • 基础检查结果等于或优于此分类中其他 4190 个服务器的 99%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

OpenAI Ads MCP 安全吗?

它在 5 项适用的基础检查中通过了 5 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:OPENAI_ADS_API_KEY

它在我的电脑上运行还是在云端?

两种方式都可以:安装在你的电脑上,或者连接云端版本。

它还在维护吗?

GitHub 仓库最后更新于4个月前,最新版本(0.1.7)于4个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。它通过 URL 连接,因此也能用于接受远程 MCP 的应用,例如网页版 ChatGPT(Business 及以上为完整 MCP;Pro 为只读)。

有什么可以替代它?

同一分类中有:Relaticle, ChatbotX, X (Twitter) MCP Server by Xquik, Betterlytics, BibiGPT YouTube Video Summarizer

功能相近的其他选择

同一分类、其他作者、命令已通过检查。官方的排在前面,再按星标排序。

如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Relaticle

Open-source CRM your AI agents can write to: companies, people, opportunities, tasks and notes.

作者:relaticle正在增长★ 1873今天更新

在云端运行✓ 服务方 · relaticle.com

ChatbotX

Omnichannel customer messaging, CRM contacts, flows, sequences, broadcasts, and AI automation.

作者:ChatbotXIO正在增长★ 1137 整个仓库的星标13天前更新

在云端运行✓ 服务方 · chatbotx.io

Betterlytics

Query your Betterlytics web analytics from AI agents: traffic, funnels, journeys, errors, uptime.

作者:betterlytics正在增长★ 1964个月前更新

在云端运行✓ 服务方 · betterlytics.io
与相似项目对比
本项
OpenAI Ads MCP
RelaticleChatbotXX (Twitter) MCP Server by XquikBetterlyticsBibiGPT YouTube Video Summarizer
运行位置云端或安装在电脑上都可以在云端运行,无需安装在云端运行,无需安装在云端运行,无需安装在云端运行,无需安装在云端运行,无需安装
需要密钥是否否否是否
可在 Claude 中按 + 添加否否否否否否
基础检查5/54/44/44/44/44/4
许可证MITAGPL-3.0NOASSERTIONMITAGPL-3.0MIT
价格登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用

作者的 README

打开 README

按原文从作者的仓库复制。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

只显示了开头部分;其余内容请在仓库中阅读