# Meta Ads (Facebook & Instagram) [Health: Active]

**Category:** 🌐 Social Media  
**Repository:** https://github.com/mcp-dir/meta_ads-mcp  
**GitHub Stars:** 0  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/meta-ads-facebook-instagram

## Description
Read and manage Meta Ads campaigns, ad sets, ads, audiences, pages and Business Manager. You provide

## Tools
Capabilities this server exposes over MCP:

- **meta_ads_list_accounts** — List Meta (Facebook) connections AND the ad accounts inside each — returns `connections[]` (OAuth logins) and `ad_accounts[]` with id (act_XXX), name, currency, timezone, status. Use the ad_account_id in `account` on the other tools.
- **meta_ads_status** — Validate Facebook token, check expiry date, list connected ad accounts and scopes.
- **meta_ads_campaigns** — List Meta Ads campaigns. Returns: id, name, status, objective, budget, dates.
Set include_paused=true to also show paused campaigns.
- **meta_ads_today** — Today's ad performance dashboard. Returns per-ad: spend, revenue, ROAS, CPA, impressions, clicks, CTR. Plus _summary aggregate across all ads.
- **meta_ads_roas** — ROAS (Return on Ad Spend) for a date range using Meta's /insights endpoint — includes spend from ads in ANY status (ACTIVE/PAUSED/DISABLED/ARCHIVED). Defaults to current month, level=ad. For account totals use level=account; for per-campaign view use level=campaign. Returns per-row spend, revenue, ROAS, plus _summary.
- **meta_ads_ads** — List ads with creatives (image, video, copy) and performance insights. Includes spend, revenue, ROAS, actions.
- **meta_ads_realtime** — Hourly realtime dashboard for today. Shows per-ad breakdown with hourly stats, campaign/adset/creative details, plus _summary.
- **meta_ads_adset_detail** — Get detailed ad set info: targeting, budget, schedule, billing, optimization goal, delivery status. Fills the gap between campaigns and ads.
- **meta_ads_pages_list** — Read Facebook Pages data. Actions:
  list — all pages the user manages (name, fan_count, followers)
  insights — page engagement metrics (follows, views) for a specific page
  posts — recent posts with likes, comments, shares
  post_insights — detailed insights for a specific post

[Flattened action: list]

Bulk support: accepts page_ids, post_ids for batched execution.
- **meta_ads_pages_insights** — Read Facebook Pages data. Actions:
  list — all pages the user manages (name, fan_count, followers)
  insights — page engagement metrics (follows, views) for a specific page
  posts — recent posts with likes, comments, shares
  post_insights — detailed insights for a specific post

[Flattened action: insights]

Bulk support: accepts page_ids, post_ids for batched execution.
- **meta_ads_pages_posts** — Read Facebook Pages data. Actions:
  list — all pages the user manages (name, fan_count, followers)
  insights — page engagement metrics (follows, views) for a specific page
  posts — recent posts with likes, comments, shares
  post_insights — detailed insights for a specific post

[Flattened action: posts]

Bulk support: accepts page_ids, post_ids for batched execution.
- **meta_ads_pages_post_insights** — Read Facebook Pages data. Actions:
  list — all pages the user manages (name, fan_count, followers)
  insights — page engagement metrics (follows, views) for a specific page
  posts — recent posts with likes, comments, shares
  post_insights — detailed insights for a specific post

[Flattened action: post_insights]

Bulk support: accepts page_ids, post_ids for batched execution.
- **meta_ads_business_list** — Read Facebook Business Manager data. Actions:
  list — list Business Managers
  accounts — ad accounts owned by a BM
  pages — pages owned by a BM
  users — business users and system users
  pixels — pixels owned by a BM

[Flattened action: list]

Bulk support: accepts business_ids for batched execution.
- **meta_ads_business_accounts** — Read Facebook Business Manager data. Actions:
  list — list Business Managers
  accounts — ad accounts owned by a BM
  pages — pages owned by a BM
  users — business users and system users
  pixels — pixels owned by a BM

[Flattened action: accounts]

Bulk support: accepts business_ids for batched execution.
- **meta_ads_business_pages** — Read Facebook Business Manager data. Actions:
  list — list Business Managers
  accounts — ad accounts owned by a BM
  pages — pages owned by a BM
  users — business users and system users
  pixels — pixels owned by a BM

[Flattened action: pages]

Bulk support: accepts business_ids for batched execution.
- **meta_ads_business_users** — Read Facebook Business Manager data. Actions:
  list — list Business Managers
  accounts — ad accounts owned by a BM
  pages — pages owned by a BM
  users — business users and system users
  pixels — pixels owned by a BM

[Flattened action: users]

Bulk support: accepts business_ids for batched execution.
- **meta_ads_business_pixels** — Read Facebook Business Manager data. Actions:
  list — list Business Managers
  accounts — ad accounts owned by a BM
  pages — pages owned by a BM
  users — business users and system users
  pixels — pixels owned by a BM

[Flattened action: pixels]

Bulk support: accepts business_ids for batched execution.
- **meta_ads_media_list_images** — List uploaded media in the ad account.
Actions: list_images, list_videos.

[Flattened action: list_images]
- **meta_ads_media_list_videos** — List uploaded media in the ad account.
Actions: list_images, list_videos.

[Flattened action: list_videos]
- **meta_ads_audience** — List Custom Audiences in the ad account.
- **meta_ads_campaign_write_create** — Create, update, pause or activate Meta Ads campaigns.
Actions:
  create  — new campaign (name, objective, budget required)
  update  — change name, budget, status
  pause   — shortcut to pause a campaign
  activate — shortcut to activate a campaign
Objectives: OUTCOME_TRAFFIC, OUTCOME_ENGAGEMENT, OUTCOME_LEADS, OUTCOME_SALES, OUTCOME_AWARENESS, OUTCOME_APP_PROMOTION.
Budgets are in cents (e.g. 5000 = $50.00). A budget HERE means campaign budget optimization: the ad sets under it must then NOT carry their own budget. Leave the campaign budget empty to budget per ad set instead.
For destructive delete use meta_ads_campaign_delete.

[Flattened action: create]

Bulk support: accepts campaign_ids for batched execution.
- **meta_ads_campaign_write_update** — Create, update, pause or activate Meta Ads campaigns.
Actions:
  create  — new campaign (name, objective, budget required)
  update  — change name, budget, status
  pause   — shortcut to pause a campaign
  activate — shortcut to activate a campaign
Objectives: OUTCOME_TRAFFIC, OUTCOME_ENGAGEMENT, OUTCOME_LEADS, OUTCOME_SALES, OUTCOME_AWARENESS, OUTCOME_APP_PROMOTION.
Budgets are in cents (e.g. 5000 = $50.00). A budget HERE means campaign budget optimization: the ad sets under it must then NOT carry their own budget. Leave the campaign budget empty to budget per ad set instead.
For destructive delete use meta_ads_campaign_delete.

[Flattened action: update]

Bulk support: accepts campaign_ids for batched execution.
- **meta_ads_campaign_write_pause** — Create, update, pause or activate Meta Ads campaigns.
Actions:
  create  — new campaign (name, objective, budget required)
  update  — change name, budget, status
  pause   — shortcut to pause a campaign
  activate — shortcut to activate a campaign
Objectives: OUTCOME_TRAFFIC, OUTCOME_ENGAGEMENT, OUTCOME_LEADS, OUTCOME_SALES, OUTCOME_AWARENESS, OUTCOME_APP_PROMOTION.
Budgets are in cents (e.g. 5000 = $50.00). A budget HERE means campaign budget optimization: the ad sets under it must then NOT carry their own budget. Leave the campaign budget empty to budget per ad set instead.
For destructive delete use meta_ads_campaign_delete.

[Flattened action: pause]

Bulk support: accepts campaign_ids for batched execution.
- **meta_ads_campaign_write_activate** — Create, update, pause or activate Meta Ads campaigns.
Actions:
  create  — new campaign (name, objective, budget required)
  update  — change name, budget, status
  pause   — shortcut to pause a campaign
  activate — shortcut to activate a campaign
Objectives: OUTCOME_TRAFFIC, OUTCOME_ENGAGEMENT, OUTCOME_LEADS, OUTCOME_SALES, OUTCOME_AWARENESS, OUTCOME_APP_PROMOTION.
Budgets are in cents (e.g. 5000 = $50.00). A budget HERE means campaign budget optimization: the ad sets under it must then NOT carry their own budget. Leave the campaign budget empty to budget per ad set instead.
For destructive delete use meta_ads_campaign_delete.

[Flattened action: activate]

Bulk support: accepts campaign_ids for batched execution.
- **meta_ads_campaign_delete** — Permanently delete a Meta Ads campaign. Irreversible.

Bulk support: accepts campaign_ids for batched execution.
- **meta_ads_adset_write_create** — Create or update Meta Ads ad sets.
Actions:
  create — new ad set linked to a campaign (targeting, budget, schedule)
  update — change fields on existing ad set
Targeting is a JSON object: { "geo_locations": { "countries": ["BR"] }, "age_min": 18, "age_max": 65, "genders": [1, 2] }
Budgets in cents.
BUDGET (most common create failure): the ad set REQUIRES daily_budget or lifetime_budget, UNLESS the parent campaign already carries the budget (campaign budget optimization) — in which case the ad set must NOT send one. lifetime_budget also requires end_time.
optimization_goal must match the campaign objective: OUTCOME_TRAFFIC → LINK_CLICKS / LANDING_PAGE_VIEWS / IMPRESSIONS; OUTCOME_AWARENESS → REACH / IMPRESSIONS; OUTCOME_ENGAGEMENT → POST_ENGAGEMENT / THRUPLAY / PAGE_LIKES / CONVERSATIONS; OUTCOME_LEADS → LEAD_GENERATION / QUALITY_LEAD / OFFSITE_CONVERSIONS; OUTCOME_SALES → OFFSITE_CONVERSIONS / VALUE; OUTCOME_APP_PROMOTION → APP_INSTALLS.
OFFSITE_CONVERSIONS/VALUE need promoted_object with the pixel: {"pixel_id":"123","custom_event_type":"PURCHASE"}. LEAD_GENERATION needs {"page_id":"123"}.
destination_type is only for non-website destinations (MESSENGER, WHATSAPP, PHONE_CALL); omit it for regular website traffic.
For destructive delete use meta_ads_adset_delete.

[Flattened action: create]

Bulk support: accepts adset_ids, campaign_ids for batched execution.
- **meta_ads_adset_write_update** — Create or update Meta Ads ad sets.
Actions:
  create — new ad set linked to a campaign (targeting, budget, schedule)
  update — change fields on existing ad set
Targeting is a JSON object: { "geo_locations": { "countries": ["BR"] }, "age_min": 18, "age_max": 65, "genders": [1, 2] }
Budgets in cents.
BUDGET (most common create failure): the ad set REQUIRES daily_budget or lifetime_budget, UNLESS the parent campaign already carries the budget (campaign budget optimization) — in which case the ad set must NOT send one. lifetime_budget also requires end_time.
optimization_goal must match the campaign objective: OUTCOME_TRAFFIC → LINK_CLICKS / LANDING_PAGE_VIEWS / IMPRESSIONS; OUTCOME_AWARENESS → REACH / IMPRESSIONS; OUTCOME_ENGAGEMENT → POST_ENGAGEMENT / THRUPLAY / PAGE_LIKES / CONVERSATIONS; OUTCOME_LEADS → LEAD_GENERATION / QUALITY_LEAD / OFFSITE_CONVERSIONS; OUTCOME_SALES → OFFSITE_CONVERSIONS / VALUE; OUTCOME_APP_PROMOTION → APP_INSTALLS.
OFFSITE_CONVERSIONS/VALUE need promoted_object with the pixel: {"pixel_id":"123","custom_event_type":"PURCHASE"}. LEAD_GENERATION needs {"page_id":"123"}.
destination_type is only for non-website destinations (MESSENGER, WHATSAPP, PHONE_CALL); omit it for regular website traffic.
For destructive delete use meta_ads_adset_delete.

[Flattened action: update]

Bulk support: accepts adset_ids, campaign_ids for batched execution.
- **meta_ads_adset_delete** — Permanently delete a Meta Ads ad set. Irreversible.

Bulk support: accepts adset_ids for batched execution.
- **meta_ads_creative_write_create_creative** — Create ad creatives and ads (final step to launch).
Actions:
  create_creative — create ad creative with image/video + copy (requires page_id)
  create_ad       — create ad linking creative to ad set
  update_ad       — update ad fields (name, status, creative)
For create_creative: provide image_hash (from upload_image) OR video_id (from upload_video) + page_id + message.
call_to_action_type: LEARN_MORE, SHOP_NOW, SIGN_UP, DOWNLOAD, GET_QUOTE, CONTACT_US, SUBSCRIBE, BOOK_NOW, etc.
For destructive delete use meta_ads_creative_delete.

[Flattened action: create_creative]

Bulk support: accepts page_ids, video_ids, adset_ids, creative_ids, ad_ids for batched execution.
- **meta_ads_creative_write_create_ad** — Create ad creatives and ads (final step to launch).
Actions:
  create_creative — create ad creative with image/video + copy (requires page_id)
  create_ad       — create ad linking creative to ad set
  update_ad       — update ad fields (name, status, creative)
For create_creative: provide image_hash (from upload_image) OR video_id (from upload_video) + page_id + message.
call_to_action_type: LEARN_MORE, SHOP_NOW, SIGN_UP, DOWNLOAD, GET_QUOTE, CONTACT_US, SUBSCRIBE, BOOK_NOW, etc.
For destructive delete use meta_ads_creative_delete.

[Flattened action: create_ad]

Bulk support: accepts page_ids, video_ids, adset_ids, creative_ids, ad_ids for batched execution.
- **meta_ads_creative_write_update_ad** — Create ad creatives and ads (final step to launch).
Actions:
  create_creative — create ad creative with image/video + copy (requires page_id)
  create_ad       — create ad linking creative to ad set
  update_ad       — update ad fields (name, status, creative)
For create_creative: provide image_hash (from upload_image) OR video_id (from upload_video) + page_id + message.
call_to_action_type: LEARN_MORE, SHOP_NOW, SIGN_UP, DOWNLOAD, GET_QUOTE, CONTACT_US, SUBSCRIBE, BOOK_NOW, etc.
For destructive delete use meta_ads_creative_delete.

[Flattened action: update_ad]

Bulk support: accepts page_ids, video_ids, adset_ids, creative_ids, ad_ids for batched execution.
- **meta_ads_creative_delete** — Permanently delete a Meta Ads ad. Irreversible.

Bulk support: accepts ad_ids for batched execution.
- **meta_ads_media_write_upload_image** — Upload images and videos to Meta Ads account.
Actions:
  upload_image        — upload an image. Returns the image hash you need for create_creative.
  upload_video        — upload video from URL (Meta fetches it). Returns video_id.
  get_upload_command  — get a curl command for uploading large local video files (keeps file out of AI context).
upload_image accepts the file in four ways (use exactly one): image_url/file_url (public URL),
upload_id (uploaded via the command this tool hands you), file_base64, or upload_code.
Call upload_image with NO file to get a ready-made upload command for a file on the user's machine.
Facebook CDN links (*.fbcdn.net) are signed, expiring and pinned to the browser that opened them —
they do NOT work as image_url from the server; upload the file instead.
For listing already-uploaded media use meta_ads_media.

[Flattened action: upload_image]

Bulk support: accepts upload_ids for batched execution.
- **meta_ads_media_write_upload_video** — Upload images and videos to Meta Ads account.
Actions:
  upload_image        — upload an image. Returns the image hash you need for create_creative.
  upload_video        — upload video from URL (Meta fetches it). Returns video_id.
  get_upload_command  — get a curl command for uploading large local video files (keeps file out of AI context).
upload_image accepts the file in four ways (use exactly one): image_url/file_url (public URL),
upload_id (uploaded via the command this tool hands you), file_base64, or upload_code.
Call upload_image with NO file to get a ready-made upload command for a file on the user's machine.
Facebook CDN links (*.fbcdn.net) are signed, expiring and pinned to the browser that opened them —
they do NOT work as image_url from the server; upload the file instead.
For listing already-uploaded media use meta_ads_media.

[Flattened action: upload_video]

Bulk support: accepts upload_ids for batched execution.
- **meta_ads_media_write_get_upload_command** — Upload images and videos to Meta Ads account.
Actions:
  upload_image        — upload an image. Returns the image hash you need for create_creative.
  upload_video        — upload video from URL (Meta fetches it). Returns video_id.
  get_upload_command  — get a curl command for uploading large local video files (keeps file out of AI context).
upload_image accepts the file in four ways (use exactly one): image_url/file_url (public URL),
upload_id (uploaded via the command this tool hands you), file_base64, or upload_code.
Call upload_image with NO file to get a ready-made upload command for a file on the user's machine.
Facebook CDN links (*.fbcdn.net) are signed, expiring and pinned to the browser that opened them —
they do NOT work as image_url from the server; upload the file instead.
For listing already-uploaded media use meta_ads_media.

[Flattened action: get_upload_command]

Bulk support: accepts upload_ids for batched execution.
- **meta_ads_audience_write_create** — Manage Custom Audiences for targeting.
Actions:
  create     — create a new custom audience
  add_users  — upload hashed user data (email, phone, first/last name). PII is SHA-256 hashed before upload.
Users format: array of { email, phone?, fn?, ln? }. Data is normalized and hashed automatically.
For destructive delete use meta_ads_audience_delete.

[Flattened action: create]

Bulk support: accepts audience_ids for batched execution.
- **meta_ads_audience_write_add_users** — Manage Custom Audiences for targeting.
Actions:
  create     — create a new custom audience
  add_users  — upload hashed user data (email, phone, first/last name). PII is SHA-256 hashed before upload.
Users format: array of { email, phone?, fn?, ln? }. Data is normalized and hashed automatically.
For destructive delete use meta_ads_audience_delete.

[Flattened action: add_users]

Bulk support: accepts audience_ids for batched execution.
- **meta_ads_audience_delete** — Permanently delete a Custom Audience. Irreversible.

Bulk support: accepts audience_ids for batched execution.
- **show_version** — Show the current MCP platform and adapter versions.
- **report_bug** — Report a bug, missing feature, or send feedback. Include the conversation array with recent messages for reproduction.
- **connect** — Returns connection status and URLs. When all providers are connected, returns authenticated:true and empty pending[]. When credentials are missing, returns connect_url for the toolkit and per-install URLs.
- **toolkit_info** — Returns the current toolkit state: installed MCPs, their connection status, the accounts connected to each one, and how many catalog tools each exposes.
- **marketplace** — The official mcp.ai marketplace — the in-platform catalog of every MCP/tool, AND the way to run them. Covers capability requests like "find an MCP that does X", "consulta um CPF", "is there a tool for Y". Core flow: action=search discovers MCPs by intent → describe returns one MCP's full profile (every tool with its id + params, pricing, auth) so you pick the right tool_id → invoke RUNS that tool. KEY: invoke works even when the MCP is NOT installed — it runs the tool pontualmente (one-off), without adding the MCP to the toolkit and without bloating the tool list. If the MCP needs a credential/login, invoke returns a connect link; if it is paid and the wallet is empty, invoke returns a checkout/top-up link (the user opens it, then you retry). Use install only to make an MCP PERMANENT in the active toolkit (its tools then show up natively in future sessions); prefer invoke for a single/occasional use. list_tools lists what is callable right now. subscribe/cancel handle per-MCP billing; report_bug sends feedback; request_mcp asks us to build a NEW MCP when nothing fits. Search/describe flag installed_in_toolkit vs installed_in_workspace. Writes (install/uninstall/subscribe/cancel and the one-off install behind invoke) require workspace owner/admin. It also carries the mcp.ai PROMPT LIBRARY, which is about ready-made prompt TEXT rather than MCPs: search_prompts finds one, get_prompt returns its full text with {{variables}} filled, and publish_prompt saves a prompt and returns a shareable mcp.ai/p/<slug> link that opens without login.
- **authenticate** — MCP.AI for IDE agents (Cursor, etc.): log in in the browser, copy the access token. Best: add it to this server's config as a header `Authorization: Bearer <token>` for a permanent, non-expiring connection. Or paste it here for a session-only login: call with { token: "<jwt>" } after the user pastes, or with no args to get the link.

## Claude Desktop Quick Installation
Remote MCP endpoint (confidence: high). Install path detected from listing signals. Add as a URL/SSE server in your client:

```json
"mcpServers": {
  "meta-ads-facebook-instagram": {
    "url": "https://api.mcp.ai/p_meta_ads"
  }
}
```

## Documentation

## What Meta Ads (Facebook & Instagram) does

Meta Ads (Facebook & Instagram) MCP server exposes Meta advertising and related Facebook account operations to AI clients through MCP. The toolset covers account discovery, token status, campaign reporting, ad performance, audiences, Pages, media assets, and Business Manager resources.

The server includes both read and write operations. Read tools can return campaign status, objectives, budgets, dates, ad creatives, performance insights, daily results, hourly results, ROAS for a selected date range, ad set targeting and delivery details, managed Pages, Page engagement, recent posts, uploaded media, Custom Audiences, and Business Manager records.

Write tools can create, update, pause, activate, or delete campaigns; create or update or delete ad sets; create, update, or delete ads and creatives; upload images and videos; and create, populate, or delete Custom Audiences. Deletion operations are described as permanent in the tool list, so they should be used with care.

## How it works

The hosted endpoint is `https://api.mcp.ai/p_meta_ads`. An MCP client sends tool calls to that URL, and the service uses the supplied Meta credentials to access connected advertising accounts. The account-listing tool returns both Meta connections and the ad accounts within them, including identifiers such as `act_XXX`, names, currencies, time zones, and account status.

`meta_ads_status` checks the Facebook token, its expiry date, connected ad accounts, and scopes. Reporting tools query account data for current-day, hourly, or date-range views. The ROAS tool uses Meta’s insights data and includes spend from ads regardless of whether they are active, paused, disabled, or archived.

## Setup and configuration

Provide a long-lived Meta access token and the Facebook App ID, specified by the project as `FB_API_ID`. Configure the endpoint in an MCP client that supports MCP over HTTP. The README provides installation paths for Claude Web and Desktop, Cursor, and VS Code, and states that ChatGPT, Manus, OpenClaw, and other MCP-over-HTTP clients can use the same URL.

The repository’s public wrapper and documentation are MIT licensed, while the hosted MCP service at `api.mcp.ai/p_meta_ads` is proprietary. The service is listed as free. Data returned by tools is sent to the selected LLM host, which the project identifies as a subprocesser outside its control.

## Tools and capabilities

The Meta Ads (Facebook & Instagram) MCP server includes tools for:

- Listing accounts and validating credentials.
- Reading campaigns, ads, ad sets, creatives, insights, spend, and ROAS.
- Reading Facebook Pages, Page metrics, and recent posts.
- Reading Business Manager accounts, Pages, users, and pixels.
- Listing and uploading images and videos.
- Listing, creating, populating, and deleting Custom Audiences.
- Creating, updating, activating, pausing, and deleting campaigns, ad sets, ads, and creatives.

## Limitations and notes

The Meta Ads (Facebook & Instagram) MCP server requires valid Meta credentials and access to the relevant accounts and scopes. It also does not claim support for every MCP client individually, only that clients with MCP-over-HTTP support can connect.

Because tool results are forwarded to the chosen LLM host, review that host’s data-handling and training settings before sending advertising, audience, Page, or Business Manager data. Confirm destructive actions before using campaign, ad set, ad, or audience deletion tools.

_Full upstream README: https://allmcps.com/mcp/meta-ads-facebook-instagram/readme_

