概要
Meta の Instagram API with Facebook Login で Instagram のプロアカウント(ビジネスまたはクリエイター)を読み取ります:プロフィール、投稿、リール、ストーリーズ、アカウントと投稿のインサイト、コメントと返信、ハッシュタグ検索、公開ビジネスプロフィール。コンテンツ公開機能も含まれますが、インストール時は無効になっています。
ガイド付きセットアップ
Instagram を Microsoft Copilot に 2 分で接続
AnythingMCP Cloud の無料トライアルを始め、ガイド付きセットアップで Instagram を接続して、MCP URL を Microsoft Copilot に追加します。コードもサーバーの運用も不要です。
クレジットカード不要 · 7日間の試用 · セルフホストの選択肢あり
こう聞いてみよう
Instagram のサンプルプロンプト
プロンプトをクリックでコピー。Claude / ChatGPT / Cursor / Gemini / Copilot / OpenClaw に貼り付けて、このコネクターで実行できます。
Claude は AI のため誤ることがあります。回答をご確認ください。
💡 インストール不要? cloud.anythingmcp.com を直接利用してください。 サインインし、Connectors → Instagram をクリック、認証情報を貼り付け、MCP API キーを発行 — 完了です。Docker も
git cloneもローカルサーバーも不要。
Instagram + Microsoft Copilot
Meta の Instagram API with Facebook Login で Instagram のプロアカウント(ビジネスまたはクリエイター)を読み取ります:プロフィール、投稿、リール、ストーリーズ、アカウントと投稿のインサイト、コメントと返信、ハッシュタグ検索、公開ビジネスプロフィール。コンテンツ公開機能も含まれますが、インストール時は無効になっています。
前提条件
完全なセットアップ手順はコネクタ自体に組み込まれています (ストアでコネクタを選択すると表示)。必要な環境変数:
INSTAGRAM_ACCESS_TOKEN, INSTAGRAM_ACCOUNT_ID
ステップ 1 — 認証情報を取得
このコネクタは Meta の Graph API を通じて、Facebook ページにリンクされた Instagram のプロアカウント(ビジネスまたはクリエイター)を 1 つ読み取ります。個人の Instagram アカウントには API アクセスがありません。
- Meta ビジネス設定で Users → System users を開き、システムユーザーを選択または作成して、Facebook ページと Instagram アカウントをアセットとして割り当てます。
- Generate token をクリックし、Meta アプリ(Instagram プロダクトを追加済み)を選び、有効期限を Never にして、instagram_basic、instagram_manage_insights、instagram_manage_comments、pages_show_list、pages_read_engagement、business_management を付与します。投稿したい場合のみ instagram_content_publish を追加します。トークンを
INSTAGRAM_ACCESS_TOKENに貼り付けます。Graph API エクスプローラーで取得した長期ユーザートークンも使えますが、60 日ごとに差し替えが必要です。 INSTAGRAM_ACCOUNT_IDに Instagram アカウント ID を設定します。1784 で始まる数字で、ユーザー名やページ ID ではありません。Meta ビジネス設定の Accounts → Instagram accounts に表示され、instagram_list_linked_accountsではinstagram_business_account.idとして返されます。- 最初に
instagram_get_accountを呼び出します。設定を確認し、フォロワー数と投稿数を返します。
投稿用ツール instagram_create_media_container と instagram_publish_media はインストール時に無効になっています。API での投稿は 24 時間あたり 50 件まで、ハッシュタグ検索は直近 7 日間で 30 種類までで、フォロワーが 100 人未満のアカウントでは属性データのインサイトは返されません。エラー 190 はトークンの期限切れまたは取り消し、エラー 10 または 200 は権限不足を意味します。
ステップ 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 — Microsoft Copilot にコネクタを追加
サーバーURL: AnythingMCP で MCP Servers を開き、このコネクタがあるサーバーを選んで URL(
https://cloud.anythingmcp.com/mcp/…)をコピーします。このガイドでYOUR_SERVER_IDと表示されている箇所に使ってください。
Microsoft Copilot は、Copilot Studio で作成したエージェントを通じて MCP サーバーを使います。AnythingMCP をツールとしてエージェントに追加し、そのエージェントを Microsoft 365 Copilot と Teams に公開します。Copilot Studio は Microsoft のクラウドから Streamable HTTP で接続し、AnythingMCP はこれに対応しています。
- Copilot Studio でエージェントを開き(または新規作成し)、Tools で Add a tool → New tool → Model Context Protocol を選びます。
- Server name(例:
AnythingMCP)、コネクタでできることを説明する Server description、Server URLhttps://cloud.anythingmcp.com/mcp/YOUR_SERVER_IDを入力します。Copilot Studio はこの説明をもとに、いつサーバーを呼び出すかを判断します。 - 認証で API key を選び、Type を Header、ヘッダー名を
X-API-Keyにして Create を選びます。 - Add tool で Create a new connection を選び、AnythingMCP の MCP API キー(MCP Servers → 対象のサーバー → API keys)を貼り付けて Add to agent を選びます。
- エージェントの Test ウィンドウで試します。
Instagramのツールが必要になる依頼をしてみましょう。 - Publish を選び、Channels → Microsoft 365 and Microsoft Teams で Make agent available in Microsoft Copilot を選択したまま Add channel を選びます。See agent in Teams で自分用にインストールされます。Microsoft 365 Copilot では @ を入力してエージェントを選びます。
ユーザーごとにサインインさせたい場合は、API キーの代わりに OAuth 2.0 → Dynamic discovery を選びます。各ユーザーは、エージェントが初めて呼び出すときに AnythingMCP にサインインします。
セルフホストの場合は、https://cloud.anythingmcp.com の代わりにインスタンスの公開 HTTPS アドレスを使ってください。Copilot Studio は Microsoft のクラウドから接続するため、localhost は使えません。
利用可能なツール
| Tool | What it does |
|---|---|
instagram_list_linked_accounts | List the Facebook Pages the token can access, each with the Instagram professional account linked to it (instagram_business_account with id… |
instagram_get_account | Get the configured Instagram account's profile: username, name, biography, website, followers_count, follows_count, media_count and profile… |
instagram_list_media | List the account's posts and reels, newest first, with caption, media_type (IMAGE, VIDEO, CAROUSEL_ALBUM), media_product_type (FEED… |
instagram_get_media | Get one post, reel or story by media id: caption, type, permalink, timestamp, like and comment counts, media URL and, for carousels, the… |
instagram_list_stories | List the account's stories that are live now (stories disappear from the API 24 hours after posting) |
instagram_list_tagged_media | List public posts by other accounts in which the configured account has been tagged, with caption, permalink, username of the author and… |
instagram_get_account_insights | Get account-level insights for the configured account: reach, views, accounts_engaged, total_interactions, likes, comments, shares, saves… |
instagram_get_media_insights | Get lifetime insights for one post, reel or story: reach, views, likes, comments, saved, shares, total_interactions, profile_visits… |
instagram_list_comments | List the top-level comments on one post or reel, newest first, with text, username, timestamp, like_count, hidden flag and the replies… |
instagram_list_comment_replies | List the replies to one comment, with text, username, timestamp and like_count |
instagram_reply_to_comment | Post a public reply, as the configured account, under a comment on one of its own posts |
instagram_hide_comment | Hide or unhide a comment on one of the account's own posts |
instagram_search_hashtag | Look up a hashtag by name and return its id, which instagram_get_hashtag_top_media and instagram_get_hashtag_recent_media need |
instagram_get_hashtag_top_media | Get the most popular public posts for a hashtag, with caption, media type, permalink, like and comment counts and timestamp (no usernames) |
instagram_get_hashtag_recent_media | Get public posts tagged with a hashtag in the last 24 hours, newest first, with caption, media type, permalink, counts and timestamp |
instagram_get_business_profile | Look up another Instagram business or creator account by username (business discovery): followers_count, media_count, biography, website… |
instagram_get_publishing_limit | Show how many posts the account has published through the API in the current rolling 24 hours (quota_usage) and the limit… |
instagram_create_media_container | Step 1 of publishing: create a media container for an image, a video, a reel, a story or a carousel item from a public HTTPS URL |
instagram_get_container_status | Check whether a media container is ready to publish. status_code is IN_PROGRESS while Instagram processes a video, FINISHED when ready… |
instagram_publish_media | Step 2 of publishing: publish a container (status FINISHED) to the account, making the post, reel, story or carousel public at once |
FAQ
どの Copilot が対象ですか? 職場で使う Microsoft 365 Copilot で、Copilot Studio のエージェントを通じて利用します。個人アカウント向けの Microsoft Copilot アプリでは、独自の MCP サーバーを追加できません。
何が必要ですか? エージェントを作成するために、Copilot Studio を利用できる職場アカウント(ライセンスまたは試用版)が必要です。Microsoft 365 Copilot や Teams でエージェントを使う人には、エージェントへのアクセス権が必要です。共有するか、管理者に組織向けに公開してもらってください。組織が Power Platform コネクタにデータ ポリシーを適用している場合は、MCP サーバーにも適用されます。
エージェントがツールを呼び出しません。 ヘッダー名が正確に X-API-Key であること、キーが URL と同じ MCP サーバーのものであることを確認し、Server description を具体的に書いてください。Copilot Studio はこの説明をもとにサーバーを呼び出すかどうかを判断します。変更のたびにエージェントを再公開し、開いているチャットでは "start over" と入力すると新しいバージョンになります。
次のステップ
このガイドは役に立ちましたか?