
Openai Ads Mcp
io.github.HYPD-AIPublished by GitHub account HYPD-AIv0.1.3Updated Oct 24, 2026
Read-only MCP server for the OpenAI Ads API: campaigns, ad groups, ads, and insights.
Overview
Read-only MCP server that lets an assistant query OpenAI Ads accounts, campaigns, ad groups, ads and performance insights.
- What you can do
- Check the ad account tied to the configured key and confirm connectivity, and list or fetch individual campaigns and ad groups with budgets, targeting and bidding settings, and list or fetch ads with creative and review status, and pull performance insights for the account, a campaign, an ad group or a single ad over a date range, with daily or aggregate granularity, field selection, sorting, filters and cursor pagination, and return the API's JSON as-is with HTTP status and error bodies surfaced.
- When to use it
- Useful when you want to ask an assistant natural-language questions about your OpenAI Ads performance, such as active campaigns and budgets, spend, clicks and CTR over a period, or which ads are pending review, without opening the ads dashboard.
- Requirements
- Runs locally over stdio, typically launched with npx, so Node.js 20 or newer is needed. Requires an OpenAI Ads API key supplied in the OPENAI_ADS_API_KEY environment variable; each key is scoped to a single ad account, and accounts are currently US-only. Network access to the OpenAI Ads API is required; an optional OPENAI_ADS_BASE_URL can override the endpoint.
Installation
In SourceWeft
- Open Openai Ads Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
openai-ads-mcp
A Model Context Protocol (MCP) server for the OpenAI Ads (Advertiser) API. It lets MCP-compatible clients — Claude Desktop, Cursor, VS Code, and others — read your OpenAI Ads campaigns, ad groups, ads, and performance insights through natural language.
[npm] [CI] [License: MIT] [Node] [MCP]
Read-only. This first release only reads data — it never creates, edits, or pauses anything and never spends budget. Write actions are on the roadmap.
Unofficial. This is a community project and is not affiliated with or endorsed by OpenAI. See the disclaimer.
Overview
The OpenAI Ads API exposes an advertiser's account, campaigns, ad groups, ads, and reporting. This server wraps the read endpoints of that API as MCP tools so an AI assistant can answer questions like:
- "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 campaign
cmp_123over the last 30 days, by day." - "Which ads in ad group
adg_456are still pending review?"
Features
- 11 read-only tools covering 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 the micros convention so the assistant can present human-readable currency.
- Cursor pagination passthrough (
limit,order,after,before). - Zero-install via
npx—npx -y @hypd-ai/openai-ads-mcp, no clone or build.
Tools
Insights tools accept since/until (YYYY-MM-DD) for the reporting window, plus time_granularity (daily/none), aggregation_level, fields, sort, filters, limit (1–10000), and after/before cursors.
Prerequisites
- Node.js 20 or newer.
- An OpenAI Ads API key. Create an Ads account at ads.openai.com (currently US-only), then issue a key from Settings → ads.openai.com/settings. See the quickstart and authentication docs. Each key is scoped to a single ad account.
Installation & configuration
MCP clients launch the server as a subprocess and pass your API key via an environment variable.
Published on npm as
@hypd-ai/openai-ads-mcp—npxfetches it for you, so there's nothing to clone or build. To run the latest unreleasedmaininstead, replace@hypd-ai/openai-ads-mcpwithgithub:HYPD-AI/openai-ads-mcp(its first launch builds from source — see Running from source).
Add the snippet for your client below.
Claude Desktop
Edit your claude_desktop_config.json:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Restart Claude Desktop, then ask: "Use the openai-ads tools to look up my ad account."
Cursor
Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (per-project):
VS Code
Add to .vscode/mcp.json. VS Code can prompt for the key and store it as a secret via inputs:
Other MCP clients
Any client that speaks MCP over stdio works. Run npx -y @hypd-ai/openai-ads-mcp (or node /path/to/dist/index.js) with OPENAI_ADS_API_KEY set in the environment.
Configuration
See .env.example.
A note on "micros"
Fields whose names end in _micros — for example a campaign's lifetime_spend_limit_micros or an ad group's max_bid_micros — are expressed in micros:
So a lifetime_spend_limit_micros of 25000000 is $25.00. Divide a _micros value 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 like
spend,cpc, andcpmare already in the account's currency as decimals (e.g.spend: 42.75means $42.75).
Read-only by design
This release registers only read (GET) tools — and each one is annotated with the MCP readOnlyHint, 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 (see Roadmap).
Running from source
Then point your MCP client at the built entry file:
Try it with the MCP Inspector
Development
Project layout:
How tools map to the API
All endpoints are under the base URL (default https://api.ads.openai.com/v1).
Roadmap
- ✍️ Write actions — create & update (via
POST) 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 API support.
- 🌐 Remote/HTTP transport for hosted deployments.
- 📦 Published npm release so
npx -y openai-ads-mcpworks out of the box.
Contributing
Contributions are welcome! Please read CONTRIBUTING.md. In short: open an issue to discuss substantial changes, keep npm run lint && npm run typecheck && npm test green, and add tests for new behavior.
Disclaimer
This is an unofficial, community-built project. It is not 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 the license.
License
MIT © HYPD AI
Source: README.md at commit d96ee62
Tools
0Version history
1- v0.1.3LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts