# instagram-mcp [Health: Active]

**Category:** 🌐 Social Media  
**Repository:** https://github.com/mcpware/instagram-mcp  
**GitHub Stars:** 90  
**npm Downloads (last month):** 818  
**Views:** 5  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/instagram-mcp-2

## Description
Instagram MCP — 23 tools for Instagram Graph API: posts, DMs, stories, reels, analytics.

## Tools
Capabilities this server exposes over MCP:

- **get_profile_info** — Get profile info (bio, followers, media count)
- **get_account_pages** — List connected Facebook pages
- **get_account_insights** — Account-level analytics (reach, profile views)
- **validate_access_token** — Check if token is valid
- **get_media_posts** — Get recent posts with engagement metrics
- **get_media_insights** — Detailed analytics for a specific post
- **publish_media** — Publish image or video
- **publish_carousel** — Publish carousel (2-10 images/videos)
- **publish_reel** — Publish a Reel
- **get_content_publishing_limit** — Check daily publishing quota
- **get_comments** — Get comments on a post
- **post_comment** — Post a comment
- **reply_to_comment** — Reply to a comment
- **delete_comment** — Delete a comment
- **hide_comment** — Hide/unhide a comment
- **get_conversations** — List DM conversations
- **get_conversation_messages** — Read messages in a conversation
- **send_dm** — Send a direct message
- **search_hashtag** — Search for a hashtag ID
- **get_hashtag_media** — Get top/recent media for a hashtag
- **get_stories** — Get current active stories
- **get_mentions** — Get posts you're tagged in
- **business_discovery** — Look up another business account

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "instagram-mcp": {
    "command": "npx",
    "args": ["-y","@mcpware/claude-code-organizer"],
    "env": {
      "FACEBOOK_APP_ID": "",
      "FACEBOOK_APP_SECRET": "",
      "INSTAGRAM_ACCESS_TOKEN": "",
      "INSTAGRAM_BUSINESS_ACCOUNT_ID": ""
    }
  }
}
```

**Requires environment variables:** `FACEBOOK_APP_ID`, `FACEBOOK_APP_SECRET`, `INSTAGRAM_ACCESS_TOKEN`, `INSTAGRAM_BUSINESS_ACCOUNT_ID` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What instagram-mcp does

The instagram-mcp MCP server gives AI applications access to Instagram Business account operations through the Instagram Graph API. It covers account information, connected Facebook Pages, account and post analytics, content publishing, comments, stories, mentions, hashtags, and business-account lookup.

The server also exposes Instagram direct-message operations: listing conversations, reading conversation messages, and sending DMs. These features depend on the `instagram_manage_messages` permission and Meta Advanced Access approval.

In addition to model-controlled tools, the project documents application-controlled resources for profile data, a media feed, and insights data. It also includes user-controlled prompts for engagement analysis, content strategy, and hashtag analysis.

## How it works

An MCP client calls the server's tools, which use credentials for an Instagram Business account connected to a Facebook Page. The account must be associated with a Facebook Developer app and an access token with the permissions required by the requested operation.

Available operations include reading profile and media information, checking token validity, reviewing publishing limits, publishing single media items, publishing carousels of two to ten items, and publishing Reels. Engagement workflows can retrieve, create, reply to, delete, or hide comments. Discovery tools can search hashtag IDs, retrieve hashtag media, inspect active stories, find mentions, and look up another business account.

## Setup and configuration

The instagram-mcp MCP server requires an Instagram Business account connected to a Facebook Page, a Facebook Developer account, and a long-lived access token. Python 3.10 or newer is required by the MCP dependencies.

Set these values in the environment before starting the server:

- `FACEBOOK_APP_ID`: Facebook app identifier.
- `FACEBOOK_APP_SECRET`: Facebook app secret.
- `INSTAGRAM_ACCESS_TOKEN`: Long-lived Instagram access token.
- `INSTAGRAM_BUSINESS_ACCOUNT_ID`: Instagram Business account ID.

The documented configuration also supports `INSTAGRAM_API_VERSION`, `RATE_LIMIT_REQUESTS_PER_HOUR`, `CACHE_ENABLED`, and `LOG_LEVEL`. The README recommends keeping secrets out of source control, using secure secret management, rotating tokens, and monitoring expiration. Long-lived tokens expire after 60 days, so token validity and refresh handling need to be part of an operational setup.

The listed standard permissions cover profile access, content publishing, insights, comments, Page access, and related account operations. Direct messaging requires the separate `instagram_manage_messages` permission and Meta App Review approval.

## Tools and capabilities

The 23 tools include:

- Profile, connected Page, token validation, account-insights, and publishing-limit checks.
- Recent media retrieval and per-post insights.
- Image or video publishing, carousel publishing, and Reel publishing.
- Comment retrieval, posting, replies, deletion, and hide/unhide actions.
- Conversation listing, message retrieval, and DM sending.
- Hashtag search and hashtag-media retrieval.
- Active-story retrieval, mention lookup, and business discovery.

For a Social Media workflow, this makes the server suitable for combining content operations with account measurement and audience interaction, provided the connected account and token have the necessary permissions.

_Full upstream README: https://allmcps.com/mcp/instagram-mcp-2/readme_

