Instagram MCP logo

Instagram MCP

Official Instagram Graph API access for reading, publishing, analytics, comments, discovery, and approved direct messaging.

Install Instagram MCP

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "instagram-mcp": {
      "command": "uvx",
      "args": [
        "adelaidasofia-instagram-mcp"
      ],
      "env": {
        "INSTAGRAM_MCP_ACCESS_TOKEN": "YOUR_VALUE_HERE",
        "INSTAGRAM_MCP_IG_USER_ID": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx adelaidasofia-instagram-mcp

Process exited before answering initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The instagram-mcp MCP server connects MCP clients to Instagram's official Graph API for Professional Business and Creator accounts. It provides tools for profiles, media, publishing, insights, comments, hashtag discovery, mentions, and business discovery across one or more accounts. Publishing uses public HTTPS media URLs, while video and Reel uploads are processed until completion before publication. Use it when you need account management through Meta's supported API rather than private or reverse-engineered Instagram endpoints.

Use cases

  • Publish images, videos, Reels, carousels, and Stories to Professional accounts
  • Retrieve account, post, and audience insights
  • Moderate Instagram comments with replies, hiding, and deletion
  • Manage several Instagram accounts from one MCP process
  • Search hashtags and inspect public Professional accounts

Key features

  • Official Instagram Graph API access
  • Multi-account token management
  • Media publishing and quota checks
  • Account, media, and audience insights
  • Comment moderation and discovery tools
  • Review-gated direct messaging

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

24/28 checks healthy over the last 111d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 11d ago via OSV.dev · adelaidasofia-instagram-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars22Stargazers on the source repository.
Last commit12d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Instagram MCP works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Instagram MCP

instagram-mcp is an MCP server that connects MCP clients to Instagram’s official Graph API for Business and Creator accounts. Its main tools cover profiles, media, publishing, account and post insights, comments, hashtag discovery, mentions, public Professional-account lookup, multi-account management, and review-gated direct messages.

Install it from PyPI with `pip install adelaidasofia-instagram-mcp`, then configure your MCP client to run `instagram-mcp`. Source installation is also supported through a virtual environment and editable package install.

It supports Instagram Professional accounts classified as Business or Creator and connected to a Facebook Page. Personal Instagram accounts cannot use the Graph API required by this tool.

The standard setup needs a long-lived token with `instagram_basic`, `instagram_content_publish`, `instagram_manage_comments`, and `instagram_manage_insights`. Direct messages additionally require `instagram_manage_messages`, Meta App Review approval, and the DM feature flag.

No. Publishing tools require public HTTPS media URLs because Instagram fetches the image or video itself. URLs hosted on an open S3, Cloudflare, CDN, or equivalent endpoint can be used.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewInstagram MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/instagram-mcp?style=directory)](https://allmcps.com/mcp/instagram-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/instagram-mcp"><img src="https://allmcps.com/api/badge/instagram-mcp?style=directory" alt="Instagram MCP on AllMCPs" /></a>