Skip to main content
Glama

为什么选择 Open MCP Servers

Open MCP Servers 是自托管 Model Context Protocol (MCP) 连接器的家园。您可以将服务器运行在自己的机器或基础设施上,连接到兼容 MCP 的 AI 客户端,并将凭据和应用程序数据保留在自己的掌控之中。

本仓库目前包含一个生产就绪的 Meta 连接器,覆盖 Facebook Pages、Instagram、Threads、Ads Manager、Commerce、Conversions API、受众和洞察。连接器架构特意保持简单直接,使社区能够为其他应用程序添加连接器,而无需依赖托管网关或供应商控制的中间层。

您可以依据 MIT License 自由地使用、修改、复刻、托管和重新分发本项目。您需要对所连接的第三方应用程序的凭据、API 访问、托管环境和服务条款负责。

“连接任意应用程序”意味着什么

MCP 在 AI 客户端和服务器之间提供了标准接口,但每个应用程序仍然需要一个了解其 API、身份验证和操作方式的连接器。您以附带的 Meta 连接器为参考,再为要支持的应用程序添加新的 API 客户端和工具模块即可。

本项目不会将您的凭据发送到任何中心服务,也不需要订阅。

Related MCP server: Meta Marketing API MCP Server

随附连接器:Meta

管理 Meta 各个平台的社交媒体运营——Facebook Pages、Instagram、Threads、Ads Manager 和 Commerce——需要同时应付多个仪表盘,每个平台都有各自的 API 特性和令牌流程。随附的连接器将这些 API 整合到一个 MCP 接口中,让您的 AI 助理可以跨平台发布内容、分析成效、管理广告活动和运营互动,而不必来回切换。

每个工具都会返回可操作的错误信息,而不是难以理解的 API 状态码。令牌过期?您会看到生成新令牌的链接。缺少权限?它会把缺哪个权限、在哪里授予都清清楚楚地列出来。这意味着您不必灰头土脸地调试,而是可以把时间花在真正的事情上。

快速开始

使用 MCPB 安装

对于 Claude Desktop 等兼容 MCP-的 and 通过MCPB 客户端,可从最新发布页 下载本地工具包(当有可用版本时):

下面的 npm 包和源码安装方式,是最灵活、最适合自托管的选项。

该压缩包中包含 Meta favicon、生产运行环境依赖,以及 Meta 和可选 Threads 访问令牌的设置提示。

将其添加到您的 MCP 客户端配置中:

{
  "mcpServers": {
    "meta": {
      "command": "npx",
      "args": ["-y", "@oliverames/meta-mcp-server"],
      "env": {
        "META_ACCESS_TOKEN": "your_token_here"
      }
    }
  }
}

就这么简单。您的 AI 助手现在可以通过一个由您掌控的服务器使用全部 200 个 Meta 工具。

需要令牌?前往 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 协议通信,因此它可与任何支持本地 stdio 服务器的 MCP 客户端配合使用。自托管是默认的部署方式;本仓库不需要托管的账户,也不需要进行项目注册。


你可以做什么

随处发布

发布到 Facebook Pages(文字、照片、视频、Reels、Stories)、Instagram(照片、Reels、Stories、旋转)和 Threads(文字、图片、视频、GIF、链接)。您可以提前定时发布,或在一个调用中实现多平台转发。

> 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 私信和广播频道,并为自己不在时可以设置自动回复。

> 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 项主页指标、全面的 Reels 分析(包括跳过率、跨平台浏览量),以及包含视频完播率、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 直播,发布 Stories 用于在线内容,并通过 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 公开广告资料库,搜索任意广告主正在投放的广告,查看他们的创意、定向和花费——无需对方授权。也能查看任何公开的 Instagram 企业账号数据。

> 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 Pages — 52 个工具

Tool

描述

meta_list_pages

列出你管理的所有 Facebook 主页 (请先调用 —— 会缓存主页令牌)

meta_get_page

获取主页详细信息(类别、关注者、描述、链接)

meta_get_post

按 ID 获取单篇帖子

meta_create_post

在主页上创建文本帖子

meta_create_photo_post

创建照片帖子(通过 URL 或主页照片 ID)

meta_create_video_post

创建视频帖子(可带标题和描述)

meta_update_post

编辑已有帖子的内容

meta_delete_post

删除帖子

meta_get_posts

分页获取主页信息流

meta_get_published_posts

仅获取已发布的帖子

meta_get_scheduled_posts

获取定时(未发布)的帖子

meta_get_promotable_posts

获取可进行广告推广的帖子

meta_get_visitor_posts

获取访客在主页上发布的帖子

meta_get_post_comments

分页获取帖子的评论

meta_reply_post_comment

以主页身份回复评论

meta_delete_comment

删除评论

meta_hide_comment

隐藏或取消隐藏评论(非破坏性审核)

meta_like_object

为帖子或评论点赞或取消点赞

meta_get_post_reactions

获取表情回应明细(赞、喜爱、哈哈、惊讶、悲伤、愤怒)

meta_get_page_insights

主页分析 —— 覆盖展示量、互动、粉丝、视频等 70 多项指标

meta_get_post_insights

单篇分析(展示量、互动、点击量、表情回应、视频)

meta_get_page_conversations

列出主页的消息会话

meta_get_conversation_messages

获取会话中的消息

meta_send_page_message

向用户发送消息(24 小时消息窗口)

meta_update_page

更新主页详情(简介、描述、网站、营业时间、用户名、类别、地址)

meta_update_page_picture

通过 URL 更新主页头像

meta_update_page_cover

通过 URL 或已有照片更新主页封面

meta_create_event

创建主页活动

meta_get_page_events

列出活动(即将开始、已结束或已取消)

meta_get_page_albums

列出主页相册

meta_get_page_photos

获取照片(已上传或已标记)

meta_get_page_videos

列出主页视频

meta_get_page_tagged

获取主页被标记的帖子

meta_get_page_fan_demographics

按年龄、性别、国家统计粉丝分布

meta_get_page_ratings

获取主页评价与星级评分

meta_get_page_locations

获取多门店企业的位置信息

meta_get_page_cta

获取主页的行动号召按钮配置

meta_get_page_tabs

列出主页页签及其配置

meta_get_page_picture

获取主页头像 URL

meta_get_blocked_users

列出被屏蔽用户

meta_block_user

屏蔽或取消屏蔽用户

meta_subscribe_page_webhooks

订阅主页的 webhook 事件

meta_publish_page_story

发布 Facebook 快拍(照片或视频)

meta_publish_page_reel

发布 Facebook Reel

meta_cross_post

同时交叉发布到 Facebook + Instagram

meta_create_live_video

开始或定时创建直播

meta_get_live_videos

列出主页的直播视频

meta_end_live_video

结束正在进行的直播

meta_get_page_automated_responses

获取当前的自动回复设置

meta_set_instant_reply

设置即时回复消息

meta_set_away_message

设置离开 / 外出留言

meta_set_greeting

设置 Messenger 问候语文本

Instagram — 37 个工具

完整的 Instagram Business API —— 支持定时发布、私信、广播频道、互动、发现和数据分析。

工具

描述

meta_list_instagram_accounts

列出与你的 Facebook Pages 关联的 Instagram 商业账户

meta_get_instagram_media

带分页获取 Instagram 账户的近期媒体

meta_get_instagram_single_media

按 ID 获取单个媒体对象

meta_publish_instagram_photo

发布照片,可设置可选替代文本并支持定时发布

meta_publish_instagram_reel

发布 Reels,支持自动轮询和可选定时发布

meta_publish_instagram_story

发布快拍(图片或视频,支持自动轮询)

meta_publish_instagram_carousel

发布轮播(2–10 项,并行处理,可定时发布)

meta_publish_instagram_container

发布预先创建的媒体容器

meta_check_instagram_container

检查容器处理状态,并提供可操作信息

meta_get_instagram_account_insights

账户级分析,含人口统计细分

meta_get_instagram_media_insights

单条帖子指标,包括 Reels 跳过率和跨平台转载观看次数

meta_get_instagram_comments

获取媒体对象上的评论

meta_get_instagram_comment_replies

获取评论的嵌套回复

meta_reply_instagram_comment

回复评论

meta_delete_instagram_comment

删除评论

meta_hide_instagram_comment

隐藏/取消隐藏评论(非破坏性审核)

meta_search_instagram_catalog_products

在 Instagram Shopping 目录中按名称搜索产品

meta_search_instagram_hashtag

搜索话题标签的热门媒体或近期媒体

meta_get_instagram_recent_hashtags

获取你最近搜索过的话题标签

meta_get_instagram_user

商业发现 — 通过用户名查找任何公开的企业/创作者

meta_get_instagram_stories

获取当前活跃的快拍

meta_get_instagram_live_media

获取直播视频媒体

meta_get_instagram_mentioned_media

获取你被 @提及的媒体

meta_get_instagram_media_children

获取轮播中的单个项目

meta_get_instagram_product_tags

获取媒体对象上的产品标签

meta_delete_instagram_media

删除媒体对象

meta_toggle_instagram_comments

启用或禁用媒体评论

meta_check_instagram_publishing_limit

检查速率限制状态(每 24 小时 100 条帖子)

meta_get_instagram_conversations

列出 Instagram 私信会话

meta_get_instagram_messages

获取私信会话中的消息

meta_send_instagram_message

发送文本私信

meta_send_instagram_media_message

通过私信发送图片或链接

meta_get_instagram_available_catalogs

列出专业账户上可用于 Instagram Shopping 的产品目录

meta_get_instagram_broadcast_channels

列出广播频道

meta_get_broadcast_channel_messages

获取广播频道中的消息

meta_send_broadcast_channel_message

向广播频道发送消息

meta_create_broadcast_channel_poll

在广播频道中创建投票

Ads Manager — 62 个工具

工具

描述

meta_list_ad_accounts

列出您有权访问的广告账户

meta_get_ad_account

获取广告账户详情(状态、货币、花费上限、余额)

meta_list_campaigns

列出广告系列,支持状态筛选和分页

meta_get_campaign

获取单个广告系列的完整详情

meta_create_campaign

创建广告系列(支持针对 OUTCOME\_SALES 的 Advantage+ 购物)

meta_update_campaign

更新广告系列名称、状态、预算,或迁移到 Advantage+

meta_delete_campaign

删除广告系列

meta_migrate_campaign_to_advantage_plus

将广告系列迁移到 Advantage+ 购物(保留广告系列 ID)

meta_list_adsets

列出广告组,支持筛选

meta_get_adset

获取单个广告组的定向和预算详情

meta_create_adset

创建带有定向、预算和 placement\_soft\_opt\_out 的广告组

meta_update_adset

更新广告组的定向、预算或 placement\_soft\_opt\_out

meta_delete_adset

删除广告组

meta_list_ads

列出广告,支持状态筛选

meta_get_ad

获取单个广告的详情

meta_create_ad

创建广告,将创意关联到广告组

meta_update_ad

更新广告名称、状态或创意

meta_delete_ad

删除广告

meta_list_ad_creatives

列出广告创意

meta_get_ad_creative

获取单个创意的详情

meta_create_ad_creative

使用文本、图片和链接创建广告创意

meta_get_ad_preview

预览广告在不同版位中的展示效果

meta_get_ad_rule

获取特定自动化广告规则的详情

meta_get_ad_account_users

列出有权访问广告账户的用户

meta_upload_ad_image

上传图片以用于广告创意

meta_list_ad_images

列出之前上传的广告图片

meta_upload_ad_video

上传视频以用于广告创意

meta_list_ad_videos

列出之前上传的广告视频

meta_search_targeting_interests

搜索基于兴趣的定向选项

meta_search_targeting_geolocations

搜索基于位置的定向选项(国家/地区、城市、邮政编码)

meta_search_targeting_demographics

搜索人口统计定向选项

meta_browse_targeting_categories

浏览所有可用的定向类别

meta_get_reach_estimate

估算特定定向条件的潜在受众规模

meta_get_delivery_estimate

估算给定预算和定向下的广告投放效果

meta_search_leadgen_leads

获取线索广告表单提交的线索

meta_get_minimum_budgets

按货币和出价策略获取广告账户的最低每日预算和总预算

meta_list_leadgen_forms

列出 Facebook 主页的线索广告表单

meta_list_offline_event_sets

列出广告账户的线下转化事件组

meta_list_pixels

列出用于转化跟踪的 Meta Pixel

meta_create_pixel

创建新的 Pixel

meta_get_pixel

获取 Pixel 详情(名称、Cookie 状态、匹配字段)

meta_get_pixel_stats

获取一段时间内的事件量统计(验证 Pixel 是否正在触发)

meta_update_pixel

更新 Pixel 设置(名称、Cookie、匹配、数据使用)

meta_delete_pixel

删除 Pixel

meta_share_pixel

与另一个广告账户共享 Pixel 访问权限

meta_get_pixel_events

获取最近用于调试的测试事件

meta_list_custom_conversions

列出自定义转化事件

meta_create_custom_conversion

从 Pixel 事件创建自定义转化

meta_list_saved_audiences

列出已保存受众

meta_create_saved_audience

创建可复用的已保存受众

meta_delete_saved_audience

删除已保存受众

meta_list_ad_rules

列出自动化广告规则

meta_create_ad_rule

创建自动化规则(例如,暂停每次操作费用超过 $5 的广告)

meta_delete_ad_rule

删除自动化规则

meta_list_ad_labels

列出广告标签,用于整理和归组

meta_create_ad_label

创建广告标签

meta_get_ad_account_activity

获取广告账户的活动日志

meta_list_business_assets

列出 Business Manager 中的主页、广告账户、IG 账户和 Pixel

meta_create_ad_study

创建 A/B 测试,用于比较广告系列或广告组

meta_get_ad_studies

列出广告账户的所有 A/B 测试

meta_get_ad_study_results

获取 A/B 测试结果,包括胜者和置信度

meta_send_offline_event

发送线下转化事件,适用于门店购买、电话订单或其他线下转化

Threads — 22 个工具

完整的 Threads API — 支持 GIF、回复控制、位置标记和分析的发布功能。

工具

说明

threads_get_profile

获取你的 Threads 个人资料信息

threads_get_posts

获取你的近期帖子(支持分页)

threads_get_post

按 ID 获取单个帖子(包含 reply_audience)

threads_search

按关键词搜索你的帖子

threads_publish_text

发布文本帖子(支持回复控制和位置)

threads_publish_image

发布图片帖子(支持回复控制和位置)

threads_publish_video

发布视频帖子并自动轮询(支持回复控制和位置)

threads_publish_carousel

发布轮播帖(并行创建,支持回复控制)

threads_publish_link

发布带链接附件的帖子(支持回复控制)

threads_publish_gif

通过 GIPHY URL 发布 GIF 帖子

threads_delete_post

删除帖子

threads_get_replies

获取帖子的回复

threads_get_conversation

获取帖子的完整对话树

threads_get_followers

列出已认证 Threads 用户的粉丝

threads_get_following

列出已认证 Threads 用户关注的账户

threads_get_mentions

获取 @提及你的帖子

threads_get_media_children

获取轮播帖中的单个条目

threads_hide_reply

隐藏或重新显示回复

threads_repost

转发 Threads 帖子

threads_get_post_insights

获取特定帖子的指标(浏览数、点赞数、回复数等)

threads_get_user_insights

获取账户级指标及人口属性细分

threads_check_rate_limits

检查你当前的发布速率限制状态

Commerce — 10 个工具

用于 Facebook 和 Instagram 店铺的产品目录管理。

工具

说明

meta_list_product_catalogs

列出企业拥有的产品目录

meta_get_product_catalog

获取目录详情和产品数量

meta_list_products

列出目录中的产品(支持筛选)

meta_get_product

获取单个产品的完整详情

meta_create_product

向目录中添加产品

meta_create_product_feed

创建产品 Feed,从 URL 自动同步产品

meta_update_product

更新产品详情(名称、价格、库存状态等)

meta_delete_product

从目录中删除产品

meta_list_product_feeds

列出目录的产品 Feed

meta_list_product_sets

列出目录中的产品系列(子组)

Conversions API — 2 个工具

用于转化优化的服务端事件跟踪。

工具

说明

meta_send_conversion_event

向 Pixel 发送服务端转化事件(Purchase、Lead 等)

meta_test_conversion_events

测试 CAPI 配置,不影响生产数据

Audiences — 5 个工具

用于广告定向的自定义受众和类似受众管理。

工具

说明

meta_list_custom_audiences

列出广告账户中的自定义受众

meta_get_custom_audience

获取受众详情(受众规模、投放状态)

meta_create_custom_audience

创建自定义受众

meta_create_lookalike_audience

从来源受众创建类似受众

meta_delete_custom_audience

删除自定义受众

Insights — 4 个工具

从受众到广告层级的性能分析,提供 37 项指标、15 个日期预设和 8 个细分维度。

工具

说明

meta_get_account_insights

广告账户效果 — 花费、展示次数、触达人数、点击量、CTR、CPM、CPC、转化次数、ROAS、视频完播率、质量排名

meta_get_campaign_insights

广告系列效果,包含同样的全面指标

meta_get_adset_insights

广告组效果

meta_get_ad_insights

单个广告的效果

Charts — 2 个工具

从数据生成可视化图表,用于报告和演示。

工具

说明

meta_generate_chart

创建柱状图、折线图、饼图、环形图、雷达图,输出为 PNG 图片

meta_generate_comparison_chart

生成并排对比图(A/B 测试、周期对比)

广告库与实用工具 — 4 个工具

工具

说明

meta_search_ad_library

搜索任意广告主的当前投放广告 — 公开透明 API

meta_debug_token

检查你的令牌:类型、有效性、过期时间、权限、关联的应用和用户

meta_health_check

检查服务器健康:令牌状态、缓存令牌、API 连通性

meta_search_places

按名称或坐标搜索 Facebook 地点(位置)用于帖子标记


配置

变量

必需

默认值

说明

META_ACCESS_TOKEN

是

无

用于 Facebook 主页、Instagram、广告管理、商务、转化 API、受众、洞察及实用工具的长期有效 Meta 图表 API 令牌。

THREADS_ACCESS_TOKEN

否

无

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 文档。

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. 授予权限

权限

用途

pages_show_list

列出主页

pages_read_engagement

主页互动,观点反应

pages_manage_posts

创建、编辑、删除帖子

pages_manage_metadata

主页设置、Webhooks、头像、封面照片

pages_read_user_content

标记的帖子、访客帖和评分

pages_messaging

阅读和发送消息,自动回复

instagram_basic

Instagram 账户信息

instagram_content_publish

发布照片、Reels、快拍和轮播帖

instagram_manage_insights

Instagram 分析数据

instagram_manage_comments

评论管理

instagram_manage_messages

Instagram 私信

ads_read

读取广告系列、广告组、广告、洞察数据

ads_management

创建和管理广告、A/B 测试

business_management

Business Manager 资产、产品目录

catalog_management

产品目录的增删改查

threads_basic

Threads 主页和帖子

threads_content_publish

在 Threads 发布内容

threads_manage_insights

Threads 数据分析

threads_manage_replies

管理 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"
      }
    }
  }
}

适用于任何支持 stdio 传输 的 MCP 客户端。THREADS_ACCESS_TOKEN 为可选 — 仅在使用 Threads 工具时需要。

工作原理

服务器可以在未配置任何令牌的情况下启动 — 不会崩溃,也不会在 MCP 设置中显示“失败”状态。当你没有正确认证而调用工具时,会得到清晰的状态信息。

首次调用应始终使用 meta_list_pages — 这会缓存所有 Page 和 Instagram 操作所需的页面级访问令牌。

错误处理

每条错误信息都会说明出错的缘由、原因以及如何修复:

问题场景

你会看到

未设置令牌

分步设置说明,附 Graph Explorer 链接

令牌已过期(错误码 190)

直达 developers.facebook.com 重新生成令牌的链接

缺少权限(错误码 10/200)

明确告知缺失的具体权限以及在哪里授予

请求频率受限(429)

提示你等待,并附上 Meta 的速率限制文档链接

缺少页面令牌

提醒你先调用 meta_list_pages

网络不可达

“无法访问 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 → 系统用户中创建一个系统用户。


架构

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,使用相互独立的 base URL 和令牌

  • 页面令牌缓存 — meta_list_pages 会缓存页面级令牌;后续工具按 page ID 查找令牌

  • 两步容器发布 — Instagram 和 Threads 采用容器 → 发布流程(container → publish);服务器通过轮询视频处理状态自动完成

  • 并行轮播处理 — 通过 Promise.allSettled 并发创建所有轮播项;当部分失败时,报告哪些轮播项已成功

  • Zod 严格模式 — 每个工具都使用严格的 Zod schema 对参数进行类型安全校验

  • 双输出格式 — 所有读取工具均支持 response_format: "markdown" 或 "json"

  • 优雅的鉴权 — 服务器没有配置令牌也能启动;首次调用工具时返回搭建指南,而不是直接崩溃

  • 图表生成 — 集成 QuickChart,将数据渲染为 PNG 图片用于生成报表


API 覆盖范围

面向 Meta Graph API v21.0 和 Threads API v1.0。

API

状态

Facebook Pages API

全面 — 帖子、评论、消息、成效分析、活动、媒体、Stories、Reels、Live Video、自动回复

Instagram Graph API

全面 — 发布、定时发布、评论、私信、广播频道、话题标签、企业发现、成效分析

Marketing API

全面 — 广告系列、广告组、广告、创意、定向、受众、Pixel、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 参数;工具错误通过 errorResult() 返回,并标注 isError: true。

新增连接器

新增连接器时应把与应用相关的代码与共享的 MCP 入口隔离:

  1. 在 src/services/ 下新增一个 API 客户端,并基于环境变量配置凭据。

  2. 在 src/tools/ 下新增一个或多个工具模块,使用严格的 Zod 输入 schema。

  3. 从 src/index.ts 中注册这些工具。

  4. 在 docs/ 和 README 中记录安装、权限以及支持的操作。

  5. 在提交 pull request 之前,添加单元测试和集成测试覆盖。

凭据统一放在环境变量或本地密钥管理器中。切勿将令牌、私钥或客户数据提交到代码仓库。

许可证

本项目采用该 MIT License 授权。可在个人或商业项目中免费使用,包括修改、托管和再分发,但需遵守许可证通知中的所有条款。第三方 API 和服务仍遵守其自身的条款、配额及身份验证要求。



Available Tools

200 tools
meta_block_userBlock/Unblock User from PageA
Idempotent

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 CategoriesC
Read-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 StatusA
Read-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 LimitA
Read-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 TokenA
Read-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 AdA
Destructive

Deletes an ad permanently.

Args:

  • ad_id (string): Ad ID to delete

Inputs: ad_id (required).

meta_delete_ad_ruleDelete Automated Ad RuleA
Destructive

Deletes an automated ad rule.

Args:

  • rule_id (string): Ad rule ID

Inputs: rule_id (required).

meta_delete_adsetDelete Ad SetA
Destructive

Deletes an ad set permanently.

Args:

  • adset_id (string): Ad set ID to delete

Inputs: adset_id (required).

meta_delete_campaignDelete CampaignA
Destructive

Deletes (archives) a campaign. This cannot be undone.

Args:

  • campaign_id (string): Campaign ID to delete

Inputs: campaign_id (required).

meta_delete_commentDelete Facebook CommentA
Destructive

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 AudienceA
Destructive

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 CommentA
Destructive

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 MediaA
Destructive

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 PixelA
Destructive

Deletes a Meta Pixel.

Args:

  • pixel_id (string): Pixel ID to delete

Inputs: pixel_id (required).

meta_delete_postDelete Facebook Page PostA
Destructive

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 ProductA
Destructive

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 AudienceC
Destructive

Deletes a saved audience.

Args:

  • audience_id (string): Saved audience ID

Inputs: audience_id (required).

meta_end_live_videoEnd Facebook Live VideoA
Idempotent

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 DataA
Idempotent

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 ChartA
Idempotent

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 InsightsA
Read-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 DetailsC
Read-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 DetailsA
Read-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 LogA
Read-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 UsersA
Read-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 DetailsC
Read-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 InsightsA
Read-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 PreviewA
Read-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 DetailsA
Read-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 DetailsC
Read-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 InsightsA
Read-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)A
Read-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 ResultsA
Read-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 UsersA
Read-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 MessagesB
Read-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 DetailsC
Read-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 InsightsA
Read-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 MessagesA
Read-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 AudienceA
Read-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 EstimateA
Read-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 InsightsA
Read-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 CatalogsA
Read-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 ChannelsA
Read-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 RepliesA
Read-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 CommentsC
Read-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 ConversationsB
Read-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 MediaB
Read-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 MediaA
Read-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 ItemsA
Read-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 InsightsA
Read-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 MentionsB
Read-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 MessagesA
Read-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 TagsA
Read-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 HashtagsA
Read-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 DetailsB
Read-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 StoriesA
Read-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 InfoA
Read-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 FormA
Read-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 VideosA
Read-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 BudgetsA
Read-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 DetailsB
Read-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 AlbumsC
Read-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 SettingsA
Read-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 ConversationsA
Read-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-ActionA
Read-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 EventsA
Read-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 DemographicsA
Read-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 InsightsA
Read-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 LocationsB
Read-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 PhotosB
Read-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 PictureB
Read-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/ReviewsB
Read-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 TabsA
Read-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 PostsA
Read-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 VideosC
Read-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 DetailsC
Read-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 EventsB
Read-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 StatsA
Read-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 DetailsB
Read-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 CommentsA
Read-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 InsightsA
Read-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 ReactionsA
Read-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 PostsA
Read-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 ProductA
Read-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 CatalogB
Read-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 PostsA
Read-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 PostsA
Read-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 EstimateA
Read-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 PostsB
Read-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 PostsA
Read-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 CheckA
Read-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 CommentA
Idempotent

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 CommentA
Idempotent

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 CommentA
Idempotent

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 AccountsA
Read-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 CreativesA
Read-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 ImagesB
Read-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 LabelsA
Read-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 RulesA
Read-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 AdsA
Read-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 SetsA
Read-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 VideosA
Read-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 AssetsB
Read-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 CampaignsB
Read-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 AudiencesA
Read-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 ConversionsC
Read-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 AccountsA
Read-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 FormsA
Read-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 SetsA
Read-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 PagesA
Read-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 PixelsB
Read-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 CatalogsA
Read-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 FeedsA
Read-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 ProductsA
Read-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 SetsA
Read-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 AudiencesC
Read-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_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 LibraryA
Read-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 ProductsA
Read-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 HashtagA
Read-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 PlacesA
Read-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 DemographicsB
Read-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 GeolocationsB
Read-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 InterestsA
Read-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 MessageA
Idempotent

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 GreetingA
Idempotent

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 ReplyA
Idempotent

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_share_pixelShare Meta PixelB

Shares a pixel with another ad account.

Args:

  • pixel_id (string): Pixel ID

  • ad_account_id (string): Target ad account ID

  • business_id (string): Business ID

Inputs: pixel_id (required), business_id (required), ad_account_id (required), response_format.

meta_subscribe_page_webhooksSubscribe Page to WebhooksA
Idempotent

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 CommentsB
Idempotent

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 SettingsA
Idempotent

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 PhotoA
Idempotent

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 PictureA
Idempotent

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 PixelC
Idempotent

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 PostB
Idempotent

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 ProductB
Idempotent

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 LimitsB
Read-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 ThreadB
Destructive

Deletes a Threads post permanently.

Args:

  • media_id (string): Threads media ID to delete

Inputs: media_id (required).

threads_get_conversationGet Threads ConversationB
Read-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 FollowersB
Read-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 FollowingA
Read-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 ItemsA
Read-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 MentionsB
Read-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 PostC
Read-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 InsightsA
Read-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 PostsA
Read-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 ProfileA
Read-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 RepliesB
Read-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 InsightsA
Read-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 ReplyA
Idempotent

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_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_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.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 200 tools

    Disambiguation4/5

    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.

    Naming Consistency4/5

    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.

    Tool Count1/5

    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.

    Completeness4/5

    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

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables 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
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables 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
    • A
      license
      B
      quality
      F
      maintenance
      Connects AI assistants to Meta's business platforms (Facebook, Instagram, Threads, Ads, Commerce) with 200 tools for publishing, engagement, analytics, ads, and commerce management.
      100
      320 npm
      74
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A 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