Instagram DMs MCP
Enables reading and sending Instagram Direct Messages, including listing conversations, retrieving message history, sending messages to threads or users by username, adding emoji reactions, and searching for users.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Instagram DMs MCP
A Model Context Protocol (MCP) server that lets AI assistants read and send Instagram DMs.
Deployment
Option 1: One-Click Deploy (Render)
Click the "Deploy to Render" button above
Add your environment variables in Render dashboard:
IG_COOKIES- Your Instagram cookies as JSON (see below)POKE_API_KEY- Your Poke API key (optional, for DM notifications)
Your MCP server will be at
https://your-service.onrender.com/mcp
Option 2: Local Development
Related MCP server: Instagram DM MCP Server
Quick Start
1. Get Your Instagram Cookies
Go to instagram.com and log in
Open DevTools (F12) → Application tab → Cookies →
https://www.instagram.comCopy these values into your
.env:
Cookie | Env Variable |
|
|
|
|
|
|
|
|
|
|
|
|
2. Setup
git clone https://github.com/braindead-dev/instagram-dms-mcp.git
cd instagram-dms-mcp
# Build the gateway (requires Go 1.22+)
cd gateway && ./build.sh && cd ..
# Configure
cp env.example .env
# Edit .env with your cookies
# Run
pip install -r requirements.txt
python src/server.pyTools
Tool | Description |
| See all your conversations |
| Read messages with someone |
| Send a message |
| React to their last message |
Example Flow
User: "Check my Instagram DMs"
→ get_inbox()
User: "What did @johndoe say?"
→ get_conversation("johndoe")
User: "Reply with 'sounds good!'"
→ send_message("johndoe", "sounds good!")
User: "React with a heart"
→ react("johndoe", "❤️")Incoming DM Notifications (Poke)
To get notified when you receive new DMs:
Get your API key from poke.com/settings/advanced
Add to
.env:POKE_API_KEY=your_key_here
New DMs will be forwarded to Poke as: 📩 Instagram DM from @username: message
Behavior Settings
The MCP simulates natural behavior by default:
Setting | Default | Description |
|
| Show typing indicator before sending |
|
| Mark as read when opening conversation |
|
| Seconds to "type" before sending |
This server cannot be deployed
Maintenance
Related MCP Connectors
Instagram for AI agents: publish, read comments and DMs, insights, and engage from your account.
Read and search your Instagram, WhatsApp and LinkedIn DMs and prepare follow-ups you approve.
Instagram comment-to-DM automation for AI agents: keyword funnels, private replies, broadcasts.
Manage Instagram and Facebook automations, conversations, templates, and analytics with AI.
Related MCP Servers
- FlicenseNot gradedqualityAmaintenanceEnables sending, reading, and managing Instagram Direct Messages from your own account through Claude Desktop or Cursor, including sending text, photo, and video messages, listing and searching chats and threads, downloading media from messages, and looking up user profiles, followers, posts, and stories. It also supports marking messages as seen and checking pending inbox threads.-
- FlicenseNot gradedqualityAmaintenanceEnables sending Instagram Direct Messages (text, photos, and videos) and managing conversations from a connected Instagram account through tools that list and search chats, read messages, and download shared or uploaded media. It also supports user lookups, story/follower/post retrieval, and liking or marking messages as seen.-
- FlicenseNot gradedqualityAmaintenanceEnables users to send and manage Instagram Direct Messages, including text, photo, and video messages, and to browse chats, search threads, download media, mark messages seen, and retrieve user, story, follower, following, and post information through natural-language tools.-
- FlicenseNot gradedqualityAmaintenanceEnables sending Instagram Direct Messages and managing DM threads from a connected account, including text, photo, and video messages, listing chats and messages, downloading media, searching users/threads, and retrieving user, story, follower, and post information.-