SuperAPI AI Directory

meta-ads-mcp

Meta Ads automation: analyze performance, test creatives, optimize spend and scale campaigns.

Open website

About this tool

Purpose

meta-ads-mcp is a Model Context Protocol (MCP) server that enables AI assistants (Claude, ChatGPT, Perplexity, Cursor, or any MCP client) to operate Meta ads end-to-end through natural conversation, covering Facebook, Instagram, and all Meta ad placements. It provides a hosted remote MCP service, requiring no developer token and no self-deployment.

This repository is the Meta Ads node in the Pipeboard MCP family. The family includes five remote MCP servers (Meta, Google, TikTok, Snap, Reddit) as well as a unified Pipeboard CLI, totaling 230+ tools, sharing the same authentication and the same security model.

Main Capabilities

  • Campaign management: create campaigns, ad sets, and ads through conversation, update budgets, pause and resume, apply targeting changes; every write operation has explicit confirmation.
  • Creative operations: upload images, build creatives, update copy, headlines, descriptions, and CTAs without leaving the AI client.
  • Dynamic creative testing: the same API supports both simple ads (single headline/description) and full A/B testing (multiple headlines/descriptions).
  • AI-driven campaign analysis: let the LLM analyze delivery performance and provide actionable insights.
  • Strategy recommendations: provide recommendations based on data to optimize ad spend, targeting, and creative content.
  • Budget optimization: provide recommendations to reallocate budget to better-performing ad sets.
  • Creative improvements: provide feedback on ad copy, images, and CTAs.
  • Automated monitoring: let any MCP-compatible LLM track performance metrics and alert when significant changes occur.
  • Cross-platform integration: supports Facebook, Instagram, and all Meta ad placements.
  • Universal LLM support: compatible with any MCP client, including Claude Desktop, Cursor, Cherry Studio, and others.
  • Enhanced search: the universal search function includes page search when the query mentions "page" or "pages".
  • Simple authentication: easy setup via secure OAuth.
  • Cross-platform support: runs on Windows, macOS, and Linux.

How to Use

Remote MCP(recommended)

The official recommendation is to use remote MCP, which requires no technical setup; after connecting a Facebook Ads account, you can have AI analyze campaigns.

Claude Pro/Max users:

  1. Go to claude.ai/settings/integrations (requires Claude Pro or Max).
  2. Click "Add Integration" and enter:
    • Name: "Pipeboard Meta Ads" (or any name)
    • Integration URL:https://meta-ads.mcp.pipeboard.co/
  3. Click "Connect" next to the integration, and follow the prompts to sign in to Pipeboard and connect a Facebook Ads account.

For token-based direct authentication (skipping the interactive flow), use the URL format with a token when adding the integration. Tokens can be obtained at pipeboard.co/api-tokens.

Cursor users: Add the configuration in ~/.cursor/mcp.json. After enabling remote MCP, click "Needs login" to complete sign-in. If you do not want to use interactive login, you can include the Pipeboard API token directly in the URL.

Other MCP clients: Use the remote MCP URL:https://meta-ads.mcp.pipeboard.co/。支持基于令牌认证的客户端可将 Pipeboard API token is appended to the URL, thereby skipping the interactive login flow and authenticating immediately. Tokens are obtained at pipeboard.co/api-tokens.

Pipeboard CLI (an alternative to MCP)

Pipeboard CLI is a single Go binary that exposes all the above MCP tools as typed shell commands, aimed at AI coding agents (Claude Code, Cline, OpenClaw, Codex) and automation scripts that prefer subprocess invocation over JSON-RPC. Features: startup under 50ms, no MCP handshake required per call, five platform integrations in one binary. Full documentation is in the pipeboard-cli repository.

Local Installation (advanced technical users only)

The official recommendation strongly favors using remote MCP, as it is faster, more reliable, and requires no technical setup. Meta Ads MCP also supports local streamable HTTP transport and can run as a standalone HTTP API for web apps and custom integrations; see the Streamable HTTP Setup Guide for details. Local installation requires creating your own Meta Developer App.

Available MCP Tools (partial)

  • mcp_meta_ads_get_ad_accounts: Get the ad accounts the user can access. Inputs: access_token (optional), user_id (Meta user ID or "me"), limit (default 200).
  • mcp_meta_ads_get_account_info: Get detailed information about a specified ad account. Inputs: access_token (optional), account_id (format act_XXXXXXXXX).
  • mcp_meta_ads_get_account_pages: Get the pages associated with a Meta ad account. Inputs: access_token (optional), account_id (format act_XXXXXXXXX or "me").
  • mcp_meta_ads_get_campaigns: Get campaigns with optional filtering. Inputs: access_token (optional), account_id, limit (default 10), status_filter (empty for all, or 'ACTIVE', 'PAUSED', etc.).
  • mcp_meta_ads_get_campaign_details: Get detailed information about a specified campaign. Inputs: access_token (optional), campaign_id.
  • mcp_meta_ads_create_campaign: Create a new campaign in an ad account. Inputs include access_token (optional), account_id, name, objective (a results-based ODAX objective, which must be one of OUTCOME_AWARENESS, OUTCOME_TRAFFIC, OUTCOME_ENGAGEMENT, OUTCOME_LEADS, OUTCOME_SALES, OUTCOME_APP_PROMOTION; legacy objectives such as BRAND_AWARENESS, LINK_CLICKS, CONVERSIONS, APP_INSTALLS, etc. are no longer valid for new campaigns and will cause a 400 error), status (default PAUSED), special_ad_categories, daily_budget (in account currency, in cents), lifetime_budget (in account currency, in cents), bid_strategy (must be one of LOWEST_COST_WITHOUT_CAP, LOWEST_COST_WITH_BID_CAP, COST_CAP, LOWEST_COST_WITH_MIN_ROAS).

Use Cases

  • Marketers quickly creating, adjusting, and optimizing Meta campaigns through conversation.
  • Teams that need unified management across Meta, Google, TikTok, Snap, and Reddit.
  • Technical users using AI coding agents or automation scripts for ad operations.
  • Scenarios where you want an LLM to automatically monitor ad performance and provide optimization suggestions.

Limitations and Notes

  • This is an independent open-source project that uses Meta's public API. The hosting service behind it, Pipeboard, is a labeled Meta Business Partner and an officially approved Meta app, and can manage Meta, Google, TikTok, Snap, and Reddit Ads from a single login (including a free plan).
  • Meta brand names such as Meta, Facebook, and Instagram are trademarks of their respective owners.
  • Local installation requires creating your own Meta Developer App; the official recommendation is to use remote MCP.
  • Regarding specific fees, pricing, platform coverage details, etc., the material only mentions a "free plan"; the rest is not yet provided.