Facebook MCP Server
This project is a MCP server for automating and managing interactions on a Facebook Page using the Facebook Graph API. It exposes tools to create posts, moderate comments, fetch post insights, and filter negative feedback β ready to plug into Claude, or other LLM-based agents.
π€ What Is This?
This MCP provides a suite of AI-callable tools that connect directly to a Facebook Page, abstracting common API operations as LLM-friendly functions.
β Benefits
- Empowers social media managers to automate moderation and analytics.
- Seamlessly integrates with Claude Desktop or any Agent client.
- Enables fine-grained control over Facebook content from natural language.
π¦ Features
π Setup & Installation
1. Clone the Repository
git clone https://github.com/your-org/facebook-mcp-server.git
cd facebook-mcp-server
2. π οΈ Installation
Install dependencies using uv, a fast Python package manager: If uv is not already installed, run:
curl -Ls https://astral.sh/uv/install.sh | bash
Once uv is installed, install the project dependencies:
uv pip install -r requirements.txt
3. Set Up Environment
Create a .env file in the root directory and add your Facebook Page credentials. You can obtain these from https://developers.facebook.com/tools/explorer
FACEBOOK_ACCESS_TOKEN=your_facebook_page_access_token
FACEBOOK_PAGE_ID=your_page_id
π§© Using with Claude Desktop
To set up the FacebookMCP in Clade:
- Open Clade.
- Go to Settings β Developer β Edit Config.
- In the config file that opens, add the following entry:
"FacebookMCP": {
"command": "uv",
"args": [
"run",
"--with",
"mcp[cli]",
"--with",
"requests",
"mcp",
"run",
"/path/to/facebook-mcp-server/server.py"
]
}
β Youβre Ready to Go!
Thatβs it β your Facebook MCP server is now fully configured and ready to power Claude Desktop. You can now post, moderate, and measure engagement all through natural language prompts!
π€ Contributing
Contributions, issues, and feature requests are welcome!
Feel free to fork the repo and submit a pull request.
- Create a branch:
git checkout -b feature/YourFeature - Commit your changes:
git commit -m 'feat: add new feature' - Push to the branch:
git push origin feature/YourFeature - Open a pull request π