npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

openai-ads-mcp

v0.1.6

Published

Typed MCP server for OpenAI Ads and ChatGPT Ads via the Advertiser API

Readme

openai-ads-mcp for Node

Node runtime for openai-ads-mcp, a typed MCP server for OpenAI's Advertiser API.

It exposes the same tools, arguments, defaults, readonly mode, and budget guard as the Python package.

Quickstart

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

Readonly mode hides every write tool from tools/list. Unset OPENAI_ADS_MCP_READONLY only after you have confirmed the account and reviewed existing campaigns.

Local Development

npm install
npm run build
npm test
OPENAI_ADS_MCP_READONLY=1 node dist/index.js

Streamable HTTP

For hosted or team deployments, start the Node runtime with Streamable HTTP:

export OPENAI_ADS_MCP_HTTP_TOKEN="choose_a_long_random_token"
npx -y openai-ads-mcp --http

The MCP endpoint is /mcp, the health endpoint is /healthz, and remote mode is read-only by default. Set OPENAI_ADS_MCP_HTTP_ALLOW_WRITES=1 only when write tools should be visible over HTTP. Clients can pass X-OpenAI-Ads-API-Key per request, or the server can use a server-side OPENAI_ADS_API_KEY.

For public hosted endpoints, use OPENAI_ADS_MCP_HOSTED_PUBLIC=1. Hosted public mode forces readonly mode, rejects server-side OPENAI_ADS_API_KEY, blocks X-OpenAI-Ads-API-Base-Url, requires OPENAI_ADS_MCP_TELEMETRY_SALT, exposes /.well-known/mcp/server-card.json, and logs only redacted summaries.

Environment

| Variable | Purpose | | --- | --- | | OPENAI_ADS_API_KEY | Required bearer key for https://api.ads.openai.com/v1. | | OPENAI_ADS_API_BASE_URL | Optional HTTPS override for tests or proxies. | | OPENAI_ADS_MCP_READONLY | Set to 1 or true to register read tools only. | | OPENAI_ADS_BUDGET_CEILING_USD | Optional budget guard. Default 100. | | OPENAI_ADS_MCP_HTTP_TOKEN | Optional bearer token for hosted HTTP mode. | | OPENAI_ADS_MCP_HTTP_ALLOW_WRITES | Set to 1 to expose write tools in HTTP mode. | | OPENAI_ADS_MCP_HOSTED_PUBLIC | Set to 1 for the public read-only hosted endpoint safety profile. | | OPENAI_ADS_MCP_TELEMETRY_SALT | Required in hosted public mode for IP, API-key, and text hashes. | | OPENAI_ADS_MCP_HOSTED_DISABLED | Set to 1 to make /mcp return 503 while /healthz remains available. | | OPENAI_ADS_MCP_EDGE_SECRET | Optional shared secret expected in X-Trakkr-Edge-Secret when a Worker is in front. |

Full docs live in the repository root README.