Skip to main content
Glama

See Adport in action

Watch the Adport demo on YouTube

Watch on YouTube · Watch on adport.dev

Related MCP server: OpenAI Ads MCP Server

What you can do

  • Report across ad accounts. Use provider-native queries or normalized reports with explicit currencies and attribution limits.

  • Review campaign changes before applying them. Inspect supported updates to campaigns, budgets, and status, then approve the exact operation.

  • Audit campaign performance. Find wasted spend, low CTR, CPA outliers, and below-break-even ROAS. Review the evidence and track findings as open, dismissed, or applied.

  • Work in your terminal or AI agent. The CLI, Model Context Protocol (MCP) server, and Cloud use the same provider modules, tool schemas, and policy checks.

Local or Cloud

Run the open-source CLI and stdio MCP server on your own machine or infrastructure, or use Adport Cloud for a managed dashboard, provider connections, and team access. Available operations depend on the provider, your account permissions, and, in Cloud, your plan and project role.

Area

Open-source CLI and MCP

Adport Cloud

Cost

Free under the Apache 2.0 license. You run and maintain the installation.

Free for read-only use. Paid plans add writes and higher limits. See Cloud pricing.

Getting started

Install adport with npm and connect an account with adport connect <provider>.

Create an Adport account, connect a provider in the dashboard, and choose which accounts to enable for your project.

Provider authorization

Supply your own provider application or API credentials. You handle any developer access or approval the platform requires.

Connect through Adport's configured OAuth apps where available. Some integrations, such as OpenAI Ads, use an advertiser API key. Available connections depend on provider access and approval.

Where you work

Local CLI and stdio MCP in compatible clients such as Claude Code and Codex.

Dashboard, hosted REST API, CLI via the Cloud API, and remote MCP for ChatGPT, Claude, Codex, and other compatible clients.

Reporting and findings

Account inventory, reports, and audit findings for the accounts your credentials can access.

Account inventory, reports, and findings for the accounts enabled in each project. Reporting is available on Free.

Active ad accounts

Account access follows your provider credentials and platform limits.

Free, Pro, Growth, and Business allow 3, 5, 20, and 60 active accounts respectively, shared across the organization.

Projects and team access

Credentials, settings, and logs belong to the local installation. Use a separate ADPORT_HOME directory for each local configuration.

Unlimited isolated projects and free read-only viewers. Pro, Growth, and Business include 2, 5, and 15 editing members respectively. Roles and project access.

Campaign changes

Supported writes use your provider permissions and require a preview and approval.

Paid plans let authorized editors preview and apply supported changes with the same approval flow.

Budget caps and protected accounts

Configure safeguards in policy.yaml.

Manage safeguards per project in the dashboard.

Credentials and data

Provider calls go directly from your installation to the platform. Credentials live in a permission-restricted file or your environment. The local tools are telemetry-free.

Adport hosts project data and encrypts provider credentials in a project vault. See the privacy policy.

Approvals and audit history

Pending approvals and append-only JSONL logs are stored locally. You manage retention and backups.

Pending approvals and audit events are stored by project. Audit events record who acted. Free, Pro, Growth, and Business retain 30, 90, 365, and 730 days respectively.

Updates and support

Install updates on your own schedule and use GitHub community support.

Adport operates and updates the service. Use Cloud support for account help.

The Cloud application source is in apps/cloud. See local Cloud development, hosted provider onboarding, and the deployment model for setup and architecture details.

Quick start

Requires Node.js 22.13 or newer. CI tests Node.js 22 and 24.

npm install -g adport
adport --version

To use a real account, follow the provider connection guide to create your own provider application or obtain its required credentials, then connect:

adport connect google
adport doctor
adport accounts --provider google
adport report --provider google --metrics spend,clicks,conversions,roas --range last_7_days

The same adport connect <provider> flow supports all providers below. With no credentials, account and report calls return NOT_CONNECTED.

Connect an AI agent

After installing the CLI and connecting a provider, add the local server to Claude Code:

claude mcp add adport -- adport mcp

For other clients that support stdio MCP, use:

{
  "mcpServers": {
    "adport": {
      "command": "adport",
      "args": ["mcp"]
    }
  }
}

Start with a request such as “Report my campaign performance for the last seven days. Keep currencies separate.” For a change, ask “Preview pausing this campaign and show the before and after.”

The hosted plugin uses Cloud OAuth and a remote endpoint. Its availability and provider permissions are separate from local MCP setup.

Providers

The advertising providers below have local connection commands, normalized reports, and guarded write tools. Check the capability and setup guides for each provider's supported operations and live verification status.

Read-only analytics sources:

Source

Connection ID

Capabilities and setup

Google Analytics 4

ga4

Acquisition outcomes and conversion goals

Google Search Console

gsc

Search analytics, sitemaps, URL inspection

Matomo

matomo

Acquisition outcomes and conversion goals

Provider application approval, account access, and available metrics depend on the platform. The connection guides record prerequisites and testing limits. Reports preserve currency and attribution differences; see reporting semantics before comparing providers.

How write approval works

  1. Call a write tool with the proposed arguments. The first call returns a preview, budget deltas, policy coercions, and a short-lived pending_operation_id.

  2. Review the preview. Policy forces new campaigns to start paused and reports that adjustment in the preview.

  3. Repeat the call with identical arguments and the pending ID to apply it.

The policy engine rejects changed arguments, expired approvals, protected accounts, and budget-cap violations. Applied provider changes go in an append-only audit trail. Recommendations use the same approval flow.

adport tools list
adport audit run
adport recommendations list
adport policy
adport audit show --limit 50

Local state lives under ${ADPORT_HOME:-~/.config/adport}. The local tools store credentials in credentials.json with mode 0600 and read policy from policy.yaml. See the write-safety contract for the full behavior, including provider-side validation limits, and the privacy policy for Cloud data handling.

Development

git clone https://github.com/ynnickw/adport.git
cd adport
corepack enable
pnpm install --frozen-lockfile
pnpm check
pnpm build
pnpm test
pnpm typecheck

The repository pins pnpm in package.json. Advertising credentials are unnecessary for the default build and tests. Optional database and HTTP integration checks are documented in the Cloud development guide.

Path

Purpose

packages/core

Tool registry, policy engine, credentials, audit rules

packages/{provider}

Advertising platform adapters and wire-contract tests

packages/cli, packages/mcp

CLI and stdio MCP adapters

apps/cloud

Hosted dashboard, authorization, REST, remote MCP

supabase

Database migrations and tenant-isolation checks

website, scripts

Public site, generated pages, repository tooling

plugins/adport

Agent plugin manifests and skill

docs

User guides, operations, release and validation records

See the repository structure guide for file ownership, generated assets, and directory conventions.

Contributing and support

Bug fixes, documentation, provider tests, and practical feedback from advertisers are welcome. Start with CONTRIBUTING.md; commits require a DCO sign-off (git commit -s). The release guide explains versioning, verification, and publishing.

Use GitHub issues for reproducible bugs and feature proposals. See SUPPORT.md for help, SECURITY.md for private vulnerability reports, and the Code of Conduct for community expectations.

License

Apache License 2.0.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      C
      maintenance
      Connects AI assistants to Google Ads, Meta Ads, ChatGPT Ads, TikTok Ads and LinkedIn Ads so users can query live campaign performance, budgets and audiences in the account's own currency and prepare changes as proposals that only take effect after explicit approval. Reads run immediately, while every write is staged as an approvable proposal with before/after values, and newly created campaigns, ad sets and ads start paused.
      1
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Lets MCP clients build and manage ChatGPT ad campaigns — campaigns, ad groups, ads, budgets, bids, targeting, audiences, conversion tracking, product feeds and performance reporting — through the OpenAI Ads Advertiser API. Writes are guarded by dry-run mode, confirm words and an audit log with before-snapshots.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants to query advertising spend, ROAS, campaigns, pacing and anomalies across many ad, analytics and commerce platforms, and to make approval-first changes such as pausing campaigns or adjusting budgets after a preview.
      2
      Apache 2.0
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables users to build, edit, transfer, report on, and monitor ad campaigns across Meta, Google, TikTok, Snapchat, and other connected ad platforms from Claude, ChatGPT, and other MCP clients.
      -