# Meta Ads [Health: Active]

**Category:** 🎯 Marketing  
**Repository:** https://github.com/get-mcp-ads/meta-ads-mcp-server  
**GitHub Stars:** 0  
**npm Downloads (last month):** 2282  
**Views:** 11  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/meta-ads

## Description
Meta (Facebook and Instagram) Ads: 34 read tools and 10 write tools that preview first.

## Tools
Capabilities this server exposes over MCP:

- **meta_health_check** — Read-only connection diagnostic: inspects token identity and granted permissions, and lists accessible ad accounts without exposing the access token. Unavailable checks remain unknown; granted scopes do not prove app access level or clearance of Meta security checkpoints.
- **meta_get_business_assets** — Discover accessible Meta Business assets read-only: businesses, pages, Instagram accounts, pixels, and datasets when permissions allow.
- **meta_get_pages** — List accessible Facebook Pages with id, name, category, tasks, picture, and linked Instagram account references when available.
- **meta_get_instagram_accounts** — List Instagram accounts linked to accessible Pages, Business Manager assets, or an ad account when permissions allow.
- **meta_get_pixels** — List pixels and datasets from an ad account or Business Manager when accessible, returning actionable warnings for permission-limited edges.
- **meta_get_ad_activity** — Read ad account activity logs from /{ad_account_id}/activities with object, event, actor, timestamp, and extra_data fields.
- **meta_get_delivery_diagnostics** — Aggregate read-only delivery diagnostics across campaigns, ad sets, and ads using status/effective_status/issues_info where available plus simple delivery insights.
- **meta_get_creative_assets** — Return ad-linked creative media with actual ad names, collection covers, all carousel/flexible components, resolved image hashes and video URLs. Catalog-only ads are classified separately; use the hosted GetMCPAds service for an interactive visual gallery. Raw creative metadata remains available for diagnostics.
- **meta_get_audience_details** — Read detailed custom, saved, and lookalike audiences with pagination and rich fields where permissions allow.
- **meta_get_catalog_products** — Read Product Catalogs and Product Items when catalog access is available. Returns join-ready product metadata without creating or updating catalog assets.
- **meta_join_product_insights** — Query product-breakdown insights and enrich rows with Product Catalog metadata when catalog access is available.
- **meta_get_brand_safety_controls** — Read brand safety, suitability, placement, and context-control signals from ad account/ad set targeting and optional block-list edges.
- **meta_interpret_experiment_results** — Read and interpret A/B test or conversion lift study results with confidence guardrails, cells, objectives, and optional cell entities.
- **meta_get_organic_content_enrichment** — Read Facebook Page posts and Instagram media with URLs, native periods and optional insights. These are content insights, not Ads Insights; do not infer an organic-only breakdown.
- **meta_list_ad_accounts** — List all Meta ad accounts accessible with the current token. Returns account ID, name, currency, timezone, and status.
- **meta_get_account_details** — Get detailed information for a specific Meta ad account: name, currency, timezone, spend cap, status, business info.
- **meta_get_campaigns** — List campaigns for a Meta ad account. Returns campaign ID, name, status, objective, budget, and bid strategy.
- **meta_get_adsets** — List ad sets for a Meta ad account, optionally filtered by campaign. Returns targeting, budget, optimization, and schedule info.
- **meta_get_ads** — List ads for a Meta ad account, optionally filtered by ad set. Returns ad ID, name, status, and creative reference.
- **meta_get_insights** — Query Meta Ads performance insights. Supports 170+ metrics, 43+ breakdowns with intelligent query planning.
Use meta://metrics resource to see available metrics. Use meta://breakdowns for available breakdowns.
The query planner automatically splits incompatible metric/breakdown combinations into multiple API requests and merges results.
For purchases, leads or conversion analysis, request actions (and action_values for revenue) or explicit metrics such as purchases, omni_purchases or leads. The native conversions field is not a universal conversion total, and its absence does not mean purchases or leads are unavailable. Label the exact action_type and never sum overlapping purchase types.
- **meta_get_campaign_structure** — Get hierarchical campaign structure: campaigns -> ad sets -> ads. Useful for understanding account organization.
- **meta_get_creatives** — Get ad creative content: text, images, videos, links, call-to-action. Returns creative details for specified ads.
- **meta_get_audiences** — List custom, saved, and lookalike audiences for a Meta ad account.
- **meta_get_ad_studies** — List conversion lift studies and A/B tests (Ad Studies) for an ad account. Includes study type, status, and cells.
- **meta_get_study_results** — Get detailed results for a conversion lift or A/B test study. Returns objectives, cells, and lift results.
- **meta_validate_query** — Validate a metric/breakdown combination BEFORE executing. Returns errors and warnings. Use this to check if your query will work.
- **meta_get_page_posts** — Read published Facebook Page posts using a Page token resolved from the connected user. Returns exact PageID_PostID, message, permalink and media attachments. Use postId for an exact existing-post ad preflight. No Instagram media, comments, likes or insights are requested; this read alone does not establish advertising eligibility.
- **meta_debug_token** — Inspect token identity, validity, expiry and scopes. When Meta refuses to inspect this token with itself, independently check the connecting user and granted permissions; token and app metadata then remain unknown.
- **meta_search_entities** — Search campaigns, ad sets, or ads by name within an ad account. Useful for finding specific entities.
- **meta_get_node_fields** — Read arbitrary flat fields from one Meta Graph node. This GET-only escape hatch covers newly released campaign, ad set, ad, creative, audience, catalog, Page, Instagram, pixel, and other accessible node fields without waiting for a fixed MCP schema update.
- **meta_list_edge_raw** — List an allowlisted read-only Meta Graph edge with caller-selected flat fields, filters, and cursor pagination. Use this for broad metadata/entity discovery when a specialized tool does not expose a newly added field.
- **meta_get_insights_raw** — Query the Meta Insights edge with validated native field names, breakdowns, action breakdowns, attribution windows, filters, sort, summary, and pagination. This complements meta_get_insights when Meta adds fields before the curated metric catalog is updated.
- **meta_search_targeting_options** — Search Meta's read-only targeting metadata for interests, validated interests, geographies, locales, countries, cities, regions, markets, or postal codes.
- **meta_get_ad_preview** — Get the read-only preview markup for an existing Meta ad in a requested placement format. The response may contain an iframe body but never creates or edits a creative.
- **meta_list_ad_images** — List the ad account image library (/adimages): hash, name, dimensions, status, a permanent publicly served display URL (permalink_url), short-lived CDN URLs, and optionally the creatives using each image.
- **meta_list_ad_videos** — List the ad account video library (/advideos): title, duration, processing status, and publicly served thumbnails (preferred and largest sizes). Source file URLs are returned only on request because they expire quickly.
- **meta_get_video_sources** — Resolve fresh download URLs (source) and thumbnails for specific ad videos. Call this at download time: the returned URLs are signed and expire quickly.
- **meta_get_entity_configuration** — Read a specific entity in its ad account for reconciliation. Read-only; never creates, changes or retries the entity. Missing or normalized fields must be inspected before claiming an exact match.
- **meta_get_uploaded_video** — Check video processing and membership in the selected account library. If the first page misses the ID, use the video title to narrow the account-scoped lookup. A direct video read alone never proves membership or readiness. Bounded pagination; not_found is not success.
- **meta_get_adset_configuration** — Read an existing ad set, its parent campaign budget/objective and account currency before preparing an edit or adding ads. For a web and app (cross-channel) ad set, creativeRequirements gives the applink_treatment (and omnichannel_link_spec) used by its own ads. Returns native settings; no mutation.
- **meta_get_promotable_apps** — List the apps this ad account can advertise, with their store URLs, to set up a website and app (cross-channel) ad set: promoted_object.omnichannel_object.app[] takes application_id and object_store_urls. Read-only.
- **meta_get_catalog_batch_status** — Read the completion and per-item errors for a catalog batch handle. Acceptance of a batch is not proof that every product succeeded.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "meta-ads": {
    "command": "npx",
    "args": ["-y","@getmcpads/meta-ads-mcp-server"],
    "env": {
      "META_ACCESS_TOKEN": "",
      "META_ENABLE_WRITES": ""
    }
  }
}
```

**Requires environment variables:** `META_ACCESS_TOKEN`, `META_ENABLE_WRITES` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What Meta Ads does

Meta Ads exposes Meta advertising data and account operations as MCP tools. It can discover accessible ad accounts and business assets, inspect account details, campaigns, ad sets, ads, creatives, audiences, pixels, catalogs, Pages, Instagram accounts, and activity logs. Read tools also cover delivery diagnostics, brand-safety signals, organic Page and Instagram content enrichment, A/B tests, and conversion lift studies.

Performance analysis is handled through `meta_get_insights`, which supports a broad set of metrics and breakdowns. The server publishes metric and breakdown catalogues through MCP resources, and provides query validation before an Insights request is sent. A node-field reader supplies a GET-only way to retrieve flat fields from accessible Meta Graph nodes that are not represented by a fixed tool schema.

The repository also includes optional write operations for tasks such as changing statuses, budgets, schedules, renaming entities, and creating campaigns. Writes are disabled by default and use a preview-before-apply flow.

## How it works

Run the server locally as a standard stdio MCP process. The MCP client starts Node with the compiled `dist/cli.js`, while requests go directly to Meta using credentials you supply. The server checks token metadata, available ad accounts, and relevant permissions through health and token-debugging tools without exposing the access token.

For Insights queries, the planner uses Meta's metric and breakdown compatibility rules. If a requested combination cannot be sent as one API call, it divides the work into valid requests and combines the returned rows. `meta_validate_query` can check the combination first, which is useful for agents that need to avoid avoidable API failures.

Permissions affect which assets and fields are available. The `ads_read` permission is required for read-only advertising access. Business asset discovery, Page posts, Instagram data, and catalog information use additional permissions when applicable.

## Setup and configuration

Create a Meta access token and grant it access to the ad accounts the client should use. A System User token is recommended for persistent use; short-lived Graph API Explorer tokens are suitable for testing, while long-lived user tokens require periodic renewal.

Build the standalone server from the source repository:

- Clone the repository.
- Run `npm ci`.
- Run `npm run build`.
- Configure the MCP client to launch `node` with the absolute path to `dist/cli.js`.

Use Node.js 22.23.4 or newer on the Node 22 line, 24.22.1 or newer on Node 24, or 26.12.1 or newer on Node 26. Grant `ads_management` only when write operations are enabled. Optional permissions include `business_management`, `pages_show_list`, `pages_read_engagement`, `instagram_basic`, and `catalog_management`.

Run `meta_health_check` as the first request to review token metadata, accessible accounts, and missing read scopes. `meta_debug_token` helps inspect token validity, expiry, and granted scopes.

## Tools and capabilities

- Discover businesses, Pages, linked Instagram accounts, pixels, datasets, and ad accounts.
- Read campaign, ad set, ad, creative, audience, catalog, and product information.
- Query performance Insights with metrics, breakdowns, validation, and automatic request planning.
- Inspect delivery, activity, brand-safety, experiment, and conversion-lift data.
- Read Page posts and organic media with URLs and optional insights.
- Retrieve arbitrary flat fields from accessible Meta Graph nodes.
- Preview optional changes before applying write operations.

## Limitations and notes

Results depend on the token's permissions and the assets assigned to it. Organic content data is separate from Ads Insights and should not be treated as an organic-only advertising breakdown. Catalog reads enrich product-related results but do not create or modify catalog assets.

The standalone repository provides native API tools. Hosted product features such as interactive creative galleries, MCP Apps interfaces, alerts, Google Sheets exports, and bulk launches are separate from this local release. Requests require a client that supports stdio MCP, and the server communicates directly with Meta rather than through a managed connection.

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

