Relaticle
Open-source CRM your AI agents can write to: companies, people, opportunities, tasks and notes.
Facebook Pages MCP server for the Meta Graph API — publishing, insights, moderation, messaging
选择你使用的 AI 应用,然后复制设置。
通过 3/3 项检查 · 在你的电脑上运行 · ✓ 命令已检查 2026年11月14日
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
可连接 Claude,但需要先准备
需要 Facebook MCP 的密钥(在开发者网站创建) · 需要填写 1 项设置(FB_PAGE_ID) · 需要先在电脑上安装 Node.js(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
把这段话复制到 Claude 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Claude 安装 MCP server Facebook MCP,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "facebook": { "command": "npx", "args": [ "-y", "@ivanbaev/facebook-mcp" ], "env": { "FB_SYSTEM_TOKEN": "your-value", "FB_ACCESS_TOKEN": "your-value", "FB_PAGE_TOKEN": "your-value", "FB_PAGE_ID": "your-value", "FB_CONFIRM_TOKEN": "your-value", "FB_HTTP_TOKEN": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) FB_SYSTEM_TOKEN, FB_ACCESS_TOKEN, FB_PAGE_TOKEN, FB_CONFIRM_TOKEN, FB_HTTP_TOKEN, FB_PAGE_ID 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Facebook MCP 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
node -vMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v
安装一次,所有需要 Node.js 的工具都能用
这些是程序设置,不是密钥,无需注册。按开发者的说明填写。
FB_PAGE_ID Default Facebook Page ID, used when a tool call omits an explicit profile argument. Required when FB_PAGE_TOKEN is the only credential: it names the Page that token belongs to.说明仍为英文原文。
SettingsDeveloperEdit Config
{
"mcpServers": {
"facebook": {
"command": "npx",
"args": [
"-y",
"@ivanbaev/facebook-mcp"
],
"env": {
"FB_SYSTEM_TOKEN": "your-value",
"FB_ACCESS_TOKEN": "your-value",
"FB_PAGE_TOKEN": "your-value",
"FB_PAGE_ID": "your-value",
"FB_CONFIRM_TOKEN": "your-value",
"FB_HTTP_TOKEN": "your-value"
}
}
}
}只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
用 Facebook MCP 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude 说正在使用 Facebook MCP,或回答中出现 Facebook MCP 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
FB_APP_ID Meta app ID; combined with FB_APP_SECRET it forms the app access token used to authorize /debug_token inspection.FB_APP_SECRET Meta app secret. When set, appsecret_proof is attached to every call so a stolen bare token cannot be used on its own.FB_API_VERSION Graph API version to target. Defaults to the tested pinned version; other values are accepted verbatim as an escape hatch but are not tested. · 默认值 v26.0FB_ADS_API_VERSION Marketing API version the ads tools target (ad accounts, campaigns, ad sets, ads, insights, async reports). The Marketing API retires versions on its own, shorter schedule, so it is pinned separately… · 默认值 v26.0FB_REQUEST_TIMEOUT_MS Per-request timeout in milliseconds; integer in [1, 600000]. · 默认值 60000FB_HOST_CONCURRENCY Maximum number of in-flight requests per Graph host; integer in [1, 64]. · 默认值 4FB_MAX_RESULT_CHARS Character budget applied by the result shaper before a tool result is truncated; integer in [500, 10000000]. · 默认值 25000FB_WRITE_MODE Write gating mode: plan (validating dry-run preview, the default) or apply. It never covers the irreversible and spend tiers, which always need a per-call apply plus a plan_id. · 默认值 planFB_MEDIA_DIR Directory permitted for local media uploads. Unset means URL-only uploads and no local file access at all.FB_JOURNAL_PATH Path to the append-only write journal. Defaults to the XDG/%APPDATA% state path; the file is created owner-only (0600) and rotates by size.FB_ACTIVITY_STATE_PATH Path to the small JSON file where facebook_get_activity_since keeps, per Page, the horizon of the last complete read. Defaults to the XDG/%APPDATA% state path next to the journal; the file holds Page…FB_EXPORT_DIR Directory where the insights tools write a CSV or JSON file when called with `output`. Defaults to `exports/` under the XDG/%APPDATA% state path. Files are written atomically and owner-only (0600) an…FB_TOOL_PACKAGES Comma-separated tool packages or profiles to expose (e.g. core,posts,reader, or the profiles core|all|reader|publisher|moderator|ads). Omit for the default profile, which excludes ads.FB_PACKAGES_DENY Comma-separated packages OR profiles to exclude even when FB_TOOL_PACKAGES enables them; deny wins over allow. Profile names expand here exactly as they do in FB_TOOL_PACKAGES, and a profile beats a…FB_PACKAGES_READONLY Comma-separated packages OR profiles whose write tools are not registered at all; the read tools of those packages stay available. Profile names expand as they do in FB_TOOL_PACKAGES, so FB_PACKAGES_…FB_TRANSPORT Transport protocol: stdio (default) or http. The http transport binds 127.0.0.1 only and fails closed without FB_HTTP_TOKEN. · 默认值 stdioFB_HTTP_PORT Port for the HTTP transport (loopback only); used when FB_TRANSPORT=http. Integer in [1, 65535]. · 默认值 3000FB_AD_ACCOUNT_ID Default ad account ID (act_… or the bare numeric id) for the opt-in ads package.FB_ADS_BUDGET_CEILING Hard ceiling for any ads budget write, in minor units of the ad account's own currency (e.g. cents for USD). Non-negative integer; a write above it is refused. No currency conversion: size it for the…FB_ADS_CAMPAIGN_SPEND_CAP_MAX Largest campaign spend_cap (the lifetime total a campaign may spend) that an ads write may set, in minor units of the ad account's own currency. Non-negative integer; a cap above it is refused, never…FB_LOG_LEVEL Stderr log verbosity: debug, info, warn or error. Logs never go to stdout — that is the stdio protocol channel. · 默认值 info说明仍为英文原文。
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 Facebook MCP
Facebook MCP 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器
A · 使用能连接 Facebook MCP 的应用
B · 营销与社交媒体 类中能连接 ChatGPT 的其他服务器
从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的
可连接 Claude Code,但需要先准备
需要 Facebook MCP 的密钥(在开发者网站创建) · 需要填写 1 项设置(FB_PAGE_ID) · 需要先在电脑上安装 Node.js(只需一次)
把这段话复制到 Claude Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Claude Code 安装 MCP server Facebook MCP,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):claude mcp add --scope user facebook --env FB_SYSTEM_TOKEN=your-value --env FB_ACCESS_TOKEN=your-value --env FB_PAGE_TOKEN=your-value --env FB_PAGE_ID=your-value --env FB_CONFIRM_TOKEN=your-value --env FB_HTTP_TOKEN=your-value -- npx -y @ivanbaev/facebook-mcp 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) FB_SYSTEM_TOKEN, FB_ACCESS_TOKEN, FB_PAGE_TOKEN, FB_CONFIRM_TOKEN, FB_HTTP_TOKEN, FB_PAGE_ID 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Facebook MCP 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
node -vMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v
安装一次,所有需要 Node.js 的工具都能用
这些是程序设置,不是密钥,无需注册。按开发者的说明填写。
FB_PAGE_ID Default Facebook Page ID, used when a tool call omits an explicit profile argument. Required when FB_PAGE_TOKEN is the only credential: it names the Page that token belongs to.说明仍为英文原文。
Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell
claude mcp add --scope user facebook --env FB_SYSTEM_TOKEN=your-value --env FB_ACCESS_TOKEN=your-value --env FB_PAGE_TOKEN=your-value --env FB_PAGE_ID=your-value --env FB_CONFIRM_TOKEN=your-value --env FB_HTTP_TOKEN=your-value -- npx -y @ivanbaev/facebook-mcp按 Enter 前,把“your-value”改成你的密钥
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
应能看到 Facebook MCP 在列表中并显示已连接
用 Facebook MCP 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude Code 说正在使用 Facebook MCP,或回答中出现 Facebook MCP 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
FB_APP_ID Meta app ID; combined with FB_APP_SECRET it forms the app access token used to authorize /debug_token inspection.FB_APP_SECRET Meta app secret. When set, appsecret_proof is attached to every call so a stolen bare token cannot be used on its own.FB_API_VERSION Graph API version to target. Defaults to the tested pinned version; other values are accepted verbatim as an escape hatch but are not tested. · 默认值 v26.0FB_ADS_API_VERSION Marketing API version the ads tools target (ad accounts, campaigns, ad sets, ads, insights, async reports). The Marketing API retires versions on its own, shorter schedule, so it is pinned separately… · 默认值 v26.0FB_REQUEST_TIMEOUT_MS Per-request timeout in milliseconds; integer in [1, 600000]. · 默认值 60000FB_HOST_CONCURRENCY Maximum number of in-flight requests per Graph host; integer in [1, 64]. · 默认值 4FB_MAX_RESULT_CHARS Character budget applied by the result shaper before a tool result is truncated; integer in [500, 10000000]. · 默认值 25000FB_WRITE_MODE Write gating mode: plan (validating dry-run preview, the default) or apply. It never covers the irreversible and spend tiers, which always need a per-call apply plus a plan_id. · 默认值 planFB_MEDIA_DIR Directory permitted for local media uploads. Unset means URL-only uploads and no local file access at all.FB_JOURNAL_PATH Path to the append-only write journal. Defaults to the XDG/%APPDATA% state path; the file is created owner-only (0600) and rotates by size.FB_ACTIVITY_STATE_PATH Path to the small JSON file where facebook_get_activity_since keeps, per Page, the horizon of the last complete read. Defaults to the XDG/%APPDATA% state path next to the journal; the file holds Page…FB_EXPORT_DIR Directory where the insights tools write a CSV or JSON file when called with `output`. Defaults to `exports/` under the XDG/%APPDATA% state path. Files are written atomically and owner-only (0600) an…FB_TOOL_PACKAGES Comma-separated tool packages or profiles to expose (e.g. core,posts,reader, or the profiles core|all|reader|publisher|moderator|ads). Omit for the default profile, which excludes ads.FB_PACKAGES_DENY Comma-separated packages OR profiles to exclude even when FB_TOOL_PACKAGES enables them; deny wins over allow. Profile names expand here exactly as they do in FB_TOOL_PACKAGES, and a profile beats a…FB_PACKAGES_READONLY Comma-separated packages OR profiles whose write tools are not registered at all; the read tools of those packages stay available. Profile names expand as they do in FB_TOOL_PACKAGES, so FB_PACKAGES_…FB_TRANSPORT Transport protocol: stdio (default) or http. The http transport binds 127.0.0.1 only and fails closed without FB_HTTP_TOKEN. · 默认值 stdioFB_HTTP_PORT Port for the HTTP transport (loopback only); used when FB_TRANSPORT=http. Integer in [1, 65535]. · 默认值 3000FB_AD_ACCOUNT_ID Default ad account ID (act_… or the bare numeric id) for the opt-in ads package.FB_ADS_BUDGET_CEILING Hard ceiling for any ads budget write, in minor units of the ad account's own currency (e.g. cents for USD). Non-negative integer; a write above it is refused. No currency conversion: size it for the…FB_ADS_CAMPAIGN_SPEND_CAP_MAX Largest campaign spend_cap (the lifetime total a campaign may spend) that an ads write may set, in minor units of the ad account's own currency. Non-negative integer; a cap above it is refused, never…FB_LOG_LEVEL Stderr log verbosity: debug, info, warn or error. Logs never go to stdout — that is the stdio protocol channel. · 默认值 info说明仍为英文原文。
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
可连接 Cursor,但需要先准备
需要 Facebook MCP 的密钥(在开发者网站创建) · 需要填写 1 项设置(FB_PAGE_ID) · 需要先在电脑上安装 Node.js(只需一次)
把这段话复制到 Cursor 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Cursor 安装 MCP server Facebook MCP,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "facebook": { "command": "npx", "args": [ "-y", "@ivanbaev/facebook-mcp" ], "env": { "FB_SYSTEM_TOKEN": "your-value", "FB_ACCESS_TOKEN": "your-value", "FB_PAGE_TOKEN": "your-value", "FB_PAGE_ID": "your-value", "FB_CONFIRM_TOKEN": "your-value", "FB_HTTP_TOKEN": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) FB_SYSTEM_TOKEN, FB_ACCESS_TOKEN, FB_PAGE_TOKEN, FB_CONFIRM_TOKEN, FB_HTTP_TOKEN, FB_PAGE_ID 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Facebook MCP 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
node -vMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v
安装一次,所有需要 Node.js 的工具都能用
这些是程序设置,不是密钥,无需注册。按开发者的说明填写。
FB_PAGE_ID Default Facebook Page ID, used when a tool call omits an explicit profile argument. Required when FB_PAGE_TOKEN is the only credential: it names the Page that token belongs to.说明仍为英文原文。
在 Facebook MCP 的设置中,FB_SYSTEM_TOKEN, FB_ACCESS_TOKEN, FB_PAGE_TOKEN, FB_CONFIRM_TOKEN, FB_HTTP_TOKEN, FB_PAGE_ID 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
用 Facebook MCP 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Cursor 说正在使用 Facebook MCP,或回答中出现 Facebook MCP 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
FB_APP_ID Meta app ID; combined with FB_APP_SECRET it forms the app access token used to authorize /debug_token inspection.FB_APP_SECRET Meta app secret. When set, appsecret_proof is attached to every call so a stolen bare token cannot be used on its own.FB_API_VERSION Graph API version to target. Defaults to the tested pinned version; other values are accepted verbatim as an escape hatch but are not tested. · 默认值 v26.0FB_ADS_API_VERSION Marketing API version the ads tools target (ad accounts, campaigns, ad sets, ads, insights, async reports). The Marketing API retires versions on its own, shorter schedule, so it is pinned separately… · 默认值 v26.0FB_REQUEST_TIMEOUT_MS Per-request timeout in milliseconds; integer in [1, 600000]. · 默认值 60000FB_HOST_CONCURRENCY Maximum number of in-flight requests per Graph host; integer in [1, 64]. · 默认值 4FB_MAX_RESULT_CHARS Character budget applied by the result shaper before a tool result is truncated; integer in [500, 10000000]. · 默认值 25000FB_WRITE_MODE Write gating mode: plan (validating dry-run preview, the default) or apply. It never covers the irreversible and spend tiers, which always need a per-call apply plus a plan_id. · 默认值 planFB_MEDIA_DIR Directory permitted for local media uploads. Unset means URL-only uploads and no local file access at all.FB_JOURNAL_PATH Path to the append-only write journal. Defaults to the XDG/%APPDATA% state path; the file is created owner-only (0600) and rotates by size.FB_ACTIVITY_STATE_PATH Path to the small JSON file where facebook_get_activity_since keeps, per Page, the horizon of the last complete read. Defaults to the XDG/%APPDATA% state path next to the journal; the file holds Page…FB_EXPORT_DIR Directory where the insights tools write a CSV or JSON file when called with `output`. Defaults to `exports/` under the XDG/%APPDATA% state path. Files are written atomically and owner-only (0600) an…FB_TOOL_PACKAGES Comma-separated tool packages or profiles to expose (e.g. core,posts,reader, or the profiles core|all|reader|publisher|moderator|ads). Omit for the default profile, which excludes ads.FB_PACKAGES_DENY Comma-separated packages OR profiles to exclude even when FB_TOOL_PACKAGES enables them; deny wins over allow. Profile names expand here exactly as they do in FB_TOOL_PACKAGES, and a profile beats a…FB_PACKAGES_READONLY Comma-separated packages OR profiles whose write tools are not registered at all; the read tools of those packages stay available. Profile names expand as they do in FB_TOOL_PACKAGES, so FB_PACKAGES_…FB_TRANSPORT Transport protocol: stdio (default) or http. The http transport binds 127.0.0.1 only and fails closed without FB_HTTP_TOKEN. · 默认值 stdioFB_HTTP_PORT Port for the HTTP transport (loopback only); used when FB_TRANSPORT=http. Integer in [1, 65535]. · 默认值 3000FB_AD_ACCOUNT_ID Default ad account ID (act_… or the bare numeric id) for the opt-in ads package.FB_ADS_BUDGET_CEILING Hard ceiling for any ads budget write, in minor units of the ad account's own currency (e.g. cents for USD). Non-negative integer; a write above it is refused. No currency conversion: size it for the…FB_ADS_CAMPAIGN_SPEND_CAP_MAX Largest campaign spend_cap (the lifetime total a campaign may spend) that an ads write may set, in minor units of the ad account's own currency. Non-negative integer; a cap above it is refused, never…FB_LOG_LEVEL Stderr log verbosity: debug, info, warn or error. Logs never go to stdout — that is the stdio protocol channel. · 默认值 info说明仍为英文原文。
菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同
可连接 VS Code,但需要先准备
需要 Facebook MCP 的密钥(在开发者网站创建) · 需要填写 1 项设置(FB_PAGE_ID) · 需要先在电脑上安装 Node.js(只需一次)
把这段话复制到 VS Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 VS Code 安装 MCP server Facebook MCP,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "servers": { "facebook": { "type": "stdio", "command": "npx", "args": [ "-y", "@ivanbaev/facebook-mcp" ], "env": { "FB_SYSTEM_TOKEN": "your-value", "FB_ACCESS_TOKEN": "your-value", "FB_PAGE_TOKEN": "your-value", "FB_PAGE_ID": "your-value", "FB_CONFIRM_TOKEN": "your-value", "FB_HTTP_TOKEN": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) FB_SYSTEM_TOKEN, FB_ACCESS_TOKEN, FB_PAGE_TOKEN, FB_CONFIRM_TOKEN, FB_HTTP_TOKEN, FB_PAGE_ID 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Facebook MCP 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
node -vMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v
安装一次,所有需要 Node.js 的工具都能用
这些是程序设置,不是密钥,无需注册。按开发者的说明填写。
FB_PAGE_ID Default Facebook Page ID, used when a tool call omits an explicit profile argument. Required when FB_PAGE_TOKEN is the only credential: it names the Page that token belongs to.说明仍为英文原文。
在 Facebook MCP 的设置中,FB_SYSTEM_TOKEN, FB_ACCESS_TOKEN, FB_PAGE_TOKEN, FB_CONFIRM_TOKEN, FB_HTTP_TOKEN, FB_PAGE_ID 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
用 Facebook MCP 告诉我你能帮我做什么,然后做一件给我看✓ 如果 VS Code 说正在使用 Facebook MCP,或回答中出现 Facebook MCP 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
FB_APP_ID Meta app ID; combined with FB_APP_SECRET it forms the app access token used to authorize /debug_token inspection.FB_APP_SECRET Meta app secret. When set, appsecret_proof is attached to every call so a stolen bare token cannot be used on its own.FB_API_VERSION Graph API version to target. Defaults to the tested pinned version; other values are accepted verbatim as an escape hatch but are not tested. · 默认值 v26.0FB_ADS_API_VERSION Marketing API version the ads tools target (ad accounts, campaigns, ad sets, ads, insights, async reports). The Marketing API retires versions on its own, shorter schedule, so it is pinned separately… · 默认值 v26.0FB_REQUEST_TIMEOUT_MS Per-request timeout in milliseconds; integer in [1, 600000]. · 默认值 60000FB_HOST_CONCURRENCY Maximum number of in-flight requests per Graph host; integer in [1, 64]. · 默认值 4FB_MAX_RESULT_CHARS Character budget applied by the result shaper before a tool result is truncated; integer in [500, 10000000]. · 默认值 25000FB_WRITE_MODE Write gating mode: plan (validating dry-run preview, the default) or apply. It never covers the irreversible and spend tiers, which always need a per-call apply plus a plan_id. · 默认值 planFB_MEDIA_DIR Directory permitted for local media uploads. Unset means URL-only uploads and no local file access at all.FB_JOURNAL_PATH Path to the append-only write journal. Defaults to the XDG/%APPDATA% state path; the file is created owner-only (0600) and rotates by size.FB_ACTIVITY_STATE_PATH Path to the small JSON file where facebook_get_activity_since keeps, per Page, the horizon of the last complete read. Defaults to the XDG/%APPDATA% state path next to the journal; the file holds Page…FB_EXPORT_DIR Directory where the insights tools write a CSV or JSON file when called with `output`. Defaults to `exports/` under the XDG/%APPDATA% state path. Files are written atomically and owner-only (0600) an…FB_TOOL_PACKAGES Comma-separated tool packages or profiles to expose (e.g. core,posts,reader, or the profiles core|all|reader|publisher|moderator|ads). Omit for the default profile, which excludes ads.FB_PACKAGES_DENY Comma-separated packages OR profiles to exclude even when FB_TOOL_PACKAGES enables them; deny wins over allow. Profile names expand here exactly as they do in FB_TOOL_PACKAGES, and a profile beats a…FB_PACKAGES_READONLY Comma-separated packages OR profiles whose write tools are not registered at all; the read tools of those packages stay available. Profile names expand as they do in FB_TOOL_PACKAGES, so FB_PACKAGES_…FB_TRANSPORT Transport protocol: stdio (default) or http. The http transport binds 127.0.0.1 only and fails closed without FB_HTTP_TOKEN. · 默认值 stdioFB_HTTP_PORT Port for the HTTP transport (loopback only); used when FB_TRANSPORT=http. Integer in [1, 65535]. · 默认值 3000FB_AD_ACCOUNT_ID Default ad account ID (act_… or the bare numeric id) for the opt-in ads package.FB_ADS_BUDGET_CEILING Hard ceiling for any ads budget write, in minor units of the ad account's own currency (e.g. cents for USD). Non-negative integer; a write above it is refused. No currency conversion: size it for the…FB_ADS_CAMPAIGN_SPEND_CAP_MAX Largest campaign spend_cap (the lifetime total a campaign may spend) that an ads write may set, in minor units of the ad account's own currency. Non-negative integer; a cap above it is refused, never…FB_LOG_LEVEL Stderr log verbosity: debug, info, warn or error. Logs never go to stdout — that is the stdio protocol channel. · 默认值 info说明仍为英文原文。
菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同
Claude Code
claude mcp add --scope user facebook --env FB_SYSTEM_TOKEN=your-value --env FB_ACCESS_TOKEN=your-value --env FB_PAGE_TOKEN=your-value --env FB_PAGE_ID=your-value --env FB_CONFIRM_TOKEN=your-value --env FB_HTTP_TOKEN=your-value -- npx -y @ivanbaev/facebook-mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"facebook": {
"command": "npx",
"args": [
"-y",
"@ivanbaev/facebook-mcp"
],
"env": {
"FB_SYSTEM_TOKEN": "your-value",
"FB_ACCESS_TOKEN": "your-value",
"FB_PAGE_TOKEN": "your-value",
"FB_PAGE_ID": "your-value",
"FB_CONFIRM_TOKEN": "your-value",
"FB_HTTP_TOKEN": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"facebook": {
"command": "npx",
"args": [
"-y",
"@ivanbaev/facebook-mcp"
],
"env": {
"FB_SYSTEM_TOKEN": "your-value",
"FB_ACCESS_TOKEN": "your-value",
"FB_PAGE_TOKEN": "your-value",
"FB_PAGE_ID": "your-value",
"FB_CONFIRM_TOKEN": "your-value",
"FB_HTTP_TOKEN": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"facebook": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@ivanbaev/facebook-mcp"
],
"env": {
"FB_SYSTEM_TOKEN": "your-value",
"FB_ACCESS_TOKEN": "your-value",
"FB_PAGE_TOKEN": "your-value",
"FB_PAGE_ID": "your-value",
"FB_CONFIRM_TOKEN": "your-value",
"FB_HTTP_TOKEN": "your-value"
}
}
}
}FB_SYSTEM_TOKEN 机密 必填 envFB_ACCESS_TOKEN 机密 必填 envFB_PAGE_TOKEN 机密 必填 envFB_APP_ID envFB_APP_SECRET 机密 envFB_PAGE_ID 必填 envFB_API_VERSION envFB_ADS_API_VERSION envFB_REQUEST_TIMEOUT_MS envFB_HOST_CONCURRENCY envFB_MAX_RESULT_CHARS envFB_WRITE_MODE envFB_CONFIRM_TOKEN 机密 必填 envFB_MEDIA_DIR envFB_JOURNAL_PATH envFB_ACTIVITY_STATE_PATH envFB_EXPORT_DIR envFB_TOOL_PACKAGES envFB_PACKAGES_DENY envFB_PACKAGES_READONLY envFB_TRANSPORT envFB_HTTP_TOKEN 机密 必填 envFB_HTTP_PORT envFB_AD_ACCOUNT_ID envFB_ADS_BUDGET_CEILING envFB_ADS_CAMPAIGN_SPEND_CAP_MAX envFB_LOG_LEVEL env说明仍为英文原文。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月15日
注册名称已通过 GitHub 账户 IvanBBaev 验证,该账户拥有此仓库
代码最后更新于3天前
使用 MIT
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
OSV.dev 中没有 @ivanbaev/facebook-mcp@0.8.0 的记录
只检查这个版本的包本身,不包括所有依赖 · 检查于 2026年11月15日
提问、分享技巧或报告无法使用。按“有帮助”数量排序。
还没有评价
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:FB_SYSTEM_TOKEN, FB_ACCESS_TOKEN, FB_PAGE_TOKEN, FB_CONFIRM_TOKEN, FB_HTTP_TOKEN
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于3天前,最新版本(0.8.0)于17天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:Relaticle, ChatbotX, X (Twitter) MCP Server by Xquik, Betterlytics, BibiGPT YouTube Video Summarizer
同一分类、其他作者、命令已通过检查。官方的排在前面,再按星标排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Open-source CRM your AI agents can write to: companies, people, opportunities, tasks and notes.
Omnichannel customer messaging, CRM contacts, flows, sequences, broadcasts, and AI automation.
Xquik is the world's fastest and cheapest X (Twitter) data API with the most complete X data.
Query your Betterlytics web analytics from AI agents: traffic, funnels, journeys, errors, uptime.
AI video summarizer: summarize and transcribe YouTube, Bilibili, TikTok and podcast videos.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
📖 [Documentation site →](https://ivanbbaev.github.io/facebook-mcp/)
A local-first, MIT-licensed TypeScript Model Context Protocol (MCP) server for developers who run their own Facebook Page(s) from an MCP client such as Claude Code, Claude Desktop, VS Code or Cursor. It talks to the Meta Graph API through your own Meta developer app and your own token: publishing, reading and insights, comment moderation and Messenger replies. Writes return a preview first by default (plan-and-apply), and the server sends no telemetry.
Things you could ask your agent once it is set up (the tools exist; see Status for what has been verified):
Not for you if you do not want to create a Meta developer app and handle an App ID, an App Secret and a token yourself — hosted social-media connectors with a one-click login are a better fit for that. It is also not for personal profiles, Groups, Instagram (there is a sibling server) or a hosted service for other people's Pages — see Not in scope.
🚧 Pre-1.0, and not yet verified against a live Page. The latest release is
0.8.0 on npm. This README describes
main, which can be ahead of that release;
unreleased changes are listed in
changes/unreleased/.
fetch, so "the tests pass" means "the code does what the fixtures say", not "Meta accepted it". A live smoke harness exists (scripts/smoke/) but has not been run against a real Page for any release.npx on Linux, macOS and Windows, but no person has walked an install end-to-end in any MCP client yet — see Client compatibility.Contents: Status · Features · Requirements · Setup · Client compatibility · Configure credentials · Permissions · Tools · How this compares · Known limitations · Not in scope · Your responsibilities · Roadmap · Security notes · Documentation · Support · Trademark · License
Implementation status only — see Status for what "implemented" does and does not mean. "Experimental" follows the experimental tier.
| Area | Capability | Status |
|---|---|---|
| Core & diagnostics | Identity, Page listing, rate-limit usage, doctor pre-flight check, setup-token | ✅ Implemented, not live-verified |
| Reading | Page and post reads, Reels, reactions, Stories, albums and photos, cursor pagination | ✅ Implemented, not live-verified |
| Publishing | Text / link / photo / video / Reels posts, Stories, scheduling, edit and delete | ✅ Implemented, not live-verified |
| Insights | Page, post and Reel insights, a one-call Page report, a posts comparison table, metric-rename and retirement guidance | ✅ Implemented, not live-verified |
| Moderation | Comment reads and triage, replies, comment edits, hide, like, delete, private reply, block/unblock, moderation settings | ✅ Implemented, not live-verified |
| Messaging | Conversation reads, "what is new since", replies within the 24-hour window, saved replies; message reactions, attachments and labels | ✅ Implemented, not live-verified (some experimental) |
| Ads (opt-in) | Campaign / ad-set / ad reads, previews, insights, status, budget and spend-cap control; archive/delete, image upload, targeting edits, copies, boost | ✅ Implemented, not live-verified (some experimental) |
| Page profile (opt-in) | Edit the Page's about, description, website, phone, hours, temporary status | ✅ Implemented, not live-verified, experimental |
| Live verification | Every tool exercised against a real Page and a real ad account | ❌ Not done — see Status |
| npm / MCPB release | npx @ivanbaev/facebook-mcp, attested .mcpb bundle, MCP Registry listing | ✅ Published — 0.8.0 |
Each tool wraps one capability rather than mirroring every Graph edge. Six packages (53 tools) are on by default; ads and page_admin are opt-in.
graph, graph-video, rupload); nothing phones home.core ← api ← mcp ← tools ← cli ← server layering, tools-as-data with a central package registry.engines and a runtime guard in the launcher; the project targets the version in .nvmrc).ads package, an ad account) you administer.The first run is five steps, in this order. Most of the time goes into Meta's app UI. docs/runbooks/onboarding.md is the long form with troubleshooting.
setup-token needs both.pages_show_list and pages_read_engagement), and Generate Access Token. It lives 1–2 hours, so do step 3 right away.setup-token swaps it for a ~60-day token, resolves your Page and writes the env file: FB_APP_ID='<app id>' FB_APP_SECRET='<app secret>' \
FB_SETUP_TOKEN=' ' \ npx -y @ivanbaev/facebook-mcp setup-token
Success is status: completed in the Run block and status: written in the Env file block. The file lands at ~/.config/facebook-mcp/.env ($XDG_CONFIG_HOME if set) or %APPDATA%\facebook-mcp\.env on Windows, mode 0600. The server reads it on every start, so the client config below needs no env block. More than one Page? Re-run with --page= --force.
usable: npx -y @ivanbaev/facebook-mcp doctor