Listed from the MCP registry; nobody on Odel publishes it.

MCP server: One MCP server.

Facebook

@ivanbbaevMCP server · External

Facebook Pages MCP server for the Meta Graph API — publishing, insights, moderation, messaging

Social media managementv0.8.0MITTypeScript
Freeno charge per call

Runs on your machine from its package; the steps are below.

What it does

  1. Reads
  2. Writes
  3. High impact

At most: moves money, runs code or commands, deletes data, or sends messages for you.

What it costs

Free

Odel charges nothing per call. The publisher may charge for its own service.

Runs locally over stdio

This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).

npm@ivanbaev/facebook-mcpv0.8.0

Run

npx -y @ivanbaev/facebook-mcp

MCP client config

{
  "mcpServers": {
    "facebook": {
      "command": "npx",
      "args": [
        "-y",
        "@ivanbaev/facebook-mcp"
      ]
    }
  }
}
README32 min read

facebook-mcp — an MCP server for Facebook Pages

CICodeQLLicense: MITnodeMCP
statuslast commitdocsSponsor

📖 Documentation site →

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):

  • "Draft a post with this photo and schedule it for Friday 9:00 — show me the preview first."
  • "Triage the unanswered comments on last week's posts."
  • "Give me this week's Page report."

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.

Status

🚧 Pre-1.0, and not yet verified against a live Page. The latest release is @ivanbaev/facebook-mcp 0.8.0 on npm. This README describes main, which can be ahead of that release; unreleased changes are listed in changes/unreleased/.

  • Implemented, not live-verified. All 69 tools in the tool table are implemented. Every test in this repository runs against fakes and recorded fixtures behind a network fence that throws on a real 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.
  • No client verified by hand. CI starts the packed server with npx on Linux, macOS and Windows, but no person has walked an install end-to-end in any MCP client yet — see Client compatibility.
  • Experimental tools. Some tools are marked experimental (list under Not in scope): they may change in any minor release, even after 1.0.
  • Breaking changes are planned. 0.9 changes tool contracts (see Roadmap). Read Known limitations before you rely on anything.

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

Features

Implementation status only — see Status for what "implemented" does and does not mean. "Experimental" follows the experimental tier.

AreaCapabilityStatus
Core & diagnosticsIdentity, Page listing, rate-limit usage, doctor pre-flight check, setup-token✅ Implemented, not live-verified
ReadingPage and post reads, Reels, reactions, Stories, albums and photos, cursor pagination✅ Implemented, not live-verified
PublishingText / link / photo / video / Reels posts, Stories, scheduling, edit and delete✅ Implemented, not live-verified
InsightsPage, post and Reel insights, a one-call Page report, a posts comparison table, metric-rename and retirement guidance✅ Implemented, not live-verified
ModerationComment reads and triage, replies, comment edits, hide, like, delete, private reply, block/unblock, moderation settings✅ Implemented, not live-verified
MessagingConversation 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 verificationEvery tool exercised against a real Page and a real ad account❌ Not done — see Status
npm / MCPB releasenpx @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.

  • Local-first, no telemetry. Only three Meta hosts are ever reached (graph, graph-video, rupload); nothing phones home.
  • Least-privilege credentials. Works with a never-expiring System User token (Business Manager) or a long-lived Page token — no App Review required for an admin operating their own assets.
  • Safe writes. Tiered plan-and-apply gating; irreversible and spend actions require out-of-band confirmation and are never unlocked by an env flag alone.
  • Secret hygiene. Value-based redaction of secrets at a single choke-point across logs, errors, tool results, and the write journal.
  • Layered architecture. Lint-enforced core ← api ← mcp ← tools ← cli ← server layering, tools-as-data with a central package registry.

Requirements

  • Node.js ≥ 22 (enforced by engines and a runtime guard in the launcher; the project targets the version in .nvmrc).
  • A Meta (Facebook) developer app — a Business-type app at Standard Access is enough; no App Review is needed to operate your own assets.
  • A Facebook Page (and, for the opt-in ads package, an ad account) you administer.

Setup

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.

  1. Meta app — create a Business-type app at https://developers.facebook.com/apps and note its App ID and App Secret (Settings → Basic). setup-token needs both.

  2. Short-lived token — in the Graph API Explorer pick your app, User Token, tick the scopes you need (at least pages_show_list and pages_read_engagement), and Generate Access Token. It lives 1–2 hours, so do step 3 right away.

  3. Exchange it and write the env file — setup-token swaps it for a ~60-day token, resolves your Page and writes the env file:

    bash
    FB_APP_ID='<app id>' FB_APP_SECRET='<app secret>' \
    FB_SETUP_TOKEN='<explorer 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=<id> --force.

  4. Pre-flight — every package you plan to use should be usable:

    bash
    npx -y @ivanbaev/facebook-mcp doctor
    
  5. Register the server with your client and make the first call — see the next two subsections, then ask the client to "run facebook_whoami". A reply naming your token type and Page is the first successful tool call.

The doctor and setup-token reports name commands in the form you launched with (npx -y @ivanbaev/facebook-mcp …, facebook-mcp … after a global install, or node build/index.js … from a source checkout). --help writes facebook-mcp …; substitute your launch form. Every subcommand takes --help without touching the network.

(a) Via npx

Claude Code — one command, then check /mcp inside a session:

bash
claude mcp add facebook -- npx -y @ivanbaev/facebook-mcp

It is registered for the current project directory by default; add --scope user to have it everywhere. Or install it as a plugin, which wires up the same command:

bash
/plugin marketplace add IvanBBaev/facebook-mcp
/plugin install facebook-mcp

The plugin route has not been walked end-to-end yet. The marketplace reads the plugin from this repository's main branch, and the plugin starts npx -y @ivanbaev/facebook-mcp without a version pin, so it runs whatever release is latest on npm.

Claude Desktop — Settings → Developer → Edit Config opens claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\). Add the server, save, then quit and restart Claude Desktop:

json
{
  "mcpServers": {
    "facebook": {
      "command": "npx",
      "args": ["-y", "@ivanbaev/facebook-mcp"]
    }
  }
}

Claude Desktop does not load your shell profile. If Node comes from a version manager (nvm, fnm, asdf) and the server fails to start, put the absolute path of npx (which npx) in command.

Any other stdio client takes the same command / args pair — see Client compatibility.

Claude Desktop bundle (alternative) — the .mcpb attached to the latest release installs by double-click. Its settings form lists every credential as optional: leave them blank to use the env file from step 3 (a blank field never overrides it). It carries a build-provenance attestation, so you can prove it came out of this repository's workflow before you install it:

bash
gh attestation verify facebook-mcp-0.8.0.mcpb --repo IvanBBaev/facebook-mcp

(b) From source

For development, or to run a commit that is not released yet:

bash
git clone https://github.com/IvanBBaev/facebook-mcp.git
cd facebook-mcp
npm install
npm run build
node build/index.js setup-token   # with the same FB_* variables as step 3
node build/index.js doctor        # pre-flight: token, scopes, package matrix
node build/index.js               # or: ./bin/facebook-mcp.mjs

Point your MCP client at that command with an absolute path. The env block is optional — without it the server reads the env file, and a non-blank value here overrides the file:

json
{
  "mcpServers": {
    "facebook": {
      "command": "node",
      "args": ["/absolute/path/to/facebook-mcp/build/index.js"],
      "env": { "FB_SYSTEM_TOKEN": "…", "FB_PAGE_ID": "…" }
    }
  }
}

(c) Instagram alongside: the sibling server

This server stays Pages-only. Instagram professional accounts are covered by the separate instagram-mcp-ai server (publishing, media, comments, insights, DMs). Run both side by side; each keeps its own credentials and env file (~/.config/instagram-mcp-ai/.env for Instagram, set up with npx instagram-mcp-ai login), so neither config below needs an env block.

Claude Code:

bash
claude mcp add facebook -- npx -y @ivanbaev/facebook-mcp
claude mcp add instagram -- npx -y instagram-mcp-ai

Claude Desktop (claude_desktop_config.json):

json
{
  "mcpServers": {
    "facebook": {
      "command": "npx",
      "args": ["-y", "@ivanbaev/facebook-mcp"]
    },
    "instagram": {
      "command": "npx",
      "args": ["-y", "instagram-mcp-ai"]
    }
  }
}

The two servers share nothing at runtime: a post to a Page and a post to Instagram are two tool calls, each with its own preview. Tool names do not collide (facebook_* here).

Client compatibility

This is a standard stdio MCP server with no client-specific code, so it should work anywhere the protocol does. "Should" is the operative word: the table records the configuration each client needs and whether that path has actually been exercised — not a promise.

ClientHow you register itVerified?
Claude Desktopclaude_desktop_config.json → mcpServers, or a .mcpb bundle❌ Not yet — bundle never installed end-to-end
Claude Codeclaude mcp add, or the plugin marketplace in this repo❌ Not yet
VS Code (Copilot Chat / agent).vscode/mcp.json → servers❌ Not yet
Cursor~/.cursor/mcp.json → mcpServers❌ Not yet
Windsurf, Zed, Cline, …any client that speaks stdio JSON-RPC❌ Not yet
MCP Inspectorpoint it at node build/index.js❌ Not yet

What is verified, by automated test:

  • stdio framing — a test spawns the built server as a real subprocess, runs the full initialize → tools/list → tools/call handshake over pipes, and asserts that stdout carries protocol frames only (all logging goes to stderr).
  • Tool contracts — every tool's input/output schema, annotations, write tier and error mapping are unit-tested against fakes and recorded fixtures.
  • The HTTP transport — loopback binding, bearer-token rejection and session handling, again against a real local server.
  • npx cold start — CI packs each commit, starts it with npx -y from an empty directory on Linux, macOS and Windows, and requires initialize and a non-empty tools/list.

None of that involves an MCP client or the Meta API. If you get it working with a client, say so in an issue — that is how this table turns into ✅.

Platform notes

CI runs the full check on Linux (Node 22/24/26) and Windows (Node 22). macOS is the primary development platform; in CI it runs only the npx cold-start job (pack, start, initialize and tools/list), which also runs on Linux and Windows. Paths for the env file, the write journal and FB_MEDIA_DIR follow XDG on POSIX and %APPDATA% on Windows.

Configure credentials

facebook-mcp authenticates with a token you already control — there is no App Review, no OAuth callback server, and no hosted component. Provide at least one of the token variables below; the most specific wins (FB_SYSTEM_TOKEN → FB_ACCESS_TOKEN → FB_PAGE_TOKEN):

  • FB_SYSTEM_TOKEN — a never-expiring System User token (Business Manager). Recommended: it does not expire and is scoped to the assets you assign it.
  • FB_ACCESS_TOKEN — a Meta user access token (a long-lived one preferred).
  • FB_PAGE_TOKEN — a long-lived Page token, the no-Business-Manager fallback. It belongs to exactly one Page, so set FB_PAGE_ID to that Page alongside it (doctor / facebook_whoami reports it as the acting Page).

Grant only the permissions the packages you enable actually need (full list below), and set FB_APP_SECRET so appsecret_proof is attached to every call — that makes a stolen bare token unusable on its own. Settings are read from an env file at the XDG/%APPDATA% config path, or from real environment variables (which take precedence).

If you would rather not assemble the env file by hand, run npx -y @ivanbaev/facebook-mcp setup-token (node build/index.js setup-token from source) — the guided flow exchanges and classifies a token and writes the env file for you (--page=<id>, --env-file=<path>, --force to overwrite, --no-write/--dry-run to rehearse; pass the token via FB_SETUP_TOKEN rather than on the command line; the exchange also needs FB_APP_ID and FB_APP_SECRET). See docs/runbooks/onboarding.md for the full walkthrough.

Then run doctor (npx -y @ivanbaev/facebook-mcp doctor) before anything else: it inspects the token, reports type, expiry and granted scopes, and prints a per-package usable / partial / blocked matrix so you find a missing permission before a tool call does. It ends with a one-line verdict over everything it found.

The doctor is a report, so it exits 0 whatever it finds — a wrapper that runs it for the text keeps working. Add --strict to make it a gate instead:

VerdictWith --strictMeans
OKexit 0Nothing needs attention.
WARNexit 1The server will run, but something is degraded (partial scopes, a token about to expire, a world-readable env file, a metric name Graph no longer accepts).
UNKNOWNexit 1A check could not be completed — typically debug_token was unreachable, so the credential is unverified rather than bad.
FAILexit 2This configuration cannot serve requests: no token, a token Graph rejects, revoked asset access, or no usable package.

UNKNOWN outranks WARN on purpose: "nothing was established" must not hide behind "degraded". A platform without POSIX permission bits raises no finding for the credential file — there is no chmod to recommend there, and a warning nothing can clear would make --strict permanently red on Windows.

node build/index.js --version (or -v) prints the server, Node and MCP SDK versions on one line and exits — it needs no credential, so it still answers on an install that cannot start:

text
facebook-mcp 0.8.0 (node v22.23.0, darwin arm64, sdk 1.32.1)

The bare server version is always the second field, so --version | awk '{print $2}' keeps working. The same three versions plus the pinned Graph API version are reported by facebook_whoami in its server object (name, version, apiVersion, sdkVersion). --help (or -h) prints the command summary and a first-run recipe to stdout and exits 0, again without reading any credential; setup-token --help and doctor --help do the same instead of running. doctor, setup-token, --version and --help are the only arguments that exit on their own; anything else starts the stdio server and waits on JSON-RPC. An argument doctor does not recognise (say --stric) never gates, but the report names it — option names only, never a value — so a mistyped --strict in CI is visible.

Environment variables

Provide at least one token; everything else is optional tuning. Variables marked Secret are never logged or returned by a tool.

VariableRequiredDefaultDescription
FB_SYSTEM_TOKENone of¹—Secret. System User token (Business Manager). Recommended; wins over the other two.
FB_ACCESS_TOKENone of¹—Secret. Meta user access token (a long-lived one preferred).
FB_PAGE_TOKENone of¹—Secret. Long-lived Page token — the no-Business-Manager fallback. Belongs to exactly one Page: set FB_PAGE_ID to that Page alongside it, or no Page-scoped tool can use it.
FB_APP_IDno—Meta app ID. With FB_APP_SECRET it forms the app token used to inspect tokens.
FB_APP_SECRETno—Secret. When set, appsecret_proof is attached so a stolen bare token is unusable.
FB_PAGE_IDno—Default Page ID for Page-scoped tools when a call omits profile. Required when FB_PAGE_TOKEN is the only credential (it names the Page the token belongs to).
FB_API_VERSIONnov26.0Graph API version to pin. Off-default values are accepted, but only the default is tested.
FB_ADS_API_VERSIONnov26.0Marketing API version for the ads tools (own lifecycle, separate from FB_API_VERSION). Off-default values are accepted, but only the default is tested.
FB_REQUEST_TIMEOUT_MSno60000Per-request timeout in milliseconds (1–600000).
FB_HOST_CONCURRENCYno4Max parallel requests per Graph host (1–64).
FB_MAX_RESULT_CHARSno25000Character budget before a tool result is truncated (500–10000000).
FB_WRITE_MODEnoplanplan (default) previews a write without mutating; apply executes. Never covers the irreversible/spend tiers.
FB_CONFIRM_TOKENno—Secret. Out-of-band confirmation token authorizing gated write / spend actions, for clients that cannot prompt. At least 16 characters.
FB_MEDIA_DIRno—Directory permitted as a source for local media uploads. Unset ⇒ URL-only, local file access disabled.
FB_JOURNAL_PATHnoXDG / %APPDATA% state pathPath to the append-only, rotating write journal (0600).
FB_JOURNAL_RETENTION_DAYSno90Days a write-journal entry is kept (0 = no age limit).
FB_ACTIVITY_STATE_PATHnoXDG / %APPDATA% state pathPath to the local high-water marks of facebook_get_activity_since (0600).
FB_EXPORT_DIRnoXDG / %APPDATA% state pathDirectory for insights file exports (output argument; 0700 dir, 0600 files).
FB_TOOL_PACKAGESnocore profile (all packages except ads)Comma-separated packages or profiles to enable. core is always forced on; ads is opt-in.
FB_TOOL_PACKAGES_DENYno—Packages or profiles to exclude even if FB_TOOL_PACKAGES enables them; the core package always survives.
FB_PACKAGES_DENYno—Deprecated alias of FB_TOOL_PACKAGES_DENY; still read in 1.x with a startup warning, removed in 2.0.
FB_TOOL_PACKAGES_READONLYno—Packages or profiles whose write tools are not registered; their read tools stay.
FB_PACKAGES_READONLYno—Deprecated alias of FB_TOOL_PACKAGES_READONLY; still read in 1.x with a startup warning, removed in 2.0.
FB_TRANSPORTnostdiostdio (default) or http (loopback-only Streamable HTTP for local agent clients).
FB_HTTP_BEARERif http—Secret. Bearer token required by the http transport; it fails closed without it. At least 16 characters.
FB_HTTP_TOKENno—Deprecated alias of FB_HTTP_BEARER; still read in 1.x with a startup warning, removed in 2.0.
FB_HTTP_PORTno3000TCP port for the http transport (the bind host is fixed to loopback 127.0.0.1).
FB_AD_ACCOUNT_IDno—Ad account ID for the opt-in ads package.
FB_ADS_BUDGET_CEILINGno—Hard budget ceiling for ads writes, in minor units of the ad account currency (non-negative integer, no currency conversion).
FB_ADS_CAMPAIGN_SPEND_CAP_MAXno—Largest campaign spend cap an ads write may set, in minor units of the ad account currency (non-negative integer, no currency conversion).
FB_LOG_LEVELnoinfoStderr log verbosity: debug, info, warn, error.
FB_SETUP_TOKENno—Secret. Short-lived user token consumed once by setup-token; the safe alternative to passing it as a CLI argument.
FB_PROFILE_<NAME>_PAGE_IDno—Page ID for a named profile, e.g. FB_PROFILE_BRAND_A_PAGE_ID.
FB_PROFILE_<NAME>_TOKENno—Secret. Optional per-profile token override for the matching FB_PROFILE__PAGE_ID.

¹ Provide at least one of FB_SYSTEM_TOKEN, FB_ACCESS_TOKEN or FB_PAGE_TOKEN. A full, commented template lives in .env.example.

Renamed variables (1.x → 2.0)

Three variables were renamed so each family reads as one prefix. The old names still work throughout 1.x, but every start (and doctor) warns deprecated-setting until you rename them; 2.0 stops reading them. Setting both spellings to different values is a startup error.

Old name (deprecated)New name
FB_PACKAGES_DENYFB_TOOL_PACKAGES_DENY
FB_PACKAGES_READONLYFB_TOOL_PACKAGES_READONLY
FB_HTTP_TOKENFB_HTTP_BEARER

Setting more than one of FB_SYSTEM_TOKEN, FB_ACCESS_TOKEN and FB_PAGE_TOKEN also warns at startup (multiple-tokens): only the first by that precedence is used.

Permissions you need to grant

Grant only what the packages you actually enable require. The scopes below are the ones this server asks for; node build/index.js doctor compares them against what your token really has and prints a per-package usable / partial / blocked matrix. business_management is deliberately not in this list — it is a setup-only permission that should never ride on a runtime token.

PackageRequired Graph permissions
corepages_show_list
pages_read_engagement
readerpages_read_engagement
pages_read_user_content
pages_show_list
postspages_manage_posts
pages_read_engagement
insightsread_insights
pages_read_engagement
moderationpages_read_engagement
pages_read_user_content
pages_manage_engagement
pages_messaging
pages_manage_metadata
messagespages_messaging
pages_manage_metadata
pages_read_engagement
pages_read_user_content
adsads_read
ads_management
pages_read_engagement
page_adminpages_manage_metadata
pages_read_engagement
Per-tool scopes (a tool marked inherited has no finer mapping and falls back to its package set)
ToolRequired Graph permissions
facebook_whoami(none — the token itself is enough)
facebook_list_pagespages_show_list
facebook_get_pagepages_read_engagement
facebook_usage(none — the token itself is enough)
facebook_list_postspages_read_engagement
facebook_get_postpages_read_engagement
facebook_list_reelspages_read_engagement
facebook_get_reactionspages_read_engagement
facebook_list_storiespages_read_engagement, pages_show_list
facebook_list_albumspages_read_engagement
facebook_list_photospages_read_engagement, pages_show_list
facebook_create_postpages_manage_posts
facebook_create_photo_postpages_manage_posts
facebook_create_video_postpages_manage_posts
facebook_create_reelpages_manage_posts
facebook_create_storypages_manage_posts
facebook_update_postpages_manage_posts
facebook_delete_postpages_manage_posts
facebook_list_scheduled_postspages_read_engagement
facebook_get_video_statuspages_read_engagement
facebook_page_insightsread_insights
facebook_post_insightsread_insights
facebook_reel_insightsread_insights
facebook_get_page_reportread_insights, pages_read_engagement
facebook_get_posts_insightsread_insights, pages_read_engagement
facebook_list_commentspages_read_engagement, pages_read_user_content
facebook_get_commentpages_read_engagement, pages_read_user_content
facebook_triage_commentspages_read_engagement, pages_read_user_content
facebook_reply_to_commentpages_manage_engagement
facebook_comment_on_postpages_manage_engagement
facebook_edit_commentpages_manage_engagement
facebook_hide_commentpages_manage_engagement
facebook_reply_and_hide_commentpages_manage_engagement, pages_read_engagement
facebook_like_commentpages_manage_engagement
facebook_delete_commentpages_manage_engagement, pages_read_user_content
facebook_private_replypages_messaging, pages_read_engagement, pages_read_user_content
facebook_block_userpages_manage_engagement
facebook_unblock_userpages_manage_engagement
facebook_get_moderation_settingspages_manage_metadata
facebook_set_moderation_settingspages_manage_metadata
facebook_list_conversationspages_messaging, pages_manage_metadata
facebook_get_conversationpages_messaging, pages_manage_metadata
facebook_send_messagepages_messaging
facebook_react_to_messagepages_messaging
facebook_upload_message_attachmentpages_messaging
facebook_get_activity_sincepages_read_engagement, pages_read_user_content, pages_messaging
facebook_list_saved_replies(none — the token itself is enough)
facebook_save_reply(none — the token itself is enough)
facebook_delete_saved_reply(none — the token itself is enough)
facebook_list_labelspages_manage_metadata
facebook_create_labelpages_manage_metadata
facebook_assign_labelpages_manage_metadata
facebook_delete_labelpages_manage_metadata
facebook_list_campaignsads_read
facebook_list_adsetsads_read
facebook_list_adsads_read
facebook_get_ad_objectads_read
facebook_get_ad_previewads_read
facebook_ads_insightsads_read
facebook_ads_report_statusads_read
facebook_update_ad_objectads_management
facebook_archive_ad_objectads_management
facebook_delete_ad_objectads_management
facebook_upload_ad_imageads_management
facebook_get_ad_set_targetingads_read
facebook_update_ad_set_targetingads_management
facebook_duplicate_ad_objectads_management
facebook_boost_postads_management, pages_read_engagement
facebook_update_page_profilepages_manage_metadata, pages_read_engagement

Tools

Packages are the unit of exposure: you enable and disable whole packages with FB_TOOL_PACKAGES, and FB_TOOL_PACKAGES_READONLY drops a package's write tools while keeping its reads.

All three package variables share one namespace of packages and profiles (core, all, reader, publisher, moderator, ads), and a profile name wins over a same-spelled package. That matters most in FB_TOOL_PACKAGES_DENY: FB_TOOL_PACKAGES_DENY=core denies the six-package core profile, not the single core package — and the core package is then forced back on anyway, since its identity and rate-limit tools are how you diagnose the surface you just narrowed. A name none of them recognize fails at startup rather than being ignored.

PackageOn by defaultToolsDefault write modeWhat it covers
coreyes4 read—Always-on identity, Page discovery and rate-limit diagnostics (read-only).
readeryes7 read—Read-only access to a Page's own content: posts (four edges), single posts, Reels, reaction totals, Stories, albums and photos.
postsyes2 read + 7 writeplanPublish, schedule, edit and delete Page posts, photos, videos, Reels and stories (plan-first: every write previews before it applies).
insightsyes5 read—Page, post and Reel insights: compact reshaped metric series, semantics-aware summaries, a one-call Page report, a posts comparison table and post-2025 metric-rename guidance (read-only).
moderationyes4 read + 11 writeapplyRead and moderate comments on Page content (list, reply, comment on a post, edit the Page's own comments, hide, like, delete, private reply) and maintain the blocked-users list and the Page moderation settings (blocked words, profanity filter).
messagesyes5 read + 8 writeplanMessenger conversations for a Page: poll the inbox, read a thread (untrusted content wrapped, attachments as placeholders) and send one private reply inside the 24-hour window, or react to a message; or ask what is new since the last look; keep local saved replies to send verbatim; tag threads with custom labels. Plan-first by default.
adsno (opt-in)8 read + 7 writeplanMarketing API access: campaign / ad-set / ad listings with delivery truth, single-object reads, placement previews, insights with async report runs, plan-gated status, budget and campaign spend-cap control, single-object archive/delete, ad image uploads, ad-set targeting reads with a narrow countries/ages edit, paused copies of campaigns, ad sets and ads, and paused boosts of Page posts. Off by default.
page_adminno (opt-in)0 read + 1 writeplanEdit the Page itself: its public profile (about, description, website, phone, hours, temporary status). Opt-in; needs pages_manage_metadata.

69 tools in 8 packages. 6 packages are on by default; the rest are opt-in via FB_TOOL_PACKAGES. Tier read never mutates. reversible writes are gated by FB_WRITE_MODE; irreversible and spend additionally require a per-call apply plus the plan_id of a preview you just ran, and are never unlocked by an environment variable alone.

PackageToolTierPurpose
corefacebook_whoamireadReport the identity behind the configured token (type, validity, granted permissions, expiry) plus the server, MCP SDK and pinned Graph API version.
corefacebook_list_pagesreadList the Facebook Pages the operator administers (via /me/accounts): id, name, category, the granted tasks, and whether a Page token is available.
corefacebook_get_pagereadFetch metadata for one Page — name, category, follower/fan counts, publish state and new-Page-experience flag.
corefacebook_usagereadReport the most recent Graph rate-limit signals (X-App-Usage, X-Business-Use-Case-Usage, x-fb-ads-insights-throttle) as usage percentages, so you can back off before…
readerfacebook_list_postsreadList a Page's posts, one cursor page at a time.
readerfacebook_get_postreadFetch ONE post by its composite id ("{page-id}_{post-id}" as returned by facebook_list_posts).
readerfacebook_list_reelsreadList a Page's Reels via the /video_reels edge — the ONLY place Reels are readable.
readerfacebook_get_reactionsreadRead the reactions on one post: a totals map per reaction type (LIKE / LOVE / CARE / HAHA / WOW / SAD / ANGRY), the overall total, and the list of reacting users.
readerfacebook_list_storiesreadList a Page's Stories via the /stories edge, one cursor page at a time: each item has postId, status (PUBLISHED / ARCHIVED), createdTime (ISO 8601), mediaType…
readerfacebook_list_albumsreadList a Page's photo albums, one cursor page at a time: id, name, description, type (normal / profile / cover / …), photo count, canUpload, coverPhotoId…
readerfacebook_list_photosreadList photos, one cursor page at a time: an album's photos when album_id (from facebook_list_albums) is given, otherwise a Page photo listing chosen by type.
postsfacebook_create_postreversibleCreate a Page post: plain text, a link, a multi-link card carousel, or a multi-photo carousel.
postsfacebook_create_photo_postreversiblePublish ONE photo to a Page, optionally with a caption, as a draft, or scheduled, and optionally into one of the Page albums (album_id).
postsfacebook_create_video_postreversibleUpload a video to a Page.
postsfacebook_create_reelreversiblePublish a Facebook Reel through the three-phase upload (start → transfer → finish) with an explicit video_state: PUBLISHED, DRAFT or SCHEDULED.
postsfacebook_create_storyirreversiblePublish a photo or video story on the Page.
postsfacebook_update_postreversibleEdit a Page post the app itself created, or move it through the scheduled-post lifecycle.
postsfacebook_delete_postirreversiblePermanently delete a Page post the app itself created — including a scheduled one, which is the only way to cancel it.
postsfacebook_list_scheduled_postsreadList the Page posts that are queued to publish later, each with its publish time echoed in UTC and in Page-local time.
postsfacebook_get_video_statusreadPoll where one video stands in Meta's pipeline: uploading, processing, ready or error.
insightsfacebook_page_insightsreadRead Graph insights for one Page in a compact flat shape: one row per metric per data point ({metric, date, value}, plus breakdown for by-action-type metrics) and one…
insightsfacebook_post_insightsreadRead Graph insights for one published post (post_media_view, post_clicks, post_reactions_by_type_total, video metrics, ...) in the same compact flat shape as…
insightsfacebook_reel_insightsreadRead Graph insights for one Reel from /{video-id}/video_insights — the edge Reel metrics actually live on, which facebook_post_insights cannot reach.
insightsfacebook_get_page_reportreadOne-call Page performance report over a window (default last 28 days, [since, until) in Pacific Time) compared with the preceding window of equal length: followers…
insightsfacebook_get_posts_insightsreadLifetime insights for several posts in one call, as a compact table: one row per post with values (one scalar per metric) and unaggregated breakdowns (e.g. reactions…
moderationfacebook_list_commentsreadList the comments on a post, photo, video or another comment, newest-first by default.
moderationfacebook_get_commentreadRead one comment by ID, optionally with its replies, and report whether a private reply is still possible (the 7-day window).
moderationfacebook_triage_commentsreadA moderation queue in one call: the comments on the Page's most recent published posts, newest first, filtered by status (default "unanswered" — no Page reply in the…
moderationfacebook_reply_to_commentreversiblePost a PUBLIC reply under a comment — visible to everyone who can see the thread.
moderationfacebook_comment_on_postreversiblePost a PUBLIC top-level comment as the Page on a post — e.g. a first comment with a link.
moderationfacebook_edit_commentreversibleReplace the text of a comment the Page itself wrote — e.g. fix a typo in a reply.
moderationfacebook_hide_commentreversibleHide or unhide up to 50 comments in one call (hidden:true hides, hidden:false restores).
moderationfacebook_reply_and_hide_commentreversiblePost a PUBLIC reply under a comment and then hide that comment, in one approved step — e.g. "We have sent you a DM" under spam or abuse.
moderationfacebook_like_commentreversibleLike up to 50 comments as the Page, or unlike them with unlike:true.
moderationfacebook_delete_commentirreversiblePERMANENTLY delete up to 50 comments.
moderationfacebook_private_replyirreversibleSend a private message to the author of a comment, or of a visitor post on the Page (post_id).
moderationfacebook_block_userreversibleAdd up to 50 PSIDs to the Page's blocked list: they can no longer comment on the Page or message it.
moderationfacebook_unblock_userreversibleRemove up to 50 PSIDs from the Page's blocked list, restoring their ability to comment and message.
moderationfacebook_get_moderation_settingsreadRead the Page's moderation settings: the blocked-word list (comments containing one are hidden automatically), the profanity filter level (OFF, MEDIUM, STRONG) and…
moderationfacebook_set_moderation_settingsreversibleChange the Page's blocked words and profanity filter.
messagesfacebook_list_conversationsreadList Messenger conversations for a Page (platform=messenger only — never Instagram threads): id, updated_time, unread_count, message_count and the latest-message snippet.
messagesfacebook_get_conversationreadRead one Messenger thread newest-message-first: sender, timestamp, direction and body, plus typed placeholders for images, stickers, files and shared links (attachments…
messagesfacebook_send_messagereversibleSend ONE PRIVATE Messenger message as the Page — text, or one attachment (image / audio / video / file by public HTTPS URL or reusable attachment_id) — as a reply inside…
messagesfacebook_react_to_messagereversibleReact to ONE Messenger message as the Page with a single emoji (for example "❤️" or "👍"), or remove the Page’s reaction with remove:true — an acknowledgement without a…
messagesfacebook_upload_message_attachmentreversibleUpload ONE file (image / audio / video / file) by public HTTPS URL to the Page’s Messenger attachment store and get a reusable attachment_id — valid for about 90 days…
messagesfacebook_get_activity_sincereadWhat is new on a Page since a point in time, in one call: new comments (and replies) on the most recent published posts, and Messenger conversations updated since then…
messagesfacebook_list_saved_repliesreadList the Page's local saved replies: operator-approved reply templates kept on this machine (no Facebook call).
messagesfacebook_save_replyreversibleCreate or update a local saved reply (no Facebook call): a reply template the operator approves once and the agent then sends verbatim.
messagesfacebook_delete_saved_replyreversibleDelete one local saved reply (no Facebook call).
messagesfacebook_list_labelsreadList the Page’s custom Messenger labels (id and name), or — with psid — the labels on one person.
messagesfacebook_create_labelreversibleCreate a custom Messenger label on the Page (for example "vip" or "refund-pending") and return its id, to put on people with facebook_assign_label.
messagesfacebook_assign_labelreversiblePut a custom label on one person (their PSID from a conversation), so the thread shows in the Page inbox label view; remove:true takes it off.
messagesfacebook_delete_labelirreversiblePERMANENTLY delete a custom label from the Page.
adsfacebook_list_campaignsreadList campaigns under one ad account, a cursor page at a time.
adsfacebook_list_adsetsreadList ad sets under one ad account, a cursor page at a time.
adsfacebook_list_adsreadList individual ads under one ad account, a cursor page at a time.
adsfacebook_get_ad_objectreadRead one campaign, ad set or ad by id.
adsfacebook_get_ad_previewreadShow how an existing ad, an existing ad creative, or a Page post used as an ad would render in one placement (ad_format, default MOBILE_FEED_STANDARD).

Similar modules

Browse Social media management