Connector guide9-minute read18 MCP tools7 languages

Connect Meta Ads to Microsoft Copilot via MCP

Let your AI analyse your Facebook and Instagram ads: spend, reach, clicks and conversions by campaign, ad set, ad, age, country or placement, plus campaigns, creatives, audiences and change history. Can pause or activate ads and change budgets after confirmation.

HCBy HelpCode teamUpdated 9 min read Open-source on GitHub

No credit card · 7-day trial · Self-host alternative available

Meta Ads

Meta Ads

Let your AI analyse your Facebook and Instagram ads: spend, reach, clicks and conversions by campaign, ad set, ad, age, country or placement, plus campaigns, creatives, audiences and change history. Can pause or activate ads and change budgets after confirmation.

tools

18

Region

INTL

Category

Advertising

Authentication

Bearer Token

Required env vars

META_ADS_ACCESS_TOKENMETA_ADS_ACCOUNT_ID
Install in one click on Cloud

7-day free trial · No credit card

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Open source · AGPL-3.0
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

Summary

Let your AI analyse your Facebook and Instagram ads: spend, reach, clicks and conversions by campaign, ad set, ad, age, country or placement, plus campaigns, creatives, audiences and change history. Can pause or activate ads and change budgets after confirmation.

Guided setup

Connect Meta Ads to Microsoft Copilot in 2 minutes

Start a free trial on AnythingMCP Cloud, connect Meta Ads in the guided setup, then add your MCP URL to Microsoft Copilot. No code and no server to run.

No credit card · 7-day trial · Self-host alternative available

Try asking

Example prompts for Meta Ads

Click any prompt to copy it. Paste into Claude, ChatGPT, Cursor, Gemini, Copilot or OpenClaw to run it against this connector.

Meta Ads · live via MCP
Share
Opus 4.7

Claude is AI and can make mistakes. Please double-check responses.

💡 No install? Use cloud.anythingmcp.com directly. Sign in, click Connectors → Meta Ads, paste your credentials, mint an MCP API key and you're done. No Docker, no git clone, no local server.

Meta Ads + Microsoft Copilot

Let your AI analyse your Facebook and Instagram ads: spend, reach, clicks and conversions by campaign, ad set, ad, age, country or placement, plus campaigns, creatives, audiences and change history. Can pause or activate ads and change budgets after confirmation.

Prerequisites

See the full setup instructions baked into the connector (visible in the in-app store when you select the connector). The required environment variables for this connector are:

META_ADS_ACCESS_TOKEN, META_ADS_ACCOUNT_ID

Step 1 — Get credentials

  1. Open https://developers.facebook.com/apps/creation/ and create an app with the use case Create & manage ads with Marketing API, connected to your business portfolio. This adds the permissions ads_read, ads_management and business_management.
  2. Recommended, a token that never expires: in Business Settings (https://business.facebook.com/settings) open Users → System users and add a system user (role Admin, or Employee for read-only). Under Assign assets, give it your ad account (Manage campaigns, or View performance for read-only). Click Generate token, pick the app, choose Never as expiry and tick ads_read, plus ads_management for status and budget changes. Meta can ask you to verify the business portfolio first (Business Settings → Security Center); until that is done, use the token of step 3.
  3. Quicker, for a test: in the Graph API Explorer (https://developers.facebook.com/tools/explorer/) pick your app and a User Token with ads_read and ads_management. It lasts one or two hours, so open it in the Access Token Debugger (https://developers.facebook.com/tools/debug/accesstoken) and click Extend Access Token to get a 60-day token.
  4. Paste the token into META_ADS_ACCESS_TOKEN (it starts with EA; paste it without the word Bearer). Put the ad account id into META_ADS_ACCOUNT_ID with the act_ prefix, for example act_1234567890. Ads Manager shows the number in the address bar (act=1234567890).
  5. Install the connector and run meta_ads_list_ad_accounts. It lists every ad account the token can reach, with its status, currency and time zone.

Access level: a new app has Limited access (formerly Standard). That is enough for the ad accounts of your own business, but heavily rate limited. Ad accounts of other businesses need Full access (formerly Advanced) through App Review. Leave Require App Secret (App settings → Advanced) switched off: with it on, Meta refuses the connector's calls.

Confirm first: meta_ads_update_status pauses or activates a campaign, ad set or ad, and meta_ads_update_budget changes a daily or lifetime budget. Both act at once and change what you spend: activating starts spending, pausing stops delivery. The AI names the object (name and id), the current and the new value, and waits for your yes. An ad only delivers when the ad, its ad set and its campaign are all ACTIVE. Budgets are whole numbers in the minor unit of the account currency (2000 means 20.00 EUR); currencies such as JPY or KRW have no minor unit.

What it reads: ad accounts, campaigns, ad sets with their targeting, ads with the reason one does not deliver, creatives, custom and lookalike audiences, the change history (who changed what and when) and performance. Insights give spend, reach, clicks and conversions for the account or for one campaign, ad set or ad, for a preset such as the last 7 days or last month or for any dates up to 37 months back, per day if you like, and split by age, gender, country, region or placement.

Common errors: 190: the token is invalid or expired, so create a new one. 10 or 200 to 299: a permission is missing (294 means ads_management) or the token has no access to this ad account. 100: a parameter is wrong; with subcode 1487534 the request is too large, so shorten the period or drop breakdowns. 4, 17, 613, 80000 and 80004 are rate limits: wait a few minutes.

The connector creates nothing: it does not create or edit campaigns, ad sets, ads, creatives or audiences, upload media, or handle lead forms, pixels or the Conversions API.

Step 2 — Install the adapter

curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d

Step 3 — Add the connector in Microsoft Copilot

Your server URL: in AnythingMCP, open MCP Servers → the server this connector is on, and copy its URL (https://cloud.anythingmcp.com/mcp/…). Use it wherever this guide shows YOUR_SERVER_ID.

Microsoft Copilot uses MCP servers through agents built in Copilot Studio: you add AnythingMCP to an agent as a tool, then publish the agent to Microsoft 365 Copilot and Teams. Copilot Studio connects from Microsoft's cloud over Streamable HTTP, which AnythingMCP supports.

  1. In Copilot Studio, open your agent (or create one), go to Tools and choose Add a tool → New tool → Model Context Protocol.
  2. Enter a Server name (for example AnythingMCP), a Server description that says what the connector does, and the Server URL https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID. Copilot Studio uses the description to decide when to call the server.
  3. Under authentication, choose API key, set Type to Header and the header name to X-API-Key, then select Create.
  4. In Add tool, choose Create a new connection, paste an MCP API key from AnythingMCP (MCP Servers → your server → API keys) and select Add to agent.
  5. Try it in the agent's Test pane: ask for something that needs the Meta Ads tools.
  6. Select Publish, then Channels → Microsoft 365 and Microsoft Teams, keep Make agent available in Microsoft Copilot selected and choose Add channel. See agent in Teams installs it for you; in Microsoft 365 Copilot, type @ and pick the agent.

Prefer per-user sign-in? Choose OAuth 2.0 → Dynamic discovery instead of an API key: each user then signs in to AnythingMCP the first time the agent calls it.

Self-hosting? Use your instance's public HTTPS address instead of https://cloud.anythingmcp.com. Copilot Studio connects from Microsoft's cloud, so localhost does not work.

Available tools

ToolWhat it does
meta_ads_list_ad_accountsList the ad accounts the token can reach, with id (act_...), name, account_status (1 active, 2 disabled, 3 unsettled, 7 pending risk…
meta_ads_get_ad_accountRead the ad account in META_ADS_ACCOUNT_ID: name, status, currency, time zone, amount spent, balance, spend cap and minimum daily budget
meta_ads_list_campaignsList the campaigns of the ad account with name, status and effective_status, objective, daily or lifetime budget (minor currency unit), bid…
meta_ads_get_campaignRead one campaign by id: name, status, effective_status, objective, budgets, bid strategy, special ad categories and schedule
meta_ads_list_ad_setsList the ad sets of the ad account with campaign_id, status, budgets, bid strategy, billing event, optimization goal, targeting and schedule
meta_ads_list_campaign_ad_setsList the ad sets of one campaign with status, budgets, optimization goal, targeting and schedule
meta_ads_get_ad_setRead one ad set by id: campaign, status, budgets, bid strategy and amount, billing event, optimization goal, full targeting spec and…
meta_ads_list_adsList the ads of the ad account with ad set, campaign, status, effective_status, creative id and issues_info (why an ad does not deliver)
meta_ads_list_ad_set_adsList the ads of one ad set with status, effective_status, creative and issues_info
meta_ads_get_adRead one ad by id: name, ad set, campaign, status, effective_status, creative and issues_info
meta_ads_get_account_insightsPerformance of the whole ad account for a period: impressions, reach, frequency, clicks, CTR, CPC, CPM, spend, actions (conversions by…
meta_ads_get_insightsPerformance of one campaign, ad set or ad for a period, with the same metrics, periods, breakdowns and levels as…
meta_ads_list_ad_creativesList the ad creatives of the ad account with name, title, body, call to action, link, image and thumbnail URLs, video id and the object…
meta_ads_get_ad_creativeRead one ad creative by id (meta_ads_get_ad shows the creative id of an ad): texts, call to action, link, image and thumbnail, video and…
meta_ads_list_custom_audiencesList the custom and lookalike audiences of the ad account with subtype (CUSTOM, WEBSITE, LOOKALIKE, ENGAGEMENT and others), approximate…
meta_ads_list_account_activitiesChange history of the ad account: who changed what and when (event_type such as update_campaign_run_status or update_ad_set_budget…
meta_ads_update_statusPause or activate a campaign, ad set or ad
meta_ads_update_budgetChange the daily or lifetime budget of a campaign (with campaign budget) or of an ad set (with ad set budgets)

Example prompts

  • "How much did we spend on Facebook and Instagram last month, and which campaign had the lowest cost per purchase?"
  • "Break down the last 30 days of spend and clicks by age, gender and placement."
  • "Which of our ads are not delivering right now, and why?"
  • "Raise the daily budget of our best performing campaign by 20 percent, but show me the current and the new budget before you change it."

FAQ

Which Copilot is this for? Microsoft 365 Copilot at work, through agents built in Copilot Studio. The Microsoft Copilot app for personal accounts has no option to add your own MCP server.

What do I need? A work account with access to Copilot Studio (a license or a trial) to build the agent. People who use it in Microsoft 365 Copilot or Teams need access to the agent: share it with them, or ask an admin to publish it to the organization. If your organization applies data policies to Power Platform connectors, they cover MCP servers too.

The agent doesn't call the tools. Check that the header name is exactly X-API-Key and that the key belongs to the same MCP server as the URL, and make the server description specific: Copilot Studio uses it to decide when to call the server. Publish the agent again after each change; in an open chat, type "start over" to get the new version.

Next steps

Was this guide helpful?

Connect Meta Ads to Microsoft Copilot in 2 minutes

Start a free trial on AnythingMCP Cloud, connect Meta Ads in the guided setup, then add your MCP URL to Microsoft Copilot. No code and no server to run.

Related guides

Connectors

Connect Meta Ads to ChatGPT via MCP

Let your AI analyse your Facebook and Instagram ads: spend, reach, clicks and conversions by campaign, ad set, ad, age, country or placement, plus campaigns, creatives, audiences and change history. Can pause or activate ads and change budgets after confirmation.

Connectors

Connect Meta Ads to Claude via MCP

Let your AI analyse your Facebook and Instagram ads: spend, reach, clicks and conversions by campaign, ad set, ad, age, country or placement, plus campaigns, creatives, audiences and change history. Can pause or activate ads and change budgets after confirmation.

Connectors

Connect Meta Ads to Cursor via MCP

Let your AI analyse your Facebook and Instagram ads: spend, reach, clicks and conversions by campaign, ad set, ad, age, country or placement, plus campaigns, creatives, audiences and change history. Can pause or activate ads and change budgets after confirmation.

Connectors

Connect Meta Ads to Gemini CLI via MCP

Let your AI analyse your Facebook and Instagram ads: spend, reach, clicks and conversions by campaign, ad set, ad, age, country or placement, plus campaigns, creatives, audiences and change history. Can pause or activate ads and change budgets after confirmation.

Connectors

Connect Meta Ads to Meta Muse via MCP

Let your AI analyse your Facebook and Instagram ads: spend, reach, clicks and conversions by campaign, ad set, ad, age, country or placement, plus campaigns, creatives, audiences and change history. Can pause or activate ads and change budgets after confirmation.

Connectors

Meta Ads MCP Server: Campaigns, Insights and Budgets

Let your AI analyse your Facebook and Instagram ads: spend, reach, clicks and conversions by campaign, ad set, ad, age, country or placement, plus campaigns, creatives, audiences and change history. Can pause or activate ads and change budgets after confirmation.