Facebook MCP Server

Facebook MCP Server

AI-ready tools for managing and moderating Facebook Pages via the Graph API.

64
Stars
26
Forks
64
Watchers
0
Issues
Facebook MCP Server is a Model Context Protocol (MCP) server designed to automate and manage interactions on Facebook Pages through the Facebook Graph API. It offers a suite of tools accessible by AI agents or LLMs, enabling actions such as posting, moderating comments, retrieving analytics, and handling negative feedback. The platform is optimized for integration with agent clients like Claude Desktop, providing seamless, natural language-driven operations. By abstracting Facebook operations as callable functions, it empowers users to efficiently control and monitor their social media presence.

Key Features

Create and schedule Facebook posts
Reply to and manage comments
Retrieve and analyze page and post insights
Hide and unhide comments
Delete posts and comments
Filter negative sentiment in comments
Send direct messages to users
Track user engagement and reactions
Automated moderation capabilities
LLM-friendly tool abstractions

Use Cases

Automated content posting and scheduling for Facebook Pages
Moderation and management of user comments
Real-time sentiment filtering to remove negative interactions
Fetching page analytics for performance monitoring
Engaging users through direct messaging
Enabling LLM agents to handle social media tasks via API
Community management for brands and organizations
Social media automation for marketing teams
Analyzing user engagement and reach
Natural language-driven content management

README

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.

Trust Score


🤖 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

Tool Description
post_to_facebook Create a new Facebook post with a message.
reply_to_comment Reply to a specific comment on a post.
get_page_posts Retrieve recent posts from the Page.
get_post_comments Fetch comments on a given post.
delete_post Delete a specific post by ID.
delete_comment Delete a specific comment by ID.
hide_comment Hide a comment from public view.
unhide_comment Unhide a previously hidden comment.
delete_comment_from_post Alias for deleting a comment from a specific post.
filter_negative_comments Filter out comments with negative sentiment keywords.
get_number_of_comments Count the number of comments on a post.
get_number_of_likes Count the number of likes on a post.
get_post_impressions Get total impressions on a post.
get_post_impressions_unique Get number of unique users who saw the post.
get_post_impressions_paid Get number of paid impressions on the post.
get_post_impressions_organic Get number of organic impressions on the post.
get_post_engaged_users Get number of users who engaged with the post.
get_post_clicks Get number of clicks on the post.
get_post_reactions_like_total Get total number of 'Like' reactions.
get_post_top_commenters Get the top commenters on a post.
post_image_to_facebook Post an image with a caption to the Facebook page.
send_dm_to_user Send a direct message to a user.
update_post Updates an existing post's message.
schedule_post Schedule a post for future publication.
get_page_fan_count Retrieve the total number of Page fans.
get_post_share_count Get the number of shares on a post.
get_post_reactions_breakdown Get all reaction counts for a post in one call.
bulk_delete_comments Delete multiple comments by ID.
bulk_hide_comments Hide multiple comments by ID.

🚀 Setup & Installation

1. Clone the Repository

bash
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:

bash
curl -Ls https://astral.sh/uv/install.sh | bash

Once uv is installed, install the project dependencies:

bash
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

bash
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:

  1. Open Clade.
  2. Go to Settings → Developer → Edit Config.
  3. In the config file that opens, add the following entry:
bash
"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 🎉

Star History

Star History Chart

Repository Owner

HagaiHen
HagaiHen

User

Repository Details

Language Python
Default Branch main
Size 47 KB
Contributors 3
License MIT License
MCP Verified Nov 12, 2025

Programming Languages

Python
100%

Tags

Join Our Newsletter

Stay updated with the latest AI tools, news, and offers by subscribing to our weekly newsletter.

We respect your privacy. Unsubscribe at any time.

Related MCPs

Discover similar Model Context Protocol servers

  • Contentful MCP Server

    Contentful MCP Server

    Community-driven MCP server for advanced Contentful content management.

    Contentful MCP Server is an implementation of the Model Context Protocol (MCP) designed to provide seamless integration with Contentful’s Content Management API. It enables full CRUD operations for entries and assets, facilitates comment and space management, and supports bulk asynchronous operations. With features like smart pagination and localization, it aims to optimize LLM context handling and streamline workflows for content-rich applications.

    • 61
    • MCP
    • ivo-toby/contentful-mcp
  • mcp-graphql

    mcp-graphql

    Enables LLMs to interact dynamically with GraphQL APIs via Model Context Protocol.

    mcp-graphql provides a Model Context Protocol (MCP) server that allows large language models to discover and interact with GraphQL APIs. The implementation facilitates schema introspection, exposes the GraphQL schema as a resource, and enables secure query and mutation execution based on configuration. It supports configuration through environment variables, automated or manual installation options, and offers flexibility in using local or remote schema files. By default, mutation operations are disabled for security, but can be enabled if required.

    • 319
    • MCP
    • blurrah/mcp-graphql
  • Google Workspace MCP Server

    Google Workspace MCP Server

    Full natural language control of Google Workspace through the Model Context Protocol.

    Google Workspace MCP Server enables comprehensive natural language interaction with Google services such as Calendar, Drive, Gmail, Docs, Sheets, Slides, Forms, Tasks, and Chat via any MCP-compatible client or AI assistant. It supports both single-user and secure multi-user OAuth 2.1 authentication, providing a production-ready backend for custom apps. Built on FastMCP, it delivers high performance and advanced context handling, offering deep integration with the entire Google Workspace suite.

    • 890
    • MCP
    • taylorwilsdon/google_workspace_mcp
  • GitHub MCP Server

    GitHub MCP Server

    Connect AI tools directly to GitHub for repository, issue, and workflow management via natural language.

    GitHub MCP Server enables AI tools such as agents, assistants, and chatbots to interact natively with the GitHub platform. It allows these tools to access repositories, analyze code, manage issues and pull requests, and automate workflows using the Model Context Protocol (MCP). The server supports integration with multiple hosts, including VS Code and other popular IDEs, and can operate both remotely and locally. Built for developers seeking to enhance AI-powered development workflows through seamless GitHub context access.

    • 24,418
    • MCP
    • github/github-mcp-server
  • Reddit Summarizer MCP Server

    Reddit Summarizer MCP Server

    Summarize Reddit content through a Model Context Protocol server.

    Reddit Summarizer MCP Server provides an MCP-compliant server interface for summarizing Reddit homepages, specific subreddits, and comments on individual posts. It enables users to extract concise reports from Reddit using customizable parameters such as sorting methods, comment inclusion, and post limits. The tool is designed to integrate with MCP clients like Claude Desktop and leverages the Reddit API for data retrieval. Support for environment variables and structured prompts ensures adaptability for a variety of summarization needs.

    • 11
    • MCP
    • sinanefeozler/reddit-summarizer-mcp
  • Freshdesk MCP Server

    Freshdesk MCP Server

    AI-powered Freshdesk integration for automated ticket and agent management via MCP.

    Enables seamless integration between AI models and Freshdesk by providing a Model Context Protocol (MCP) server interface. Supports a wide range of helpdesk operations such as ticket creation, updates, conversation management, agent handling, and contact management. Facilitates automated support workflows and allows AI agents to interact programmatically with Freshdesk modules.

    • 31
    • MCP
    • effytech/freshdesk_mcp
  • Didn't find tool you were looking for?

    Be as detailed as possible for better results