# instagram-mcp [Health: Active]

**Category:** 🌐 Social Media  
**Repository:** https://github.com/adelaidasofia/instagram-mcp  
**GitHub Stars:** 22  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/instagram-mcp

## Description
Official, multi-account Instagram Graph API MCP: read, publish, analytics, comments, DMs.

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

```json
"mcpServers": {
  "instagram-mcp": {
    "command": "uvx",
    "args": ["adelaidasofia-instagram-mcp"],
    "env": {
      "INSTAGRAM_MCP_ACCESS_TOKEN": "",
      "INSTAGRAM_MCP_IG_USER_ID": ""
    }
  }
}
```

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

## Documentation

## What the instagram-mcp MCP server does

The instagram-mcp MCP server exposes Instagram's official Graph API through MCP tools. It supports Instagram Professional accounts—Business or Creator—that are connected to a Facebook Page. Personal accounts are not supported by the Graph API.

The server covers account selection, profile and media retrieval, publishing, analytics, comment moderation, and discovery. It can work with one configured account or multiple accounts whose credentials are stored separately. Direct-message tools are included, but they depend on Meta approval and are disabled unless the required permission and setting are present.

## How it works

The server runs locally as a Python 3.10+ stdio process using FastMCP. An MCP client starts the installed `instagram-mcp` command, which then sends Graph API requests to Meta. A single-account setup can provide an access token and Instagram Business Account ID through environment variables. Alternatively, accounts can be added at runtime and selected by label.

Publishing tools require the image or video to be available at a public HTTPS URL. Instagram retrieves the media from that URL. Video and Reel publishing is asynchronous; the server checks container status and waits for processing before completing the publication request.

Requests are limited to Meta hosts, and URL handling includes checks against private, loopback, link-local, CGNAT, and cloud-metadata addresses. Inputs are validated before Graph API calls. Returned results and errors are scrubbed for access tokens, bearer headers, app secrets, and API keys. Calls also produce JSONL audit entries containing execution time, I/O, token usage, and error classification.

## Setup and configuration

Install from PyPI with `pip install adelaidasofia-instagram-mcp`, or install the package from a source checkout. Configure an MCP client to run `instagram-mcp` and provide `INSTAGRAM_MCP_ACCESS_TOKEN` and `INSTAGRAM_MCP_IG_USER_ID` for the zero-configuration single-account path. A source installation can use `.venv/bin/instagram-mcp` or `python -m instagram_mcp.server`.

The access token must be long-lived and include `instagram_basic`, `instagram_content_publish`, `instagram_manage_comments`, and `instagram_manage_insights`. The Instagram account also needs to be connected to a Facebook Page. Runtime account registration stores tokens in the macOS keychain or, on other platforms, a file protected with mode 600; tokens are not returned by tools.

Direct messages require Meta's `instagram_manage_messages` permission, App Review approval, and `INSTAGRAM_MCP_DM_ENABLED=1`. Instagram's standard 24-hour messaging window still applies.

## Tools and capabilities

The instagram-mcp MCP server provides 29 tools grouped into these areas:

- Account health and management: `healthcheck`, `list_accounts`, `add_account`, `set_default_account`, `remove_account`, and `account_info`.
- Profiles and media: `get_profile`, `list_media`, and `get_media`.
- Insights: account reach, impressions, profile views, followers, post reach, saves, shares, interactions, and audience demographics.
- Publishing: images, videos, Reels, carousels of 2–10 images, Stories, and the remaining 24-hour publishing quota.
- Comments: reading, replying, hiding, and deleting comments.
- Discovery: hashtag search, hashtag media, mentions, and public Professional-account lookup by username.
- Direct messages: conversations, messages, and sending messages when the Meta permission is approved.

## Limitations and notes

The instagram-mcp MCP server cannot use personal Instagram accounts or private username-and-password APIs. Publishing cannot accept local-only media because Instagram must fetch the content from the open web. Direct messages are not generally available immediately: App Review can take weeks, and the tools fail with an instruction when the required permission is absent. Meta's API permissions, account requirements, and messaging rules therefore determine which operations are available.

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

