io.github.IvanBBaev/facebook-mcp MCP Server
io.github.IvanBBaev/facebook-mcp
What this kind of tool is for
- Draft, send, or triage messages and email from inside your agent.
- Pipe notifications from a build or alert into your team channel automatically.
- Summarize a busy channel thread into the handful of points that matter.
How to compare servers like this
- Channel coverage:
- Check the specific app (email, chat, notifications) and whether it reads as well as writes.
- Scope of access:
- Messages are sensitive; review what the tool can see before connecting an account.
- Rate behavior:
- Bulk-sending tools should respect provider limits — avoid anything that floods.
- Maintenance signal:
- APIs in this space change often; recent updates are a strong signal.
This page carries your copy-paste config: pick your MCP client in the install section on this page and use the copy button.
What is the io.github.IvanBBaev/facebook-mcp MCP server?
Facebook Pages MCP server for the Meta Graph API — publishing, insights, moderation, messaging
How to install io.github.IvanBBaev/facebook-mcp
Copy-paste configuration for popular MCP clients.
FB_SYSTEM_TOKENsecretSystem-user access token (Business Manager). Takes precedence over FB_ACCESS_TOKEN and FB_PAGE_TOKEN when several are set.
FB_ACCESS_TOKENsecretPrimary user access token. At least one of FB_SYSTEM_TOKEN, FB_ACCESS_TOKEN or FB_PAGE_TOKEN must be set.
FB_PAGE_TOKENsecretLong-lived Page access token used as a fallback credential when no user or system-user token is configured.
FB_APP_IDMeta app ID; combined with FB_APP_SECRET it forms the app access token used to authorize /debug_token inspection.
FB_APP_SECRETsecretMeta app secret. When set, appsecret_proof is attached to every call so a stolen bare token cannot be used on its own.
FB_PAGE_IDDefault Facebook Page ID, used when a tool call omits an explicit profile argument.
FB_API_VERSIONGraph API version to target. Defaults to the tested pinned version; other values are accepted verbatim as an escape hatch but are not tested.
FB_REQUEST_TIMEOUT_MSPer-request timeout in milliseconds; integer in [1, 600000].
FB_HOST_CONCURRENCYMaximum number of in-flight requests per Graph host; integer in [1, 64].
FB_MAX_RESULT_CHARSCharacter budget applied by the result shaper before a tool result is truncated; integer in [500, 10000000].
FB_WRITE_MODEWrite 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.
FB_CONFIRM_TOKENsecretOperator confirmation token for out-of-band approval of irreversible or spend actions. The server prompts through MCP elicitation where the client supports it; otherwise the caller passes this value as the confirm_token tool argument.
FB_MEDIA_DIRDirectory permitted for local media uploads. Unset means URL-only uploads and no local file access at all.
FB_JOURNAL_PATHPath 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_TOOL_PACKAGESComma-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_DENYComma-separated packages to exclude even when FB_TOOL_PACKAGES enables them. Deny wins over allow.
FB_PACKAGES_READONLYComma-separated packages whose write tools are not registered at all; the read tools of those packages stay available.
FB_TRANSPORTTransport protocol: stdio (default) or http. The http transport binds 127.0.0.1 only and fails closed without FB_HTTP_TOKEN.
FB_HTTP_TOKENsecretBearer token guarding the HTTP transport; required when FB_TRANSPORT=http (the server refuses to start without it).
FB_HTTP_PORTPort for the HTTP transport (loopback only); used when FB_TRANSPORT=http. Integer in [1, 65535].
FB_AD_ACCOUNT_IDDefault ad account ID (act_… or the bare numeric id) for the opt-in ads package.
FB_ADS_BUDGET_CEILINGHard ceiling for any ads budget write, in minor currency units (e.g. cents). Non-negative integer; a write above it is refused.
FB_LOG_LEVELStderr log verbosity: debug, info, warn or error. Logs never go to stdout — that is the stdio protocol channel.
{
"mcpServers": {
"facebook-mcp": {
"command": "npx",
"args": [
"-y",
"@ivanbaev/facebook-mcp"
],
"env": {
"FB_SYSTEM_TOKEN": "<YOUR_FB_SYSTEM_TOKEN>",
"FB_ACCESS_TOKEN": "<YOUR_FB_ACCESS_TOKEN>",
"FB_PAGE_TOKEN": "<YOUR_FB_PAGE_TOKEN>",
"FB_APP_ID": "<YOUR_FB_APP_ID>",
"FB_APP_SECRET": "<YOUR_FB_APP_SECRET>",
"FB_PAGE_ID": "<YOUR_FB_PAGE_ID>",
"FB_API_VERSION": "<YOUR_FB_API_VERSION>",
"FB_REQUEST_TIMEOUT_MS": "<YOUR_FB_REQUEST_TIMEOUT_MS>",
"FB_HOST_CONCURRENCY": "<YOUR_FB_HOST_CONCURRENCY>",
"FB_MAX_RESULT_CHARS": "<YOUR_FB_MAX_RESULT_CHARS>",
"FB_WRITE_MODE": "<YOUR_FB_WRITE_MODE>",
"FB_CONFIRM_TOKEN": "<YOUR_FB_CONFIRM_TOKEN>",
"FB_MEDIA_DIR": "<YOUR_FB_MEDIA_DIR>",
"FB_JOURNAL_PATH": "<YOUR_FB_JOURNAL_PATH>",
"FB_TOOL_PACKAGES": "<YOUR_FB_TOOL_PACKAGES>",
"FB_PACKAGES_DENY": "<YOUR_FB_PACKAGES_DENY>",
"FB_PACKAGES_READONLY": "<YOUR_FB_PACKAGES_READONLY>",
"FB_TRANSPORT": "<YOUR_FB_TRANSPORT>",
"FB_HTTP_TOKEN": "<YOUR_FB_HTTP_TOKEN>",
"FB_HTTP_PORT": "<YOUR_FB_HTTP_PORT>",
"FB_AD_ACCOUNT_ID": "<YOUR_FB_AD_ACCOUNT_ID>",
"FB_ADS_BUDGET_CEILING": "<YOUR_FB_ADS_BUDGET_CEILING>",
"FB_LOG_LEVEL": "<YOUR_FB_LOG_LEVEL>"
}
}
}
}Related MCP servers
ServiceNow MCP server — 67 tools over the full REST surface, every auth method, flows, diagrams.

Safety-first X (Twitter) API v2 MCP server: 41 typed tools across 12 packages, policy-gated.

MepMail
Transactional email with a Resend-compatible API: send emails, manage broadcasts and domains.
Agent-to-agent messaging relay with zero-config discovery, sending, and reply handling.

Let AI agents build, script, and debug Unity games directly inside the Editor and in-game.

