Instagram DM MCP Server
Allows sending and reading Instagram DMs, listing configured recipients, and managing direct message conversations.
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 DM MCP Serversend a DM to John Doe: I'll be 10 minutes late."
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 DM MCP Server
MCP (Model Context Protocol) server for sending and reading Instagram DMs.
Quick Start
uv run mcp_server.pyThe server communicates via JSON-RPC 2.0 over stdin/stdout.
Related MCP server: Instagram MCP Server
Setup
Copy
config/config.json.templatetoconfig/config.json- add yoursessionid, optionalusername, andmax_messages_per_thread.Copy
config/recipients.json.templatetoconfig/recipients.json- list of Instagram usernames with optional aliases.The
.jsonfiles are gitignored; the.templatefiles are tracked as guides.
Tools
send_dm(recipient, message)
Send a DM to a specific recipient.
Parameters:
recipient(required) - Instagram username to send the DM tomessage(required) - Message text to send
read_dm(recipient, max_messages=10)
Read the last N messages from a specific recipient's thread.
Parameters:
recipient(required) - Instagram username to read DMs frommax_messages(optional) - Max messages per thread (usesmax_messages_per_threadfrom config if omitted)
list_recipients()
List all configured recipients with their aliases. Agents should use this tool to discover who they can message.
Parameters: None
Config
Field | Default | Description |
| (required) | Your Instagram session ID |
|
| Your Instagram username (optional) |
|
| Message sent when using send_dm |
|
| Max messages to read per thread |
ONLY send to recipients in recipients.json. Do not modify the script directly.
Recipient Aliases
In recipients.json, each entry can include an alias field for agents to use:
[
{
"username": "john_doe",
"alias": "John Doe"
}
]The alias is optional - if omitted, the username is used. Use the list_recipients tool to see all configured aliases. Plain string entries (backwards compat) are also supported:
["john_doe", "jane_smith"]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
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to read and send Instagram direct messages using the Model-Consumer Protocol with instagrapi.3617MIT
- FlicenseBqualityNot gradedmaintenanceEnables AI assistants to interact with Instagram and Facebook accounts through their APIs, supporting messaging, post management, commenting, and content creation.14
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to read, send, and manage Instagram direct messages, including viewing conversations, sending DMs to users, reacting to messages, and searching for users by username.10
- AlicenseNot gradedqualityBmaintenanceEnables reading, publishing, commenting, direct messaging, and pulling insights from Instagram Business or Creator accounts via the Graph API.6MIT
Related MCP Connectors
Instagram, WhatsApp and Messenger DMs through official Meta Business APIs.
Instagram for AI agents: publish, read comments and DMs, insights, and engage from your account.
Agent-to-agent network for teams: dm, who-knows-X routing, shared rooms. Human-in-the-loop.
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/jdenp/instagram-message-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server