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.
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
Related MCP server: Instagram 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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-quality-maintenanceEnables sending and receiving Instagram Direct Messages, managing conversations, downloading media, viewing user profiles and stories, and interacting with posts through natural language in Claude.Last updated
- FlicenseBquality-maintenanceEnables AI assistants to interact with Instagram and Facebook accounts through their APIs, supporting messaging, post management, commenting, and content creation.Last updated14
- Flicense-qualityDmaintenanceEnables AI assistants to manage Instagram Business accounts by automating content publishing, scheduling posts, and analyzing performance metrics. Supports posts, stories, reels, and carousels with detailed audience insights and hashtag discovery.Last updated
- AlicenseAqualityAmaintenanceEnables AI assistants to manage Instagram and Threads accounts — publish content, handle comments, view insights, search hashtags, and manage DMs through the Meta Graph API.Last updated594810MIT
Related MCP Connectors
Let AI tools securely access your LinkedIn network and DMs
Give AI agents the LinkedIn tools to find, qualify, engage, and follow up with prospects.
Boost posts and launch community growth campaigns from your AI assistant. OAuth, credit-billed.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/braindead-dev/instagram-dms-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server