Open MCP Servers
Open MCP Servers を選ぶ理由
Open MCP Servers は、セルフホスト型の Model Context Protocol (MCP) コネクターのためのホームです。サー・バーを自分のマシンやス・トラに作し、MCP 互換のAIクライアントに接続し、認証情報とアプリケーションデータを自分の管下に保持できます。
このリポジトリには、現在、本番運用できる Meta コネクターが同梱されており、Facebook Pages、Instagram、Threads、Ads Manager、Commerce、Conversions API、オーディェンス、インサイトをカバーしています。コネクターのアーキテクチャは意図的にシンプルにしてあり、コミュニティはホスト・ゲートウェイやベンダー管理の中間層に頼らずに、他のアプリ向けのコネクタを追可できます。
このプロジェクトは MIT ラ・センス のもと、使用、変更、フォーク、ホスト、再配布を自由に行えます。接続するサードパーティ・アプリの認出情報・APIアクセス・ホスティング環境・利用規約については、利用者の責任です。
「あらゆるアプリケーションに接続できる」とはど令う言うことか
MCPは、AI クライアントとサーバーの間の標準インター・エースを定義します。それでも、各アプリケーションには、その API、認証、操作を理解しコネクターが必要です。収録の Meta コネクターをりファレンスにし、次に、対象のアプリ向けの新しいAPI クライアントとツールモジュールを追加します。
このプロジェクトは、あなたの認証情報を中央服务理者に分けないで、もう立即購入も不要です。
Related MCP server: Meta Marketing API MCP Server
含コネクター: Meta
Meta の各プラットフォームでソーシャルメディアを送信する — Facebook Pages、Instagram、Threads、Ads Manager、Commerce — には、それぞれがAPIの違いトークン流に応じた複数のダッシュボードを扱う必要があります。このコネクターはそれらを単一のM│CP│ーRPインターフェースに統合し、AI アシスタントが1の会話で全プラットフォームにわたって投稿、パフォーマンス分析、広告キャンぺーンの管理、エンゲージメント対応を行えます。
そのツールは、地の設計に استخدامAPIコードではなく、対応の行動できるエラ・メッセージを返します。トークが期限切れれなら、再生性リンが表示されます。権限がない場合、どの権限がどこで付与できるを正確にわかります。つまり、デバッグ時間が減り、できる作業が増えるでしう。
クイ・クスタート
のMCPBでインストール
Claude Desktop や 以外のMCPB互換クライアントのには、最新リリース からバンドルをダウンロードしてください。ただし、利用できるになったらです。
下記のnpm パッケージやソースからのインストールは、セルフホストができるポ落型の選択肢です。
バンドルには、Meta ファビコン、本番運用ラ・タイムの依存関係、Meta と任意のThreadのアクセストークンの設定プロンプトが含まれています。
MCP クライアント設定に以下を追加します。
{
"mcpServers": {
"meta": {
"command": "npx",
"args": ["-y", "@oliverames/meta-mcp-server"],
"env": {
"META_ACCESS_TOKEN": "your_token_here"
}
}
}
}たったこれだけです。あなたの AI・シスタントは、あなたが管理するサー・バー経由で200のの Meta ツー include にアクセスできます。
トークンが必要ですか? Graph API Explorer にアプを選択して生成してください。詳しくは設定 を参照しします。
から作る
git clone https://github.com/open-work-org/open-mcp-servers.git
cd open-mcp-servers
npm install && npm run buildコンラちゃんパイルされたサーバーはstdioを介して通信するのど、ローカConsole stdout をサポートするMCPので使えます。自分自身でホするのが既定のデプロイ・モです;このパッケージには管理されたアカウントやプロジェクトの登録は必ずません。
できること
どこでも投稿
Facebook Pages(テキス・、写生、動画、リるス、ストーリ)Instagram(写生、リール、ストール、カルーセル)、Threads(テキスト、画像、動画、GIF、リンル)に投稿できます。前もって予約したり、1ル准在かつ複数プラットフォームへクスー投稿したりします。
> Post our holiday hours to the Facebook page
> Schedule an Instagram carousel for tomorrow at 9am
> Cross-post this photo to both Facebook and Instagram
> Publish a GIF to Threads with reply controls
> Create a Facebook Reel from this video
> Post a Story to our Facebook page
> Publish an Instagram reel with alt text for accessibility
> Share a link post on Threads with a quoteエンゲージメント管理
各プラットフォームのコメントを覧ん読んだり、返信をし、削除せずに不適切なコンテンツを非表にし、Instagram のDMやブロードキャストチャンネルを管理し、不在中は自動応対話などを設定できます。
> Show me unanswered Instagram DMs
> Hide that offensive comment on our latest post
> Reply to the top 3 comments on yesterday's reel
> Set up an instant reply for new messages
> Set our away message to "Back Monday at 9am"
> Send a DM to that customer who reached out
> What comments did we get on last week's posts?
> Update our Messenger greeting textパフォーマンス分析
ページ、投稿、アカウント、カンぺーン、広告セット、個別広告など、あらゆるレベルでインサイトを取取得。70以上のページメトリクス、包括的なリール(スキップ率とクロス投稿ビューを含む)、動画の完率、ROAS、品質ランクを含む広告効果の分ク。また、レポート用のチャート生成ができます。
> How did our Instagram perform this month?
> Show campaign spend broken down by age group
> What's the skip rate on our latest Reel?
> Generate a bar chart comparing this week vs last
> Get our Facebook page fan demographics
> What's our follower growth trend over 90 days?
> Show me post-level engagement for our top 5 posts
> Create a pie chart of spend by campaign広告キャンペーンを実施
キャンペーンライフサイクを全体 — 作成、最適化、テスト、自動化。信頼性のあるA/Bテスト、Advantage+ ショッピングの移行、インタレスト/地域/デモグラフィックの井偵、リーチ見積もり、自動ーリール、サーバーサイド向けのConversions API 付き広告ピクセル完全管理を扱います。
> Create an A/B test comparing these two ad sets
> Migrate this campaign to Advantage+ Shopping
> Send a purchase conversion event via CAPI
> What's the reach estimate for women 25-34 in NYC?
> List all active campaigns and their ROAS
> Create an automated rule: pause ads over $5 CPA
> Check if our pixel is firing correctly
> Upload this image for a new ad creativeコマースを管理
Facebook と Instagram のショップ向けの商品カ達ログを管理 — 商品を登録し、在庫や在庫を更新し、コレク・ションを整理し、入荷可能性を管理。ソーシャル・マースを運営するブランドに必要な一切です。
> List all products in our catalog
> Add this new product at $29.99, in stock
> Mark the seasonal items as out of stock
> Show me our "Summer Collection" product set
> Update the description on our best-selling item
> How many products are in each catalog?
> Delete the discontinued product line
> What products are currently available?ライブ配信とブロードキャスト
プロダクト・ラウンチやイベントのためにFacebook Live 動画を始し、すぐに征求必ずのコンテンツはストーリーで投稿て、ポール・リンル・メッセージのいたInstagram ブロードキャスト・チネルを通じてオーディンスへの届をしましょう。
> Start a live video on our Facebook page
> Send a poll to our Instagram broadcast channel
> Schedule a live stream for Friday at 2pm
> Publish a story to Facebook with this photo
> End the live broadcast
> Send a product announcement to our broadcast channel
> What live videos have we done this month?
> What ads is our competitor running right now?競争合をリサーチ
Meta の公開広告ライブラリにより、すべて広告者の配信中広告を検索します。さらにあなたの競合他者広告のクリエティブ、ターゲティング、広告費を確認のはアカウントアクセス不要。あなたの公開インスタグラム広告ビジネス・アカウントの数値も調べるします。
> What ads is Nike running in the US right now?
> Search the Ad Library for "sustainable fashion" ads
> Look up @competitor on Instagram — followers and posts
> Show me all active ads by this page ID
> What platforms are they running ads on?
> How much is our competitor spending on ads?コンテトロール
接続状況のデバッグ、権限のチェク、リー・トー・リミットの監視、ピクセルの検済、Business Manager のアセット管理。どのエラーも修正の方法を正確に知らせる— 不可解な表現は出了しまません。
> Check my token status and permissions
> Am I close to Instagram's publishing limit?
> Run a health check on the Meta connection
> Is our pixel receiving events?
> List all ad accounts in our Business Manager
> Share this pixel with our agency's ad account
> What Threads rate limits do we have left?
> Debug why this API call is failing完全なツール・リファれンス
Facebook Pages — 52ツール
ブランドがFacebook の存在、メッセージング、ライブ送信を管理するために必要な一切。
Instagram — 37ツール
完全なInstagramビジネスAPI — スケジュール予約付き投稿、DM、ブロードキャスト.."... let me write it cleanly.
Keep the structure:
Instagram — 37ツール
完全なInstagramビジネスAPI — 予約投稿、DM、ブロードキャスト・チャンネル、エンタゲージメント、ディスカバリー、アナリテイクス。
ツール | 説明 |
| 管義するすべてのFacebookページを一覧表示 (最初に呼び出し — ページ・トーケンをキをシュします) |
| ページの詳細な情報を取得(カテゴリ、フォロワー数、説明、リンク) |
| IDで単一つの投稿を取得 |
| ページにテキスと投稿を作成 |
| 写真投稿を作成(URLまえはページの写真ID) |
| タイトルと説明を任えでビデオ投稿を作成 |
| 既在optionalの投稿のメッセージを編義 |
| 投稿を削除 |
| ページのフィドを /ページネーション付きで取得 |
| 公開済みの投稿のみを取得 |
| 予約済み(未公開)の投稿を取得 |
| 広告プロモーションの対象となる投稿を取得 |
| 訪問者がページ上で作成した投稿を取得 |
| ページネーション付きで投稿のコメントを取得 |
| ページとしてコメントに返信 |
| コメントを削除 |
| コメントを非表示/再表示 (破壊的なモデレーションではないモデレーション) |
| 投稿またはコメントにいいね/いいね解除 |
| リアクションの内訳を取得(like, love, haha, wow, sad, angry) |
| ページ分析 — インプレッション、エンゲージメント、フアン、ビデオを含む70以上の指標 |
| 投稿ごとの分析(インプレーション、エンゲージメント、クリック、リリアクション、ビデオ) |
| ページのメッセージ会話を一覧 |
| 会話内のメッセージを取得 |
| ユーザーにメッセージを送信(24時時間のメッセージウィンドウ) |
| ページの詳細を更新(概要、説明、ウェブサイト、営業時間、ユーザー名、カテゴリ、住所) |
| URLからページのプロフィル写真を更新 |
| URLを、あ者が既存の写真からページのカバー写真を更新 |
| ページイベントを作成 |
| イベントを一覧(今後、過去、またはキャンセル済み) |
| ページの写真アルバムを一欄 |
| 写真を取得(アップロード済みまたはタグ付け) |
| ページのビデオを一覧 |
| ページがタグ付けられた投稿を取得 |
| 年齢、性別、国別のフォロワーの内訳 |
| ページのレビューと星評価を取得 |
| 複数拠点ビジネスの拠点情報 |
| ページのCTAボタン設定を、取得 |
| ページのタブとその設定を一覧 |
| ページのプロフィル写真を取得 |
| ブロックされたユーザを一覧 |
| ユーザーをブック/ブック解除 |
| ページをウェブフックイベントに購読 |
| FaceBookストーリを公開(写真またビデオ) |
| Facebookリールを公開 |
| Facebook + Instagramに同時にクロスポスト |
| ライブビデオ配信を開始まえは予約 |
| ページのライブ動画を一覧 |
| 進行中のライブ配信を終了 |
| 現在の自動返信設定を取得 |
| インスタントリプライのメッセージを設定 |
| 留守/アウト・オブ・オフィスメッセージを設定 |
| Messengerの挨拶のテキストを設定 |
I need to ensure I didn't drop the intro paragraph text. Let me finish.
Adjusted final paragraph: "Full Instagram Business API — publishing with scheduling, DMs, broadcast channels, engagement, discovery, and analytics." -> "完全なInstagramビジネスAPI — 予約機能付きの配信、DM、ブロードキャスとチャンネル、エンゲージメント、ディスカバリー、分析。"
Ok. Let me now output the translation cleanly. I'll make sure each row has exactly two pipes and descriptions. Also fix the header: "| ツール | 説明 |" (ツール = tool, 説明 = description). And separator "| :--- | :--- |".
Also keep the bold/italic marker for "(called first)" — italic with *. Good.
Let me produce it### Instagram — 37ツール
完全なInstagramビジネスAPI — 予約機能付き投稿、DM、ブロードキャスト・チャンネル、エン・ゲージメント、ディスカバー、アナリティクス。
ツール | 説明 |
| 管義するすべてのFacebookページを一覧表示 (最初に呼び出 — ページトーケンをキャッシュします) |
| ページの詳細な情報を取得(カテゴリ、フォロワー数、説明、リンク) |
| IDで単一の投稿を取得 |
| ページにテキスト投稿を作成 |
| 写真投稿を作成(URLまえはページの写真ID) |
| 任意のタイトルと説明を付しビデオ投稿を作成 |
| 既存の投稿のメッセージを編義 |
| 投稿を削除 |
| ページのフィードをページネーション付きで取得 |
| 公開済みの投稿のみを取得 |
| 予約済み(未公開)の投稿を取得 |
| 広告プロモーションの対象となる投稿を取得 |
| ページが訪問者によって作られた投稿を取得 |
| ページネーション付きで投稿のコメントを取得 |
| ページとしてコメントに返信 |
| コメントを削除 |
| コメントを非表示/再表示(非破壊的なモデレーション) |
| 投稿まえはコメントにいいね/いいね解除 |
| リアクションの内訳を取得(like, love, haha, wow, sad, angry) |
| ページ分析 — インプレッション、エンゲージメント、ファン、ビデオを含む70以上の指標 |
| 投稿ごとの分析(インプレッション、エンゲージメント、クリック、リアクション、ビデオ) |
| ページのメッセージ会話を一覧 |
| 会話内のメッセージを取得 |
| ユーザにメッセージを送信(24時時間のメッセージ・ウィンドウ) |
| ページの詳細を更新(概要、説明、ウェブ・サイト、営業時間、ユーザー名、カテゴリ、住所) |
| URLからページのプロフィル写真を更新 |
| URLまえは既存の写真からページのカバー写真を更新 |
| ページのイベントを作成 |
| イベントを一覧(今後、過去、まえはキャンセル済み) |
| ページの写真アルバムを一覧 |
| 写真を取得(アップロード済みまたはタッグ付き) |
| ページのビデオを一覧 |
| ページがタッグ付きされた投稿を取得 |
| 年齢、性別、国別のフォロワーの内訳 |
| ページのレビューと星評価を取得 |
| 複数拠点ビジネスのためロケーション情報 |
| ページのCTA(コール・トゥアクション)ボタン設定を取得 |
| ページのタブとその設定を一覧 |
| ページのプロフィル写真のURLを取得 |
| ブロックされたユーザーを一覧 |
| ユーザーをブロック/ブロック解除 |
| ページをウェブフック・イベントに購読 |
| Facebookストーリを公開(写真まえはビデオ) |
| Facebookリールを公開 |
| Facebook + Instagramに同時にクロスポスト |
| ライブビデオ配信を開始、まえは、予約 |
| ページのライブビデオを一覧 |
| 進行中のライブ配信を終了 |
| 現在の自動返信設定を取得 |
| インスタントリプライ用のメッセージを設定 |
| 留守/アウト・オブ・オフイスのメッセージを設定 |
| Messengerの挨拶のメッセージを設定 |
ツール | 説明 |
| FacebookページにリンクされたInstagramビジネスアカウントの一覧を取得する |
| ページネーション付きでInstagramアカウントの最近のメディアを取得する |
| IDを指定して単一のメディアオブジェクトを取得する |
| 任意の代替テキストやスケジュール設定付きで写真を公開する |
| 自動ポーリングと任意のスケジュール設定付きでリールを公開する |
| ストーリーを公開する(自動ポーリングの付きの画像またはビデオ) |
| カルーセルを公開する(2〜10アイテム、並列処理、スケジュール設定可能) |
| 事前に作成したメディアコンテナを公開する |
| コンテナの処理ステータスをアクション可能なメッセージ付きで確認する |
| 属性別の内訳付きのアカウントレベルの分析を取得する |
| リールのスキップ率やクロス投稿の投稿回数などを含む、投稿ととのメトリックスを取得する |
| メディアオブジェクトのコメントを取得する |
| コメントへのスレッド返信を取得する |
| コメントに返信する |
| コメントを削除する |
| コメントを非表示/再表示する(非破壊的なモデレーション) |
| Instagramショッピングカタログ内の商品を商品名で検索する |
| ハッシュタグのトップメディアまたは最新メディアを検索する |
| 最近検索したハッシュタグを取得する |
| ビジネスディスカバリー — ユーザー名で公開中のビジネス/クリエイターを検索する |
| 現在アクティブなストーリーを取得する |
| ライブ動画メディアを取得する |
| あなたが@メンションされたメディアを取得する |
| カルーセル内のアイテムを個々に取得する |
| メディアオブジェクトの商品タグを取得する |
| メディアオブジェクトを削除する |
| メディアのコメントの有効/無効を切り替える |
| レート制限ステータスを確認する(24時間あたり24件以内) |
| インスタグラムDM 会話の一覧を取得する |
| DM会話内のメッセージを取得する |
| テキストDMを送信する |
| DMで画像またリンクを送信する |
| プロフェッショナルアカウントでInstagramショッピングに利用可能な商品カタログ一覧を取得する |
| ブロードキャストチャンネールの一覧を取得する |
| ブロードキャストチャンネール内のメッセージを取得する |
| ブロードキャストチャンネールにメッセージを送信する |
| ブロードキャストチャンネールに投票を作成する |
アドマネージャー — 62ツール
広告キャンペーンのライフサイクル全体 — 作成、最適化、テスト、分析、自動化。Advantage+/へ移行、A/Bテスト、および包括的なピクセル管理を含む。
ツール | 説明 |
| アクセス可能な広告アカウントを一覧表示します |
| 広告アカウントの詳細(ステータス・通貨・支出上限・残高)を取得します |
| ステータスによる絞り込み・ページネーション付きでキャンペーンを一覧表示します |
| 単一のキャンペーンの完全な詳細を取得します |
| キャンペーンを作成します(OUTCOME_SALES向けのAdvantage+ Shoppingをサポート) |
| キャンペーン名・ステータス・予算の更新、またはAdvantage+への移行を行います |
| キャンペーンを削除します |
| キャンペーンをAdvantage+ Shoppingへ移行します(キャンペーンIDは維持) |
| フィルタ付きで広告セットを一覧表示します |
| 単一の広告セットのターゲティングと予算の詳細を取得します |
| ターゲティング・予算・placement_soft_opt_outを指定して広告セットを作成します |
| 広告セットのターゲティング・予算・placement_soft_opt_outを更新します |
| 広告セットを削除します |
| ステータスによる絞り込み付きで広告を一覧表示します |
| 単一の広告の詳細を取得します |
| クリエイティブを広告セットにリンクする広告を作成します |
| 広告の名前・ステータス・クリエイティブを更新します |
| 広告を削除します |
| 広告クリエイティブを一覧表示します |
| 単一のクリエイティブの詳細を取得します |
| テキスト・画像・リンクを含む広告クリエイティブを作成します |
| さまざまなプレースメントにおける広告の見た目をプレビューします |
| 特定の自動広告ルールの詳細を取得します |
| 広告アカウントへのアクセスが可能なユーザーを一覧表示します |
| 広告クリエイティブ用の画像をアップロードします |
| 以前にアップロードした広告画像を一覧表示します |
| 広告クリエイティブ用の動画をアップロードします |
| 以前にアップロードした広告動画を一覧表示します |
| 興味関心に基づくターゲティングオプションを検索します |
| 地域に基づくターゲティング(国・都市・郵便番号)を検索します |
| 人口統計属性に基づくターゲティングオプションを検索します |
| 利用可能なすべてのターゲティングカテゴリを閲覧します |
| ターゲット指定に対する潜在オーディエンス規模を見積もります |
| 指定した予算とターゲティングに対する広告配信を見積もります |
| リード生成フォームから送信されたリードを取得します |
| 通財・入札戦略ごとに、広告アカウントの日次・総算の最低予算を取得します |
| Facebook Pageのリード生成フォームを一覧表示します |
| 広告アカウントのオフライン・コンバージョン・イベントセットを一覧表示します |
| コンバージョン・トラッキング用のMeta Pixelを一覧表示します |
| 新しピクセルを作成します |
| ピクセルの詳細(名前・クッカー・ステータス・マッチングフィールド)を取得します |
| 時系列のイベント量統計を取得します(ピクセルの発火確認用) |
| ピクセル設定(名前・クッカー・マッチング・データ利用)を更新します |
| ピクセルを削除します |
| ピクセルのアクセスを別の広告アカウントと共有します |
| 直近のテストイベントを取得します(デバッグ用) |
| カスタムコンバージョン・イベントを一覧表示します |
| ピクセル・イベントからカスタムコンバージョンを作成します |
| 保存済みオーディエンスを一覧表示します |
| 再利用可能な保存済みオーディエンスを作成します |
| 保存済みオーディエンスを削除します |
| 自動広告ルールを一覧表示します |
| 自動ルールを作成します(例:CPAが5ドルを超える広告を一時停止) |
| 自動ルールを削除します |
| 整理用の広告ラベルを一覧表示します |
| 広告ラベルを作成します |
| 広告アカウントのアクティビティ・ログを取得します |
| Business Manager内のページ・広告アカウント・IGアカウント・ピクセルを一覧表示します |
| キャンペーンや広告セットを比較するA/Bテストを作成します |
| 広告アカウントのA/Bテストを一覧表示します |
| 勝者と信頼水準を含むA/Bテスト結果を取得します |
| オフライン・コンバージョン・イベントを送信します(店舗購入・電話注文・その他オフライン⇄ージョン) |
Threads — 22ツール
Threads API — GIF付き投稿・返信コントロール・位置タグ付け・アナリティクスを完備。
ツール | 説明 |
| Threads プロフィール情報を取得します |
| ページネーション対応で最近の投稿を取得します |
| ID で単一の投稿を取得します(reply_audience を含む) |
| キーワードで自分の投稿を検索します |
| テキスト投稿を公開します(返信制御・位置情報付き) |
| 画像投稿を公開します(返信制御・位置情報付き) |
| 自動ポーリング付きで動画投稿を公開します(返信制御・位置情報付き) |
| カルーセルを公開します(並列作成、返信制御付き) |
| リンク添付付きの投稿を公開します(返信制御付き) |
| GIPHY URL から GIF 投稿を公開します |
| 投稿を削除します |
| 投稿への返信を取得します |
| 投稿の完全な会話ツリーを取得します |
| 認証済み Threads ユーザーのフォロワーを一覧表示します |
| 認証済み Threads ユーザーがフォローしているアカウントを一覧表示します |
| あなたを @メンションしている投稿を取得します |
| カルーセル投稿内の個別アイテムを取得します |
| 返信を非表示/表示にします |
| Threads の投稿をリポストします |
| 特定の投稿の指標を取得します(表示数、いいね、返信など) |
| デモグラフィック属性の内訳を含むアカウントレベルの指標を取得します |
| 現在の投稿レート制限のステータスを確認します |
Commerce — 10ツール
Facebook と Instagram ショップの商品カタログ管理。
ツール | 説明 |
| ビジネスの商品カタログを一覧表示します |
| カタログの詳細と商品数を取得します |
| カタログ内の商品をフィルタリング付きで一覧表示します |
| 単一の商品の完全な詳細を取得します |
| カタログに商品を追加します |
| URL から商品を自動同期するプロダクトフィードを作成します |
| 商品の詳細(名称、価格、価格在庫状況など)を更新します |
| カタログから商品を削除します |
| カタログのプロダクトフィードを一覧取得します |
| カタログ内のプロダクトセット(サブグループ)を一覧取得します |
Conversions API — 2ツール
コンバージョン最適化のためのサーバーサイド・イベント追跡。
ツール | 説明 |
| サーバーサイド・コンバージョンイベント(Purchase、Lead など)を Pixel に送信します |
| 本番データに影響をけず CAPI セットアップをテストします |
Audiences — 5ツール
広告タジティングのためのカスタムオーディエンスとラックアライクオーディエンスの管理。
ツール | 説明 |
| 広告アカウント内のカスタムオーディエンスを一覧にします |
| オーディエンスの詳細(サークル、配信ステータス)を取得します |
| カスタムオーディエンスを作成します |
| ソースオーディエンスからラックアライクオーディエンスを作成します |
| カスタムオーディエンスを削除します |
Insights — 4ツール
37 のメトリックス、15 の日付プリセット、8 つのディメインションに対応した、広告ヒエラルキーのパフォーマンス分析。
Tool | 説明 |
| 広告カウントのパフォーマンス — コスト、インプレッション、ュー、クリック、CTR、CPM、CPC、コンバージョン、ROAS、動画完視、品質ランキング |
| キャンペーン単位のパフォーマンス(対するキーのセットと同じ) |
| 広告セット単位のパフォーマンス |
| 広告単位のパフォーマンス |
Charts — 2ツール
レート・プレゼンテーション向けにデータから可視チャートを生成します。
ツール | 説明 |
| バー、折れ線、パイー、ドーナツ、レーダーチャートを PNG 画象として作成します |
| 横並び比較チャート(A/B、期/前年)を作成します |
Ad Library & Utility — 4ツール
ツール | 説明 |
| 公開トラスパレンシー API で 、あらゆる広告者のアクティブ広告を検索します |
| トークンの型、有効性、失効限、権限、関連アプリ・ユーザーを調べます |
| サーバーの健全性を確認:トークンのステータス、キッシュ・トークン、API 接続性 |
| 名前または座標で Facebook Places(地名)を検索し、投稿タガ付けに使用 |
設定
変数 | 必須 | デフォルト | 説明 |
| 必須 | なし | Facebook Pages、Instagram、Ads Manager、Commerce、Conversions API、Audiences、Insights、ユーティリティツール用の期間有効な Meta Graph API トークン。 |
| 任意 | なし | Threads API トークン。Threads の投稿、返信、インサイトツールでのみ必要です。 |
1. Meta アプリを作成する
developers.facebook.com にアクセスし、→ My Apps → Create App で Business タイプを選択します。Facebook Login、Pages API、Instagram Graph API、Marketing API を追加します。
2. トークンを生成する
Graph API Explorer からトークンを取得し、長期間有効なトークン(60日)と交換します:
curl "https://graph.facebook.com/oauth/access_token?\
grant_type=fb_exchange_token&\
client_id=YOUR_APP_ID&\
client_secret=YOUR_APP_SECRET&\
fb_exchange_token=SHORT_LIVED_TOKEN"恒久的なアクセスには、Business Manager → System Users でシ惡ステムユーザー・トークンを作成してください。
**Threads は 、graph.threads.net OAuth を経由した別トークンを利用します。 Threads API docs を参照してください。
1Password 連携
環境変数にて META_ACCESS_TOKEN または THREADS_ACCESS_TOKEN が設定されていない場合、サーバーは自動的に 1Password CLI から解決を試みます:
op://Development/Meta Access Token/credential
op://Development/Threads Access Token/credentialつまり、op がインストチされており、サービイスアカウントまたセッションがきチいれは、環境変数を設定せずにそのまま進むことができます。このフォールバックは、トークンごとに起動時に約 1〜2 秒追加され、1Password が利用できない場合には静かニスキップされます。
3. 権限を付与する
権限 | 必要な用途 |
| ページの一覧表示 |
| ページインサイト・リケション |
| 投稿の作成・編集・削除 |
| ページ設定、ウエッブッ、プロフีール画像、カバー画_ |
| タグ付投稿、ビジーター投稿、評格 |
| メッセージの読取・送信、自動応答 |
| Instagram アウント情見 |
| 絵、リール、ストリー、カラセルの投稿 |
| Instagram アナイクス |
| コメント管理 |
| Instagram DM |
| キャンペーン、広告セット、広告、インイトの読取 |
| 広告の作成・管理、A/B テスト |
| Biusiness Manager の资产産、プロダクト・カタログ |
| 商品カタログの CRUD |
| Threads プロフィールと投稿 |
| Threads への投稿 |
| Threads アナリテクス |
| Threads の返信管理 |
4. MCP クアインタに接続する
**Claude Code(クュード) の場合 — ~/.claude/settings.json に追加:
{
"mcpServers": {
"meta": {
"command": "node",
"args": ["/absolute/path/to/meta-mcp-server/dist/index.js"],
"env": {
"META_ACCESS_TOKEN": "your_long_lived_token",
"THREADS_ACCESS_TOKEN": "your_threads_token"
}
}
}
}stdlib transport をサー対する任意の MCP クライアントで動作します。THREADS_ACCESS_TOKEN はオプショナル — Threads ツールでのみ必要です。
動作のしい
サーバーはトークンが未設定でも起動します — ク・ッシュも、「MCP 設定で 'failed' のステータス」もありません。認証を必要とするツールを呼び出と、明確なセットアップメッセージが返されきます。
最初の呼び出しは必ず meta_list_pages — キャッシュしたページ・スコープのアクセス・トークンを取得し、すべての Page と Instagram のオペレーションに使用します。
エラー処理
すべてのエラー・メッセージは、何が問題だったか、その理由、そして修正方法を説明します。
発生した状態 | 表示される内容 |
トークン未設定 | Graph Explorer へのリンク付きのステップ・バイ・ステップのセットアップ手順 |
トークン有効期限切れ(code 190) | developers.facebook.com で再生成するための直接リンク |
権限不足(code 10/200) | 必要な正確な権限と、その付与場所を示す |
レート制限(429) | 待機するよう促し、Meta のレート制限ドキュメントにリンクする |
ページトークンがない | 先に |
ネットワーク接続不可 | graph.facebook.com に接続できません — 接続を確認してください |
トークンの更新
長期トークンは 60 日後に失効します。meta_debug_token で有効期限を確認してから、更新してください:
curl "https://graph.facebook.com/oauth/access_token?\
grant_type=fb_exchange_token&\
client_id=APP_ID&client_secret=APP_SECRET&\
fb_exchange_token=CURRENT_TOKEN"永続トークンには、Business Manager → System Users でシステム・ユーザーを作成してください。
アーキテクチャ
src/
├── index.ts Server entry point (stdio transport)
├── constants.ts API versions, base URLs, field constants
├── types.ts TypeScript interfaces for Meta entities
├── services/
│ ├── api.ts MetaApiClient — dual Graph + Threads API
│ └── utils.ts Error handling, formatting, shared schemas
└── tools/
├── pages.ts 52 Facebook Page tools
├── instagram.ts 37 Instagram tools
├── ads.ts 62 Ads Manager tools
├── threads.ts 22 Threads tools
├── commerce.ts 10 Commerce/Catalog tools
├── conversions.ts 2 Conversions API tools
├── audiences.ts 5 Audience tools
├── insights.ts 4 Insight tools
├── charts.ts 2 Chart generation tools
├── ad_library.ts 1 Ad Library tool
└── utility.ts 3 Utility tools主要な設計上の決定事項
デュアル API クライアント —
graph.facebook.com/v21.0とgraph.threads.net/v1.0の両方に対応し、個別のベースURL とトークンを使用するページトークンのキャッシュ —
meta_list_pagesがページ・スコープのトークンをキャッシュし、後続のツールはページ ID でトークンを検索する2段階のコンテナ公開 — Instagram と Threads には「コンテナ → 公開」というフローが必要。サーバーが動画処理のポーリングを含めて自動処理する
並行カルーセル処理 — 全カルーセル項目は
Promise.allSettledで並行作成される。部分的な失敗では、どの項目が成功したかを報告するZod の厳スキーマ — すべてのツールは、型安全なパラメータ検証のたの**に、**Zod の厳スキーマを使用する
デュアル出力フォーマット — すべての読み取りツールは
response_format: "mark"→ または "json"をサポートするグレースフル認証 — トークンなしで起動し、クラッシュせずに最初のツール呼び出しのときセットアップ手順を返す
チャート生成 — クイックChart と統合し、レポート用にデータに PNG 画像を描画する
API カバレッジ
対象は Meta Graph API v21.0 と Threads API v1.0 です。
API | ステータス |
Facebook Pages API | 包括的 — 投稿、コメント、メッセージング、インサイト、イベント、メディア、ストーリーズ、リールズ、ライブ動画、自動応答 |
Instagram Graph API | 包括的 — 投稿、スケューール設定、コメント、DM、ブロードキャスト・チャンレル、ハッシュタグ、ビジネス・ディスカバリ、インサイト |
Marketing API | 包括的 — キャンペーン、広告セット、広告、クリエラティブ、ターゲティブ、ピクセル、CAPI、A/B テスト、Advantage+ |
Threads API | 包括的 — 投稿(テキスト、画像、動画像、GIF、カルーセル、リンク)、返信コントロール、位置情報、インサイト |
Commerce API | サポート — 商品カタログの CRUD、商品セット |
Conversions API | サポート — テストモード対応のサーバーサイド・イベント追跡 |
Ad Library API | サポート — 公開透明性の検索 |
WhatsApp Business API | 対象外 — 個別のインフラとトークン・プロローが必要 |
開発
ローカル開発とコントリテューションのチェックには、以下のコマンドを使用します:
npm install
npm test # 52 tests
npm run build # TypeScript compilation
npm run test:watch # Development mode開発規約:Zod の .strict() スキーマ、読み取りツールの response_format パラメータ、そし isError: true 付きのツール・エラーは errorResult() を使う。
コネクタの追加
新しいコネクタは、アプリケーション固有のコードを共通の MCP エンドポイントから分離しておく必要があります。
src/services/の下に、環境変数べスの認証情報設定を持つ API クライアントを追加します。src/tools/の下に、厳格な Zod 入力スキーマを持つツール・モジュールを 1 つ以上追加します。src/index.tsからツールを登録します。セットアップ手順、権限、対応操作を
docs/と README に記録します。ルリクエストを開く前に、ユニット・統合テストのカバレッジを追加します。
認証情報は環境変数―またはローカルの秘マネージャーに保します。トークン、秘密鍵、顧客データをコミットしないでください。
ライセンス
このプロジェクトは MIT License の下で提供されています。個人・商用を問わず自由に使用でき、変更、ホスティング、再配布も、ライセンス表示に従うことを前提に認められています。サードパーティの API やサービスは、それぞれの規約、クォータ、認証要件に従うものとします。
Available Tools
200 toolsmeta_block_userBlock/Unblock User from PageAIdempotent
Blocks or unblocks a user from a Facebook Page. Blocked users cannot post or comment.
Args:
page_id (string): Facebook Page ID
user_id (string): User ID to block/unblock
unblock (boolean): If true, unblocks the user instead
Inputs: page_id (required), user_id (required), unblock.
meta_browse_targeting_categoriesBrowse Targeting CategoriesCRead-onlyIdempotent
Browses all available targeting category types for ad targeting.
Args:
type (string): Category type — adTargetingCategory, adcountry, adlocale, adlanguage
Inputs: type, class, response_format.
meta_check_instagram_containerCheck Instagram Container StatusARead-onlyIdempotent
Checks the publishing status of an Instagram media container (used for reels/videos that need processing).
Args:
container_id (string): Container ID from a publish step
Returns: status_code — IN_PROGRESS, FINISHED, ERROR, EXPIRED.
Inputs: container_id (required), response_format.
meta_check_instagram_publishing_limitCheck Instagram Publishing Rate LimitARead-only
Checks how many of the 100 API-published posts per 24-hour limit have been used.
Args:
ig_account_id (string): Instagram account ID
Returns: Current usage and quota remaining.
Inputs: ig_account_id (required), response_format.
meta_create_adCreate AdA
Creates a new ad within an ad set.
Args:
ad_account_id (string): Ad account ID
adset_id (string): Parent ad set ID
name (string): Ad name
creative_id (string): Ad creative ID (from meta_list_ad_creatives or meta_create_ad_creative)
status (string): ACTIVE or PAUSED (default PAUSED)
Returns the new ad ID.
Inputs: name (required), adset_id (required), creative_id (required), ad_account_id (required), +2 more.
meta_create_ad_creativeCreate Ad CreativeA
Creates an ad creative from an existing Facebook Page post.
Args:
ad_account_id (string): Ad account ID
name (string): Creative name
page_id (string): Facebook Page ID that owns the post
object_story_id (string, optional): Use an existing published post as creative (format: {page_id}_{post_id})
title (string, optional): Ad headline
body (string, optional): Ad body text
image_url (string, optional): Image URL for the creative
link_url (string, optional): Destination URL
Returns the new creative ID.
Inputs: name (required), page_id (required), ad_account_id (required), body, +5 more.
meta_create_ad_labelCreate Ad LabelB
Creates a label for organizing ads, ad sets, or campaigns.
Args:
ad_account_id (string): Ad account ID
name (string): Label name
Inputs: name (required), ad_account_id (required), response_format.
meta_create_ad_ruleCreate Automated Ad RuleA
Creates an automated rule for managing ads, ad sets, or campaigns.
Args:
ad_account_id (string): Ad account ID
name (string): Rule name
evaluation_spec (object): Conditions that trigger the rule (e.g., {"evaluation_type":"TRIGGER","trigger":{"type":"STATS_CHANGE","field":"cost_per_result","value":"5.00","operator":"GREATER_THAN"}})
execution_spec (object): Actions to take (e.g., {"execution_type":"PAUSE"})
schedule_spec (object, optional): When to evaluate (e.g., {"schedule_type":"DAILY"})
Inputs: name (required), ad_account_id (required), execution_spec (required), evaluation_spec (required), +2 more.
meta_create_adsetCreate Ad SetA
Creates a new ad set within a campaign.
Args:
ad_account_id (string): Ad account ID (e.g., act_123456789)
campaign_id (string): Parent campaign ID
name (string): Ad set name
daily_budget (number, optional): Daily budget in cents
lifetime_budget (number, optional): Lifetime budget in cents (requires end_time)
billing_event (string): How you're charged: IMPRESSIONS, LINK_CLICKS, etc.
optimization_goal (string): What to optimize for: REACH, LINK_CLICKS, CONVERSIONS, etc.
targeting (object): Targeting spec JSON. Example: {"geo_locations": {"countries": ["US"]}, "age_min": 18, "age_max": 65}
start_time (string, optional): ISO 8601 start time
end_time (string, optional): ISO 8601 end time (required with lifetime_budget)
status (string): ACTIVE or PAUSED (default PAUSED)
placement_soft_opt_out (string[], optional): Placements to soft opt-out (up to 5% spend may still go to these). Only for Sales/Leads objectives.
Returns the new ad set ID.
Inputs: name (required), targeting (required), campaign_id (required), ad_account_id (required), +9 more.
meta_create_ad_studyCreate A/B Test (Ad Study)A
Creates an A/B test (ad study) to compare campaigns or ad sets.
Args:
ad_account_id (string): Ad account ID (e.g., act_123456789)
name (string): Study name
description (string, optional): Study description
start_time (string): ISO 8601 start time
end_time (string): ISO 8601 end time
type (enum): SPLIT_TEST or HOLDOUT
cells (array): Test cells, each with name, treatment_percentage, and optional campaign_ids/adset_ids
confidence_level (number, default 95): Statistical confidence level (e.g., 90, 95, 99)
Returns: The created study ID.
Inputs: name (required), type (required), cells (required), end_time (required), +5 more.
meta_create_broadcast_channel_pollCreate Broadcast Channel PollA
Creates a poll in an Instagram broadcast channel.
Args:
channel_id (string): Broadcast channel ID
question (string): Poll question
options (string[]): Poll options (2–4 items)
Returns: Poll/message ID.
Inputs: options (required), question (required), channel_id (required).
meta_create_campaignCreate CampaignA
Creates a new campaign in a Meta ad account.
Args:
ad_account_id (string): Ad account ID (e.g., act_123456789)
name (string): Campaign name
objective (string): Campaign objective. Common values: OUTCOME_AWARENESS, OUTCOME_TRAFFIC, OUTCOME_ENGAGEMENT, OUTCOME_LEADS, OUTCOME_APP_PROMOTION, OUTCOME_SALES
status (string): ACTIVE or PAUSED (default PAUSED)
daily_budget (number, optional): Daily budget in account currency cents
lifetime_budget (number, optional): Lifetime budget in cents (requires stop_time)
stop_time (string, optional): ISO 8601 end date (required for lifetime budget)
special_ad_categories (string[], optional): Required for housing, employment, credit ads
Note: For OUTCOME_SALES objective, Advantage+ Shopping campaigns are available. These use Meta's AI to optimize targeting and placements automatically. Create a standard campaign first, then use meta_migrate_campaign_to_advantage_plus to convert it.
Returns the new campaign ID.
Inputs: name (required), objective (required), ad_account_id (required), status, +5 more.
meta_create_custom_audienceCreate Custom AudienceA
Creates a new custom audience in a Meta ad account.
Supported types:
CUSTOM: Website visitors (requires Pixel), app activity, or customer list
ENGAGEMENT: People who engaged with your content
VIDEO: People who watched your videos
Args:
ad_account_id (string): Ad account ID (e.g., act_123456789)
name (string): Audience name
subtype (string): CUSTOM, ENGAGEMENT, VIDEO, WEBSITE, or APP
description (string, optional): Audience description
customer_file_source (string, optional): For CUSTOM type — USER_PROVIDED_ONLY, PARTNER_PROVIDED_ONLY, BOTH_USER_AND_PARTNER_PROVIDED
retention_days (number, optional): Days to retain audience members (1–180)
Returns the new audience ID.
Note: Populating the audience with users is a separate step requiring the Audiences API to upload hashed data or configure a rule.
Inputs: name (required), subtype (required), ad_account_id (required), description, +3 more.
meta_create_custom_conversionCreate Custom ConversionB
Creates a custom conversion for tracking specific actions.
Args:
ad_account_id (string): Ad account ID
name (string): Conversion name
pixel_id (string): Pixel ID to associate with
custom_event_type (string): Event type — CONTENT_VIEW, SEARCH, ADD_TO_CART, ADD_TO_WISHLIST, INITIATED_CHECKOUT, ADD_PAYMENT_INFO, PURCHASE, LEAD, COMPLETE_REGISTRATION, OTHER
rule (string): URL rule as JSON (e.g., {"url":{"i_contains":"thank-you"}})
Inputs: name (required), rule (required), pixel_id (required), ad_account_id (required), +2 more.
meta_create_eventCreate Facebook Page EventA
Creates an event on a Facebook Page.
Args:
page_id (string): Facebook Page ID
name (string): Event name
start_time (string): ISO 8601 datetime (e.g., 2024-06-15T18:00:00-0400)
end_time (string, optional): ISO 8601 datetime
description (string, optional): Event description
place (string, optional): Location name
ticket_uri (string, optional): Ticket URL
Inputs: name (required), page_id (required), start_time (required), place, +4 more.
meta_create_live_videoCreate Facebook Live VideoA
Creates a live video broadcast on a Facebook Page.
Requires: meta_list_pages called first to load page tokens.
Args:
page_id (string): Facebook Page ID
title (string): Title of the live video
description (string, optional): Description of the broadcast
planned_start_time (string, optional): ISO 8601 datetime for scheduled broadcasts
If planned_start_time is provided, the broadcast is created as SCHEDULED_UNPUBLISHED; otherwise it goes LIVE_NOW.
Returns the stream URL and live video ID.
Inputs: title (required), page_id (required), description, response_format, +1 more.
meta_create_lookalike_audienceCreate Lookalike AudienceB
Creates a lookalike audience based on an existing custom audience or page.
Args:
ad_account_id (string): Ad account ID
name (string): Audience name
origin_audience_id (string): Source custom audience ID to base the lookalike on
country (string): ISO 3166-1 alpha-2 country code (e.g., "US", "GB")
ratio (number): Lookalike size as fraction of country population (0.01–0.20, i.e. 1%–20%)
Returns the new lookalike audience ID.
Inputs: name (required), ratio (required), country (required), ad_account_id (required), +2 more.
meta_create_photo_postCreate Facebook Photo PostB
Publishes a photo post to a Facebook Page.
Args:
page_id (string): Facebook Page ID
url (string): Public URL of the image
caption (string, optional): Photo caption/message
published (boolean): Default true
Inputs: url (required), page_id (required), caption, published, +1 more.
meta_create_pixelCreate Meta PixelB
Creates a new Meta Pixel for conversion tracking.
Args:
ad_account_id (string): Ad account ID
name (string): Pixel name
Inputs: name (required), ad_account_id (required), response_format.
meta_create_postCreate Facebook Page PostA
Creates a new post on a Facebook Page.
Requires: meta_list_pages must be called first to load page tokens.
Args:
page_id (string): Facebook Page ID to post to
message (string): Text content of the post
link (string, optional): URL to attach to the post (creates a link preview)
published (boolean, optional): If false, saves as draft. Default true.
scheduled_publish_time (number, optional): Unix timestamp for scheduling (must be 10 min to 30 days in future; published must be false)
Returns: Post ID of the created post.
Notes:
Maximum post length: ~63,206 characters
Scheduling requires the page to have Page Publishing Authorization
Inputs: message (required), page_id (required), link, published, +2 more.
meta_create_productCreate ProductA
Adds a product to a catalog.
Args:
catalog_id (string): The catalog ID
name (string): Product name
description (string): Product description
price (number): Price in cents
currency (string): Currency code (default "USD")
availability (enum): "in stock", "out of stock", "preorder", "available for order"
image_url (string): Product image URL
url (string): Product page URL
brand (string, optional): Brand name
category (string, optional): Product category
retailer_id (string): Your unique product ID
Returns the created product ID.
Inputs: url (required), name (required), price (required), image_url (required), +8 more.
meta_create_product_feedCreate Product FeedA
Creates a new product feed for a catalog to automatically sync products from a URL.
Args:
catalog_id (string): Product catalog ID
name (string): Feed name
schedule_url (string): URL of the product feed file (CSV, TSV, XML)
schedule_interval (string): How often to fetch — HOURLY, DAILY, WEEKLY, MONTHLY
Returns the new feed ID.
Inputs: name (required), catalog_id (required), schedule_url (required), schedule_interval (required), +1 more.
meta_create_saved_audienceCreate Saved AudienceC
Creates a saved audience (reusable targeting preset) for an ad account.
Args:
ad_account_id (string): Ad account ID
name (string): Audience name
targeting (object): Targeting spec object
Inputs: name (required), targeting (required), ad_account_id (required), response_format.
meta_create_video_postCreate Facebook Video PostC
Publishes a video post to a Facebook Page.
Args:
page_id (string): Facebook Page ID
file_url (string): Public URL of the video file
title (string, optional): Video title
description (string, optional): Video description
Inputs: page_id (required), file_url (required), title, description, +1 more.
meta_cross_postCross-Post to Facebook Page & InstagramA
Publishes the same content to both a Facebook Page and Instagram simultaneously.
Requires: meta_list_pages must be called first to load page tokens.
Args:
page_id (string): Facebook Page ID
ig_account_id (string): Instagram professional account ID
message (string): Text content (used as FB post text and IG caption)
image_url (string, optional): Public image URL — creates photo posts on both platforms
video_url (string, optional): Public video URL — creates Reels on both platforms
Logic:
If image_url: FB photo post + IG photo post (parallel)
If video_url: FB Reel + IG Reel (parallel)
If text only: FB text post only (IG doesn't support text-only posts)
Uses Promise.allSettled so one platform failing doesn't block the other
Returns: Results from both platforms (which succeeded, which failed).
Inputs: message (required), page_id (required), ig_account_id (required), image_url, +2 more.
meta_debug_tokenDebug Access TokenARead-onlyIdempotent
Inspects the current Meta access token to show its type, expiry, permissions, and associated app/user.
Useful for diagnosing "permission denied" errors or checking when a token expires.
No arguments needed — inspects the META_ACCESS_TOKEN configured in your MCP env.
Inputs: response_format.
meta_delete_adDelete AdADestructive
Deletes an ad permanently.
Args:
ad_id (string): Ad ID to delete
Inputs: ad_id (required).
meta_delete_ad_ruleDelete Automated Ad RuleADestructive
Deletes an automated ad rule.
Args:
rule_id (string): Ad rule ID
Inputs: rule_id (required).
meta_delete_adsetDelete Ad SetADestructive
Deletes an ad set permanently.
Args:
adset_id (string): Ad set ID to delete
Inputs: adset_id (required).
meta_delete_campaignDelete CampaignADestructive
Deletes (archives) a campaign. This cannot be undone.
Args:
campaign_id (string): Campaign ID to delete
Inputs: campaign_id (required).
meta_delete_commentDelete Facebook CommentADestructive
Deletes a comment on a Facebook Page post. Permanent action.
Args:
comment_id (string): Comment ID to delete
page_id (string): Page ID (for authentication)
Inputs: page_id (required), comment_id (required).
meta_delete_custom_audienceDelete Custom AudienceADestructive
Deletes a custom audience permanently. This cannot be undone.
Args:
audience_id (string): Custom audience ID to delete
Inputs: audience_id (required).
meta_delete_instagram_commentDelete Instagram CommentADestructive
Deletes a comment on an Instagram media object. This is permanent.
Args:
comment_id (string): The comment ID to delete
Inputs: comment_id (required).
meta_delete_instagram_mediaDelete Instagram MediaADestructive
Deletes an Instagram media object (post, reel, story). This is permanent.
Args:
media_id (string): Instagram media ID to delete
Inputs: media_id (required).
meta_delete_pixelDelete Meta PixelADestructive
Deletes a Meta Pixel.
Args:
pixel_id (string): Pixel ID to delete
Inputs: pixel_id (required).
meta_delete_postDelete Facebook Page PostADestructive
Deletes a post from a Facebook Page. This action is permanent and cannot be undone.
Args:
post_id (string): The post ID to delete (format: {page_id}_{post_id})
page_id (string): The Page ID (for authentication)
Inputs: page_id (required), post_id (required).
meta_delete_productDelete ProductADestructive
Deletes a product from a catalog.
Args:
product_id (string): The product ID
This action is permanent and cannot be undone.
Inputs: product_id (required).
meta_delete_saved_audienceDelete Saved AudienceCDestructive
Deletes a saved audience.
Args:
audience_id (string): Saved audience ID
Inputs: audience_id (required).
meta_end_live_videoEnd Facebook Live VideoAIdempotent
Ends an active live video broadcast.
Requires: meta_list_pages called first to load page tokens.
Args:
live_video_id (string): The live video ID to end
page_id (string): Facebook Page ID (needed for page token auth)
Ends the broadcast immediately.
Inputs: page_id (required), live_video_id (required), response_format.
meta_generate_chartGenerate a Chart from DataAIdempotent
Generates a chart image (PNG) from provided data. Uses QuickChart (Chart.js) to render.
Perfect for creating visual reports from Meta insights data. The chart is saved as a PNG file that can be inserted into Word docs, presentations, or shared directly.
Args:
chart_type (string): 'bar', 'line', 'pie', 'doughnut', 'radar', 'polarArea', 'horizontalBar'
title (string): Chart title
labels (string[]): X-axis labels or pie slice labels
datasets (array): One or more datasets, each with:
label (string): Dataset name (e.g., "Impressions")
data (number[]): Data values matching labels
color (string, optional): CSS color (e.g., "#1877F2", "rgba(24,119,242,0.5)")
width (number): Image width in pixels (default: 800)
height (number): Image height in pixels (default: 400)
output_path (string, optional): Save PNG to this path. If omitted, returns the chart URL.
stacked (boolean, optional): Stack bars/lines (default: false)
show_values (boolean, optional): Display data values on the chart (default: false)
Returns: Chart URL or file path. The URL can be opened in a browser or fetched as a PNG.
Example datasets for ad performance: labels: ["Mon","Tue","Wed","Thu","Fri"] datasets: [ { label: "Impressions", data: [1200,1800,1500,2100,1900], color: "#1877F2" }, { label: "Clicks", data: [45,62,51,78,65], color: "#42B72A" } ]
Inputs: title (required), labels (required), datasets (required), width, +6 more.
meta_generate_comparison_chartGenerate a Before/After or A/B Comparison ChartAIdempotent
Generates a side-by-side comparison chart — perfect for comparing two time periods, two campaigns, or A/B test results.
Args:
title (string): Chart title
metrics (string[]): Metric names (y-axis labels)
group_a (object): { label: string, values: number[], color?: string }
group_b (object): { label: string, values: number[], color?: string }
chart_type (string): 'bar' or 'horizontalBar' (default: 'horizontalBar')
width (number): Width in pixels (default: 800)
height (number): Height in pixels (default: 400)
output_path (string, optional): Save PNG to this path
Example — comparing two weeks: title: "This Week vs Last Week" metrics: ["Impressions", "Reach", "Clicks", "Spend"] group_a: { label: "Last Week", values: [12000, 8000, 450, 150] } group_b: { label: "This Week", values: [15000, 10500, 620, 185] }
Inputs: title (required), group_a (required), group_b (required), metrics (required), +5 more.
meta_get_account_insightsGet Ad Account InsightsARead-only
Gets performance insights for a Meta ad account.
Args:
ad_account_id (string): Ad account ID (e.g., act_123456789)
date_preset (string): Date range preset (default: last_30d)
since (string, optional): Custom start date YYYY-MM-DD (overrides date_preset)
until (string, optional): Custom end date YYYY-MM-DD
breakdowns (string[], optional): Segment by age, gender, country, device_platform, placement, etc.
Returns comprehensive metrics including: Performance: impressions, reach, clicks, spend, frequency, unique_clicks, unique_impressions Cost: cpm, cpc, cpp, ctr, cost_per_action_type, cost_per_conversion, cost_per_inline_link_click, cost_per_outbound_click, cost_per_thruplay Engagement: actions, inline_link_clicks, inline_link_click_ctr, inline_post_engagement, outbound_clicks, outbound_clicks_ctr, social_spend Conversions: conversions, conversion_values, purchase_roas Video: video_play_actions, video_avg_time_watched_actions, video_thruplay_watched_actions, video_p25/p50/p75/p95/p100_watched_actions Quality: quality_ranking, engagement_rate_ranking, conversion_rate_ranking
Inputs: ad_account_id (required), since, until, breakdowns, +2 more.
meta_get_adGet Ad DetailsCRead-onlyIdempotent
Gets detailed information about a specific ad.
Args:
ad_id (string): Ad ID
Inputs: ad_id (required), response_format.
meta_get_ad_accountGet Ad Account DetailsARead-onlyIdempotent
Gets detailed information about a specific ad account.
Args:
ad_account_id (string): Ad account ID (e.g., act_123456789)
Inputs: ad_account_id (required), response_format.
meta_get_ad_account_activityGet Ad Account Activity LogARead-only
Gets the activity/change log for an ad account.
Args:
ad_account_id (string): Ad account ID
limit (number): Max results (default 25)
since (string, optional): Start date YYYY-MM-DD
until (string, optional): End date YYYY-MM-DD
Inputs: ad_account_id (required), limit, since, until, +1 more.
meta_get_ad_account_usersGet Ad Account UsersARead-onlyIdempotent
Lists users who have access to an ad account with their roles.
Args:
ad_account_id (string): Ad account ID (e.g., act_123456789)
Inputs: ad_account_id (required), response_format.
meta_get_ad_creativeGet Ad Creative DetailsCRead-onlyIdempotent
Gets detailed information about a specific ad creative.
Args:
creative_id (string): Creative ID
Inputs: creative_id (required), response_format.
meta_get_ad_insightsGet Ad InsightsARead-only
Gets performance insights at the individual ad level.
Args:
ad_account_id (string, optional): All ads in account
campaign_id (string, optional): All ads in campaign
adset_id (string, optional): All ads in ad set
ad_id (string, optional): Specific ad
date_preset (string): Date range preset (default: last_30d)
since / until (string, optional): Custom date range YYYY-MM-DD
breakdowns (string[], optional): age, gender, country, device_platform, etc.
Provide one of: ad_id, adset_id, campaign_id, or ad_account_id.
Inputs: ad_id, since, until, adset_id, +5 more.
meta_get_ad_previewGet Ad PreviewARead-onlyIdempotent
Generates a preview URL for an ad or creative.
Args:
ad_id (string, optional): Existing ad ID
creative_id (string, optional): Creative ID to preview
ad_format (string): Preview format — DESKTOP_FEED_STANDARD, MOBILE_FEED_STANDARD, INSTAGRAM_STANDARD, INSTAGRAM_STORY, RIGHT_COLUMN_STANDARD
Provide either ad_id or creative_id.
Inputs: ad_id, ad_format, creative_id, response_format.
meta_get_ad_ruleGet Ad Rule DetailsARead-onlyIdempotent
Gets details for a specific automated ad rule.
Args:
rule_id (string): Ad rule ID
Inputs: rule_id (required), response_format.
meta_get_adsetGet Ad Set DetailsCRead-onlyIdempotent
Gets detailed information about a specific ad set.
Args:
adset_id (string): Ad set ID
Inputs: adset_id (required), response_format.
meta_get_adset_insightsGet Ad Set InsightsARead-only
Gets performance insights for ad sets.
Args:
ad_account_id (string): Ad account ID (use for all ad sets)
adset_id (string, optional): Specific ad set ID
campaign_id (string, optional): All ad sets in a campaign
date_preset (string): Date range preset (default: last_30d)
since / until (string, optional): Custom date range YYYY-MM-DD
breakdowns (string[], optional): age, gender, country, device_platform, etc.
Provide ad_account_id or campaign_id or adset_id.
Inputs: since, until, adset_id, breakdowns, +4 more.
meta_get_ad_studiesList A/B Tests (Ad Studies)ARead-onlyIdempotent
Lists A/B tests (ad studies) for a Meta ad account.
Args:
ad_account_id (string): Ad account ID (e.g., act_123456789)
limit (number): Max results (1–50, default 10)
Returns: List of studies with name, type, status, dates, and results.
Inputs: ad_account_id (required), limit, response_format.
meta_get_ad_study_resultsGet A/B Test ResultsARead-onlyIdempotent
Gets detailed results of a specific A/B test (ad study).
Args:
study_id (string): The ad study ID
Returns: Study details including winner, confidence level, and per-cell metrics.
Inputs: study_id (required), response_format.
meta_get_blocked_usersGet Blocked UsersARead-onlyIdempotent
Lists users blocked by the Facebook Page.
Args:
page_id (string): Facebook Page ID
Inputs: page_id (required), response_format.
meta_get_broadcast_channel_messagesGet Broadcast Channel MessagesBRead-only
Gets messages in an Instagram broadcast channel.
Args:
channel_id (string): Broadcast channel ID
limit (number): Max messages (1–100, default 20)
after (string, optional): Pagination cursor
Returns: Paginated list of messages with type, content, and timestamps.
Inputs: channel_id (required), after, limit, response_format.
meta_get_campaignGet Campaign DetailsCRead-onlyIdempotent
Gets detailed information about a specific campaign.
Args:
campaign_id (string): Campaign ID
Inputs: campaign_id (required), response_format.
meta_get_campaign_insightsGet Campaign InsightsARead-only
Gets performance insights for campaigns in a Meta ad account.
Args:
ad_account_id (string): Ad account ID
campaign_id (string, optional): Specific campaign ID (omit for all campaigns)
date_preset (string): Date range preset (default: last_30d)
since (string, optional): Custom start date YYYY-MM-DD
until (string, optional): Custom end date YYYY-MM-DD
breakdowns (string[], optional): Segment by age, gender, country, device_platform, etc.
Returns per-campaign spend, impressions, clicks, CTR, and actions.
Inputs: ad_account_id (required), since, until, breakdowns, +3 more.
meta_get_conversation_messagesGet Conversation MessagesARead-only
Gets messages from a specific Page conversation.
Args:
page_id (string): Facebook Page ID (for auth)
conversation_id (string): Conversation ID (from meta_get_page_conversations)
limit (number): Max messages (1–100, default 20)
Inputs: page_id (required), conversation_id (required), after, limit, +1 more.
meta_get_custom_audienceGet Custom AudienceARead-onlyIdempotent
Gets details about a specific custom audience.
Args:
audience_id (string): Custom audience ID
Inputs: audience_id (required), response_format.
meta_get_delivery_estimateGet Delivery EstimateARead-only
Gets delivery estimate for an existing ad set.
Args:
adset_id (string): Ad set ID
Returns: Estimated daily outcomes (reach, impressions, actions) and bid suggestion.
Inputs: adset_id (required), response_format.
meta_get_instagram_account_insightsGet Instagram Account InsightsARead-only
Gets performance insights for an Instagram professional account.
Args:
ig_account_id (string): Instagram account ID
metrics (string[]): Metrics to retrieve. Options: Interactions: accounts_engaged, total_interactions, likes, comments, shares, saves, replies, reposts, reach, views, profile_links_taps, account_repost_count Legacy: impressions (deprecated v22.0+), follower_count, email_contacts, phone_call_clicks, text_message_clicks, get_directions_clicks, profile_views, website_clicks Demographics: engaged_audience_demographics, reached_audience_demographics, follower_demographics, online_followers
Note: account_repost_count (Dec 2025) returns the total number of reposts across the account for the given period.
period (string): 'day', 'week', 'days_28', 'month', 'lifetime' (lifetime only for demographic metrics)
since (string, optional): Start date YYYY-MM-DD
until (string, optional): End date YYYY-MM-DD
breakdown (string, optional): For demographic metrics: 'age', 'city', 'country', 'gender'
timeframe (string, optional): For demographic metrics: 'last_14_days', 'last_30_days', 'last_90_days', 'this_month', 'this_week'
Note: demographic metrics require 100+ followers. online_followers only available for last 30 days.
Inputs: ig_account_id (required), since, until, period, +4 more.
meta_get_instagram_available_catalogsGet Instagram Available CatalogsARead-onlyIdempotent
Lists product catalogs available for Instagram Shopping on a professional account.
Args:
ig_account_id (string): Instagram account ID
Returns: Catalog IDs and names that can be used for product tagging on this account.
Requires: instagram_shopping_tag_products permission.
Inputs: ig_account_id (required), response_format.
meta_get_instagram_broadcast_channelsList Instagram Broadcast ChannelsARead-onlyIdempotent
Lists broadcast channels for an Instagram professional account.
Broadcast channels enable one-to-many messaging from creators/brands to subscribers.
Args:
ig_account_id (string): Instagram account ID
Returns: Channel IDs, names, descriptions, subscriber counts.
Inputs: ig_account_id (required), response_format.
meta_get_instagram_comment_repliesGet Instagram Comment RepliesARead-only
Gets replies to a specific Instagram comment.
Args:
comment_id (string): Parent comment ID
limit (number): Max replies (1–50, default 20)
Inputs: comment_id (required), limit, response_format.
meta_get_instagram_commentsGet Instagram CommentsCRead-only
Gets comments on an Instagram media object.
Args:
media_id (string): Instagram media ID
limit (number): Max comments to return (1–100, default 20)
Inputs: media_id (required), after, limit, response_format.
meta_get_instagram_conversationsList Instagram DM ConversationsBRead-only
Lists Instagram Direct Message conversations.
Args:
ig_account_id (string): Instagram account ID
folder (string): 'inbox' (default), 'spam', or 'general'
limit (number): Max conversations (1–100, default 20)
after (string, optional): Pagination cursor
Requires instagram_manage_messages permission. Uses user token (not page token).
Inputs: ig_account_id (required), after, limit, folder, +1 more.
meta_get_instagram_live_mediaGet Instagram Live MediaBRead-only
Gets live video broadcasts from an Instagram account.
Args:
ig_account_id (string): Instagram account ID
Inputs: ig_account_id (required), response_format.
meta_get_instagram_mediaGet Instagram MediaARead-only
Lists media (posts, reels, stories) from an Instagram professional account.
Args:
ig_account_id (string): Instagram account ID (from meta_list_instagram_accounts)
limit (number): Max items to return (1–100, default 20)
after (string, optional): Pagination cursor
Inputs: ig_account_id (required), after, limit, response_format.
meta_get_instagram_media_childrenGet Instagram Carousel ItemsARead-onlyIdempotent
Gets individual media items in a carousel/album post.
Args:
media_id (string): Carousel media ID
Inputs: media_id (required), response_format.
meta_get_instagram_media_insightsGet Instagram Media InsightsARead-onlyIdempotent
Gets performance metrics for a specific Instagram media object.
Args:
media_id (string): Instagram media ID (from meta_get_instagram_media)
metrics (string[]): Metrics vary by media type: Photos/Carousels: reach, likes, comments, shares, saved, total_interactions, follows, profile_visits, profile_activity, views, impressions (deprecated) Reels/Video: reach, likes, comments, shares, saved, total_interactions, follows, profile_visits, profile_activity, views, ig_reels_avg_watch_time, ig_reels_video_view_total_time, reels_skip_rate, repost_count, crossposted_views, facebook_views, impressions (deprecated), plays (deprecated), clips_replays_count (deprecated) Stories: reach, shares, follows, profile_visits, profile_activity, replies, navigation, total_interactions, views, impressions (deprecated)
New Reels metrics (Dec 2025): - reels_skip_rate: Percentage of viewers who skip within first 3 seconds - repost_count: Number of reposts of this media - crossposted_views: Total views across Instagram and Facebook (for crossposted content) - facebook_views: Facebook-specific views for crossposted Reels
breakdown (string, optional): 'action_type' (for profile_activity) or 'story_navigation_action_type' (for navigation)
Inputs: media_id (required), metrics, breakdown, response_format.
meta_get_instagram_mentioned_mediaGet Instagram MentionsBRead-only
Gets media where the Instagram account was @mentioned in a caption or comment.
Args:
ig_account_id (string): Instagram account ID
limit (number): Max results (default 20)
Requires instagram_manage_comments permission.
Inputs: ig_account_id (required), after, limit, response_format.
meta_get_instagram_messagesGet Instagram DM MessagesARead-only
Gets messages in an Instagram Direct Message conversation.
Args:
conversation_id (string): Conversation ID (from meta_get_instagram_conversations)
limit (number): Max messages (1–100, default 20)
after (string, optional): Pagination cursor
Messages are returned in reverse chronological order from the API and displayed in chronological order.
Inputs: conversation_id (required), after, limit, response_format.
meta_get_instagram_product_tagsGet Instagram Product TagsARead-onlyIdempotent
Gets product tags on an Instagram media object. Requires Instagram Shopping.
Args:
media_id (string): Instagram media ID
Inputs: media_id (required), response_format.
meta_get_instagram_recent_hashtagsGet Recently Searched HashtagsARead-only
Gets hashtags recently searched by the Instagram account.
Args:
ig_account_id (string): Instagram account ID
Note: Limited to 30 unique hashtag searches per 7 days. This returns the recent searches.
Inputs: ig_account_id (required), response_format.
meta_get_instagram_single_mediaGet Single Instagram Media DetailsBRead-onlyIdempotent
Gets detailed information about a specific Instagram media object.
Args:
media_id (string): Instagram media ID
Inputs: media_id (required), response_format.
meta_get_instagram_storiesGet Instagram StoriesARead-onlyIdempotent
Gets currently active stories for an Instagram professional account.
Args:
ig_account_id (string): Instagram account ID
Returns: List of active story media objects. Stories expire after 24 hours.
Inputs: ig_account_id (required), response_format.
meta_get_instagram_userGet Instagram User InfoARead-onlyIdempotent
Gets public profile info for any Instagram business/creator account by username.
Uses the Business Discovery API — no follow/connection required.
Args:
ig_account_id (string): Your Instagram account ID (for auth)
username (string): Instagram username to look up (without @)
Returns: Bio, follower/following counts, media count, profile picture, and recent media.
Inputs: username (required), ig_account_id (required), response_format.
meta_get_leadgen_leadsGet Leads from FormARead-only
Gets submitted leads from a lead generation form.
Requires: meta_list_pages must be called first to load page tokens.
Args:
form_id (string): Lead gen form ID (from meta_list_leadgen_forms)
page_id (string): Page ID (for authentication)
limit (number): Max results (1–100, default 25)
after (string, optional): Pagination cursor
Returns lead data including field values, creation time, and ad info.
Inputs: form_id (required), page_id (required), after, limit, +1 more.
meta_get_live_videosList Facebook Live VideosARead-onlyIdempotent
Lists live videos on a Facebook Page.
Requires: meta_list_pages called first to load page tokens.
Args:
page_id (string): Facebook Page ID
broadcast_status (enum, optional): Filter by status — "LIVE", "UNPUBLISHED", "SCHEDULED_UNPUBLISHED", or "VOD"
limit (number, optional): Max results (1–100, default 10)
after (string, optional): Pagination cursor
Returns live video details including title, status, views, and creation time.
Inputs: page_id (required), after, limit, response_format, +1 more.
meta_get_minimum_budgetsGet Minimum Ad BudgetsARead-onlyIdempotent
Gets the minimum daily and lifetime budgets for an ad account by currency and bid strategy.
Essential to check before creating ad sets — using a budget below the minimum causes API errors.
Args:
ad_account_id (string): Ad account ID (e.g., act_123456789)
Returns: Minimum budget requirements per bid strategy.
Inputs: ad_account_id (required), response_format.
meta_get_pageGet Facebook Page DetailsBRead-onlyIdempotent
Gets detailed information about a specific Facebook Page.
Args:
page_id (string): The Facebook Page ID
Returns page details including name, category, description, follower counts, and linked Instagram account.
Inputs: page_id (required), response_format.
meta_get_page_albumsGet Page Photo AlbumsCRead-only
Lists photo albums on a Facebook Page.
Args:
page_id (string): Facebook Page ID
limit (number): Max results (1–100, default 20)
Inputs: page_id (required), after, limit, response_format.
meta_get_page_automated_responsesGet Page Automated Messaging SettingsARead-onlyIdempotent
Gets the current automated messaging settings for a Facebook Page.
Requires: meta_list_pages called first to load page tokens.
Args:
page_id (string): Facebook Page ID
Returns: Instant reply message, away message, greeting text, and ice breakers configuration.
Inputs: page_id (required), response_format.
meta_get_page_conversationsGet Page ConversationsARead-only
Lists conversations (messages) in a Facebook Page inbox.
Args:
page_id (string): Facebook Page ID
limit (number): Max conversations (1–100, default 20)
after (string, optional): Pagination cursor
Requires pages_messaging permission.
Inputs: page_id (required), after, limit, response_format.
meta_get_page_ctaGet Page Call-to-ActionARead-onlyIdempotent
Gets the call-to-action button configured on a Facebook Page.
Args:
page_id (string): Facebook Page ID
Inputs: page_id (required), response_format.
meta_get_page_eventsGet Page EventsARead-only
Lists events created by a Facebook Page.
Args:
page_id (string): Facebook Page ID
limit (number): Max results (1–100, default 20)
time_filter (string): 'upcoming' or 'past'
Inputs: page_id (required), limit, time_filter, response_format.
meta_get_page_fan_demographicsGet Page Fan DemographicsARead-onlyIdempotent
Gets fan/follower demographic breakdowns for a Facebook Page via insights.
Args:
page_id (string): Facebook Page ID
metric (string): Demographic metric — 'page_fans_city', 'page_fans_country', 'page_fans_gender_age', 'page_fans_locale'
Inputs: page_id (required), metric, response_format.
meta_get_page_insightsGet Facebook Page InsightsARead-only
Gets analytics/insights for a Facebook Page.
Requires: meta_list_pages called first.
Args:
page_id (string): Facebook Page ID
metrics (string[]): Metrics to retrieve. Full options: Impressions: page_impressions, page_impressions_unique, page_impressions_organic, page_impressions_organic_unique, page_impressions_paid, page_impressions_paid_unique, page_impressions_viral, page_impressions_viral_unique, page_impressions_nonviral, page_impressions_nonviral_unique Post Impressions: page_posts_impressions, page_posts_impressions_unique, page_posts_impressions_organic, page_posts_impressions_organic_unique, page_posts_impressions_paid, page_posts_impressions_paid_unique, page_posts_impressions_viral, page_posts_impressions_viral_unique Engagement: page_engaged_users, page_post_engagements, page_total_actions, page_negative_feedback Reactions: page_actions_post_reactions_total, page_actions_post_reactions_like_total, page_actions_post_reactions_love_total, page_actions_post_reactions_wow_total, page_actions_post_reactions_haha_total, page_actions_post_reactions_sorry_total, page_actions_post_reactions_anger_total Fans: page_fans, page_fan_adds, page_fan_adds_unique, page_fan_adds_by_paid_non_paid_unique, page_fan_removes, page_fan_removes_unique, page_daily_follows, page_daily_follows_unique, page_daily_unfollows_unique Views: page_views_total, page_tab_views_login_top, page_tab_views_login_top_unique, page_tab_views_logout_top Video: page_video_views, page_video_views_unique, page_video_views_paid, page_video_views_organic, page_video_views_autoplayed, page_video_views_click_to_play, page_video_complete_views_30s, page_video_complete_views_30s_unique, page_video_complete_views_30s_paid, page_video_complete_views_30s_organic, page_video_repeat_views, page_video_view_time, page_video_views_10s, page_video_views_10s_unique, page_video_views_10s_paid, page_video_views_10s_organic Content: page_media_view, page_lifetime_engaged_followers_unique
period (string): Aggregation period: 'day', 'week', 'days_28', 'month'
since (string, optional): Start date YYYY-MM-DD
until (string, optional): End date YYYY-MM-DD
Returns: Time-series data for each metric.
Inputs: page_id (required), since, until, period, +2 more.
meta_get_page_locationsGet Page LocationsBRead-onlyIdempotent
Lists location pages for a business with multiple locations.
Args:
page_id (string): Parent Facebook Page ID
Inputs: page_id (required), limit, response_format.
meta_get_page_photosGet Page PhotosBRead-only
Lists photos uploaded to a Facebook Page.
Args:
page_id (string): Facebook Page ID
type (string): 'uploaded' (by page) or 'tagged' (photos page is tagged in)
limit (number): Max results (default 20)
Inputs: page_id (required), type, after, limit, +1 more.
meta_get_page_pictureGet Page Profile PictureBRead-onlyIdempotent
Gets the profile picture URL for a Facebook Page.
Args:
page_id (string): Facebook Page ID
size (string): Picture size — small, normal, large, square (default: large)
Inputs: page_id (required), size, response_format.
meta_get_page_ratingsGet Page Ratings/ReviewsBRead-only
Gets ratings and reviews for a Facebook Page.
Args:
page_id (string): Facebook Page ID
limit (number): Max results (default 20)
Inputs: page_id (required), after, limit, response_format.
meta_get_page_tabsGet Page TabsARead-onlyIdempotent
Lists custom tabs on a Facebook Page.
Args:
page_id (string): Facebook Page ID
Inputs: page_id (required), response_format.
meta_get_page_taggedGet Page Tagged PostsARead-only
Gets posts that tag this Facebook Page.
Args:
page_id (string): Facebook Page ID
limit (number): Max results (1–100, default 20)
Inputs: page_id (required), after, limit, response_format.
meta_get_page_videosGet Page VideosCRead-only
Lists videos uploaded to a Facebook Page.
Args:
page_id (string): Facebook Page ID
limit (number): Max results (1–100, default 20)
Inputs: page_id (required), after, limit, response_format.
meta_get_pixelGet Meta Pixel DetailsCRead-onlyIdempotent
Gets details for a single Meta Pixel.
Args:
pixel_id (string): Pixel ID
response_format (optional): "json" or "text"
Inputs: pixel_id (required), response_format.
meta_get_pixel_eventsGet Pixel EventsBRead-onlyIdempotent
Gets recent events received by a pixel (for debugging).
Args:
pixel_id (string): Pixel ID
Inputs: pixel_id (required), response_format.
meta_get_pixel_statsGet Meta Pixel StatsARead-onlyIdempotent
Gets event volume stats for a pixel (critical for verifying pixel is firing).
Args:
pixel_id (string): Pixel ID
start_time (string, optional): ISO date for start of range
end_time (string, optional): ISO date for end of range
aggregation (string, optional): "event" (default) or "device"
event (string, optional): Filter to specific event like "Purchase"
Inputs: pixel_id (required), event, end_time, start_time, +2 more.
meta_get_postGet Single Post DetailsBRead-onlyIdempotent
Gets detailed information about a specific Facebook post.
Args:
post_id (string): Post ID (format: {page_id}_{post_id})
Inputs: post_id (required), response_format.
meta_get_post_commentsGet Post CommentsARead-only
Gets comments on a Facebook Page post.
Args:
post_id (string): Post ID (format: {page_id}_{post_id})
page_id (string): Page ID (for authentication — call meta_list_pages first)
limit (number): Max comments (1–100, default 25)
order (string): 'chronological' or 'reverse_chronological'
after (string, optional): Pagination cursor
filter (string): 'toplevel' (default), 'stream' (all including replies)
Inputs: page_id (required), post_id (required), after, limit, +3 more.
meta_get_post_insightsGet Facebook Post InsightsARead-onlyIdempotent
Gets performance metrics for a specific Facebook Page post.
Requires: meta_list_pages called first.
Args:
post_id (string): Post ID (e.g., "page_id_post_id")
page_id (string): Page ID (for authentication)
metrics (string[]): Metrics to retrieve. Options: Performance: post_impressions, post_impressions_unique, post_impressions_paid, post_impressions_paid_unique, post_impressions_fan, post_impressions_fan_unique, post_impressions_organic, post_impressions_organic_unique, post_impressions_viral, post_impressions_viral_unique Engagement: post_clicks, post_clicks_by_type, post_engaged_users, post_negative_feedback, post_negative_feedback_by_type, post_engaged_fan Reactions: post_reactions_by_type_total, post_reactions_like_total, post_reactions_love_total, post_reactions_wow_total, post_reactions_haha_total, post_reactions_sorry_total, post_reactions_anger_total Media: post_media_view, post_total_media_view_unique Video: post_video_avg_time_watched, post_video_complete_views_organic, post_video_complete_views_paid, post_video_views_organic, post_video_views_paid, post_video_view_time Activity: post_activity_by_action_type, post_activity_by_action_type_unique
All post metrics use 'lifetime' period (cumulative from post creation).
Inputs: page_id (required), post_id (required), metrics, response_format.
meta_get_post_reactionsGet Post ReactionsARead-onlyIdempotent
Gets reaction counts (like, love, haha, wow, sad, angry) on a post.
Args:
post_id (string): Post ID
Inputs: post_id (required), response_format.
meta_get_postsGet Facebook Page PostsARead-only
Lists posts from a Facebook Page feed.
Requires: meta_list_pages called first to load page tokens.
Args:
page_id (string): Facebook Page ID
limit (number): Max posts to return (1–100, default 20)
after (string, optional): Cursor for next page of results
Returns: List of posts with message, permalink, created time, and post ID.
Inputs: page_id (required), after, limit, response_format.
meta_get_productGet ProductARead-onlyIdempotent
Gets details for a single product.
Args:
product_id (string): The product ID
Returns full product details including price, availability, sale price, condition, and inventory.
Inputs: product_id (required), response_format.
meta_get_product_catalogGet Product CatalogBRead-onlyIdempotent
Gets details for a single product catalog.
Args:
catalog_id (string): The catalog ID
Returns catalog name, product count, vertical, business info, and store settings.
Inputs: catalog_id (required), response_format.
meta_get_promotable_postsGet Promotable PostsARead-only
Gets posts that are eligible for boosting/promotion on a Facebook Page.
Args:
page_id (string): Facebook Page ID
limit (number): Max results (default 20)
Inputs: page_id (required), after, limit, response_format.
meta_get_published_postsGet Published PostsARead-only
Gets posts published by the Page itself (excludes visitor posts, unlike the feed edge).
Args:
page_id (string): Facebook Page ID
limit (number): Max results (1–100, default 20)
Inputs: page_id (required), after, limit, response_format.
meta_get_reach_estimateGet Reach EstimateARead-only
Estimates the potential reach for a targeting specification.
Args:
ad_account_id (string): Ad account ID
targeting_spec (object): Targeting specification (same format as ad set targeting)
optimization_goal (string, optional): e.g., REACH, LINK_CLICKS, IMPRESSIONS
Returns: Estimated daily reach and audience size.
Inputs: ad_account_id (required), targeting_spec (required), response_format, optimization_goal.
meta_get_scheduled_postsGet Scheduled PostsBRead-only
Lists scheduled (unpublished) posts for a Facebook Page.
Args:
page_id (string): Facebook Page ID
limit (number): Max results (1–100, default 20)
Inputs: page_id (required), after, limit, response_format.
meta_get_visitor_postsGet Visitor PostsARead-only
Gets posts published by visitors on the Facebook Page wall.
Args:
page_id (string): Facebook Page ID
limit (number): Max results (1–100, default 20)
Inputs: page_id (required), after, limit, response_format.
meta_health_checkMeta MCP Health CheckARead-only
Checks the health of the Meta MCP server: token status, cached tokens, API connectivity.
Returns: Token validity, number of cached page tokens, Threads token status, and API reachability.
Inputs: response_format.
meta_hide_commentHide or Unhide a Facebook CommentAIdempotent
Hides or unhides a comment on a Facebook Page post.
Hidden comments are only visible to the comment author and their friends. This is a non-destructive alternative to deletion — useful for moderation.
Args:
comment_id (string): Comment ID to hide/unhide
page_id (string): Page ID (for authentication)
is_hidden (boolean): true to hide, false to unhide
Requires pages_manage_engagement permission.
Inputs: page_id (required), is_hidden (required), comment_id (required).
meta_hide_instagram_commentHide or Unhide an Instagram CommentAIdempotent
Hides or unhides a comment on an Instagram media object.
Hidden comments are only visible to the comment author. This is a non-destructive alternative to deletion — useful for moderation.
Args:
comment_id (string): Comment ID to hide/unhide
is_hidden (boolean): true to hide, false to unhide
Inputs: is_hidden (required), comment_id (required).
meta_like_objectLike/Unlike Post or CommentAIdempotent
Likes or removes a like from a page post or comment, acting as the Page.
Args:
object_id (string): Post ID or Comment ID
page_id (string): Page ID (for token)
unlike (boolean): If true, removes the like instead
Inputs: page_id (required), object_id (required), unlike.
meta_list_ad_accountsList Meta Ad AccountsARead-onlyIdempotent
Lists all Meta ad accounts accessible to the authenticated user.
Returns ad account IDs (prefixed with act_), names, currency, status, and spend info.
Call this first to get ad account IDs needed for campaign and insights tools.
Inputs: response_format.
meta_list_ad_creativesList Ad CreativesARead-only
Lists ad creatives for an ad account.
Args:
ad_account_id (string): Ad account ID
limit (number): Max results (default 20)
after (string, optional): Pagination cursor
Returns creative IDs, names, and associated page post IDs.
Inputs: ad_account_id (required), after, limit, response_format.
meta_list_ad_imagesList Ad ImagesBRead-only
Lists images in an ad account's image library.
Args:
ad_account_id (string): Ad account ID
limit (number): Max results (default 25)
Inputs: ad_account_id (required), after, limit, response_format.
meta_list_ad_labelsList Ad LabelsARead-onlyIdempotent
Lists ad labels for an ad account. Labels help organize campaigns, ad sets, and ads.
Args:
ad_account_id (string): Ad account ID
Inputs: ad_account_id (required), response_format.
meta_list_ad_rulesList Automated Ad RulesARead-onlyIdempotent
Lists automated rules for an ad account.
Args:
ad_account_id (string): Ad account ID
Inputs: ad_account_id (required), response_format.
meta_list_adsList AdsARead-only
Lists ads for an ad set, campaign, or ad account.
Args:
adset_id (string, optional): Filter by ad set
campaign_id (string, optional): Filter by campaign
ad_account_id (string, optional): List all ads in account
status_filter (string[], optional): ACTIVE, PAUSED, ARCHIVED, DELETED
limit (number): Max results (default 20)
after (string, optional): Pagination cursor
Provide one of adset_id, campaign_id, or ad_account_id.
Inputs: after, limit, adset_id, campaign_id, +3 more.
meta_list_adsetsList Ad SetsARead-only
Lists ad sets for a campaign or ad account.
Args:
campaign_id (string, optional): Filter by campaign ID
ad_account_id (string, optional): Ad account ID (use if not filtering by campaign)
status_filter (string[], optional): ACTIVE, PAUSED, ARCHIVED, DELETED
limit (number): Max results (default 20)
after (string, optional): Pagination cursor
Provide either campaign_id or ad_account_id.
Inputs: after, limit, campaign_id, ad_account_id, +2 more.
meta_list_ad_videosList Ad VideosARead-only
Lists videos in an ad account's video library.
Args:
ad_account_id (string): Ad account ID
limit (number): Max results (default 20)
Inputs: ad_account_id (required), after, limit, response_format.
meta_list_business_assetsList Business Manager AssetsBRead-onlyIdempotent
Lists assets (pages, ad accounts, Instagram accounts, pixels) for a Business Manager.
Args:
business_id: Business Manager ID
asset_type: "owned_pages", "owned_ad_accounts", "owned_instagram_accounts", "owned_pixels"
limit (optional, default 25): Max results
Returns asset details including IDs, names, and type-specific metadata.
Inputs: asset_type (required), business_id (required), limit, response_format.
meta_list_campaignsList CampaignsBRead-only
Lists campaigns for a Meta ad account.
Args:
ad_account_id (string): Ad account ID (e.g., act_123456789)
status_filter (string[], optional): Filter by status: ACTIVE, PAUSED, ARCHIVED, DELETED
limit (number): Max results (1–100, default 20)
after (string, optional): Pagination cursor
Returns campaign names, objectives, status, and budget info.
Inputs: ad_account_id (required), after, limit, status_filter, +1 more.
meta_list_custom_audiencesList Custom AudiencesARead-only
Lists custom audiences in a Meta ad account.
Args:
ad_account_id (string): Ad account ID (e.g., act_123456789)
limit (number): Max results (1–100, default 20)
after (string, optional): Pagination cursor
Returns audience names, types, size estimates, and delivery status.
Inputs: ad_account_id (required), after, limit, response_format.
meta_list_custom_conversionsList Custom ConversionsCRead-onlyIdempotent
Lists custom conversions for an ad account.
Args:
ad_account_id (string): Ad account ID
Inputs: ad_account_id (required), response_format.
meta_list_instagram_accountsList Instagram Business AccountsARead-onlyIdempotent
Lists all Instagram professional accounts linked to the user's Facebook Pages.
Requires: meta_list_pages must be called first.
Returns: Instagram account IDs, usernames, follower counts. The account ID is needed for all other Instagram tools.
Inputs: response_format.
meta_list_leadgen_formsList Lead Gen FormsARead-only
Lists lead generation forms for a Facebook Page.
Lead forms are used with OUTCOME_LEADS campaigns to collect user information.
Requires: meta_list_pages must be called first to load page tokens.
Args:
page_id (string): Facebook Page ID
limit (number): Max results (1–100, default 20)
Returns form IDs, names, status, and creation times.
Inputs: page_id (required), after, limit, response_format.
meta_list_offline_event_setsList Offline Event SetsARead-onlyIdempotent
Lists offline conversion event sets for an ad account.
Offline event sets track conversions that happen outside of digital channels (in-store purchases, phone orders, etc.).
Args:
ad_account_id (string): Ad account ID (e.g., act_123456789)
limit (number): Max results (1–100, default 25)
after (string, optional): Pagination cursor
Returns: Event set IDs, names, and configuration.
Inputs: ad_account_id (required), after, limit, response_format.
meta_list_pagesList Facebook PagesARead-onlyIdempotent
Lists all Facebook Pages managed by the authenticated user.
IMPORTANT: Call this tool first before any page or Instagram operations — it caches the page access tokens needed for subsequent calls.
Returns:
id: Page ID (needed for other tools)
name: Page name
category: Page category
fan_count: Number of likes
followers_count: Number of followers
link: Page URL
instagram_business_account.id: Linked Instagram account ID (if any)
Tip: The page tokens are cached automatically. You do not need to manage them manually.
Inputs: response_format.
meta_list_pixelsList Ad Account PixelsBRead-onlyIdempotent
Lists all Meta Pixels for an ad account.
Args:
ad_account_id (string): Ad account ID
Inputs: ad_account_id (required), response_format.
meta_list_product_catalogsList Product CatalogsARead-onlyIdempotent
Lists product catalogs for a Meta business.
Args:
business_id (string): The business ID
limit (number): Max results (1–100, default 25)
Returns catalog IDs, names, product counts, and verticals.
Inputs: business_id (required), limit, response_format.
meta_list_product_feedsList Product FeedsARead-onlyIdempotent
Lists product feeds for a catalog. Feeds are automated data sources that keep catalogs up-to-date.
Args:
catalog_id (string): Product catalog ID
limit (number): Max results (1–100, default 25)
Returns feed IDs, names, schedules, and latest upload status.
Inputs: catalog_id (required), limit, response_format.
meta_list_productsList ProductsARead-onlyIdempotent
Lists products in a product catalog.
Args:
catalog_id (string): The catalog ID
limit (number): Max results (1–100, default 25)
after (string, optional): Pagination cursor
filter (object, optional): Filter criteria (e.g., { availability: "in stock" })
Returns product IDs, names, prices, availability, and more.
Inputs: catalog_id (required), after, limit, filter, +1 more.
meta_list_product_setsList Product SetsARead-onlyIdempotent
Lists product sets (subgroups) in a catalog.
Args:
catalog_id (string): The catalog ID
limit (number): Max results (1–100, default 25)
Returns product set IDs, names, filters, and product counts.
Inputs: catalog_id (required), limit, response_format.
meta_list_saved_audiencesList Saved AudiencesCRead-only
Lists saved audiences (targeting presets) for an ad account.
Args:
ad_account_id (string): Ad account ID
Inputs: ad_account_id (required), after, limit, response_format.
meta_migrate_campaign_to_advantage_plusMigrate Campaign to Advantage+A
Migrates an existing campaign to Advantage+ Shopping (formerly ASC).
Advantage+ Shopping campaigns use Meta's AI to automatically optimize targeting, placements, and creative delivery for online sales. After migration, Meta handles audience selection and budget allocation across placements for better ROAS.
The campaign keeps its original ID — this is an in-place conversion, not a new campaign.
Args:
campaign_id (string): Campaign ID to migrate
ad_account_id (string): Ad account ID (e.g., act_123456789)
Inputs: campaign_id (required), ad_account_id (required), response_format.
meta_publish_instagram_carouselPublish Instagram Carousel PostA
Publishes a carousel post (2–10 images/videos) to Instagram.
Three-step process:
Creates individual media containers for each item
Creates a carousel container referencing them
Publishes the carousel
Args:
ig_account_id (string): Instagram account ID
items (array): Array of up to 10 items, each with:
url (string): Public image URL (JPEG) or video URL
type (string): 'IMAGE' or 'VIDEO'
caption (string, optional): Carousel caption
Returns: Media ID of the published carousel.
Scheduling: Pass scheduled_publish_time (Unix timestamp, 10 min – 75 days in future) to schedule instead of publishing immediately.
Inputs: items (required), ig_account_id (required), caption, response_format, +1 more.
meta_publish_instagram_containerPublish Instagram ContainerA
Publishes a pre-created Instagram media container. Use after checking container status is FINISHED.
Useful for reels/videos where container creation and publishing are done in separate steps.
Args:
ig_account_id (string): Instagram account ID
container_id (string): Container ID (from a previous create step)
Inputs: container_id (required), ig_account_id (required), response_format.
meta_publish_instagram_photoPublish Instagram PhotoA
Publishes a single image post to an Instagram professional account.
Two-step process: creates a media container then publishes it.
Args:
ig_account_id (string): Instagram account ID
image_url (string): Public URL of the JPEG image to post (must be publicly accessible)
caption (string, optional): Post caption (supports hashtags and @mentions)
alt_text (string, optional): Alt text for accessibility (screen readers)
location_id (string, optional): Facebook Place ID to tag location
Returns: Media ID of the published post.
Scheduling: Pass scheduled_publish_time (Unix timestamp, 10 min – 75 days in future) to schedule the post instead of publishing immediately.
Limitations:
JPEG only (no PNG, GIF, HEIC)
Max 100 posts per 24 hours
Image must be hosted on a public server
Inputs: image_url (required), ig_account_id (required), caption, alt_text, +3 more.
meta_publish_instagram_reelPublish Instagram ReelA
Publishes a video reel to an Instagram professional account.
Args:
ig_account_id (string): Instagram account ID
video_url (string): Public URL of the video file (MP4 recommended)
caption (string, optional): Reel caption
share_to_feed (boolean, optional): Also share to feed. Default true.
Returns: Media ID of the published reel.
Notes:
Video must be on a publicly accessible server
Check container status before publishing — video processing can take time
Use meta_check_instagram_container to check readiness
Scheduling: Pass scheduled_publish_time (Unix timestamp, 10 min – 75 days in future) to schedule instead of publishing immediately
Inputs: video_url (required), ig_account_id (required), caption, share_to_feed, +2 more.
meta_publish_instagram_storyPublish Instagram StoryC
Publishes an image or video story to an Instagram professional account.
Args:
ig_account_id (string): Instagram account ID
media_url (string): Public URL of the image or video
media_type (string): 'IMAGE' or 'VIDEO'
Returns: Media ID of the published story.
Inputs: media_url (required), media_type (required), ig_account_id (required), response_format.
meta_publish_page_reelPublish Facebook Page ReelA
Publishes a Reel (short-form video) to a Facebook Page.
Requires: meta_list_pages must be called first to load page tokens.
Args:
page_id (string): Facebook Page ID
video_url (string): Public URL of the video file
description (string, optional): Reel description/caption
title (string, optional): Reel title
Returns: The reel/video ID on success.
Notes:
Video must be hosted on a publicly accessible server
FB Reels use a simpler single-step flow (no container polling needed)
Inputs: page_id (required), video_url (required), title, description, +1 more.
meta_publish_page_storyPublish Facebook Page StoryA
Publishes a story (photo or video) to a Facebook Page.
Requires: meta_list_pages called first to load page tokens.
Args:
page_id (string): Facebook Page ID
media_url (string): Public URL of the image or video
media_type (enum): "photo" or "video"
Returns the story ID on success.
Inputs: page_id (required), media_url (required), media_type (required), response_format.
meta_reply_instagram_commentReply to Instagram CommentA
Replies to a comment on an Instagram media object.
Args:
media_id (string): Instagram media ID (not the comment ID)
message (string): Reply text
comment_id (string, optional): If replying to a specific comment
Returns: Comment ID of the reply.
Inputs: message (required), media_id (required), comment_id, response_format.
meta_reply_post_commentReply to Post CommentA
Replies to a comment on a Facebook Page post.
Args:
comment_id (string): Comment ID to reply to
page_id (string): Page ID (for token lookup)
message (string): Reply text
Inputs: message (required), page_id (required), comment_id (required), response_format.
meta_search_ad_librarySearch Meta Ad LibraryARead-only
Searches the Meta Ad Library for ads from any advertiser. This is a transparency tool — no ad account access needed.
Args:
ad_reached_countries (string[]): Required. ISO country codes where ads were shown (e.g., ["US", "GB"])
search_terms (string, optional): Keywords to search ad text
search_page_ids (string[], optional): Specific Page IDs to search
ad_type (string): ALL, POLITICAL_AND_ISSUE_ADS, HOUSING_ADS, EMPLOYMENT_ADS, CREDIT_ADS (default: ALL)
ad_active_status (string): ALL, ACTIVE, INACTIVE (default: ALL)
ad_delivery_date_min (string, optional): Min delivery date YYYY-MM-DD
ad_delivery_date_max (string, optional): Max delivery date YYYY-MM-DD
limit (number): Max results (1–100, default 25)
after (string, optional): Pagination cursor
Returns: Ad creatives, spend ranges, impressions, demographics, and targeting info.
Note: Requires a valid access token but does NOT require ad account ownership.
Inputs: ad_reached_countries (required), after, limit, ad_type, +6 more.
meta_search_instagram_catalog_productsSearch Instagram Catalog ProductsARead-onlyIdempotent
Searches for products in an Instagram Shopping catalog by name.
Args:
ig_account_id (string): Instagram account ID
catalog_id (string): Product catalog ID (from meta_get_instagram_available_catalogs)
q (string): Product search query
Returns: Matching products that can be tagged in Instagram posts.
Inputs: q (required), catalog_id (required), ig_account_id (required), response_format.
meta_search_instagram_hashtagSearch Instagram HashtagARead-only
Searches for a hashtag and gets its ID, then retrieves top or recent media.
Two-step process: first looks up the hashtag ID, then fetches media.
Args:
ig_account_id (string): Instagram account ID (required for auth context)
hashtag (string): Hashtag to search (without #)
edge (string): 'top_media' or 'recent_media' (default: top_media)
limit (number): Max results (1–50, default 20)
Note: Limited to 30 unique hashtag searches per 7 days per IG account.
Inputs: hashtag (required), ig_account_id (required), edge, limit, +1 more.
meta_search_placesSearch Facebook PlacesARead-onlyIdempotent
Searches for Facebook Places (locations) by name or coordinates.
Use this to get a location_id for tagging posts, Instagram photos, or Threads.
Args:
q (string, optional): Search query (e.g., "Central Park", "Starbucks NYC")
center (string, optional): Latitude,longitude center point (e.g., "40.7829,-73.9654")
distance (number, optional): Search radius in meters (default: 1000, max: 50000)
limit (number): Max results (1–100, default 20)
categories (string[], optional): Filter by category — e.g., ["FOOD_BEVERAGE", "HOTEL_LODGING", "SHOPPING_RETAIL"]
Returns: Place IDs, names, addresses, and coordinates.
Note: Provide at least q or center. Both can be combined for location-aware name search.
Inputs: q, limit, center, distance, +2 more.
meta_search_targeting_demographicsSearch Targeting DemographicsBRead-onlyIdempotent
Searches for demographic targeting options (job titles, employers, education).
Args:
q (string): Search query
type (string): adworkposition (job titles), adworkemployer (employers), adeducationschool (schools), adeducationmajor (majors)
Inputs: q (required), type (required), limit, response_format.
meta_search_targeting_geolocationsSearch Targeting GeolocationsBRead-onlyIdempotent
Searches for geographic targeting options (countries, regions, cities, zip codes).
Args:
q (string): Location search query (e.g., "New York", "United Kingdom")
type (string): Location type — country, region, city, zip, geo_market, electoral_district
limit (number): Max results (default 25)
Returns: Location keys to use in ad set targeting.
Inputs: q (required), type, limit, response_format.
meta_search_targeting_interestsSearch Targeting InterestsARead-onlyIdempotent
Searches for interest-based targeting options for ad sets.
Args:
q (string): Search query (e.g., "yoga", "cooking")
limit (number): Max results (default 50)
Returns: Interest IDs and names to use in ad set targeting.
Inputs: q (required), limit, response_format.
meta_send_broadcast_channel_messageSend Broadcast Channel MessageA
Sends a message to an Instagram broadcast channel.
Args:
channel_id (string): Broadcast channel ID
message (string): Message text to send
link_url (string, optional): Clickable link to include with the message
Returns: Message ID of the sent message.
Inputs: message (required), channel_id (required), link_url.
meta_send_conversion_eventSend Conversion Event (CAPI)B
Sends a server-side conversion event to Meta via the Conversions API.
Args:
pixel_id: Meta Pixel ID
event_name: Standard events: Purchase, Lead, AddToCart, CompleteRegistration, ViewContent, Search, InitiateCheckout, AddPaymentInfo, AddToWishlist, Subscribe, StartTrial, Contact, CustomizeProduct, Donate, FindLocation, Schedule, SubmitApplication, PageView. Custom event names also accepted.
event_time: Unix timestamp
event_source_url (optional): URL where conversion happened
user_data: At minimum one of: em (hashed email), ph (hashed phone), fbc, fbp, client_ip_address, client_user_agent, external_id
custom_data (optional): { currency, value, content_name, content_ids, content_type, order_id, num_items }
event_id (optional): For deduplication with browser pixel
action_source: "website", "app", "email", "phone_call", "chat", "physical_store", "system_generated", "business_messaging", "other"
test_event_code (optional): For testing without affecting production data
Inputs: pixel_id (required), user_data (required), event_name (required), event_time (required), +6 more.
meta_send_instagram_media_messageSend Instagram Media DMA
Sends an image or link via Instagram Direct Message.
Args:
ig_account_id (string): Instagram account ID (sender)
recipient_id (string): Instagram-scoped user ID of recipient
image_url (string, optional): URL of image to send
link_url (string, optional): URL of link to send (as a generic template)
Provide either image_url or link_url (not both). Same messaging window restrictions as text DMs.
Returns: Message ID.
Inputs: no named parameters.
meta_send_instagram_messageSend Instagram Direct MessageA
Sends a text DM to an Instagram user.
Args:
ig_account_id (string): Instagram account ID (sender)
recipient_id (string): Instagram-scoped user ID of the recipient
message (string): Text message to send
Note: Only works within the 24-hour human agent messaging window or 7-day standard messaging window. The recipient must have messaged the account first.
Returns: Message ID.
Inputs: message (required), recipient_id (required), ig_account_id (required), response_format.
meta_send_offline_eventSend Offline Conversion EventA
Sends an offline conversion event to a Meta offline event set.
Used for tracking in-store purchases, phone orders, or other offline conversions.
Args:
event_set_id (string): Offline event set ID (from meta_list_offline_event_sets)
event_name (string): Event name (e.g., "Purchase", "Lead")
event_time (number): Unix timestamp of the conversion
user_data (object): Customer match data — at least one of: email, phone, fn (first name), ln (last name), ct (city), st (state), zip, country, external_id. All PII must be SHA256 hashed.
custom_data (object, optional): { currency, value, content_name, order_id }
upload_tag (string, optional): Tag for grouping uploads
Returns: Number of events received.
Inputs: user_data (required), event_name (required), event_time (required), event_set_id (required), +3 more.
meta_send_page_messageSend Page MessageA
Sends a message from a Facebook Page to a user (in an existing conversation).
Args:
page_id (string): Facebook Page ID
recipient_id (string): PSID (page-scoped user ID) of the recipient
message (string): Message text
Requires pages_messaging permission. Only works within the 24-hour messaging window.
Inputs: message (required), page_id (required), recipient_id (required).
meta_set_away_messageSet Page Away MessageAIdempotent
Sets the away message for a Facebook Page. This is shown when the page is set to away mode.
Requires: meta_list_pages called first to load page tokens.
Args:
page_id (string): Facebook Page ID
message (string): The away message text
enabled (boolean, default true): Whether away mode is enabled
Inputs: message (required), page_id (required), enabled, response_format.
meta_set_greetingSet Page Messenger GreetingAIdempotent
Sets the Messenger greeting text for a Facebook Page. This is shown to users before they send their first message.
Requires: meta_list_pages called first to load page tokens.
Args:
page_id (string): Facebook Page ID
greeting_text (string): The greeting text (max 160 characters)
Inputs: page_id (required), greeting_text (required), response_format.
meta_set_instant_replySet Page Instant ReplyAIdempotent
Sets the instant reply message for a Facebook Page. This is the automatic message sent immediately when someone messages the page.
Requires: meta_list_pages called first to load page tokens.
Args:
page_id (string): Facebook Page ID
message (string): The instant reply message text
enabled (boolean, default true): Whether instant reply is enabled
Inputs: message (required), page_id (required), enabled, response_format.
meta_subscribe_page_webhooksSubscribe Page to WebhooksAIdempotent
Subscribes your app to receive webhook updates for a Facebook Page.
Args:
page_id (string): Facebook Page ID
subscribed_fields (string[]): Fields to subscribe to, e.g., feed, messages, messaging_postbacks, conversations
Call without subscribed_fields to check current subscriptions.
Inputs: page_id (required), response_format, subscribed_fields.
meta_test_conversion_eventsTest Conversion Event (CAPI)A
Tests CAPI setup by sending a test event that won't affect production data.
Same args as meta_send_conversion_event but auto-sets a test_event_code if not provided. Use the test_event_code from Events Manager > Test Events tab.
Inputs: pixel_id (required), user_data (required), event_name (required), event_time (required), +6 more.
meta_toggle_instagram_commentsToggle Instagram CommentsBIdempotent
Enables or disables comments on an Instagram media object.
Args:
media_id (string): Instagram media ID
enabled (boolean): true to enable comments, false to disable
Inputs: enabled (required), media_id (required).
meta_update_adUpdate AdA
Updates an existing ad's status or name.
Args:
ad_id (string): Ad ID
name (string, optional): New name
status (string, optional): ACTIVE, PAUSED, or ARCHIVED
Inputs: ad_id (required), name, status, response_format.
meta_update_adsetUpdate Ad SetA
Updates an existing ad set. Only provided fields are changed.
Args:
adset_id (string): Ad set ID to update
name (string, optional): New name
status (string, optional): ACTIVE, PAUSED, or ARCHIVED
daily_budget (number, optional): New daily budget in cents
end_time (string, optional): New end time ISO 8601
placement_soft_opt_out (string[], optional): Placements to soft opt-out (up to 5% spend may still go to these). Only for Sales/Leads objectives.
Inputs: adset_id (required), name, status, end_time, +3 more.
meta_update_campaignUpdate CampaignA
Updates an existing campaign. Only provided fields are changed.
Can also migrate a campaign to Advantage+ Shopping by setting migrate_to_advantage_plus to true.
Args:
campaign_id (string): Campaign ID to update
name (string, optional): New campaign name
status (string, optional): ACTIVE, PAUSED, or ARCHIVED
daily_budget (number, optional): New daily budget in cents
lifetime_budget (number, optional): New lifetime budget in cents
migrate_to_advantage_plus (boolean, optional): Migrate this campaign to Advantage+ Shopping (keeps original campaign ID)
Inputs: campaign_id (required), name, status, daily_budget, +3 more.
meta_update_pageUpdate Facebook Page SettingsAIdempotent
Updates a Facebook Page's profile information.
Args:
page_id (string): Facebook Page ID
about (string, optional): Short description (max 255 chars)
description (string, optional): Long description
website (string, optional): Website URL
phone (string, optional): Phone number
emails (string[], optional): Contact emails
hours (object, optional): Business hours as key-value pairs (e.g., {"mon_1_open":"09:00","mon_1_close":"17:00"})
category (string, optional): Page category (e.g., "Restaurant")
username (string, optional): Page username/vanity URL
contact_address (object, optional): Mailing address with street, city, state, zip, country
Requires pages_manage_metadata permission.
Inputs: page_id (required), about, hours, phone, +6 more.
meta_update_page_coverUpdate Facebook Page Cover PhotoAIdempotent
Updates a Facebook Page's cover photo.
Args:
page_id (string): Facebook Page ID
cover_url (string, optional): URL of the new cover photo
photo_id (string, optional): ID of an existing photo to use as cover
offset_y (number, optional): Vertical offset of the cover photo (0–100)
no_feed_story (boolean, optional): If true, don't publish a feed story about the change
Provide either cover_url or photo_id. Requires pages_manage_metadata permission.
Inputs: page_id (required), offset_y, photo_id, cover_url, +2 more.
meta_update_page_pictureUpdate Facebook Page Profile PictureAIdempotent
Updates a Facebook Page's profile picture.
Args:
page_id (string): Facebook Page ID
picture_url (string): URL of the new profile picture
Requires pages_manage_metadata permission.
Inputs: page_id (required), picture_url (required), response_format.
meta_update_pixelUpdate Meta PixelCIdempotent
Updates pixel settings.
Args:
pixel_id (string): Pixel ID
name (string, optional): New pixel name
first_party_cookie_status (string, optional): "EMPTY", "FIRST_PARTY_COOKIE_ENABLED", or "FIRST_PARTY_COOKIE_DISABLED"
automatic_matching_fields (string[], optional): e.g. ["em","ph","fn","ln","ct","st","zp","country","db","ge","external_id"]
data_use_setting (string, optional): "EMPTY" or "DATA_USE_SETTING_LDU"
Inputs: pixel_id (required), name, response_format, data_use_setting, +2 more.
meta_update_postUpdate Facebook PostBIdempotent
Updates an existing Facebook Page post's message text.
Args:
post_id (string): Post ID
page_id (string): Page ID (for token)
message (string): New message text
Inputs: message (required), page_id (required), post_id (required), response_format.
meta_update_productUpdate ProductBIdempotent
Updates a product's details.
Args:
product_id (string): The product ID
name, description, price, availability, image_url, url (all optional)
Returns confirmation of the update.
Inputs: product_id (required), url, name, price, +4 more.
meta_upload_ad_imageUpload Ad ImageA
Uploads an image to an ad account's image library for use in creatives.
Args:
ad_account_id (string): Ad account ID
url (string): Public URL of the image to upload
name (string, optional): Name for the uploaded image
Returns: Image hash (used when creating ad creatives).
Inputs: url (required), ad_account_id (required), name, response_format.
meta_upload_ad_videoUpload Ad VideoB
Uploads a video to an ad account's video library for use in creatives.
Args:
ad_account_id (string): Ad account ID
file_url (string): Public URL of video file
title (string, optional): Video title
description (string, optional): Video description
Inputs: file_url (required), ad_account_id (required), title, description, +1 more.
threads_check_rate_limitsCheck Threads Publishing LimitsBRead-only
Checks the current publishing rate limit usage for Threads.
Args:
threads_user_id (string): Threads user ID
Returns: Current usage and limit quota (250 posts per 24 hours).
Inputs: threads_user_id (required), response_format.
threads_delete_postDelete ThreadBDestructive
Deletes a Threads post permanently.
Args:
media_id (string): Threads media ID to delete
Inputs: media_id (required).
threads_get_conversationGet Threads ConversationBRead-only
Gets the full conversation tree (all replies at all levels) for a Threads post.
Args:
media_id (string): Root thread media ID
reverse (boolean, optional): Reverse chronological order
Inputs: media_id (required), reverse, response_format.
threads_get_followersGet Threads FollowersBRead-only
Lists followers of the authenticated Threads user.
Args:
threads_user_id (string): Threads user ID
limit (number): Max results (1–100, default 25)
after (string, optional): Pagination cursor
Returns: User IDs, usernames, and profile picture URLs of followers.
Note: Requires threads_basic scope. Only returns users who have allowed their followers list to be visible.
Inputs: threads_user_id (required), after, limit, response_format.
threads_get_followingGet Threads FollowingARead-only
Lists accounts that the authenticated Threads user is following.
Args:
threads_user_id (string): Threads user ID
limit (number): Max results (1–100, default 25)
after (string, optional): Pagination cursor
Returns: User IDs, usernames, and profile pictures of followed accounts.
Inputs: threads_user_id (required), after, limit, response_format.
threads_get_media_childrenGet Threads Carousel ItemsARead-onlyIdempotent
Gets individual items in a Threads carousel post.
Args:
media_id (string): Carousel media ID
Inputs: media_id (required), response_format.
threads_get_mentionsGet Threads MentionsBRead-only
Gets posts where the authenticated user was @mentioned.
Args:
threads_user_id (string): Threads user ID
Inputs: threads_user_id (required), response_format.
threads_get_postGet Single Thread PostCRead-onlyIdempotent
Gets details for a single Threads post by ID.
Args:
media_id (string): Threads media ID
Inputs: media_id (required), response_format.
threads_get_post_insightsGet Thread Post InsightsARead-onlyIdempotent
Gets performance metrics for a specific Threads post.
Args:
media_id (string): Threads media ID
metrics (string[]): Metrics to retrieve. Options: views, likes, replies, reposts, quotes, shares, reach, saved
Returns: Metric values for the post.
Inputs: media_id (required), metrics, response_format.
threads_get_postsGet Threads PostsARead-only
Lists the authenticated user's Threads posts.
Args:
threads_user_id (string): Threads user ID (from threads_get_profile)
limit (number): Max results (1–100, default 20)
since (string, optional): Start date YYYY-MM-DD
until (string, optional): End date YYYY-MM-DD
after (string, optional): Pagination cursor
Inputs: threads_user_id (required), after, limit, since, +2 more.
threads_get_profileGet Threads ProfileARead-onlyIdempotent
Gets the authenticated user's Threads profile.
Returns: User ID, username, name, bio, and profile picture URL.
Requires: THREADS_ACCESS_TOKEN env var.
Inputs: response_format.
threads_get_repliesGet Thread RepliesBRead-only
Gets replies to a Threads post.
Args:
media_id (string): Threads media ID
reverse (boolean, optional): Reverse chronological order (default false)
Inputs: media_id (required), reverse, response_format.
threads_get_user_insightsGet Threads User InsightsARead-only
Gets account-level metrics for the authenticated Threads user.
Args:
threads_user_id (string): Threads user ID
metrics (string[]): Options: Time-series: views, likes, replies, reposts, quotes, followers_count, reach Demographics: follower_demographics (breakdown by age, country, city, gender — requires 100+ followers)
since (string, optional): Start date YYYY-MM-DD (required for time-series metrics)
until (string, optional): End date YYYY-MM-DD
breakdown (string, optional): For follower_demographics: 'age', 'country', 'city', 'gender'
Inputs: threads_user_id (required), since, until, metrics, +2 more.
threads_hide_replyHide/Unhide Thread ReplyAIdempotent
Hides or unhides a reply on a Threads post.
Args:
reply_id (string): Reply media ID
hide (boolean): true to hide, false to unhide
Inputs: hide (required), reply_id (required).
threads_publish_carouselPublish Carousel ThreadA
Publishes a carousel post (2–20 images/videos) to Threads.
Three-step flow:
Create individual item containers
Create carousel container referencing them
Publish
Args:
threads_user_id (string): Threads user ID
items (array): 2–20 items, each with url (string) and type ('IMAGE' or 'VIDEO')
text (string, optional): Caption text
Inputs: items (required), threads_user_id (required), text, reply_control, +1 more.
threads_publish_gifPublish GIF ThreadA
Publishes a GIF post to Threads using a GIPHY URL.
Two-step flow: creates a container, then publishes it.
Args:
threads_user_id (string): Threads user ID
gif_url (string): GIPHY URL of the GIF
text (string, optional): Caption text
reply_to_id (string, optional): Thread ID to reply to
reply_control (enum, optional): Who can reply — everyone, accounts_you_follow, or mentioned_only
Returns: Media ID of the published thread.
Inputs: gif_url (required), threads_user_id (required), text, reply_to_id, +2 more.
threads_publish_imagePublish Image ThreadC
Publishes an image post to Threads.
Args:
threads_user_id (string): Threads user ID
image_url (string): Public URL of the image (JPEG or PNG)
text (string, optional): Caption text
Inputs: image_url (required), threads_user_id (required), text, location_id, +2 more.
threads_publish_linkPublish Link ThreadC
Publishes a thread post with a link attachment.
Args:
threads_user_id (string): Threads user ID
text (string): Post text containing the URL
link_attachment (string): URL to attach as a link preview
Inputs: text (required), link_attachment (required), threads_user_id (required), reply_control, +1 more.
threads_publish_textPublish Text ThreadA
Publishes a text-only post to Threads.
Two-step flow: creates a container, then publishes it.
Args:
threads_user_id (string): Threads user ID
text (string): Post text (up to 500 characters)
reply_to_id (string, optional): Thread ID to reply to
quote_post_id (string, optional): Thread ID to quote
Returns: Media ID of the published thread.
Inputs: text (required), threads_user_id (required), location_id, reply_to_id, +3 more.
threads_publish_videoPublish Video ThreadA
Publishes a video post to Threads.
Args:
threads_user_id (string): Threads user ID
video_url (string): Public URL of the video (MP4)
text (string, optional): Caption text
Note: Video processing may take time. Polls for up to 60 seconds.
Inputs: video_url (required), threads_user_id (required), text, location_id, +2 more.
threads_repostRepost a ThreadA
Reposts (shares) an existing thread to your profile.
Args:
threads_user_id (string): Your Threads user ID
media_id (string): Thread media ID to repost
Inputs: media_id (required), threads_user_id (required), response_format.
threads_searchSearch Threads by KeywordARead-only
Searches Threads posts by keyword.
Args:
threads_user_id (string): Threads user ID (for auth context)
q (string): Search query
limit (number): Max results (default 20)
Note: Results are limited to the authenticated user's content and public threads.
Inputs: q (required), threads_user_id (required), limit, response_format.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 200 tools
Tools are organized by platform and resource, and even the many list/get variants have descriptions that clarify their scope. A handful of similarly named retrievers—like meta_get_posts vs. meta_get_published_posts and meta_get_instagram_media vs. meta_get_instagram_single_media—require careful reading, but no tools are true duplicates.
The dominant meta_verb_noun and threads_verb_noun pattern is clear and predictable across nearly all tools. Minor inconsistencies such as meta_get_instagram_media being a list operation rather than a single-item getter, and mixing create/publish verbs for content creation, prevent a perfect score.
200 tools is an extreme count that far exceeds any reasonable MCP server scope. Even for a broad Meta API wrapper, the sheer number creates significant selection overhead and makes it difficult for an agent to reliably choose the right tool.
The surface covers Facebook Pages, posts, messaging, Instagram publishing, comments, DMs, ads, audiences, pixels, Threads, and product catalogs in impressive depth. Minor lifecycle gaps remain—such as no update for ad rules or saved audiences, no catalog creation, and no Instagram media editing—but agents can generally work around them.
Maintenance
Related MCP Connectors
Meta Ads MCP server: run Facebook and Instagram campaigns, ad sets, ads and reports from AI.
Connect any AI agent to 11+ social platforms: schedule, publish & track posts via hosted MCP.
Instagram MCP for DM and comment automation, AI Agent and content publishing via Meta's official API
Instagram and Facebook Pages for AI agents: publish, comments, DM by keyword, inbox, insights.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage Facebook and Instagram advertising via the Meta Marketing API. It provides comprehensive tools for campaign lifecycle management, performance analytics, audience targeting, and creative optimization.201-
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage Facebook and Instagram advertising data through the Meta Marketing API. It supports full campaign lifecycle management, performance analytics, audience targeting, and creative optimization.MIT
- AlicenseBqualityFmaintenanceConnects AI assistants to Meta's business platforms (Facebook, Instagram, Threads, Ads, Commerce) with 200 tools for publishing, engagement, analytics, ads, and commerce management.100320 npm74MIT
- AlicenseNot gradedqualityDmaintenanceA self-hosted Model Context Protocol (MCP) server that gives AI agents secure, multi-tenant access to the Meta Marketing API for Facebook Ads and Instagram Ads. It enables campaign management, audience targeting, insights, lead management, and more across multiple ad accounts.MIT