Skip to main content
Glama
adnaan-abdi

Facebook MCP Server

by adnaan-abdi

Facebook MCP Server

本项目是一个 MCP 服务器,用于通过 Facebook Graph API 自动化和管理 Facebook 主页上的交互。它提供了一系列工具,用于创建帖子、审核评论、获取帖子洞察数据以及过滤负面反馈——可直接接入 Claude 或其他基于 LLM 的智能体。

Trust Score


🤖 这是什么?

该 MCP 提供了一套可由 AI 调用的工具,直接连接到 Facebook 主页,将常见的 API 操作抽象为对 LLM 友好的函数。

✅ 优势

  • 赋能社交媒体运营人员,实现审核和分析的自动化。

  • Claude Desktop 或任何 Agent 客户端无缝集成。

  • 支持通过自然语言对 Facebook 内容进行细粒度控制。


Related MCP server: PagePilot MCP

📦 功能特性

工具

描述

post_to_facebook

使用消息创建新的 Facebook 帖子。

reply_to_comment

回复帖子上的特定评论。

get_page_posts

获取主页上的最近帖子。

get_post_comments

获取指定帖子的评论。

delete_post

按 ID 删除特定帖子。

delete_comment

按 ID 删除特定评论。

hide_comment

隐藏评论,使其不公开可见。

unhide_comment

取消隐藏之前隐藏的评论。

delete_comment_from_post

从特定帖子中删除评论的别名。

filter_negative_comments

过滤掉包含负面情绪关键词的评论。

get_number_of_comments

统计帖子上的评论数量。

get_number_of_likes

统计帖子上的点赞数量。

get_post_impressions

获取帖子的总展示量。

get_post_impressions_unique

获取看到该帖子的独立用户数量。

get_post_impressions_paid

获取帖子的付费展示量。

get_post_impressions_organic

获取帖子的自然展示量。

get_post_engaged_users

获取与帖子互动的用户数量。

get_post_clicks

获取帖子的点击次数。

get_post_reactions_like_total

获取“Like”反应的总数。

get_post_top_commenters

获取帖子的顶级评论者。

post_image_to_facebook

将带说明文字的图片发布到 Facebook 主页。

post_video_to_facebook

发布本地视频文件路径或可公开访问的视频 URL,并附带描述。

send_dm_to_user

向用户发送私信。

update_post

更新现有帖子的消息内容。

schedule_post

安排帖子在未来发布。

get_page_fan_count

获取主页粉丝总数。

get_post_share_count

获取帖子的分享次数。

get_post_reactions_breakdown

通过一次调用获取帖子的所有反应计数。

bulk_delete_comments

按 ID 批量删除评论。

bulk_hide_comments

按 ID 批量隐藏评论。

bulk_unhide_comments

按 ID 批量取消隐藏评论。

get_comment_replies

获取特定评论的所有回复。

get_post_permalink

获取帖子的固定链接 URL。

get_scheduled_posts

列出主页上所有已安排(未发布)的帖子。

get_page_info

获取主页的扩展详细信息(名称、简介、类别、网站)。


🚀 设置与安装

1. 克隆仓库

git clone https://github.com/your-org/facebook-mcp-server.git
cd facebook-mcp-server

2. 🛠️ 安装

使用 uv(一个快速的 Python 包管理器)安装依赖: 如果尚未安装 uv,请运行:

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

安装 uv 后,安装项目依赖:

uv pip install -r requirements.txt

3. 设置环境

在根目录中创建 .env 文件,并添加你的 Facebook 主页凭据。 你可以从 https://developers.facebook.com/tools/explorer 获取这些凭据。

FACEBOOK_ACCESS_TOKEN=your_facebook_page_access_token
FACEBOOK_PAGE_ID=your_page_id

🧩 与 Claude Desktop 配合使用

要在 Clade 中设置 FacebookMCP:

  1. 打开 Clade。

  2. 转到 设置 → 开发者 → 编辑配置。

  3. 在打开的配置文件中,添加以下条目:

"FacebookMCP": {
  "command": "uv",
  "args": [
    "run",
    "--with",
    "mcp[cli]",
    "--with",
    "requests",
    "mcp",
    "run",
    "/path/to/facebook-mcp-server/server.py"
  ]
}

✅ 一切就绪!

就是这样——你的 Facebook MCP 服务器现已完全配置好,随时可以为 Claude Desktop 提供支持。现在,你可以完全通过自然语言提示来发帖、审核和衡量互动情况!


🤝 贡献

欢迎贡献、提交问题和功能请求!
欢迎 fork 本仓库并提交拉取请求。

  • 创建分支:git checkout -b feature/YourFeature

  • 提交更改:git commit -m 'feat: add new feature'

  • 推送到分支:git push origin feature/YourFeature

  • 打开拉取请求 🎉

A
license - permissive license
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    B
    quality
    D
    maintenance
    Automates Facebook Page management through the Graph API, enabling content posting, comment moderation, analytics tracking, and engagement monitoring through natural language interactions.
    30
    9
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI agents to manage a Facebook Fanpage via the official Graph API, supporting posting, scheduling, comment moderation, and analytics, without scraping or accessing private messages.
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables analytics and management of Facebook Pages through the Meta Graph API, including posts, insights, audience, and publishing.
    GPL 3.0

View all related MCP servers

Related MCP Connectors

  • Boost posts and launch community growth campaigns from your AI assistant. OAuth, credit-billed.

  • Social media analytics, post insights, and competitor benchmarking for AI agents.

  • Connect any AI agent to 11+ social platforms: schedule, publish & track posts via hosted MCP.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/adnaan-abdi/Facebook-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server