Facebook MCP Server is an MCP (Model Context Protocol) server for Facebook Page management, enabling automation and interaction management through the Facebook Graph API. It encapsulates common Facebook API operations as LLM-friendly functions for AI agents to call directly.
Purpose This project is mainly used to automate and manage interactions on Facebook Pages, helping social media managers automatically complete comment moderation and data analysis, and supporting fine-grained control over Facebook content through natural language.
Main capabilities
- Create posts
- Moderate comments
- Get post insights
- Sentiment filtering These capabilities are exposed as AI-callable tools and can be directly integrated into Claude Desktop or any Agent client.
How to use
- Clone the repository.
- Install dependencies: use uv (a fast Python package manager). If uv is not installed, install it first; after installing uv, install the project dependencies.
- Set up the environment: create a .env file in the root directory and add your Facebook Page credentials. Credentials can be obtained from https://developers.facebook.com/tools/explorer .
- Use with Claude Desktop: go to Settings → Developer → Edit Config, and add the corresponding entry in the configuration file that opens. After configuration is complete, you can post, moderate, and measure interaction metrics through natural language prompts.
Use cases
- Social media managers automating comment moderation and data analysis
- Managing Facebook Page content in natural language through Claude Desktop or other LLM agents
- Scenarios that require integrating Facebook Page operations into AI workflows
Limitations The materials do not provide more details about fees, pricing, platform support scope, performance guarantees, or specific usage steps. The project welcomes contributions, issue feedback, and feature requests. You can participate by forking the repository and submitting a pull request: create a branch (git checkout -b feature/YourFeature), commit changes (git commit -m 'feat: add new feature'), push the branch (git push origin feature/YourFeature), and open a pull request.