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.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Instagram DMs MCPshow me my recent Instagram DMs"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
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
Tools
Tool | Description |
| See all your conversations |
| Read messages with someone |
| Send a message |
| React to their last message |
Example Flow
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 |