インストール不要。2分以内に動きます。
cloud.anythingmcp.com で無料トライアルを開始し、Facebook Pages をワンクリックで追加して、AI クライアント(Claude、ChatGPT、Copilot、Cursor)を生成された MCP エンドポイントに向けるだけ。Docker も git clone も、開発経験も不要です。
AnythingMCP は Claude のコネクタディレクトリに掲載されています。ワンクリックで Claude に追加 (新しいタブで開きます)し、サインインして Claude が使える MCP サーバーを選んでください。
概要
AI に Facebook ページを運用させます。投稿、コメント、ページと投稿のインサイトの読み取り、投稿や写真投稿の公開、予約、編集、コメントへの返信、非表示、削除、Messenger の会話の閲覧と返信ができます。公開や送信を伴う操作は、すべて事前に確認を求めます。
こう聞いてみよう
Facebook Pages のサンプルプロンプト
プロンプトをクリックでコピー。Claude / ChatGPT / Cursor / Gemini / Copilot / OpenClaw に貼り付けて、このコネクターで実行できます。
Claude は AI のため誤ることがあります。回答をご確認ください。
💡 インストール不要? cloud.anythingmcp.com を直接利用してください。 サインインし、Connectors → Facebook Pages をクリック、認証情報を貼り付け、MCP API キーを発行すれば完了です。Docker も
git cloneもローカルサーバーも不要。
Facebook Pages + Claude
AI に Facebook ページを運用させます。投稿、コメント、ページと投稿のインサイトの読み取り、投稿や写真投稿の公開、予約、編集、コメントへの返信、非表示、削除、Messenger の会話の閲覧と返信ができます。公開や送信を伴う操作は、すべて事前に確認を求めます。
前提条件
完全なセットアップ手順はコネクタ自体に組み込まれています (ストアでコネクタを選択すると表示)。必要な環境変数:
FACEBOOK_PAGE_ACCESS_TOKEN, FACEBOOK_PAGE_ID
ステップ 1 — 認証情報を取得
https://developers.facebook.com/apps/creation/でユースケース Manage everything on your Page を選んでアプリを作成し、権限pages_show_list,pages_read_engagement,pages_read_user_content,pages_manage_posts,pages_manage_engagementとread_insightsを追加します。Messenger を使う場合は、ユースケース Engage with customers on Messenger from Meta も追加します。これでpages_manage_metadataとpages_messagingが加わります。ご自身でページを管理し、アプリでロールを持っている間は App Review は不要です。https://developers.facebook.com/tools/explorer/で Graph API Explorer を開き、アプリを選んで、これらの権限で Generate Access Token をクリックします。Facebook に尋ねられたらページを選択します。- そのユーザートークンを
https://developers.facebook.com/tools/debug/accesstoken/の Access Token Debugger に貼り付け、Extend Access Token をクリックします。長期間有効なユーザートークン(約 60 日)が得られます。 - Explorer に戻り、長期間有効なトークンで
GET me/accounts?fields=id,name,access_tokenを実行します。ページの横にあるaccess_tokenをFACEBOOK_PAGE_ACCESS_TOKENに(Bearer という語は付けずに)、そのidをFACEBOOK_PAGE_IDにコピーします。このページトークンには有効期限がありません。Debugger では type Page, expires Never と表示されます。 - コネクターをインストールし、
facebook_pages_get_pageを実行して設定を確認します。
ページトークンが必要な理由: ページとして操作できるのはページアクセストークンだけです。ユーザートークンではページとして投稿、コメント、メッセージ送信ができず、Explorer から直接取得したページトークンは数時間で期限切れになります。ページトークンは、作成した人がページでのロールを失ったとき、パスワードを変更したとき、アプリを削除したときに使えなくなります。
まず確認: 公開、予約、編集、コメント、返信、メッセージ送信は、すぐに一般ユーザーや顧客に見えます。そのため AI は、投稿または送信する内容を正確に示し、あなたの承認を待ちます。facebook_pages_delete_post と facebook_pages_delete_comment はインストール時は無効です。facebook_pages_hide_comment のほうが穏やかな選択肢です。
Messenger: ページがメッセージを送れるのは、先にメッセージを送ってきた人だけです。返信できるのは、その人の最後のメッセージから 24 時間以内です。それ以降は、App Review で Human Agent 権限を取得したうえで、担当者が 7 日以内に手動で返信する場合に限られます。App Review を受けていない場合、Messenger で届くのはアプリでロールを持つ人だけです。顧客にメッセージを送るには、pages_messaging の Advanced Access を申請してください。
インサイト: read_insights と、ページへの「いいね!」が 100 件以上必要です。データの更新はおよそ 1 日 1 回で、1 回のリクエストで対象にできる期間は最大 90 日です。
よくあるエラー: 190 はトークンの期限切れまたは取り消しを意味するので、新しいページトークンを作成してください。10、200、283 は権限不足です。コード 3 は、ページトークンではなくユーザートークンが貼り付けられていることを意味します。送信時の 1545041 または 10 は、Messenger の返信期間が終了していることを示します。4、17、32、613、80001、80006 はレート制限です。数分待ってください。
このコネクターが扱うのは 1 つのページだけで、広告は対象外です。
ステップ 2 — アダプターをインストール
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
ステップ 3 — Claude にコネクタを追加
サーバーURL: AnythingMCP で MCP Servers を開き、このコネクタがあるサーバーを選んで URL(
https://cloud.anythingmcp.com/mcp/…)をコピーします。このガイドでYOUR_SERVER_IDと表示されている箇所に使ってください。
推奨ルート:設定ファイルを触らずに claude.ai web で動作します。
- Claude で Customize → Connectors を開きます。
- + をクリックし、Add custom connector を選びます。
- 名前(例:
Facebook Pages)とリモート MCP サーバー URLhttps://cloud.anythingmcp.com/mcp/YOUR_SERVER_IDを入力し、Add をクリックします。 - Connect をクリックし、AnythingMCP にサインイン(OAuth)してアクセスを許可します。
下記のすべてのツールがチャットに表示されます。プロンプトを入力し始めてください。
利用可能なツール
| Tool | What it does |
|---|---|
facebook_pages_get_page | Get the configured Facebook Page: name, username, link, category, about text, website, contact details, likes (fan_count) and… |
facebook_pages_list_posts | List the Page's own posts, newest first, with text, time, permalink, type, picture, shares and the number of comments and reactions |
facebook_pages_list_feed | List everything on the Page's feed, newest first: the Page's own posts including unpublished ones (is_published false) and posts by… |
facebook_pages_list_scheduled_posts | List the Page's scheduled posts that have not gone live yet, with text, link and scheduled_publish_time (Unix seconds) |
facebook_pages_get_post | Get one Page post by id: text, time, permalink, type, author, attachments, whether it is published or hidden, its scheduled time, shares… |
facebook_pages_create_post | Publish a text or link post on the Page right away, as the Page |
facebook_pages_schedule_post | Schedule a text or link post to go live on the Page at a set time, between 10 minutes and 30 days ahead |
facebook_pages_create_photo_post | Post a photo from a public image URL on the Page, with an optional caption; set published false with scheduled_publish_time to schedule it |
facebook_pages_update_post | Change a Page post: replace its text, publish a scheduled or unpublished post now (is_published true), or move a scheduled post to another… |
facebook_pages_delete_post | Delete a Page post permanently, including its comments and reactions |
facebook_pages_list_comments | List the comments on a post, or the replies to a comment when you pass a comment id, with text, author, time, likes, reply count and… |
facebook_pages_comment_on_post | Write a public comment on a post as the Page, optionally with an image from a URL |
facebook_pages_reply_to_comment | Reply publicly to a comment as the Page, in the comment's thread |
facebook_pages_hide_comment | Hide or unhide a comment on the Page's posts |
facebook_pages_delete_comment | Delete a comment on the Page's posts permanently, with its replies |
facebook_pages_get_page_insights | Get Page insights per day, week or 28 days: views of the Page's content (page_media_view), unique viewers, post engagements, followers, new… |
facebook_pages_get_post_insights | Get lifetime insights for one Page post: how often it was displayed (post_media_view), unique viewers, clicks, reactions by type and, for… |
facebook_pages_list_conversations | List the Page's Messenger conversations, most recently active first, with the participants (name and Page-scoped id) and the last update… |
facebook_pages_list_messages | List the messages of one Messenger conversation, newest first, with text, sender, recipient and time |
facebook_pages_send_message | Send a Messenger text message as the Page to a person who has written to the Page |
facebook_pages_send_private_reply | Answer a comment privately: sends one Messenger message as the Page to the person who wrote the comment, with a link to it |
プロンプトの例
- 「直近 10 件の投稿の成果をまとめてください。表示回数、クリック数、リアクションを出し、いちばん良かった投稿を教えてください。」
- 「最新の投稿についたコメントのうち、まだ返信していないものを見せてください。返信案を作成し、投稿する前に私に承認させてください。」
- 「過去 24 時間以内に顧客からメッセージが届いた Messenger の会話はどれですか。それぞれに返信案を作成し、送信する前に見せてください。」
- 「新しい営業時間を知らせる投稿を来週月曜日の 9:00 に予約してください。予約する前に本文と日時を見せてください。」
FAQ
Claude Code は Claude Desktop と同じように動作しますか? はい。両方を https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID に向けてください。
次のステップ
このガイドは役に立ちましたか?