Facebook

v1.0.0β€’Communicationβ€’stable

🐍 ☁️ - Integrates with Facebook Pages to enable direct management of posts, comments, and engagement metrics through the Graph API for streamlined social media management.

facebookmcpai-integration
Share:
155
Stars
0
Downloads
0
Weekly
0/5

What is Facebook?

Facebook is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to 🐍 ☁️ - integrates with facebook pages to enable direct management of posts, comments, and engagement metrics through the graph api for streamlined social media management.

🐍 ☁️ - Integrates with Facebook Pages to enable direct management of posts, comments, and engagement metrics through the Graph API for streamlined social media management.

This server falls under the Communication category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • 🐍 ☁️ - Integrates with Facebook Pages to enable direct manag

Use Cases

🐍 ☁️ - Integrates with Facebook Pages to enable direct management of posts, comm
HagaiHen

Maintainer

LicenseMIT License
Languagepython
Versionv1.0.0
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx facebook

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Facebook

The Facebook MCP Server connects AI assistants to your Facebook Pages via the Graph API, enabling direct management of posts, comments, and engagement metrics through natural language. It exposes 30+ tools covering content creation, comment moderation, analytics, and direct messaging. Developers and social media managers use it to automate workflows β€” scheduling posts, filtering negative comments, or pulling engagement reports β€” without leaving their AI chat interface.

Prerequisites

  • Python 3.10+ and the uv package manager installed
  • A Facebook Developer account with a registered app at developers.facebook.com
  • A Facebook Page Access Token with manage_pages and publish_pages permissions
  • Your Facebook Page ID (found in Page Settings)
  • An MCP-compatible client such as Claude Desktop
1

Clone the repository

Download the server source code from GitHub to your local machine.

git clone https://github.com/HagaiHen/facebook-mcp-server.git
cd facebook-mcp-server
2

Install dependencies with uv

Install the uv package manager if you don't have it, then install all Python dependencies.

curl -Ls https://astral.sh/uv/install.sh | bash
uv pip install -r requirements.txt
3

Create the .env file with credentials

Create a .env file in the project root with your Facebook Page Access Token and Page ID. Obtain these from the Graph API Explorer at developers.facebook.com/tools/explorer.

FACEBOOK_ACCESS_TOKEN=your_page_access_token_here
FACEBOOK_PAGE_ID=your_page_id_here
4

Add the server to your MCP client configuration

Open your Claude Desktop config and add the FacebookMCP server entry, pointing to the server.py file you cloned.

5

Restart your MCP client and verify

Restart Claude Desktop. The Facebook MCP tools should now appear. Try asking 'What is my Facebook page fan count?' to verify the connection is working.

Facebook Examples

Client configuration

Add this to your claude_desktop_config.json, replacing the path with the actual location of server.py on your machine.

{
  "mcpServers": {
    "FacebookMCP": {
      "command": "uv",
      "args": [
        "run",
        "--with", "mcp[cli]",
        "--with", "requests",
        "mcp", "run",
        "/absolute/path/to/facebook-mcp-server/server.py"
      ]
    }
  }
}

Prompts to try

Once connected, use these prompts to manage your Facebook Page through your AI assistant.

- "Create a Facebook post announcing our new product launch scheduled for tomorrow at 10am"
- "Show me the engagement metrics for my last 5 Facebook posts"
- "Find all negative comments on my page from the last 7 days and hide them"
- "Reply to all unanswered comments on my latest post with a thank-you message"
- "What is the breakdown of reactions (likes, loves, wows) on my top post this week?"

Troubleshooting Facebook

API returns 'Invalid OAuth access token' error

Facebook Page Access Tokens expire. Go to developers.facebook.com/tools/explorer, generate a new long-lived page access token, and update your FACEBOOK_ACCESS_TOKEN in the .env file.

Permission denied errors when posting or moderating comments

Your app or token is missing required permissions. In the Graph API Explorer, ensure your token includes manage_pages, publish_pages, and read_page_mailboxes permissions. You may also need to submit your app for Facebook App Review if it is not in development mode.

Server fails to start with 'module not found' errors

Run 'uv pip install -r requirements.txt' again from the project directory to ensure all dependencies are installed. If using a virtual environment, make sure it is activated before running the server.

Frequently Asked Questions about Facebook

What is Facebook?

Facebook is a Model Context Protocol (MCP) server that 🐍 ☁️ - integrates with facebook pages to enable direct management of posts, comments, and engagement metrics through the graph api for streamlined social media management. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Facebook?

Follow the installation instructions on the Facebook GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Facebook?

Facebook works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Facebook free to use?

Yes, Facebook is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Communication MCP Servers

Explore all communication servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "facebook": { "command": "npx", "args": ["-y", "facebook"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide β†’

Ready to use Facebook?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides