Instagram MCP

v1.0.0Communicationstable

A production-ready Model Context Protocol (MCP) server that enables AI applications to seamlessly interact with Instagram Business accounts.

facebookinstagrammcpmcp-server
Share:
129
Stars
0
Downloads
0
Weekly
0/5

What is Instagram MCP?

Instagram MCP is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to production-ready model context protocol (mcp) server that enables ai applications to seamlessly interact with instagram business accounts.

A production-ready Model Context Protocol (MCP) server that enables AI applications to seamlessly interact with Instagram Business accounts.

This server falls under the Communication category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • A production-ready Model Context Protocol (MCP) server that

Use Cases

Manage Instagram Business accounts through AI assistants.
Access profile data and engagement metrics via Graph API.
jlbadano

Maintainer

LicenseMIT
Languagepython
Versionv1.0.0
UpdatedMay 20, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx ig

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Instagram MCP

The Instagram MCP Server is a production-ready Model Context Protocol server that connects AI assistants to Instagram Business accounts via the Meta Graph API. It allows you to retrieve profile data, fetch post engagement metrics, upload media, manage direct messages, and analyze content performance—all through natural language requests. This is ideal for social media managers and developers who want to automate Instagram workflows or build AI-powered content analytics tools.

Prerequisites

  • Python 3.9 or higher installed
  • An Instagram Business account connected to a Facebook Page
  • Meta App with Instagram Graph API access (App ID and App Secret)
  • A long-lived Instagram Access Token and your Instagram Business Account ID
  • An MCP-compatible client such as Claude Desktop
1

Clone the repository

Clone the ig-mcp repository from GitHub and navigate into the project directory.

git clone https://github.com/jlbadano/ig-mcp.git
cd ig-mcp
2

Install Python dependencies

Install all required Python packages listed in requirements.txt.

pip install -r requirements.txt
3

Configure environment variables

Copy the example environment file and fill in your Meta App credentials and Instagram account details.

cp .env.example .env
4

Set required credentials in .env

Open .env and set the four required variables: your long-lived access token, Facebook App ID and Secret, and your Instagram Business Account ID. Optionally set INSTAGRAM_API_VERSION (default v19.0), RATE_LIMIT_REQUESTS_PER_HOUR, CACHE_ENABLED, and LOG_LEVEL.

INSTAGRAM_ACCESS_TOKEN=your_long_lived_token
FACEBOOK_APP_ID=your_app_id
FACEBOOK_APP_SECRET=your_app_secret
INSTAGRAM_BUSINESS_ACCOUNT_ID=your_account_id
5

Configure your MCP client

Add the server to your MCP client configuration. The server runs as a Python script using stdio transport.

6

Start using the server

With the configuration in place, restart your MCP client and begin interacting with your Instagram Business account through the AI assistant.

Instagram MCP Examples

Client configuration

Add this to your claude_desktop_config.json to connect Claude Desktop to the Instagram MCP server.

{
  "mcpServers": {
    "instagram": {
      "command": "python",
      "args": ["/path/to/ig-mcp/server.py"],
      "env": {
        "INSTAGRAM_ACCESS_TOKEN": "your_long_lived_token",
        "FACEBOOK_APP_ID": "your_app_id",
        "FACEBOOK_APP_SECRET": "your_app_secret",
        "INSTAGRAM_BUSINESS_ACCOUNT_ID": "your_account_id"
      }
    }
  }
}

Prompts to try

Example prompts you can use with Claude after connecting the Instagram MCP server.

- "Get my Instagram profile information and follower count"
- "Show me my last 5 Instagram posts and their engagement metrics"
- "What are the engagement rates on my recent posts?"
- "Upload this image to my Instagram account with the caption 'New product launch!'"
- "List all my connected Facebook pages"

Troubleshooting Instagram MCP

Access token errors or 'OAuthException' responses

Instagram access tokens expire. Generate a new long-lived token through the Meta Developer portal (valid for 60 days) and update INSTAGRAM_ACCESS_TOKEN in your .env file. Short-lived tokens last only 1 hour.

DM tools return 'Advanced Access required' error

Reading and replying to direct messages requires Advanced Access on your Meta App, which requires a business verification process with Meta. Basic Access only allows profile and post data retrieval.

Rate limit errors when fetching data

The Meta Graph API enforces rate limits per token. Set RATE_LIMIT_REQUESTS_PER_HOUR in .env to a conservative value (e.g., 100) and enable CACHE_ENABLED=true to reduce redundant API calls.

Frequently Asked Questions about Instagram MCP

What is Instagram MCP?

Instagram MCP is a Model Context Protocol (MCP) server that production-ready model context protocol (mcp) server that enables ai applications to seamlessly interact with instagram business accounts. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Instagram MCP?

Follow the installation instructions on the Instagram MCP GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Instagram MCP?

Instagram MCP works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Instagram MCP free to use?

Yes, Instagram MCP is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Communication MCP Servers

Explore all communication servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "ig": { "command": "npx", "args": ["-y", "ig"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Instagram MCP?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides