Summary
Read an Instagram professional (business or creator) account through Meta's Instagram API with Facebook Login: profile, posts, reels and stories, account and post insights, comments and replies, hashtag search and public business profiles. Content publishing is included but installed switched off.
Guided setup
Connect Instagram to Microsoft Copilot in 2 minutes
Start a free trial on AnythingMCP Cloud, connect Instagram in the guided setup, then add your MCP URL to Microsoft Copilot. No code and no server to run.
No credit card · 7-day trial · Self-host alternative available
Try asking
Example prompts for Instagram
Click any prompt to copy it. Paste into Claude, ChatGPT, Cursor, Gemini, Copilot or OpenClaw to run it against this connector.
Claude is AI and can make mistakes. Please double-check responses.
💡 No install? Use cloud.anythingmcp.com directly. Sign in, click Connectors → Instagram, paste your credentials, mint an MCP API key — done. No Docker, no
git clone, no local server.
Instagram + Microsoft Copilot
Read an Instagram professional (business or creator) account through Meta's Instagram API with Facebook Login: profile, posts, reels and stories, account and post insights, comments and replies, hashtag search and public business profiles. Content publishing is included but installed switched off.
Prerequisites
See the full setup instructions baked into the connector (visible in the in-app store when you select the connector). The required environment variables for this connector are:
INSTAGRAM_ACCESS_TOKEN, INSTAGRAM_ACCOUNT_ID
Step 1 — Get credentials
The connector reads one Instagram professional account (business or creator) that is linked to a Facebook Page, through Meta's Graph API. Personal Instagram accounts have no API access.
- In Meta Business settings, open Users → System users, pick or create a system user and assign it the Facebook Page and the Instagram account as assets.
- Click Generate token, choose your Meta app (with the Instagram product added), set the expiry to Never and grant instagram_basic, instagram_manage_insights, instagram_manage_comments, pages_show_list, pages_read_engagement and business_management. Add instagram_content_publish only if you want to publish. Paste the token into
INSTAGRAM_ACCESS_TOKEN. A long-lived user token from the Graph API Explorer also works, but has to be replaced every 60 days. - Set
INSTAGRAM_ACCOUNT_IDto the Instagram account id, a number starting with 1784 (not the username and not the Page id). Meta Business settings shows it under Accounts → Instagram accounts;instagram_list_linked_accountsreturns it asinstagram_business_account.id. - Call
instagram_get_accountfirst: it checks the setup and returns follower and media counts.
The publishing tools instagram_create_media_container and instagram_publish_media are installed switched off. API publishing is limited to 50 posts per 24 hours, hashtag search to 30 distinct hashtags in a rolling 7 days, and accounts below 100 followers return no demographic insights. Error 190 means the token expired or was revoked; error 10 or 200 means a permission is missing.
Step 2 — Install the adapter
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
Step 3 — Add the connector in Microsoft Copilot
Your server URL: in AnythingMCP, open MCP Servers → the server this connector is on, and copy its URL (
https://cloud.anythingmcp.com/mcp/…). Use it wherever this guide showsYOUR_SERVER_ID.
Microsoft Copilot uses MCP servers through agents built in Copilot Studio: you add AnythingMCP to an agent as a tool, then publish the agent to Microsoft 365 Copilot and Teams. Copilot Studio connects from Microsoft's cloud over Streamable HTTP, which AnythingMCP supports.
- In Copilot Studio, open your agent (or create one), go to Tools and choose Add a tool → New tool → Model Context Protocol.
- Enter a Server name (for example
AnythingMCP), a Server description that says what the connector does, and the Server URLhttps://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID. Copilot Studio uses the description to decide when to call the server. - Under authentication, choose API key, set Type to Header and the header name to
X-API-Key, then select Create. - In Add tool, choose Create a new connection, paste an MCP API key from AnythingMCP (MCP Servers → your server → API keys) and select Add to agent.
- Try it in the agent's Test pane: ask for something that needs the
Instagramtools. - Select Publish, then Channels → Microsoft 365 and Microsoft Teams, keep Make agent available in Microsoft Copilot selected and choose Add channel. See agent in Teams installs it for you; in Microsoft 365 Copilot, type @ and pick the agent.
Prefer per-user sign-in? Choose OAuth 2.0 → Dynamic discovery instead of an API key: each user then signs in to AnythingMCP the first time the agent calls it.
Self-hosting? Use your instance's public HTTPS address instead of https://cloud.anythingmcp.com. Copilot Studio connects from Microsoft's cloud, so localhost does not work.
Available tools
| 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
Which Copilot is this for? Microsoft 365 Copilot at work, through agents built in Copilot Studio. The Microsoft Copilot app for personal accounts has no option to add your own MCP server.
What do I need? A work account with access to Copilot Studio (a license or a trial) to build the agent. People who use it in Microsoft 365 Copilot or Teams need access to the agent: share it with them, or ask an admin to publish it to the organization. If your organization applies data policies to Power Platform connectors, they cover MCP servers too.
The agent doesn't call the tools. Check that the header name is exactly X-API-Key and that the key belongs to the same MCP server as the URL, and make the server description specific: Copilot Studio uses it to decide when to call the server. Publish the agent again after each change; in an open chat, type "start over" to get the new version.
Next steps
- Connector landing page
- Connect to Claude
- Connect to ChatGPT
- Connect to Cursor
- Connect to Gemini
- Connect to Meta Muse
Was this guide helpful?