
facebook-mcp-server
facebook-mcp-server
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.
🤖 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. |
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. |
🚀 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:
- Open Clade.
- 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 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 🎉
推荐服务器

Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。