Hypd Ai Openai Ads
About
Enable AI agents such as Claude, Co-Pilot, Codex, and other compatible tools to create, manage, and optimize advertising campaigns on ChatGPT.
Details
- Author
- HYPD-AI
- Downloads
- 128
- Categories
- Marketing, Other, AI
Jump to
- Enables AI agents to create advertising campaigns
- Manage advertising campaigns on ChatGPT
- Optimize advertising campaigns for performance
- Compatible with Claude, Co-Pilot, Codex, and others
—
Read-only.This first release onlyreadsdata — it never creates, edits, or pauses anything and never spends budget. Write actions are on theroadmap.
Unofficial.This is a community project and isnot affiliated with or endorsed by OpenAI. See thedisclaimer.
- "Is my OpenAI Ads API key working? What account is it tied to?"
- "List my active campaigns and their budgets."
- "Show spend, clicks, and CTR for campaigncmp_123over the last 30 days, by day."
- "Which ads in ad groupadg_456are still pending review?"
- 11 read-only toolscovering the account, campaigns, ad groups, ads, and insights at every level.
- Faithful responses— the API's JSON is returned as-is, so nothing is lost in translation.
- Clear errors— HTTP status and the API error body are surfaced to the model instead of being swallowed.
- Micros-aware— every tool description explains themicros conventionso the assistant can present human-readable currency.
- Cursor paginationpassthrough (limit,order,after,before).
- Zero-installvianpx—npx -y @hypd-ai/openai-ads-mcp, no clone or build.
Insights tools acceptsince/until(YYYY-MM-DD) for the reporting window, plustime_granularity(daily/none),aggregation_level,fields,sort,filters,limit(1–10000), andafter/beforecursors.
- Node.js 20 or newer.
- An OpenAI Ads API key.Create an Ads account atads.openai.com(currentlyUS-only), then issue a key fromSettings→ads.openai.com/settings. See thequickstartandauthenticationdocs. Each key isscoped to a single ad account.
MCP clients launch the server as a subprocess and pass your API key via an environment variable.
Published on npmas@hypd-ai/openai-ads-mcp—npxfetches it for you, so there's nothing to clone or build. To run the latestunreleasedmaininstead, replace@hypd-ai/openai-ads-mcpwithgithub:HYPD-AI/openai-ads-mcp(its first launch builds from source — seeRunning from source).
- macOS:~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:%APPDATA%\Claude\claude_desktop_config.json
{ "mcpServers": { "openai-ads": { "command": "npx", "args": ["-y", "@hypd-ai/openai-ads-mcp"], "env": { "OPENAI_ADS_API_KEY": "your-openai-ads-api-key" } } } }
Restart Claude Desktop, then ask:"Use the openai-ads tools to look up my ad account."
Add to~/.cursor/mcp.json(global) or.cursor/mcp.json(per-project):
{ "mcpServers": { "openai-ads": { "command": "npx", "args": ["-y", "@hypd-ai/openai-ads-mcp"], "env": { "OPENAI_ADS_API_KEY": "your-openai-ads-api-key" } } } }
Add to.vscode/mcp.json. VS Code can prompt for the key and store it as a secret viainputs:
{ "inputs": [ { "type": "promptString", "id": "openai_ads_api_key", "description": "OpenAI Ads API key", "password": true } ], "servers": { "openai-ads": { "command": "npx", "args": ["-y", "@hypd-ai/openai-ads-mcp"], "env": { "OPENAI_ADS_API_KEY": "${input:openai_ads_api_key}" } } } }
Any client that speaks MCP overstdioworks. Runnpx -y @hypd-ai/openai-ads-mcp(ornode /path/to/dist/index.js) withOPENAI_ADS_API_KEYset in the environment.
Fields whose names end in_micros— for example a campaign'slifetime_spend_limit_microsor an ad group'smax_bid_micros— are expressed in micros:
1,000,000 micros = 1 unit of the account's currency (e.g. $1.00 = 1,000,000 micros)
So alifetime_spend_limit_microsof25000000is$25.00. Divide a_microsvalue by 1,000,000 to display a human amount, or multiply by 1,000,000 to convert the other way.
Insights metrics are not micros.Reporting values likespend,cpc, andcpmare already in the account's currency as decimals (e.g.spend: 42.75means $42.75).
This release registersonly read (GET) tools— and each one is annotated with the MCPreadOnlyHint, so well-behaved clients know it cannot mutate state. There is no tool here that can create, edit, pause, or delete anything, and nothing that can spend budget. Write actions will arrive as a deliberate, separately reviewed step (seeRoadmap).
git clone https://github.com/hypd-ai/openai-ads-mcp.git cd openai-ads-mcp npm install npm run build
Then point your MCP client at the built entry file:
{ "mcpServers": { "openai-ads": { "command": "node", "args": ["/absolute/path/to/openai-ads-mcp/dist/index.js"], "env": { "OPENAI_ADS_API_KEY": "your-openai-ads-api-key" } } } }
OPENAI_ADS_API_KEY=your-key npx @modelcontextprotocol/inspector node dist/index.js
npm install # install dependencies npm run dev # rebuild on change (tsup --watch) npm run typecheck # tsc --noEmit npm run lint # eslint npm run format # prettier --write npm test # vitest npm run build # bundle to dist/
src/ index.ts # bin entry: load config, build server, connect stdio server.ts # buildServer(): McpServer + register all tools client.ts # OpenAIAdsClient: auth, URL building, errors config.ts # environment parsing & validation schemas.ts # shared zod shapes (pagination, insights) + micros note tools/ # one file per resource (account, campaigns, ad-groups, ads, insights) test/ # vitest specs (config, client, in-memory server)
All endpoints are under the base URL (defaulthttps://api.ads.openai.com/v1).
- ✍️Write actions— create & update (viaPOST) campaigns, ad groups, and ads, plus the dedicated state transitions (POST .../activate,.../pause,.../archive). The HTTP client already supportsPOST; these will be gated behind an explicit opt-in, since they change delivery and spend.
- 🖼️Creative uploads—POST /upload(JSONimage_urlormultipart/form-data) to attach images to ad creatives.
- 🌍Campaign targeting— country include/exclude (targeting.locations.countries).
- 📈Conversions APIsupport.
- 🌐Remote/HTTP transportfor hosted deployments.
- 📦Published npm releasesonpx -y openai-ads-mcpworks out of the box.
Contributions are welcome! Please readCONTRIBUTING.md. In short: open an issue to discuss substantial changes, keepnpm run lint && npm run typecheck && npm testgreen, and add tests for new behavior.
This is anunofficial, community-built project. It isnot affiliated with, endorsed by, or sponsored by OpenAI. "OpenAI" and related names and logos are trademarks of OpenAI. Your use of the OpenAI Ads API through this tool is subject to OpenAI's terms and policies. The tool is provided "as is", without warranty of any kind — see thelicense.
Free MCP that drives an audit of your marketing. Your AI connects, adsOS digs through your ads, email and site, and hands back a growth plan you can run today.
AI marketing agent for paid social that handles ad creative generation and Meta ads campaign management, usable via MCP for one-action Meta lead-gen campaigns.
Open-source skills that empower any AI agent (Claude, Cursor, Codex, Hermes, etc.) to generate end-to-end marketing campaigns — UGC videos, ad videos, product photography and more.
Manage digital advertising campaigns with AI-powered insights from Adspirer.com.
Viomba MCP exposes Viomba's AI-powered ad intelligence suite as MCP tools.
Manage Meta, Google & TikTok ads — launch campaigns, track performance, spy on competitors, generate AI creatives.
AI marketing analyst that connects Google Ads, Meta Ads, GA4, Search Console, and Stripe to audit campaigns, analyze funnels, and catch wasted ad spend from one chat.
The write-capable Google Ads MCP: manage Google Ads from Claude, ChatGPT or Copilot on your command — and it can never delete.
Allow automated workflows to control your digital advertising campaigns across multiple channels including Connected TV (CTV), Digital Roadside Billboards (digital out-of home or DooH), Internet Display & Native, and Streaming Audio, geographic & audience targeting within automated workflows.
Perplexity for social: ask what competitors are running across social and get answers grounded in real ad and creative data, not guesses.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.




