LZ

livia-zaharia/just_facebook_mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

13 stars 7 forks 质量 58 趋势 9MIT

Facebook MCP服务器用于实现帖子自动化、评论节制、洞察力和情绪过滤.

概览

此工程是使用Facebook Graph API实现交互自动化和管理的服务器. 它提供了创建帖子、温和评论、获取帖子见解和过滤负面反馈的工具——准备插入克洛德或任何其他基于LLM的代理。 这个版本最初由@HagaiHen/facebook-mcp-server开发出,意在通过PyPI进行包装和分发. 这个MCP提供了一套AI可调用的工具,可以直接连接到Facebook页面,将常见的API操作抽象为LLM友好功能. - 增强节制和分析能力。 能够从自然语言对Facebook内容进行精细控制。 这个工程需要和(一个快的Python包管理器). 在根目录中创建 .env 文件并添加您的 Facebook 页面权限 : 4. 在应用仪表板中,去自定义使用大小写并选择所有选项。 5. 导航到工具 — Graph API 探索器.

概述(AI 翻译)

这个项目是使用Facebook Graph API在 ** Facebook Page ** 上实现互动自动化和管理的** 模式背景协议(MCP)** 服务器。 它提供了创建帖子、温和评论、获取帖子见解和过滤负面反馈的工具——准备插入克洛德或任何其他基于LLM的代理。

此版本最初由@HagaiHen/facebook-mcp-server开发而来,意在通过PyPI进行包装和分发.

– – . . .

∮ 这是什么? ∮

这个MCP提供了一套AI可调用的工具,可以直接连接到Facebook页面,将常见的API操作抽象为LLM友好功能.

  • 养恤金
  • 授权** 社会媒体管理人员** 实现节制和分析自动化。
  • 与任何代理客户紧密结合
  • 允许对来自自然语言的Facebook内容进行精细控制。

– – . . .

□ * * * * 特点

  • 工具 * * 描述 * * |----------------------------------------------------------------------------------------------------------------------------------------- – - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - – - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ----- - - - - - - - - - - - - - - - - - - - - - - - - - - QQ post_to_facebook 创建有留言的新Facebook帖子. | QQ reply_to_comment QQ 对一个员额的具体评论的答复。 QQ get_page_posts 从页面获取最近的文章

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Just_Facebook MCP Server

This project is a Model Context Protocol (MCP) server for automating and managing interactions on a Facebook Page using the Facebook Graph API. It provides tools to create posts, moderate comments, fetch post insights, and filter negative feedback — ready to plug into Claude or any other LLM-based agent.

Originally developed from @HagaiHen/facebook-mcp-server, this version is intended for packaging and distribution via PyPI.


🤖 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 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.
get_post_top_commenters Get the top commenters on a post.
post_image_to_facebook Post an image with a caption to the Facebook page.
send_dm_to_user Send a direct message to a user.
update_post Updates an existing post’s message.
在 GitHub 查看完整 README

安装

uvx just_facebook_mcp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "just_facebook_mcp": { "command": "uvx", "args": [ "just_facebook_mcp" ], "env": { "FACEBOOK_ACCESS_TOKEN": "<put_your_FB_token_here>", "FACEBOOK_PAGE_ID": "<put_your_page_id_here>" } } } }