Facebook MCP Server
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.
✅ Advantages
Empowers social media managers to automate moderation and analytics.
Seamlessly integrates with Claude Desktop or any Agent client.
Grants precise control over Facebook content through natural language.
Related MCP server: PagePilot MCP
📦 Features
Tool | Description |
| Create a new Facebook post with a message. |
| Reply to a specific comment on a post. |
| Retrieve recent posts from the Page. |
| Fetch comments on a given post. |
| Delete a specific post by ID. |
| Delete a specific comment by ID. |
| Hide a comment from public view. |
| Unhide a previously hidden comment. |
| Alias for deleting a comment from a specific post. |
| Filter out comments with negative sentiment keywords. |
| Count the number of comments on a post. |
| Count the number of likes on a post. |
| Get total impressions on a post. |
| Get number of unique users who saw the post. |
| Get number of paid impressions on the post. |
| Get number of organic impressions on the post. |
| Get number of users who engaged with the post. |
| Get number of clicks on the post. |
| Get total number of 'Like' reactions. |
| Get the top commenters on a post. |
| Post an image with a caption to the Facebook page. |
| Post a local video file path or publicly accessible video URL with a description. |
| Send a direct message to a user. |
| Updates an existing post's message. |
| Schedule a post for future publication. |
| Retrieve the total number of Page fans. |
| Get the number of shares on a post. |
| Get all reaction counts for a post in one call. |
| Delete multiple comments by ID. |
| Hide multiple comments by ID. |
| Unhide multiple comments by ID. |
| Get all replies to a specific comment. |
| Get the permalink URL of a post. |
| List all scheduled (unpublished) posts on the Page. |
| Get extended Page details (name, about, category, website). |
🚀 Setup & Installation
1. Clone the Repository
git clone https://github.com/your-org/facebook-mcp-server.git
cd facebook-mcp-server2. 🛠️ 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 | bashOnce uv is installed, install the project dependencies:
uv pip install -r requirements.txt3. 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 Claude:
Open Claude.
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 within 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/YourFeatureCommit your changes:
git commit -m 'feat: add new feature'Push to the branch:
git push origin feature/YourFeatureOpen a pull request 🎉
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityDmaintenanceAutomates Facebook Page management through the Graph API, enabling content posting, comment moderation, analytics tracking, and engagement monitoring through natural language interactions.309MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to manage a Facebook Fanpage via the official Graph API, supporting posting, scheduling, comment moderation, and analytics, without scraping or accessing private messages.MIT
- AlicenseNot gradedqualityCmaintenanceAutomates Facebook Page management via Graph API, enabling posting, comment moderation, and analytics through AI agents.1MIT
- AlicenseNot gradedqualityCmaintenanceEnables analytics and management of Facebook Pages through the Meta Graph API, including posts, insights, audience, and publishing.GPL 3.0
Related MCP Connectors
Boost posts and launch community growth campaigns from your AI assistant. OAuth, credit-billed.
Social media analytics, post insights, and competitor benchmarking for AI agents.
Connect any AI agent to 11+ social platforms: schedule, publish & track posts via hosted MCP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/adnaan-abdi/Facebook-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server