HagaiHen/facebook-mcp-server

🌐 Social Media
0 Views
0 Installs

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

Quick Install

One-Click IDE Configuration
claude_desktop_config.json
{
  "mcpServers": {
    "hagaihen-facebook-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "hagaihen-facebook-mcp-server"
      ]
    }
  }
}
Or

Using an AI coding agent (Claude Code, Cursor, etc.)? Copy a ready-made prompt that tells it to fetch the setup instructions and install this server for you.

Documentation Overview

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

ToolDescription
post_to_facebookCreate a new Facebook post with a message.
reply_to_commentReply to a specific comment on a post.
get_page_postsRetrieve recent posts from the Page.
get_post_commentsFetch comments on a given post.
delete_postDelete a specific post by ID.
delete_commentDelete a specific comment by ID.
hide_commentHide a comment from public view.
unhide_commentUnhide a previously hidden comment.
delete_comment_from_postAlias for deleting a comment from a specific post.
filter_negative_commentsFilter out comments with negative sentiment keywords.
get_number_of_commentsCount the number of comments on a post.
get_number_of_likesCount the number of likes on a post.
get_post_impressionsGet total impressions on a post.
get_post_impressions_uniqueGet number of unique users who saw the post.
get_post_impressions_paidGet number of paid impressions on the post.
get_post_impressions_organicGet number of organic impressions on the post.
get_post_engaged_usersGet number of users who engaged with the post.
get_post_clicksGet number of clicks on the post.
get_post_reactions_like_totalGet total number of 'Like' reactions.
get_post_top_commentersGet the top commenters on a post.
post_image_to_facebookPost an image with a caption to the Facebook page.
send_dm_to_userSend a direct message to a user.
update_postUpdates an existing post's message.
schedule_postSchedule a post for future publication.
get_page_fan_countRetrieve the total number of Page fans.
get_post_share_countGet the number of shares on a post.
get_post_reactions_breakdownGet all reaction counts for a post in one call.
bulk_delete_commentsDelete multiple comments by ID.
bulk_hide_commentsHide multiple comments by ID.
bulk_unhide_commentsUnhide multiple comments by ID.
get_comment_repliesGet all replies to a specific comment.
get_post_permalinkGet the permalink URL of a post.
get_scheduled_postsList all scheduled (unpublished) posts on the Page.
get_page_infoGet 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-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:

  1. Open Clade.
  2. Go to Settings β†’ Developer β†’ Edit Config.
  3. 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 πŸŽ‰

Related MCP Servers

06ketan/substack-ops

🐍 🏠 - Substack with zero AI API keys. 26 tools (posts, notes, comments, replies, reactions, restacks). Host LLM drafts via proposereply β†’ confirmreply tokens. SQLite dedup, JSONL audit, dry-run default. Install: uvx substack-ops mcp install cursor.

🌐 Social Media0 views
abhineet34/linkedin-mcp-server

πŸ“‡ 🏠 - Local LinkedIn MCP server for posting to LinkedIn from Claude. 9 tools β€” create/edit/delete posts (text, image, article), upload images, fetch profile, look up company pages, and check follower counts. Uses the official LinkedIn REST API with OAuth 2.0 (wmembersocial, OIDC).

🌐 Social Media0 views
anwerj/youtube-uploader-mcp

🏎️ ☁️ - AI‑powered YouTube uploaderβ€”no CLI, no YouTube Studio. Uploade videos directly from MCP clients with all AI capabilities.

🌐 Social Media0 views
arjun1194/insta-mcp

πŸ“‡ 🏠 - Instagram MCP server for analytics and insights. Get account overviews, posts, followers, following lists, post insights, and search for users, hashtags, or places.

🌐 Social Media0 views

Engagement

Views
0
Installs
0
Upvotes
0

Views and upvotes are unique per visitor network (hashed IP). Installs count copy actions.

Status

Health: Not checked yet

We have not completed a health check for this listing yet.

No check timestamp yet.

Unclaimed listing (imported or pending owner verification). Claim it β†’
β˜… Spotlight Slot

Feature Your MCP Server

Get maximum visibility for your server across our directory, search results, and detail pages.

Spotlight Your Server

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to get the verified badge and attach your website.

Claim this listing

Promote this listing

Optional paid placement. Free listings stay free forever.

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.