How to Install Facebook MCP and Let AI Manage Your Page
An open-source bridge that lets an AI assistant manage a Facebook Page: posting, replying to comments, reading statistics and filtering bad comments through the Model Context Protocol.
What is Facebook MCP?
Facebook MCP is an open-source bridge that lets an AI assistant manage a Facebook Page on its own: posting, replying to comments and reading page statistics. It is published on GitHub as HagaiHen/facebook-mcp-server. It works through the Model Context Protocol, so an assistant such as Claude can call it as a tool and act on your Page in plain language.
Instead of opening Facebook to post or moderate, you tell the assistant what to do and it does it through the Page's API access.
What can you do with it?
- Post to your Page and reply to comments through the assistant
- Read Page statistics without opening Facebook
- Filter out bad comments automatically
- Manage the Page by talking to the assistant in plain language
How to install Facebook MCP
First clone the repository. Open a terminal and run:
git clone https://github.com/HagaiHen/facebook-mcp-server.gitThen install uv, a fast Python package manager, if you do not have it yet:
curl -Ls https://astral.sh/uv/install.sh | bashNext install the project dependencies:
uv pip install -r requirements.txtThen create a .env file in the project folder with your Facebook Page credentials, which you can get from the Facebook Graph API Explorer:
FACEBOOK_ACCESS_TOKEN=<your-access-token>
FACEBOOK_PAGE_ID=your_page_idFinally, add the server to Claude Desktop. Open Claude, go to Settings, then Developer, then Edit Config, and add an entry that runs the server with uv. The README gives the full config block to paste in.
First steps after installing
Start with a read-only job, such as asking the assistant for the Page's recent statistics, so you can confirm the connection works. Then try a small post, and check it on Facebook before letting the assistant post freely. Review the comment filter rules early: decide which comments it should hide and which it should leave for a human.
Frequently asked questions
Is Facebook MCP free? Yes. It is an open-source project on GitHub, and you can download and use it free of charge. Note that you need a Facebook Page and a Page access token, which you create in Facebook's developer tools.
Is it hard to install? It takes a few steps: clone, install dependencies, add credentials, then connect it to Claude Desktop. None of the steps is difficult on its own.
Can it post without asking me? Only if you let it. Start with supervised posts and give it more freedom once you trust it.
Comments (0)