I

Instagram Direct Messages

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

288 views
0 installs
Updated Nov 22, 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.

How to Install Instagram Direct Messages

Install Instagram Direct Messages MCP server with one click through FastMCP. Choose your preferred AI development tool below:

Claude Desktop

Click "Claude Desktop" in Quick Start

Cursor IDE

Click "Cursor IDE" in Quick Start

VS Code

Click "VS Code" in Quick Start

Alternatives to Instagram Direct Messages

Looking for similar MCP servers? Browse other servers in the same categories on FastMCP, or check out the similar servers listed above.

Quick Start

View on GitHub

More for Communication

View All →

Report Issue

Thank you! Your issue report has been submitted successfully.

Stay ahead of the MCP ecosystem

Get the top new MCP servers, trending tools, and dev tips delivered weekly. Free, no spam, unsubscribe anytime.

Join 2,847 developers. We send one email per week.