MCP Catalogs
Home

instagram_dm_mcp

by trypeggy·167·Score 45

Instagram DM MCP server enabling direct messaging, media sharing, and user interaction through Instagram's API.

communicationmediasocial-media
32
Forks
2
Open issues
9 mo ago
Last commit
2d ago
Indexed

Overview

This is a fully-featured MCP server that bridges Instagram's messaging capabilities with AI assistants. It provides comprehensive functionality for sending messages (text, photos, videos), managing chats, accessing user information, and handling media content. The server includes automatic session management to maintain authentication state and offers both environment variable and command-line credential options.

Try asking AI

After installing, here are 5 things you can ask your AI assistant:

you:Automate Instagram DM interactions for customer service or marketing
you:Integrate Instagram messaging into AI-powered workflows
you:Download and analyze Instagram DM media and conversations
you:Does this support Instagram Business accounts?
you:Can I use this with AI assistants other than Claude?

When to choose this

Choose this MCP server if you need to programmatically interact with Instagram DMs from an AI agent, especially for social media management, customer support automation, or content archiving purposes.

When NOT to choose this

Don't choose this if you need access to Instagram's API for commercial applications without reverse engineering, as this server bypasses official API and may violate Instagram's terms of service.

Tools this server exposes

12 tools extracted from the README
  • send_message

    Send an Instagram direct message to a user by username.

  • send_photo_message

    Send a photo as an Instagram direct message to a user by username.

  • send_video_message

    Send a video as an Instagram direct message to a user by username.

  • list_chats

    Get Instagram Direct Message threads from your account.

  • list_messages

    Get messages from a specific Instagram DM thread by thread ID.

  • download_media_from_message

    Download direct-uploaded photo or video from a DM message.

  • mark_message_seen

    Mark a specific message in an Instagram DM thread as seen.

  • search_threads

    Search Instagram DM threads by username or keyword.

  • get_user_info

    Get information about a specific Instagram user by username.

  • get_user_id_from_username

    Get the Instagram user ID for a given username.

  • search_users

    Search for Instagram users by username.

  • get_user_posts

    Get recent posts from a specific Instagram user by username.

Comparable tools

instagrapifacebook-graph-api-mcpsocial-media-bot

Installation

Installation

  1. Clone the repository:
git clone https://github.com/trypeggy/instagram_dm_mcp.git
cd instagram_dm_mcp
  1. Install dependencies using uv:
uv sync

or with pip:

pip install -r requirements.txt
  1. Configure Instagram credentials using the helper script:
python setup_env.py
  1. For Claude Desktop, add to claude_desktop_config.json:
{
  "mcpServers": {
    "instagram_dms": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "PATH/TO/instagram_dm_mcp",
        "python",
        "src/mcp_server.py"
      ]
    }
  }
}
  1. Restart Claude Desktop / Cursor.

FAQ

Does this support Instagram Business accounts?
The README doesn't specify differences between personal and business accounts, so both should work as long as you have valid credentials.
Can I use this with AI assistants other than Claude?
While the example shows Claude Desktop integration, this should work with any MCP-compatible client that can connect to Python-based servers.

Compare instagram_dm_mcp with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.