MCP Instagram Dm logo

MCP Instagram Dm

Read, search, send, and manage Instagram Direct Messages from MCP-compatible AI clients using cookie authentication.

Install MCP Instagram Dm

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mcp-instagram-dm": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-instagram-dm"
      ],
      "env": {
        "INSTAGRAM_SESSION_ID": "YOUR_VALUE_HERE",
        "INSTAGRAM_CSRF_TOKEN": "YOUR_VALUE_HERE",
        "INSTAGRAM_DS_USER_ID": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y mcp-instagram-dm

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The mcp-instagram-dm MCP server connects MCP-compatible AI assistants to Instagram Direct Messages through cookie-based authentication. It provides 15 tools for reading inboxes and threads, sending messages and links, searching conversations, managing requests, and retrieving user or thread details. The server runs as a Node.js stdio process through npx, npm, or a source build. Reach for it when an assistant needs to inspect or manage Instagram DMs without an API key or OAuth setup.

Use cases

  • Read unread Instagram conversations
  • Search thread messages for a keyword
  • Send replies or links in existing threads
  • Approve pending DM requests
  • Look up Instagram users and profiles

Key features

  • Read inboxes, threads, and pending requests
  • Send text messages and links
  • Search conversations, messages, and users
  • Create threads and manage messages
  • Retrieve user profiles and thread metadata
  • Authenticate with Instagram cookies

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

17/22 checks healthy over the last 111d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 8d ago via OSV.dev · mcp-instagram-dm (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars4Stargazers on the source repository.
npm downloads387Package downloads in the last 30 days.
Last commit7mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

How MCP Instagram Dm works

What mcp-instagram-dm does

The mcp-instagram-dm MCP server exposes Instagram Direct Message operations as MCP tools for AI clients. It covers inbox reading, thread inspection, message retrieval, message sending, conversation search, user lookup, and several thread-management actions.

The 15 tools are divided into three practical areas:

  • Reading and monitoring: list inbox conversations, retrieve thread messages, inspect pending requests, look up a user profile, and view thread metadata.
  • Sending and managing: send text or links, create a conversation, react to a message with an emoji, unsend your own message, mark a thread as seen, and approve a pending request.
  • Searching: find conversations by username or name, search messages within a thread, and search Instagram users.

Thread retrieval supports pagination and can automatically request additional pages. Inbox and search operations also expose pagination-related options where applicable.

How it works

The mcp-instagram-dm MCP server runs locally as a Node.js process and communicates with the selected AI client through MCP. The documented launch methods use npx -y mcp-instagram-dm, a globally installed npm package, or a locally built dist/index.js entry point.

Authentication uses three values copied from an active Instagram browser session: the sessionid, csrftoken, and ds_user_id cookies. These are passed to the process as environment variables.

After configuration, requests can be expressed through the assistant in natural language. For example, a client can use the available tools to list unread conversations, locate a thread, search its messages, or send a reply. The tools themselves accept identifiers and operation-specific fields such as thread_id, user_id, message text, URLs, recipient IDs, and emoji values.

Setup and configuration

Node.js 18 or newer is required. The recommended installation is to add the package as an npx command in the MCP client configuration. Global npm installation and building from the GitHub source are also documented options.

Set these required variables:

  • INSTAGRAM_SESSION_ID: the Instagram session cookie.
  • INSTAGRAM_CSRF_TOKEN: the CSRF token cookie.
  • INSTAGRAM_DS_USER_ID: the numeric Instagram user ID.

INSTAGRAM_RATE_LIMIT_MS is optional and defaults to 300; it controls the delay between paginated API requests. The README provides configuration examples for Claude Desktop, Claude Code, and Cursor. Cookie values can be copied from Instagram in Chrome through Developer Tools, the Application tab, and the site’s cookie list. A repository script named get-cookies.js is also mentioned as a guided option.

Tools and capabilities

The mcp-instagram-dm MCP server includes tools for both read and write operations. Read operations can list conversations, show pending requests, retrieve profile data, inspect group or mute state, and fetch messages. Write operations can send text, share a URL with an optional caption, start a conversation with one or more recipients, react, unsend, mark seen, or approve a request.

Search tools cover inbox conversations, messages in a specific thread, and Instagram users. The documented thread tool can retrieve large message histories through automatic pagination.

Limitations and notes

Authentication depends on Instagram cookie values, so the required session data must be supplied to the MCP process and kept protected. Its documented runtime is Node.js 18 or newer, and the available operations are limited to the listed Instagram DM, profile, thread, and user-search tools.

The rate-delay setting applies to paginated API requests; it is not described as a general Instagram quota-management system. The repository documents stdio-style setup through client configuration rather than a hosted service endpoint.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MCP Instagram Dm

mcp-instagram-dm is an MCP server that connects AI assistants to Instagram Direct Messages using session cookies. Its main tools read inboxes and threads, send text or links, search conversations and messages, create threads, retrieve user and thread details, manage pending requests, react to messages, and unsend messages.

Install it with `npx -y mcp-instagram-dm`, install it globally with npm, or build it from the repository source. Add the command to your MCP client configuration and provide the three required Instagram environment variables.

It requires `INSTAGRAM_SESSION_ID`, `INSTAGRAM_CSRF_TOKEN`, and `INSTAGRAM_DS_USER_ID`. These correspond to the Instagram `sessionid`, `csrftoken`, and `ds_user_id` cookies. `INSTAGRAM_RATE_LIMIT_MS` is optional and defaults to 300 milliseconds.

Yes, mcp-instagram-dm works with Cursor through a `.cursor/mcp.json` configuration. The README also provides setup examples for Claude Desktop and Claude Code, and describes the server as compatible with MCP clients generally.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP Instagram Dm AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mcp-instagram-dm?style=directory)](https://allmcps.com/mcp/mcp-instagram-dm)
HTML Embed
<a href="https://allmcps.com/mcp/mcp-instagram-dm"><img src="https://allmcps.com/api/badge/mcp-instagram-dm?style=directory" alt="MCP Instagram Dm on AllMCPs" /></a>