Meta Ads scriptable from Bash.
Pull Facebook & Instagram ad insights, walk the campaign → ad set → ad tree, update budgets and status, and manage audiences — all from the shell over the Meta Ads MCP. No Graph API tokens to juggle.
cogny --who
TWO PATHSAds Manager makes you click through campaign → ad set → ad and export each view. The CLI returns the whole tree as JSON in one call, ready to diff, sort, or feed to an agent. Connect Meta Ads once in Cogny Solo and let your coding agent — or scheduled reports — do the querying for you.
❯ start SoloSelf-onboard with one command. The CLI issues a key, wires nothing, and exposes every Meta Ads tool over JSON-RPC. First 15 calls are free.
$ npx @cogny/cli init --agent claude-codecogny tools call
3 EXAMPLESReal tool names from the Meta Ads MCP. Send --input JSON, get JSON back.
mcp__Meta_Ads__tool_get_insightsPerformance metrics for any account, campaign, ad set, or ad.mcp__Meta_Ads__tool_get_campaignsList campaigns with objective, status, and budget.mcp__Meta_Ads__tool_update_ad_set_budgetShift budget into a winning ad set.cogny tools list
MOREA sample of the rest of the Meta Ads surface. Run cogny tools list --json for every tool and its input schema.
mcp__Meta_Ads__tool_list_ad_accountsmcp__Meta_Ads__tool_get_ad_setsmcp__Meta_Ads__tool_get_adsmcp__Meta_Ads__tool_create_campaignmcp__Meta_Ads__tool_create_ad_setmcp__Meta_Ads__tool_update_campaign_statusmcp__Meta_Ads__tool_update_ad_set_targetingmcp__Meta_Ads__tool_create_lookalike_audiencemcp__Meta_Ads__tool_get_pixelscogny --faq
No — it adds a scriptable surface on top. You keep Ads Manager; the CLI lets you (or your agent) read insights and push approved budget/status changes without clicking through the UI.
You connect Meta once inside Cogny (OAuth). The proxy holds the token; the CLI calls tools with your Cogny key. No long-lived Graph API token in your shell history.
Both. The Meta Ads MCP exposes read tools (insights, campaigns, ad sets) and write tools (create campaign/ad set/ad, update budget/status/targeting, build audiences).
related CLIs
Building an agent? The full tool map for all servers is one fetch: /cli/llms.txt