# scaleforge-mcp-meta-ads [Health: Active]

**Category:** 🎯 Marketing  
**Repository:** https://github.com/Mike25app/scaleforge-mcp-meta-ads  
**GitHub Stars:** 0  
**npm Downloads (last month):** 421  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/scaleforge-mcp-meta-ads

## Description
Control Facebook & Instagram Ads via Meta Graph API v24.0. 32 tools, no backend required.

## Tools
Capabilities this server exposes over MCP:

- **list_ad_accounts** — List Meta Ad Accounts accessible to the current access token. Returns id (act_XXX), name, account_status, currency, business_name, spend_cap, timezone_name. Use this first to discover what you can work with.
- **get_ad_account** — Get detailed info for a single Ad Account: status, spend cap, balance, funding source, business, timezone, disable_reason. Returns the full configuration record — use this for deep inspection of one account.
- **get_ads_volume** — PRE-FLIGHT CHECK: Get per-Page ads-running-or-in-review counts and limits for an ad account. Meta caps active ads per Page (default 250) and this limit is SHARED across every account using the same Page. Always call this before a bulk activation to avoid silent review failures. Returns one row per Page actor.
- **list_campaigns** — List campaigns in an ad account. Returns id, name, status, objective, daily_budget, lifetime_budget, bid_strategy, created_time. Paginated via `limit` + `after` cursor.
- **get_campaign** — Get a single campaign by ID. Returns all default fields plus anything in `fields`. Use this for deep inspection of one campaign.
- **create_campaign** — WRITE: Create a new campaign. Default status is PAUSED (recommended — set ACTIVE only after creating ad sets and ads). For CBO, pass daily_budget or lifetime_budget at this level; for ABO leave budget off and set it on the ad set. `special_ad_categories` is required (empty array [] is fine for normal advertising).
- **update_campaign** — WRITE: Update any mutable field on a campaign (name, status, daily_budget, lifetime_budget, bid_strategy). Pass only the fields you want to change.
- **delete_campaign** — WRITE: Hard-delete a campaign (and its ad sets / ads). Prefer update_campaign with status=ARCHIVED if you want to keep historical data.
- **list_adsets** — List ad sets. Pass either `ad_account_id` (lists all adsets in account) OR `campaign_id` (lists adsets of one campaign). Returns id, name, campaign_id, status, daily_budget, bid_amount, billing_event, optimization_goal, targeting, is_dynamic_creative.
- **get_adset** — Get a single ad set by ID. Returns default fields plus anything in `fields`.
- **create_adset** — WRITE: Create an ad set under a campaign. Default status is PAUSED. `targeting` is a Meta targeting spec object (geo_locations, age_min, age_max, interests, etc.). `bid_amount` is in account currency minor units (cents). For multi-text / dynamic creative ads you MUST set is_dynamic_creative=true — otherwise asset_feed_spec ads will be rejected.
- **update_adset** — WRITE: Update any mutable field on an ad set (status, bid_amount, daily_budget, targeting, name, etc.). Pass only the fields you want to change.
- **delete_adset** — WRITE: Hard-delete an ad set (and its ads). Prefer update_adset status=ARCHIVED to keep history.
- **list_ads** — List ads. Pass either `ad_account_id` (all ads in account), `adset_id` (ads in one ad set), or `campaign_id` (ads in a campaign). Returns id, name, adset_id, creative, status.
- **get_ad** — Get a single ad by ID. Returns full creative + issues + preview link.
- **update_ad** — WRITE: Update an ad's name, status, or swap its creative. To replace the creative pass `creative: {creative_id: 'XXX'}`.
- **delete_ad** — WRITE: Hard-delete an ad. Prefer update_ad status=ARCHIVED to keep history.
- **list_creatives** — List ad creatives in an account. Returns id, name, object_story_spec, asset_feed_spec, thumbnail_url, video_id, image_hash, body/title.
- **get_creative** — Get a single ad creative by ID.
- **create_ad_creative** — WRITE: Create a single-text ad creative from an `object_story_spec`. Pass page_id plus ONE of: video_data (for video ads — needs video_id from upload_video), link_data (for image / link ads — needs image_hash from upload_image + link + message). If the Page is not linked to Instagram, pass `instagram_user_id` from get_pbia() to enable IG placements. 

Note: image hashes are per-ad-account in Meta — a hash uploaded on account A is NOT valid on account B. Re-upload to each target account.
- **create_ad_creative_with_asset_feed** — WRITE: Create a DYNAMIC (multi-text) creative using `asset_feed_spec`. Meta will auto-combine the bodies/titles/descriptions and optimize the best mix. The parent ad set MUST have is_dynamic_creative=true. Pass arrays of texts plus either video_id(s) or image_hash(es).
- **upload_video** — WRITE: Upload a video to an ad account. Returns {id, title}. Prefer `file_url` (remote URL Meta fetches server-side) — streaming a local file over MCP stdio is awkward and rarely needed when videos live in S3 / Dropbox / a CDN. Local `file_path` is accepted for completeness but may be blocked on Windows / sandboxed MCP hosts.
- **upload_image** — WRITE: Upload an image to an ad account. Returns {images: {filename: {hash}}}. The `hash` is what you pass to create_ad_creative as image_hash.

IMPORTANT: Meta image hashes are SCOPED TO THE AD ACCOUNT — a hash uploaded on account A cannot be used on account B. If you need the same image across multiple accounts, call this once per account. (ScaleForge's backend caches hashes per account to avoid re-uploads within the same account.)
- **get_campaign_insights** — Pull performance metrics for ONE campaign. Default fields: spend, impressions, clicks, cpc, cpm, ctr, reach, frequency, actions, conversions, purchase_roas. Default range: last_7d. Use `breakdowns` for cuts (age, gender, country, placement). Use `time_increment=1` for day-by-day rows.
- **get_adset_insights** — Pull performance metrics for ONE ad set. Same fields/breakdowns as get_campaign_insights.
- **get_ad_insights** — Pull performance metrics for ONE ad. Same fields/breakdowns as get_campaign_insights. Use this to compare creative performance at the individual-ad level.
- **pause_campaigns_batch** — WRITE (BULK): Pause many campaigns in a single Meta Batch API call (up to 50/request; arrays bigger than 50 are chunked automatically with a 2s delay between chunks to sidestep rate-limit code 17). Returns {results: Array<{code, body}>} — one entry per campaign. `code: 200` = success.
- **activate_campaigns_batch** — WRITE (BULK): Activate many campaigns in one Batch API call. BEFORE activation we run a per-Page ads_volume pre-flight for every distinct ad account — warnings are returned in the response so the agent / user can abort if a Page is over capacity. Agents MUST confirm with the user before calling this (activation starts spend immediately).
- **update_bids_batch** — WRITE (BULK): Update `bid_amount` on many ad sets in one Batch API call. Input is an array of {adset_id, bid_amount_cents} pairs. Bid values are in minor currency units (cents). Chunks of 50 automatically.
- **list_pages** — List Facebook Pages the current user/System User manages. Each row has id, name, access_token (Page Access Token — needed for PBIA provisioning), category, tasks (what this token can do on the Page, e.g. 'MANAGE', 'CREATE_CONTENT', 'ADVERTISE').
- **get_pbia** — Get (or auto-create) a Page-Backed Instagram Account for a Facebook Page. Use this when the Page has no linked Instagram account but you want to run ads with IG placements — Meta lets a Page act as its own IG presence via PBIA (same option as 'Use Facebook Page for Instagram' in Ads Manager).

Flow: GET the Page's access_token, list existing PBIAs, create one if none exists. Returns {page_backed_instagram_account_id, created (bool)}.
- **search_ads_library** — Search Meta's public Ad Library for competitive research. Returns active and inactive ads matching `search_terms` OR `search_page_ids` in the selected countries. Default country = ['US']. Returns ad_snapshot_url (preview), creative bodies/titles, page_id, delivery times, publisher_platforms.

Note: only ads in categories subject to public transparency (political / housing / employment / credit) return full metadata; other categories return lighter data.

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

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

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

## Documentation

## What scaleforge-mcp-meta-ads does

scaleforge-mcp-meta-ads exposes Meta Ads operations through the Model Context Protocol. It connects directly to the Meta Graph API v24.0, allowing an MCP client or agent to work with Facebook Pages, Instagram placements, ad accounts, campaigns, ad sets, ads, creatives, media uploads, and performance insights.

The server supports both read and write workflows. Read operations cover account discovery, object inspection, creative listing, Page access, and campaign, ad set, or ad-level reporting. Write operations can create, update, archive or delete delivery objects, upload media, create creatives, and change bids or campaign states in bulk.

## How it works

The local package runs over MCP stdio and sends requests directly to Meta using the supplied access token. No ScaleForge backend is required for Meta Ads operations. The hosted deployment also exposes a Streamable HTTP endpoint at `https://getscaleforge.com/mcp`; clients can provide a Meta token in the request authorization header.

Bulk pause, activation, and bid-update tools group requests into Meta Batch API calls of up to 50 operations. Larger inputs are split into chunks automatically. Activation includes a pre-flight check for ads running or in review on each Page, because Meta’s limit is shared across ad accounts using the same Page.

## Setup and configuration

The npm package is available as `@getscaleforge/mcp-meta-ads` and requires Node.js 20 or newer. Configure the local server with:

- `META_ACCESS_TOKEN`: Meta access token used for Graph API requests.

For example, a Claude Code installation can run `npx -y @getscaleforge/mcp-meta-ads` with `META_ACCESS_TOKEN` set in its environment. Claude Desktop and Cursor use the same command in their MCP configuration. Smithery can install the package and prompt for the Meta token. A local process can also be started directly with `META_ACCESS_TOKEN=YOUR_TOKEN npx -y @getscaleforge/mcp-meta-ads`.

The hosted endpoint accepts a bearer Meta token. Its optional ScaleForge data features use separate ScaleForge configuration and authentication, but those are not needed for Meta Ads tools.

## Tools and capabilities

The available operations include:

- Discover ad accounts and inspect account status, billing, currency, timezone, business, and spend settings.
- List and inspect campaigns, ad sets, ads, creatives, and managed Facebook Pages.
- Create or modify campaigns, ad sets, ads, and single-text or dynamic asset-feed creatives.
- Upload videos by URL or local path and upload images to obtain account-scoped image hashes.
- Retrieve campaign, ad set, and ad insights with date ranges, breakdowns, and daily increments.
- Pause or activate campaigns in bulk and update multiple ad set bids in one operation.

Campaigns and ad sets default to `PAUSED` when created. Dynamic creatives require `is_dynamic_creative=true` on the parent ad set. Campaign budget optimization uses campaign-level budgets, while ad set budget optimization places the budget on the ad set.

## Limitations and notes

Meta image hashes belong to the ad account where the image was uploaded. The same image must be uploaded again for another account. Video uploads can use a remote URL, which is generally more practical than streaming a local file through stdio; local file paths may be blocked by Windows or sandboxed hosts.

Hard deletion removes the selected object and its descendants where applicable. Use the update tools with `status=ARCHIVED` when historical data should remain available. Activating campaigns begins delivery and potentially spend, so the activation tools should be used only after user confirmation. Bid amounts use the account currency’s minor units, such as cents.

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

