Instagram MCP Server

Instagram MCP Server

instagram-mcp-drashrafsaiyed-cyber•bydrashrafsaiyed-cyber

An MCP server that lets Claude control an Instagram Business or Creator account, including publishing posts and reels, reading insights, managing comments and handling DMs.

License: MIT•Runtime: Awaiting documentation review•Category: communication social

WHAT IT DOES

  • •Publishes photos, Reels and carousels to Instagram with captions and hashtags.
  • •Reads account and per-post insights such as reach, saves, views and follower growth.
  • •Manages comments by reading, replying to, hiding and deleting them, and can like media and comments.
  • •Handles Instagram DMs by listing conversations, reading messages and sending replies within messaging windows.

BEST FOR

  • •Content creators reviewing recent post performance and engagement trends.
  • •Small businesses handling customer service DMs and publishing product posts.
  • •Professionals replying to comments and tracking follower growth.

ABOUT INSTAGRAM-MCP-DRASHRAFSAIYED-CYBER

Instagram MCP Server is cataloged as an MCP server attributed to drashrafsaiyed-cyber. An MCP server that lets Claude control an Instagram Business or Creator account, including publishing posts and reels, reading insights, managing comments and handling DMs. It is categorized under communication social. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Instagram MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Which Instagram account types can this server work with?

It requires an Instagram Business or Creator account and a Meta Developer app with the Instagram content and messaging use case.

Where must images and videos be hosted for publishing?

Media must be available at a public HTTPS URL because Instagram fetches the content from that URL; local file paths will not work.

Can one Claude setup control multiple Instagram accounts?

Yes, running the same server folder multiple times with different environment variables exposes each account as a separate named MCP server.

Upstream README

View this exact version on GitHub

README.md · 1b6ce3337f95 · Fetched 2026-11-13 12:53:44 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

📸 Instagram MCP Server

Control your Instagram from Claude — post, analyze, reply to DMs, manage comments. All by chatting.

License: MIT Python 3.11+ MCP Deploy to Render


🎬 Demo GIF coming soon — Claude posting a reel, reading insights, replying to comments live on screen.


What You Can Do

Ask Claude in plain English. It handles the API.

"Show my last 10 posts and which got the most reach"
"Post this image with caption: Monday motivation 💪 #AI #Health"
"Read my DMs from today and draft replies for the questions"
"Hide all spam comments on my latest reel"
"What are my account insights for this week?"
"Which of my reels got the best watch time?"

Use Cases

📊 Content Creator

  • Morning briefing: "Show yesterday's post performance — reach, saves, shares"
  • Strategy: "Compare my last 5 reels by reach and tell me what worked"
  • Scheduling prep: "Draft 3 caption options for this fitness post"

🏥 Doctor / Professional

  • Engagement: "Reply to all comments on my last post professionally"
  • Growth tracking: "How many followers did I gain this week?"
  • Content audit: "List all posts from this month with their engagement rates"

🛍️ Small Business

  • Customer service: "Show DMs from the last 24 hours and reply to order questions"
  • Publishing: "Post this product photo with this caption and these hashtags"
  • Analytics: "Which post type (reel/carousel/photo) gets me the most reach?"

Tools (14 total)

CategoryToolWhat it does
Accountget_account_infoFollowers, bio, post count
update_profileUpdate bio text and/or website URL
list_recent_mediaLast N posts with engagement stats
get_account_insightsReach, profile views, follower growth
Insightsget_media_insightsPer-post reach, saves, views, interactions
Publishingpublish_photoPost a photo with caption + hashtags
publish_reelPost a Reel (video)
publish_carouselPost 2–10 images as carousel
Commentsget_commentsRead all comments on a post
reply_to_commentReply to a comment
hide_commentHide spam/unwanted comments
delete_commentPermanently delete a comment
Engagementlike_mediaLike a post or reel
unlike_mediaUnlike a post or reel
like_commentLike a comment
Contentdelete_postPermanently delete a post
Hashtagssearch_hashtagSearch public posts by hashtag
Eventslist_eventsList upcoming events
create_eventCreate a new event (health camps, workshops)
Adsget_ad_accountsList linked ad accounts
get_ad_insightsGet ad spend, reach, CTR
DMslist_conversationsList active DM threads
get_messagesRead messages in a thread
send_dmReply to a DM (24h window)
send_human_agent_dmReply within 7-day Human Agent window

Quick Start

1. Deploy your server (free, 2 min):

Deploy to Render

Fill in META_ACCESS_TOKEN and IG_USER_ID when prompted. (How to get these ↓)

2. Connect to Claude web:

  • claude.ai → Settings → Integrations → Add Integration
  • Paste: https://your-app-name.onrender.com/mcp

3. Done. Open a new chat and try: "Show my recent Instagram posts"


Option B — Claude Desktop (Local)

git clone https://github.com/drashrafsaiyed-cyber/instagram-mcp
cd instagram-mcp
uv sync
cp .env.example .env
# Fill .env with your token and user ID
uv run server.py

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "instagram": {
      "command": "uv",
      "args": ["--directory", "/path/to/instagram-mcp", "run", "server.py"],
      "env": {
        "META_ACCESS_TOKEN": "your_token",
        "IG_USER_ID": "your_ig_user_id",
        "ACCOUNT_NAME": "My Instagram"
      }
    }
  }
}

Option C — Multiple Instagram Accounts (Claude Desktop)

Run the same server folder multiple times with different env vars. Claude sees each as a separate named MCP and never confuses them.

{
  "mcpServers": {
    "instagram-personal": {
      "command": "uv",
      "args": ["--directory", "/path/to/instagram-mcp", "run", "server.py"],
      "env": {
        "META_ACCESS_TOKEN": "TOKEN_FOR_ACCOUNT_1",
        "IG_USER_ID": "IG_USER_ID_1",
        "ACCOUNT_NAME": "Personal"
      }
    },
    "instagram-business": {
      "command": "uv",
      "args": ["--directory", "/path/to/instagram-mcp", "run", "server.py"],
      "env": {
        "META_ACCESS_TOKEN": "TOKEN_FOR_ACCOUNT_2",
        "IG_USER_ID": "IG_USER_ID_2",
        "ACCOUNT_NAME": "My Business"
      }
    }
  }
}

Claude will show separate tools per account — "Post this to My Business" picks the right one automatically.

Each account must be a Business or Creator Instagram account, and must be added as a tester in your Meta app → Use cases → Step 2: Generate access tokens → Add account.


Getting Your Token

This server uses the Instagram Login API (graph.instagram.com) — the modern Meta approach for Instagram Business/Creator accounts.

Step 1 — Create or open your Meta app

  1. Go to developers.facebook.com → My Apps
  2. Create a new app or open an existing one
  3. Add use case: "Manage messaging & content on Instagram"

Step 2 — Generate your access token

  1. Use cases → Customize → API Setup with Instagram Login
  2. Step 2: Generate access tokens → click Generate next to your account
  3. Copy the token → this is your META_ACCESS_TOKEN
  4. Your numeric IG User ID is shown below your username on the same page

Step 3 — Refresh before expiry (60 days)

curl "https://graph.instagram.com/refresh_access_token?grant_type=ig_refresh_token&access_token=YOUR_TOKEN"

Or just run this in your project folder:

uv run python -c "
import httpx, re
from pathlib import Path
env = Path('.env').read_text()
token = re.search(r'META_ACCESS_TOKEN=(.+)', env).group(1).strip()
r = httpx.get('https://graph.instagram.com/refresh_access_token', params={'grant_type':'ig_refresh_token','access_token':token})
new = r.json()['access_token']
Path('.env').write_text(env.replace(token, new))
print('Refreshed. Expires in:', r.json()['expires_in']//86400, 'days')
"

Requirements

  • Instagram Business or Creator account
  • Meta Developer app with "Manage messaging & content on Instagram" use case
  • Python 3.11+

Publishing note: Images and videos must be at a public HTTPS URL — Instagram fetches from your URL. Use Cloudinary (free), S3, or a public GitHub raw URL. Local file paths won't work.


Architecture

Claude (Web/Desktop)
      │  MCP protocol
      ▼
instagram-mcp server  (FastMCP 3.x, streamable-http or stdio)
      │  HTTPS REST
      ▼
graph.instagram.com   (Instagram Login API v21.0)
      │
      ▼
Your Instagram account

Why graph.instagram.com and not graph.facebook.com? This server uses the newer Instagram Login API which issues IGAA... tokens and routes through graph.instagram.com. The older Facebook Graph API approach required a linked Facebook Page and EAA... tokens. The new flow is simpler — just your Instagram account, no Facebook Page needed.


Troubleshooting

ErrorFix
Cannot parse access tokenToken expired or wrong type. Regenerate via the steps above.
code 100 on insightsInvalid metric name. Metrics differ between account vs media endpoints.
code 190Token expired. Run the refresh command.
Container processing failedVideo too long (>90s), wrong codec, or URL returns 404 after first fetch.
Empty DM listNo active 24h messaging window. Someone needs to DM you first.
Claude doesn't see toolsRestart Claude Desktop fully (tray icon → Quit). Check logs at %APPDATA%\Claude\logs\.

Contributing

PRs welcome. If you add a new tool or fix a metric name mismatch, please:

  1. Test against a real Instagram account
  2. Update the tool table in this README
  3. Note which API permission the new tool requires

License

MIT — free to use, fork, and deploy commercially.


Built with FastMCP · Powered by Instagram Graph API

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Instagram MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/instagram-mcp-drashrafsaiyed-cyber)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related communication social MCP Servers

Alternative and complementary servers in the same category

View all in communication social →

An AI receptionist platform with an MCP server for accessing business calls, contacts and appointments from AI assistants.

52
Communication

Pidgeon provides an MCP server and an email inbox API that gives AI agents their own addresses for sending, awaiting, and replying to email.

Repository stats unavailable
Communication