Read, send, search & manage Instagram DMs through AI assistants. 15 tools, cookie auth.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Read, send, search, and manage Instagram Direct Messages through natural language with any MCP-compatible AI assistant.
A Model Context Protocol server that bridges Instagram Direct Messages with AI assistants like Claude, Cursor, and any MCP-compatible client.
Cookie-based authentication β no API keys, no OAuth, just works.
Getting Started Β· Features Β· Configuration Β· Tools Reference Β· Contributing
π‘ If you find this useful, please consider giving it a β β it helps others discover the project!
Get up and running in under 60 seconds:
1. Add to your MCP config (Claude Desktop, Claude Code, or Cursor):
2. Talk to your AI assistant:
"Read my Instagram DMs"
That's it β you're ready. π
Need help getting your cookies? See Configuration below.
15 tools across three categories β everything you need to manage your Instagram DMs:
| Tool | Description |
|---|---|
instagram_get_inbox | List recent DM conversations with unread/group/muted indicators |
instagram_get_thread | Get messages from a conversation (auto-paginates β fetch 500+ messages at once) |
instagram_get_pending | List pending DM requests waiting for your approval |
instagram_user_info | Get any user's profile: bio, followers, posts, verification |
instagram_thread_info | Thread metadata: participants, group info, mute/archive status |
| Tool | Description |
|---|---|
instagram_send_message | Send a text message in any thread |
instagram_send_link | Share a URL with optional caption |
instagram_create_thread | Start a new DM with one or multiple users |
instagram_like_message | React to any message with any emoji |
instagram_unsend_message | Unsend your own messages |
instagram_mark_seen | Mark a conversation as read |
instagram_approve_pending | Approve a pending DM request |
| Tool | Description |
|---|---|
instagram_search_inbox | Search conversations by username or name (scans all pages) |
instagram_search_messages | Find messages containing specific text within a thread |
instagram_search_users | Search Instagram users to start new conversations |
F12 β Application tab β Cookies β https://www.instagram.com| Cookie Name | Environment Variable | Description |
|---|---|---|
sessionid | INSTAGRAM_SESSION_ID | Your session token |
csrftoken | INSTAGRAM_CSRF_TOKEN | CSRF protection token |
ds_user_id | INSTAGRAM_DS_USER_ID | Your numeric user ID |
π‘ Tip: You can also run
node get-cookies.jsfor a guided walkthrough.
| Variable | Required | Default | Description |
|---|---|---|---|
INSTAGRAM_SESSION_ID | β | β | Your Instagram session cookie |
INSTAGRAM_CSRF_TOKEN | β | β | CSRF token from cookies |
INSTAGRAM_DS_USER_ID | β | β | Your numeric user ID |
INSTAGRAM_RATE_LIMIT_MS | β | 300 | Delay between paginated API requests (ms) |
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
Add to your project's .mcp.json:
Add to .cursor/mcp.json in your project:
Just talk naturally to your AI assistant:
| What you say | What happens |
|---|---|
| "Read my unread Instagram DMs" | Fetches inbox with unread indicators |
| "Send 'Hey!' to @username" | Finds the thread and sends the message |
| "Search my DMs for messages about 'meeting'" | Scans thread messages for the keyword |
| "Start a new conversation with @johndoe" | Creates a new thread and sends your message |
| "Show me pending DM requests and approve them" | Lists and approves pending requests |
| "What's @user's profile info?" | Fetches full profile details |
| "Get the last 200 messages with @friend" | Auto-paginates to fetch all messages |
| "React with π₯ to the last message" | Sends emoji reaction to any message |
| Tool | Description | Parameters |
|---|---|---|
instagram_get_inbox | List DM conversations | limit?, cursor? |
instagram_get_thread | Get thread messages (auto-paginates) | thread_id, limit?, cursor? |
instagram_get_pending | List pending requests | limit?, cursor? |
instagram_user_info | Get user profile | user_id |
instagram_thread_info | Get thread details | thread_id |
instagram_send_message | Send text message | thread_id, text |
instagram_send_link | Share a URL | thread_id, url, text? |
instagram_create_thread | Start new DM | recipient_ids[], text |
instagram_like_message | React with emoji | thread_id, item_id, emoji? |
instagram_unsend_message | Unsend a message | thread_id, item_id |
instagram_mark_seen | Mark as read | thread_id, item_id |
instagram_approve_pending | Approve request | thread_id |
instagram_search_inbox | Search conversations | query, max_pages? |
instagram_search_messages | Search within thread | thread_id, query, max_messages? |
instagram_search_users | Find users | query |
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/mcp-instagram-dm)<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>