Instagram MCP Server
This server connects your Instagram professional account to an AI agent via the official Meta Graph API, enabling analytics and account management across several areas:
Authentication & Setup
Build OAuth login URLs, exchange authorization codes, refresh long-lived tokens, and check authentication status
View supported OAuth scope presets (readOnly, analytics, fullStandard)
Account & Profile
Fetch authorized Instagram account metadata and resolve Instagram account IDs
List Facebook Pages connected to the token, including linked Instagram Business accounts
Media
List, retrieve details for, and rank media (posts, Reels, etc.) by engagement, likes, comments, or timestamp
Insights & Analytics
Retrieve account-level insights (followers, reach, impressions) with optional date ranges and breakdowns
Fetch performance insights for specific media objects
Comments
List comments on media objects and retrieve replies to specific comments
Advanced / Exploratory
Run custom read-only GET requests against the Meta Graph API for exploratory or unsupported endpoints
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Instagram MCP Server Top 5 posts this month by engagement"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Instagram MCP Starter — архив
Этот репозиторий переведён в архив. Актуальный поддерживаемый проект — meta-instagram-mcp.
Этот репозиторий и его история остаются доступными в архиве. Новые исправления и предложения направляйте в поддерживаемый проект по ссылке выше.
Available Tools
16 toolsmeta_auth_statusMeta Auth StatusARead-only
Show Meta Instagram MCP configuration and redacted token metadata.
Inputs: no named parameters.
meta_build_login_urlBuild Instagram Login URLBRead-only
Build an official Instagram Business Login OAuth URL for selected analytics permissions.
Inputs: scopes, forceReauth, scopePreset, enableFacebookLogin.
meta_exchange_codeExchange Instagram OAuth CodeA
Exchange an Instagram authorization code for a long-lived token and optionally save it outside the repo.
Inputs: code (required), save.
meta_get_account_infoGet Instagram Account InfoCRead-only
Fetch profile/account metadata for the authorized Instagram professional account.
Inputs: fields, userId, accessToken.
meta_get_comment_repliesGet Instagram Comment RepliesCRead-only
List replies for an Instagram comment when the authorized account has comment access.
Inputs: commentId (required), after, limit, before, +2 more.
meta_get_mediaGet Instagram MediaBRead-only
Fetch metadata for one Instagram media object.
Inputs: mediaId (required), fields, accessToken.
meta_get_post_insightsGet Instagram Media InsightsCRead-only
Fetch insights for a specific Instagram media object.
Inputs: mediaId (required), metric, period, metricType, +1 more.
meta_get_top_mediaRank Instagram MediaBRead-only
List and locally rank recent media by engagement, likes, comments, or timestamp.
Inputs: after, limit, before, sortBy, +2 more.
meta_get_user_insightsGet Instagram User InsightsCRead-only
Fetch account-level Instagram insights for the authorized account.
Inputs: since, until, metric, period, +5 more.
meta_list_commentsList Instagram CommentsBRead-only
List comments for a media object when the authorized account has comment access.
Inputs: mediaId (required), after, limit, before, +2 more.
meta_list_facebook_pagesList Facebook PagesBRead-only
List Facebook Pages available to the Facebook Login token and include connected Instagram Business accounts when present.
Inputs: after, limit, before, fields, +1 more.
meta_list_mediaList Instagram MediaCRead-only
List media objects for the authorized Instagram professional account.
Inputs: after, limit, before, fields, +2 more.
meta_raw_getMeta Raw GETARead-only
Run a read-only GET against an official Meta Instagram Graph relative path for exploratory endpoints.
Inputs: path (required), query, accessToken.
meta_refresh_tokenRefresh Instagram TokenC
Refresh the current long-lived Instagram token before it expires.
Inputs: save, accessToken.
meta_resolve_instagram_accountResolve Instagram AccountARead-only
Resolve and save an Instagram professional account id for later Graph API calls. Use pageId for Page-linked accounts or userId when Facebook Login granted direct Instagram access.
Inputs: save, pageId, userId, accessToken.
meta_scope_presetsMeta Scope PresetsARead-only
Show supported Instagram OAuth scope presets for this MCP.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 16 tools
Each tool has a clearly distinct purpose. Even tools like meta_list_comments and meta_get_comment_replies are differentiated by scope (all comments vs. replies to a specific comment).
All tools share the 'meta_' prefix and most follow a verb_noun pattern, but a few (meta_scope_presets, meta_auth_status) are noun phrases without a verb, slightly breaking consistency.
16 tools are well-scoped for an Instagram analytics MCP server, covering authentication, media, insights, and comments without being excessive or sparse.
The toolset covers core analytics workflows thoroughly, but lacks write operations (e.g., posting media or comments), which is acceptable for a read-oriented analytics server.
Maintenance
Related MCP Connectors
Meta Ads MCP server: run Facebook and Instagram campaigns, ad sets, ads and reports from AI.
Instagram MCP for DM and comment automation, AI Agent and content publishing via Meta's official API
Instagram for AI agents: publish, read comments and DMs, insights, and engage from your account.
Social media MCP server: your Instagram, TikTok, YouTube, LinkedIn and Threads history for your AI.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that integrates with Instagram's Graph API to enable AI-driven management of Instagram Business accounts. It provides tools for fetching profile data, publishing media, analyzing engagement metrics, and managing direct messages.206MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for organic Instagram analytics via the Meta Graph API, providing read-only tools for profiles, media, insights, audience, and optional publishing.GPL 3.0
- AlicenseNot gradedqualityCmaintenanceMCP server for Instagram Graph API integration, enabling AI applications to manage Instagram Business accounts: fetch profiles, media, insights, publish content, and handle DMs.MIT
- AlicenseNot gradedqualityDmaintenanceMCP server that enables AI agents to interact with Instagram DMs by managing sessions, sending messages, and configuring webhooks through the InstantGram API.1MIT