インストール不要。2分以内に動きます。
cloud.anythingmcp.com で無料トライアルを開始し、Instagram をワンクリックで追加して、AI クライアント(Claude、ChatGPT、Copilot、Cursor)を生成された MCP エンドポイントに向けるだけ。Docker も git clone も、開発経験も不要です。
概要
Meta の Instagram API with Facebook Login で Instagram のプロアカウント(ビジネスまたはクリエイター)を読み取ります:プロフィール、投稿、リール、ストーリーズ、アカウントと投稿のインサイト、コメントと返信、ハッシュタグ検索、公開ビジネスプロフィール。コンテンツ公開機能も含まれますが、インストール時は無効になっています。
こう聞いてみよう
Instagram のサンプルプロンプト
プロンプトをクリックでコピー。Claude / ChatGPT / Cursor / Gemini / Copilot / OpenClaw に貼り付けて、このコネクターで実行できます。
Claude は AI のため誤ることがあります。回答をご確認ください。
💡 インストール不要? cloud.anythingmcp.com を直接利用してください。 サインインし、Connectors → Instagram をクリック、認証情報を貼り付け、MCP API キーを発行 — 完了です。Docker も
git cloneもローカルサーバーも不要。
Instagram + Gemini
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 — Gemini にコネクタを追加
サーバーURL: AnythingMCP で MCP Servers を開き、このコネクタがあるサーバーを選んで URL(
https://cloud.anythingmcp.com/mcp/…)をコピーします。このガイドでYOUR_SERVER_IDと表示されている箇所に使ってください。
Gemini CLI は ~/.gemini/settings.json(Windows では %USERPROFILE%\.gemini\settings.json)から MCP サーバーを読み込みます。次を追加してください:
{
"mcpServers": {
"anythingmcp": {
"httpUrl": "https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID",
"headers": { "X-API-Key": "YOUR_MCP_API_KEY" }
}
}
}
- AnythingMCP の MCP Servers → 対象のサーバー → API keys で MCP API キーを作成し、
YOUR_MCP_API_KEYと置き換えます。 - ファイルを保存し、
geminiを再起動します。 - Gemini CLI で
/mcpを実行します(またはシェルでgemini mcp list)。anythingmcpが接続済みとして表示されるはずです。 - プロンプトを入力しましょう — Gemini CLI が
Instagramのツールを呼び出せるようになりました。
利用可能なツール
| 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
Gemini CLI はどこから MCP サーバーを読み込みますか? ユーザー単位では ~/.gemini/settings.json、プロジェクト単位ではプロジェクト内の .gemini/settings.json です。gemini mcp list で各サーバーと接続状態を確認できます。
次のステップ
このガイドは役に立ちましたか?