Home / AI & media / facebook-mcp

facebook-mcp

io.github.IvanBBaev/facebook-mcp · v0.8.0 stdio

Score 75. Maintenance 37 of 40, security 35 of 35, adoption 3 of 25.

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

Description supplied by the publisher in the MCP Registry. We have not tested this server.

Ranks #318 of 542 AI & media servers on Socketlist by score, with 3 GitHub stars and a last code push 20d ago.

Install

npx -y @ivanbaev/facebook-mcp

Assembled from the package metadata in the official MCP Registry (including any subcommand or flag the publisher lists). Some publishers do not list the subcommand that starts MCP mode, so confirm the command in the README, along with any required configuration and credentials, before connecting it to real data.

Connect facebook-mcp to Claude Code, Cursor or VS Code

Built from what the publisher declared in the official MCP Registry (the launch command above). We have not run this server. Replace anything in <angle brackets>, and keep keys and tokens in your environment, not in a shared file.

Claude Code

Run in a terminal. Adds the server at local scope; add --scope project or --scope user to share it. Secret variables the publisher declares are included; drop any the README says are optional. Claude Code setup guide.

claude mcp add --env FB_SYSTEM_TOKEN=<fb_system_token> --env FB_ACCESS_TOKEN=<fb_access_token> --env FB_PAGE_TOKEN=<fb_page_token> --env FB_APP_SECRET=<fb_app_secret> --env FB_CONFIRM_TOKEN=<fb_confirm_token> --env FB_HTTP_TOKEN=<fb_http_token> --transport stdio facebook-mcp -- npx -y @ivanbaev/facebook-mcp

.mcp.json (Claude Code project scope, VS Code with Copilot)

Put this in a .mcp.json file at the project root. ${NAME} reads the value from your environment, so no secret is written to the file. VS Code and .mcp.json guide.

{
  "mcpServers": {
    "facebook-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@ivanbaev/facebook-mcp"
      ],
      "env": {
        "FB_SYSTEM_TOKEN": "${FB_SYSTEM_TOKEN}",
        "FB_ACCESS_TOKEN": "${FB_ACCESS_TOKEN}",
        "FB_PAGE_TOKEN": "${FB_PAGE_TOKEN}",
        "FB_APP_SECRET": "${FB_APP_SECRET}",
        "FB_CONFIRM_TOKEN": "${FB_CONFIRM_TOKEN}",
        "FB_HTTP_TOKEN": "${FB_HTTP_TOKEN}"
      }
    }
  }
}

Cursor

Put this in .cursor/mcp.json in the project, or ~/.cursor/mcp.json for every project. Cursor mcp.json guide.

{
  "mcpServers": {
    "facebook-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@ivanbaev/facebook-mcp"
      ],
      "env": {
        "FB_SYSTEM_TOKEN": "${env:FB_SYSTEM_TOKEN}",
        "FB_ACCESS_TOKEN": "${env:FB_ACCESS_TOKEN}",
        "FB_PAGE_TOKEN": "${env:FB_PAGE_TOKEN}",
        "FB_APP_SECRET": "${env:FB_APP_SECRET}",
        "FB_CONFIRM_TOKEN": "${env:FB_CONFIRM_TOKEN}",
        "FB_HTTP_TOKEN": "${env:FB_HTTP_TOKEN}"
      }
    }
  }
}

Configuration the publisher declares

Environment variableRequiredSecretPublisher's note
FB_SYSTEM_TOKENNoYesSystem-user access token (Business Manager). Takes precedence over FB_ACCESS_TOKEN and FB_PAGE_TOKEN when several are set.
FB_ACCESS_TOKENNoYesPrimary user access token. At least one of FB_SYSTEM_TOKEN, FB_ACCESS_TOKEN or FB_PAGE_TOKEN must be set.
FB_PAGE_TOKENNoYesLong-lived Page access token used as a fallback credential when no user or system-user token is configured. It belongs to exactly one Page, so set FB_PAGE_ID to that Page ID alongside it (the doctor /
FB_APP_IDNoNoMeta app ID; combined with FB_APP_SECRET it forms the app access token used to authorize /debug_token inspection.
FB_APP_SECRETNoYesMeta app secret. When set, appsecret_proof is attached to every call so a stolen bare token cannot be used on its own.
FB_PAGE_IDNoNoDefault 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.
FB_API_VERSIONNoNoGraph API version to target. Defaults to the tested pinned version; other values are accepted verbatim as an escape hatch but are not tested.
FB_ADS_API_VERSIONNoNoMarketing 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
FB_REQUEST_TIMEOUT_MSNoNoPer-request timeout in milliseconds; integer in [1, 600000].
FB_HOST_CONCURRENCYNoNoMaximum number of in-flight requests per Graph host; integer in [1, 64].
FB_MAX_RESULT_CHARSNoNoCharacter budget applied by the result shaper before a tool result is truncated; integer in [500, 10000000].
FB_WRITE_MODENoNoWrite 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.

15 more are listed in the registry entry; see the README for the full set.

"Required" and "secret" are the publisher's own flags in the registry, and many publishers leave them unset, so check the README too.

Allowlist entry

If your organisation restricts MCP servers, this is the entry an admin adds to allowedMcpServers in Claude Code managed settings or a GitHub Copilot enterprise managed-settings.json. A serverCommand entry must match the configured command and arguments exactly, so change both together.

{
  "allowedMcpServers": [
    {
      "serverCommand": [
        "npx",
        "-y",
        "@ivanbaev/facebook-mcp"
      ]
    }
  ]
}

How allowlists work in each client: MCP server allowlists for Claude Code, GitHub Copilot and Cursor. Before you connect it to real data: 10 security checks for MCP servers.

Score breakdown

PartPointsWhat we observedResult
Maintenance37/40Last push 20d ago, 3 open issuesStrong
Security hygiene35/35Licence MIT, SECURITY.md present, published package or hosted endpointStrong
Adoption3/253 GitHub stars, 0 npm downloads a weekWeak

Result: Strong is 80% or more of the part's points, Fair 50% or more. Automated signals, not a security audit. How we score.

Maintain this server? Claim or correct this listing, or get featured in AI & media. Paid placements are labelled and never change the score.

Five scored MCP servers, every Monday

The Plug Weekly is a free email picked from these scores, with a short Best of MCP servers PDF when you join. About a 3-minute read. Unsubscribe any time.

Get The Plug Weekly
GitHub stars3
npm weekly downloads0
Last push20d ago
LicenceMIT
Open issues3
SECURITY.mdYes
LanguageTypeScript
Latest version published2026-10-28

Signals captured from GitHub, npm and the official MCP Registry on December 1, 2026. See the scoring method.

Similar servers

MCP Server for Uptime Kuma

Score 83. Maintenance 39 of 40, security 35 of 35, adoption 9 of 25.

io.github.DavidFuchs/mcp-uptime-kuma

Manage your Uptime Kuma 2 instance from an LLM: monitors, status pages, notifications, maintenance

★ 73MITpushed 6d ago AI & media

reddit-research-mcp

Score 75. Maintenance 38 of 40, security 25 of 35, adoption 12 of 25.

io.github.king-of-the-grackles/reddit-research-mcp

Turn Reddit's chaos into structured insights with full citations - MCP server for Reddit research

★ 273MITpushed 13d ago AI & media