Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

Instagram MCP server for analytics and insights. Get account overviews, posts, followers, following lists, post insights, and search for users, hashtags, or places.

README.md

Instagram MCP Server

A professional Model Context Protocol (MCP) server that provides a comprehensive toolkit for interacting with Instagram. This server enables LLMs (like Claude or Gemini) to manage accounts, analyze social graphs, discover content, and engage with the Instagram community directly from their interface.

🚀 Features

  • Full Account Control: Edit profile, manage privacy, and track activity.
  • Advanced Messaging: Read history, send text/media, and react to messages.
  • Content Creation: Support for Photos, Videos, Reels, and Carousel/Albums.
  • Deep Insights: Analyze post performance, followers, and engagement.
  • Social Graph: Smart comparison tools to find unfollowers and fans.
  • Discovery: Search by user, hashtag, or location.

📋 Prerequisites

  • Node.js: v18 or higher.
  • Instagram Account: Standard account credentials.

🛠 Installation

git clone https://github.com/your-repo/insta-mcp.git
cd insta-mcp
npm install
npm run build

⚙️ Configuration

The server supports flexible configuration via environment variables or a local JSON file.

Environment Variables

| Variable | Description | Default | |----------|-------------|---------| | INSTAGRAM_USERNAME | Your Instagram username | - | | INSTAGRAM_PASSWORD | Your Instagram password | - | | INSTA_DATA_DIR | Path to store sessions/credentials | ./data |

Method 1: .env File (Local Dev)

Create a .env in the root: ``env INSTAGRAM_USERNAME=your_user INSTAGRAM_PASSWORD=your_pass ``

Method 2: credentials.json

Copy the example and fill in your details: ``bash cp config/credentials.example.json data/credentials.json ``

---

🔧 Tools Catalog

Account & Activity

  • get_account_overview: Get profile stats (followers, following, bio).
  • get_activity: See notifications (likes, follows, etc.).
  • edit_profile: Update name, bio, website, and email.
  • block_user: Block a specific user.
  • set_privacy: Toggle between Private and Public account.

Social Graph

  • get_followers: List a user's followers.
  • get_following: List who a user follows.
  • compare_follow_lists: Detect "Unfollowers" or "Fans".
  • follow_user / unfollow_user: Manage friendships.

Media & Interaction

  • get_recent_posts: View latest posts for any user.
  • get_post_insights: Detailed stats (likes, comments, viewers).
  • upload_photo / upload_video / upload_reel: Post content.
  • upload_album: Post carousels with multiple items.
  • search_locations: Find locations for tagging.
  • like_post / add_comment / reply_to_comment: Engage with posts.

Direct Messaging (DM)

  • get_inbox: View recent message threads.
  • get_direct_messages: Fetch history for a specific thread.
  • send_direct_message: Send text to users or groups.
  • react_to_message: Add heart reactions to messages.
  • get_pending_requests: Manage DM requests.
  • mute_thread / leave_thread: Thread management.

Feeds & Discovery

  • search_instagram: Search for users, tags, or places.
  • get_timeline: Your main home feed.
  • get_discover: The explore page feed.
  • get_saved_posts: Your bookmarked collections.
  • get_liked_posts: History of your likes.
  • get_tag_feed: Recent posts for a hashtag.

Stories

  • get_stories: View active stories from your tray or a user.
  • get_highlights: Access a user's story highlights.

---

🖥 Usage with MCP Clients

Claude Desktop

Add the following to your claude_desktop_config.json:

{
  "mcpServers": {
    "instagram": {
      "command": "node",
      "args": ["/ABSOLUTE/PATH/TO/insta-mcp/dist/index.js"],
      "env": {
        "INSTAGRAM_USERNAME": "your_username",
        "INSTAGRAM_PASSWORD": "your_password"
      }
    }
  }
}

Development

To run in development mode with auto-reload: ``bash npm run format # Format code npm run dev # Build and start ``

⚠️ Security & Ethics

This project uses the instagram-private-api.

  • Rate Limiting: The server includes built-in throttling. Avoid aggressive automated requests.
  • Compliance: Adhere to Instagram's Terms of Service. Use for personal analytics and legitimate social management only.

📄 License

MIT

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Search servers.