Meta Ads MCP server

On Meta Ads, an agent on PubNio's hosted MCP server runs 10 of the 12 ad operation kinds. campaign.activate and budget.update are human-only and come back with a link to the web app.

Live ad providerView as Markdown

What PubNio supports from an agent on Meta

code-mode-flow.txt
search   ads.validateCampaignPlan, ads.createCampaignPlan
execute  ads.listAccounts, keep provider "meta_ads"
execute  ads.validateCampaignPlan "Trail shoe engagement": valid, no provider call
execute  ads.createCampaignPlan, key plan-meta-ads-1: 202 queued
execute  ads.activateCampaign: 403 human_actor_required, then stop

From "Put 40 a day behind our trail shoe post for US and Canada runners", the agent picks the engagement objective, which Meta receives as OUTCOME_ENGAGEMENT, and a 40 USD daily budget, names the campaign "Trail shoe engagement", and fills the ad group "Trail runners, US and Canada" with the ad "Grip on wet rock". Its audience is {"geo_locations":{"countries":["US","CA"]}}. What only Meta reads travels in plan.adGroups[0].ads[0].creative.providerSettings (imageHash).

Before it validates, the agent asks the person which Facebook Page the ad runs as, which countries, regions, cities, or zips to reach, where the ad links, and which uploaded image to use.

The writes an agent can run here are ads.createCampaignPlan, ads.createCreative, ads.createAdGroup, ads.attachAd, ads.duplicateCampaign, ads.pauseCampaign, ads.archiveCampaign, ads.setAdGroupStatus, ads.setAdStatus and ads.createBoost.

Spend controls

  • An agent can pause, archive, and turn on the kill switch; a person resumes spend and clears it in the console.

Connect your agent

terminal.sh
claude mcp add --transport http pubnio https://pubnio.com/mcp

Limits

  • What an agent creates stays inert: a create leaves `status: PAUSED` on the campaign, ad set, and ad.