Sponsored by Deepsite.site

Facebook MCP Server

Created By
tiroshanm8 months ago
Content

Facebook MCP Server

Overview

A Model Context Protocol (MCP) server implementation that provides Facebook Page interaction and management capabilities. This server enables automated posting, comment moderation, and content retrieval.

Components

Tools

The server offers the following tools:

  • post_to_facebook:
    • Posts a message to the Facebook Page.
    • Input: message (string): The message to post.
  • reply_to_comment:
    • Replies to a comment on a specific post.
    • Input:
      • post_id (string): The ID of the post.
      • comment_id (string): The ID of the comment.
      • message (string): The reply message.
  • get_page_posts:
    • Retrieves posts published on the Facebook Page.
    • Input: None.
  • get_post_comments:
    • Retrieves comments for a specific post.
    • Input: post_id (string): The ID of the post.
  • filter_negative_comments:
    • Filters negative comments from a post based on keywords.
    • Input: post_id (string): The ID of the post.
  • delete_post:
    • Deletes a post from the Facebook Page.
    • Input: post_id (string): The ID of the post to delete.
  • delete_comment:
    • Deletes a comment from a post.
    • Input: comment_id (string): The ID of the comment to delete.

Setup

  1. Configure Facebook Credentials:

    • Create a .env file in the root directory of your project.

    • Add your Facebook Page access token and Page ID to the .env file:

      FACEBOOK_PAGE_ACCESS_TOKEN=YOUR_PAGE_ACCESS_TOKEN
      FACEBOOK_PAGE_ID=YOUR_PAGE_ID
      
    • Replace YOUR_PAGE_ACCESS_TOKEN and YOUR_PAGE_ID with your actual values.

    • Important: Add .env to your .gitignore to avoid committing sensitive information.

  2. Configure in Claude Desktop (or your MCP Client):

    • Configure your MCP client (e.g., Claude Desktop) to connect to the Facebook MCP server.

    • Example configuration for Claude Desktop (uv):

      {
        "mcpServers": {
            "facebook": {
                "command": "uv",
                "args": [
                    "--directory",
                    "/path/to/facebook-mcp-server",
                    "run",
                    "facebook-mcp-server"  
                ]
            }
        }
      }
      

Building

Comming Next.

License

This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Playwright McpPlaywright MCP server
WindsurfThe new purpose-built IDE to harness magic
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Tavily Mcp
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Serper MCP ServerA Serper MCP Server
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Amap Maps高德地图官方 MCP Server
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
CursorThe AI Code Editor
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
DeepChatYour AI Partner on Desktop
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
ChatWiseThe second fastest AI chatbot™