Facebook MCP Server

# Facebook MCP Server <img src="https://badge.mcpx.dev?type=server" title="MCP Server"/> ## Overview A Model Context Protocol (MCP) server

Local serverstdio

What is the Facebook MCP server?

Facebook MCP Server ## Overview A Model Context Protocol (MCP) server implementation that provides Facebook Page interaction and management capabilities. This server. The facebook mcp server wraps that behind the Model Context Protocol, so an assistant can use it through 8 defined tools rather than through you.

Its toolset

Everything the assistant can do here goes through one of these:

  • post_to_facebook — **
  • Input — message (string): The message to post
  • reply_to_comment — **
  • get_page_posts — **
  • get_post_comments — **
  • filter_negative_comments — **
  • delete_post — **
  • delete_comment — **

Adding it to your client

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.

Configuration

You will need 4 environment variables: FACEBOOK_PAGE_ACCESS_TOKEN, YOUR_PAGE_ACCESS_TOKEN, FACEBOOK_PAGE_ID, YOUR_PAGE_ID. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

When to reach for it

This sits in the file and storage access group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Facebook's toolset — post_to_facebook, Input, reply_to_comment and 5 more — is a fair guide to whether it matches your workflow. It is maintained by tiroshanm; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Caveats

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the facebook mcp server does with a few real requests.

Available tools

ToolWhat it does
post_to_facebook**
Inputmessage (string): The message to post.
reply_to_comment**
get_page_posts**
get_post_comments**
filter_negative_comments**
delete_post**
delete_comment**

How to install the Facebook MCP server

{
          "mcpServers": {
              "facebook": {
                  "command": "uv",
                  "args": [
                      "--directory",
                      "/path/to/facebook-mcp-server",
                      "run",
                      "facebook-mcp-server"  
                  ]
              }
          }
        }

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
FACEBOOK_PAGE_ACCESS_TOKENCredential the server authenticates with.Yes
YOUR_PAGE_ACCESS_TOKENCredential the server authenticates with.Yes
FACEBOOK_PAGE_IDConfiguration value read at startup.Optional
YOUR_PAGE_IDConfiguration value read at startup.Optional

Example prompts to try

  • Use Facebook to post to facebook.
  • Use Facebook to Input.
  • Use Facebook to reply to comment.

Frequently asked questions

You need a Facebook Page access token (`FACEBOOK_PAGE_ACCESS_TOKEN`) and your Page ID (`FACEBOOK_PAGE_ID`). Store them in a `.env` file.