Overview
What is Facebook MCP Server?
A Model Context Protocol server that enables Facebook Page interaction and management through MCP tools. It supports automated posting, comment moderation, and content retrieval. Designed for developers building AI-driven social media workflows.
How to use Facebook MCP Server?
Set up a .env file with your FACEBOOK_PAGE_ACCESS_TOKEN and FACEBOOK_PAGE_ID. Configure your MCP client (e.g., Claude Desktop) using the provided uv command. The server exposes tools such as post_to_facebook, reply_to_comment, get_page_posts, and others for direct use.
Key features of Facebook MCP Server
- Post messages to a Facebook Page (
post_to_facebook) - Reply to comments on posts (
reply_to_comment) - Retrieve posts and comments from a Page
- Filter negative comments by keywords (
filter_negative_comments) - Delete posts or comments from a Page
- Simple MCP integration with AI assistants
- MIT licensed
Use cases of Facebook MCP Server
- Automate scheduled page posts via AI agents
- Moderate comments by replying or deleting unwanted content
- Analyze and filter negative sentiment on page posts
- Retrieve and monitor recent page activity programmatically
- Build AI assistants that manage Facebook Pages
FAQ from Facebook MCP Server
What credentials are required?
You need a Facebook Page access token (FACEBOOK_PAGE_ACCESS_TOKEN) and your Page ID (FACEBOOK_PAGE_ID). Store them in a .env file.
How do I configure the server with an MCP client?
Use the example configuration for Claude Desktop with the uv command, pointing to the server directory and running facebook-mcp-server.
What runtime or dependencies are needed?
The server runs via uv. No other runtime dependencies are mentioned in the README.
Where does my data live?
All data is managed through Facebook’s API. No local database or storage is used by this server.
What transport or authentication does it use?
Authentication is via an access token stored in the environment. The server uses MCP default transport (stdio).