I

Instagram Direct Messages

Enables reading and sending Instagram direct messages through a Python server that authenticates wit...

115 views
0 installs
Updated Oct 17, 2025
Not audited
Enables reading and sending Instagram direct messages through a Python server that authenticates with Instagram cookies and provides tools for retrieving recent conversations and sending new messages.
  1. Log in to Instagram using Chrome

  2. Open Chrome Developer Tools

    • Right-click anywhere on the Instagram page and select “Inspect” to open the Developer Tools panel.
  3. Find and Copy Cookie Values

    • In the Developer Tools window, click on the “Application” tab.
    • In the left sidebar, under “Storage”, click on “Cookies” and select the Instagram URL (e.g., https://www.instagram.com).
    • In the cookies table, find and copy the values for the following cookies:
      • sessionid
      • csrftoken
      • ds_user_id
  4. Add Environment Variables in FastMCP

    • Go to the FastMCP connection interface and locate the “Install Now” or environment variable entry section.
    • Fill in the values you copied as follows:
      • INSTAGRAM_SESSION_ID = (paste the value of sessionid)
      • INSTAGRAM_CSRF_TOKEN = (paste the value of csrftoken)
      • INSTAGRAM_DS_USER_ID = (paste the value of ds_user_id)
  5. Save and Complete Setup

    • Confirm and save the configuration. Your Instagram DM MCP server is now ready to use with FastMCP.

Quick Start

View on GitHub

More for Communication

View All →

Report Issue

Thank you! Your issue report has been submitted successfully.