Instagram Engagement MCP server

Enables detailed Instagram interaction analysis by processing comments, user profiles, and post metrics to extract demographic insights and identify potential marketing leads through a private API integration.
Back to servers
Provider
Braden Olmstead
Release date
Mar 09, 2025
Language
TypeScript
Package
Stats
718 downloads
11 stars

The Instagram Engagement MCP server provides powerful tools for analyzing Instagram engagement metrics, extracting demographic insights, and identifying potential leads from Instagram posts and accounts. It helps you gain valuable insights from social media data to inform your marketing strategies.

Installation Options

Via Smithery

For automatic installation through Smithery:

npx -y @smithery/cli install @Bob-lance/instagram-engagement-mcp --client claude

Via npm

npm install -g instagram-engagement-mcp

Via GitHub

git clone https://github.com/Bob-lance/instagram-engagement-mcp.git
cd instagram-engagement-mcp
npm install

Setup and Configuration

Environment Setup

  1. Create an environment file with your Instagram credentials:

    cp .env.example .env
    
  2. Edit the .env file to add your Instagram username and password

Building (If Installed from GitHub)

If you cloned the repository, build the project:

npm run build

MCP Configuration

Add the server to your MCP settings file:

{
  "mcpServers": {
    "instagram-engagement": {
      "command": "npx",
      "args": ["instagram-engagement-mcp"],
      "env": {
        "INSTAGRAM_USERNAME": "your_instagram_username",
        "INSTAGRAM_PASSWORD": "your_instagram_password"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}

For a cloned repository installation, use this configuration instead:

{
  "mcpServers": {
    "instagram-engagement": {
      "command": "node",
      "args": ["/path/to/instagram-engagement-mcp/build/index.js"],
      "env": {
        "INSTAGRAM_USERNAME": "your_instagram_username",
        "INSTAGRAM_PASSWORD": "your_instagram_password"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}

Available Tools

analyze_post_comments

Analyze comments on an Instagram post to identify sentiment, themes, and potential leads.

Parameters:

  • postUrl (required): URL of the Instagram post to analyze
  • maxComments (optional): Maximum number of comments to analyze (default: 100)

compare_accounts

Compare engagement metrics across different Instagram accounts.

Parameters:

  • accounts (required): List of Instagram account handles to compare
  • metrics (optional): Metrics to compare (default: all)

extract_demographics

Extract demographic insights from users engaged with a post or account.

Parameters:

  • accountOrPostUrl (required): Instagram account handle or post URL to analyze
  • sampleSize (optional): Number of users to sample for demographic analysis (default: 50)

identify_leads

Identify potential leads based on engagement patterns.

Parameters:

  • accountOrPostUrl (required): Instagram account handle or post URL to analyze
  • criteria (optional): Criteria for identifying leads

generate_engagement_report

Generate a comprehensive engagement report for an Instagram account.

Parameters:

  • account (required): Instagram account handle
  • startDate (optional): Start date for the report (YYYY-MM-DD)
  • endDate (optional): End date for the report (YYYY-MM-DD)

Usage Notes

  • This server uses the Instagram Private API, which is not officially supported by Instagram
  • Use responsibly and in accordance with Instagram's terms of service
  • Be mindful of rate limits to avoid being blocked by Instagram

How to add this MCP server to Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cursor-rules-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "cursor-rules-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later