Facebook Ads MCP Server

Facebook Ads MCP Server

mcp-facebook•bytisik79

An MCP server for managing Facebook ads from Claude AI, with Facebook sign-in and automatic token management.

License: MIT•Runtime: Awaiting documentation review•Category: search web

WHAT IT DOES

  • •Creates, updates and deletes campaigns, ad sets and individual ads.
  • •Provides analytics and insights at campaign, ad set and ad levels.
  • •Manages custom and lookalike audiences plus interest, behavior and geo targeting tools.
  • •Supports Conversions API server-side events with automatic SHA-256 hashing of PII.

BEST FOR

  • •Marketers who want to review and create Facebook ad campaigns conversationally from Claude.
  • •Publishing page posts and video posts through Claude.
  • •Sending offline conversions and CRM-driven conversion data to Facebook.

ABOUT MCP-FACEBOOK

Facebook Ads MCP Server is cataloged as an MCP server attributed to tisik79. An MCP server for managing Facebook ads from Claude AI, with Facebook sign-in and automatic token management. It is categorized under search web. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Facebook Ads MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

How does the server authenticate with Facebook?

It uses a sign-in wizard where you create your own Facebook App and enter its App ID and Secret, after which a browser opens for Facebook sign-in; you can also store a token from Graph API Explorer.

Can the server create lead campaigns?

Yes, it supports lead collection via website conversions or instant forms, both requiring promotedObject and destinationType on the ad set.

Are newly created ads paused by default?

Yes, the create_ad tool defaults to PAUSED.

Upstream README

View this exact version on GitHub

README.md · 2ebfbc931bd7 · Fetched 2026-11-13 10:09:11 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

Facebook Ads MCP Server

🇨🇿 Česká verze

MCP server for managing Facebook ads straight from Claude AI. No manual token hunting — sign in with Facebook once and you're done.

Features

  • Campaign management (create, update, delete)
  • Ad sets and individual ads
  • Analytics and insights
  • Custom and lookalike audiences
  • Page posts
  • Automatic token management (page tokens are permanent)

Installation

Requirements

  • Node.js 18+
  • Claude Desktop

1. Clone the repository

git clone https://github.com/Tisik79/MCP-Facebook.git
cd MCP-Facebook
npm install
npm run build

2. Add to Claude Desktop

Open the Claude Desktop config file:

  • Mac: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Add:

{
  "mcpServers": {
    "facebook-ads": {
      "command": "node",
      "args": ["/PATH/TO/MCP-Facebook/dist/index.js"]
    }
  }
}

3. First run — 5-minute setup

On first start, a wizard walks you through creating your own Facebook App:

Steps:
  1. Click "Create App"
  2. Choose type: "Business"
  3. Enter any name (e.g. "My Ads")
  4. After creation, go to Settings → Basic
  5. Copy the App ID and App Secret
  6. Add the "Facebook Login" product and set:
     Valid OAuth Redirect URIs: http://localhost:3456/auth/callback
  7. In Basic settings, add "localhost" to App Domains

After entering the App ID and Secret, a browser opens automatically → sign in with Facebook → done.

Re-login / adding pages

node dist/index.js login

Usage in Claude

"Show my active campaigns"
"Create a campaign for MyBrand with a $20 daily budget"
"How did my ads perform last month?"
"Post an update to page XY"

Available Tools

ToolDescription
connect_facebook_account / set_facebook_tokenSign in via OAuth / store a token from Graph API Explorer
list_connected_accounts / set_active_accountShow connected pages & accounts / switch the active one
facebook_setup_helpStep-by-step connection guide
get_campaignsList campaigns
create_campaignCreate a new campaign
update_campaignUpdate a campaign (incl. bidStrategy) — read-after-write
get_campaign_detailsCampaign detail (budget, bid_strategy, spend today)
delete_campaignDelete a campaign
get_campaign_insightsCampaign analytics
get_adset_insights / get_ad_insightsAd set / ad level analytics
get_adsetsList ad sets
create_ad_setCreate an ad set (incl. lead fields promotedObject / destinationType)
update_adsetUpdate an ad set (name / status) — real write + read-after-write verification
get_adsList ads (filtered via adSetId/campaignId edge + status)
get_adAd detail incl. creative (link, CTA, copy, video/image)
upload_ad_mediaUpload an image (image_hash) or video (video_id)
create_adcreativeCreate a creative from object_story_spec
create_adCreate an ad (defaults to PAUSED)
update_adUpdate an ad (name/status/creative) — read-after-write
delete_adDelete an ad
create_lead_formCreate an instant lead form on a page
get_lead_formsList lead forms (id, name, status, leads_count)
get_pixelsAccount pixels (id, name) for promoted_object
create_pixel / update_pixel / get_pixelPixel management (detail incl. last_fired_time)
get_pixel_statsPixel event statistics (verify events are flowing)
search_interests / get_interest_suggestionsInterest search & suggestions for targeting
search_behaviorsBehavior categories for targeting
search_geo_locationsGeo keys (region/city/zip) for targeting.geo_locations
estimate_audience_sizeAudience size estimate for a given targeting spec
send_conversion_event / send_conversion_events_batchConversions API — server-side events (auto SHA-256 PII hashing)
get_custom_conversions / get_custom_conversionList / detail of custom conversions
create_custom_conversion / update_custom_conversion / delete_custom_conversionCustom conversions (custom_conversion_id for lead campaigns)
get_offline_conversion_sets / create_offline_conversion_set / upload_offline_conversionsOffline conversions from your CRM
update_adcreativeUpdate a creative (name/status — content is immutable)
get_audiencesCustom audiences
create_custom_audienceCreate an audience
create_lookalike_audienceLookalike audience
create_postPage post
create_video_postVideo page post (resumable upload, unpublished by default)

The scope of the targeting/conversion tool set was inspired by Draivix/aidvertaiser (David Strejc, MIT) — thanks!

Lead Campaigns (OUTCOME_LEADS)

Lead collection has two paths; both require promotedObject + destinationType on the ad set:

  • Website conversions — optimizationGoal=OFFSITE_CONVERSIONS, destinationType=WEBSITE, promotedObject={ pixel_id, custom_event_type: "LEAD" } (find your Pixel ID via get_pixels).
  • Instant form — optimizationGoal=LEAD_GENERATION, destinationType=ON_AD, promotedObject={ page_id }, creative with call_to_action.value.lead_gen_form_id (create the form via create_lead_form).

Without promotedObject + destinationType, Meta returns "Invalid parameter". For accounts with campaign-level budget (CBO), do not set a budget on the ad set — it inherits from the campaign. If the campaign uses a cap bid strategy (LOWEST_COST_WITH_BID_CAP), the ad set requires bidAmount; otherwise set the campaign to bidStrategy=LOWEST_COST_WITHOUT_CAP.

License

MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Facebook Ads MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-facebook)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related search web MCP Servers

Alternative and complementary servers in the same category

View all in search web →

An MCP server that merges Google Search Console history with a live first-party crawl of your site to produce a prioritised, evidence-backed technical SEO audit inside Claude, complete with paste-ready fixes.

Repository stats unavailable
Search & Web Research

An MCP server that offers intelligent web search using OpenAI reasoning models, with support for fast iterations and deep research.

94
Search & Web Research