Adport

Your agent proposes. You see the diff. Then it runs. Review ad performance with your AI assistant and preview/approve every campaign change across 13 ad platforms via MCP.

Barındırılan MCP Sunucusu

npx add-mcp 'https://app.adport.dev/mcp'

Claude Code, Codex, Cursor ve daha fazlasına kurulur

Dokümantasyon

Adport website

Adport

Open-source ad management for AI agents.
Report on campaigns and preview changes across your ad accounts through MCP or the CLI.

CI npm version Apache 2.0 license

Try Adport Cloud · Run locally · Compare local and Cloud · Read the docs

Website · Releases · Support · Contributing

Connect your ad accounts
Google Ads · Meta Ads · TikTok Ads · Apple Ads · Microsoft Advertising · All platforms

Connect an AI agent
ChatGPT · Claude · Claude Code · Codex · MCP setup

See Adport in action

Watch the Adport demo on YouTube

Watch on YouTube · Watch on adport.dev

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.

AreaOpen-source CLI and MCPAdport Cloud
CostFree 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 startedInstall 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 authorizationSupply 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 workLocal 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 findingsAccount 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 accountsAccount 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 accessCredentials, 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 changesSupported 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 accountsConfigure safeguards in policy.yaml.Manage safeguards per project in the dashboard.
Credentials and dataProvider 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 historyPending 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 supportInstall 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.

Glama listing

The open-source server is listed on Glama. That listing shows Glama's maintenance score for the repository.

Adport MCP server on Glama

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.

ProviderConnection IDCapabilities and setup
Google AdsgoogleGAQL, campaigns, ad groups, keywords, RSA copy/status, budgets, bidding
Meta AdsmetaInsights, ads, creatives/media, targeting, audiences, budgets, status
TikTok AdstiktokReports, campaigns, budgets, status, sandbox support
Apple AdsappleCampaigns, ad groups, keywords, creatives, reports
Microsoft AdvertisingmicrosoftDetailed reports, campaigns, ad groups, keywords/exclusions, RSAs, images/extensions, targeting, budgets, status
Reddit AdsredditCampaign children, creative/media, structured posts, targeting, reports
Snapchat AdssnapchatCampaign hierarchy, creative/media, targeting, audiences, measurement
Spotify AdsspotifyReports, unpublished drafts, campaign status, ad-set delivery
Pinterest AdspinterestDiscovery, reports, campaigns, budgets, status
LinkedIn AdslinkedinCampaigns/groups, targeting, bids, text creatives and image library
X AdsxCampaigns, line items, targeting, draft creatives, cards/media and analytics
OpenAI AdsopenaiAds in ChatGPT: reports, campaigns, ad groups, ads, status, spend limits
GravitygravityAds in AI assistants, campaigns, ads, budgets, conversion tracking and reporting

Read-only analytics sources:

SourceConnection IDCapabilities and setup
Google Analytics 4ga4Acquisition outcomes and conversion goals
Google Search ConsolegscSearch analytics, sitemaps, URL inspection
MatomomatomoAcquisition 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.

PathPurpose
packages/coreTool registry, policy engine, credentials, audit rules
packages/{provider}Advertising platform adapters and wire-contract tests
packages/cli, packages/mcpCLI and stdio MCP adapters
apps/cloudHosted dashboard, authorization, REST, remote MCP
supabaseDatabase migrations and tenant-isolation checks
website, scriptsPublic site, generated pages, repository tooling
plugins/adportAgent plugin manifests and skill
docsUser 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.