MCP server
by taskmaster-ai
Access and manage your Instagram Direct Messages with a Python server. Send, read, and retrieve conversations easily usi
Enables AI assistants to read your Instagram direct messages and send new DMs by authenticating with your Instagram cookies.
Instagram Direct Messages is a community-built MCP server published by taskmaster-ai that provides AI assistants with tools and capabilities via the Model Context Protocol. Access and manage your Instagram Direct Messages with a Python server. Send, read, and retrieve conversations easily usi It is categorized under communication.
You can install Instagram Direct Messages in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
MIT
Instagram Direct Messages is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
Add new capabilities to Claude beyond text generation
Example
Access external data sources, execute code, interact with tools and services
Transform Claude from chatbot to action-taking agent
Provide Claude with access to relevant context and data
Example
Load project documentation, access knowledge bases, query databases
Get more accurate, context-aware responses
Automate multi-step workflows combining AI and external tools
Example
Research → Summarize → Create document → Send notification
Complete complex tasks end-to-end without manual steps
Share your MCP server with the developer community
I recommend Instagram Direct Messages for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
According to our notes, Instagram Direct Messages benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.
Instagram Direct Messages has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
We evaluated Instagram Direct Messages against two servers with overlapping tools; this profile had the clearer scope statement.
Instagram Direct Messages has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
Strong directory entry: Instagram Direct Messages surfaces stars and publisher context so we could sanity-check maintenance before adopting.
Useful MCP listing: Instagram Direct Messages is the kind of server we cite when onboarding engineers to host + tool permissions.
Instagram Direct Messages is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
Instagram Direct Messages is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.
Instagram Direct Messages has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
showing 1-10 of 36
An MCP (Model-Consumer Protocol) server for Instagram direct messaging functionality, built with fastmcp and instagrapi. This server enables AI assistants to read and send Instagram direct messages.
Current Version: 1.3.5
npm install -g instagram-dm-mcp
instagram-dm-mcp-setup
instagram-dm-mcp install
You will be prompted to paste in your Instagram cookies information. If you arne't sure how to get this, log into Instagram on Chrome, right-click on the page, and select "Inspect". Go to the "Application" tab, then click on "Cookies" in the left sidebar. You should see a list of cookies. Copy the values for sessionid, csrftoken, and ds_user_id.
The install command will automatically register the Instagram DM MCP server with Claude Desktop and add it to your Claude Desktop configuration file. The command will configure the server to use the npx approach, which makes it easier to maintain. You can also copy-paste the same setup to Claude or any other MCP client.
You can provide Instagram credentials in several ways:
Using command-line arguments:
instagram-dm-mcp install --session-id YOUR_SESSION_ID --csrf-token YOUR_CSRF_TOKEN --ds-user-id YOUR_DS_USER_ID
Using a credentials file:
instagram-dm-mcp install --from-file /path/to/instagram_cookies.json
Using environment variables (INSTAGRAM_SESSION_ID, INSTAGRAM_CSRF_TOKEN, and INSTAGRAM_DS_USER_ID)
The installer will add these credentials as environment variables in the Claude Desktop configuration file, creating a configuration like this:
"mcpServers": {
// other servers...
"InstagramDM": {
"command": "npx",
"args": [
"-y",
"instagram-dm-mcp",
"start"
],
"env": {
"INSTAGRAM_SESSION_ID": "your-session-id",
"INSTAGRAM_CSRF_TOKEN": "your-csrf-token",
"INSTAGRAM_DS_USER_ID": "your-ds-user-id"
}
}
}
Prerequisites
Time Estimate
15-60 minutes depending on server complexity
Steps
Troubleshooting
✓ Do
✗ Don't
💡 Pro Tips
Architecture
Model Context Protocol standardizes how AI hosts (Claude, Cursor) communicate with external tools and data sources through server implementations.
Protocols
Compatibility
✓ Use when
Use when you need Claude to access external data, execute actions, or integrate with tools. Best for extending AI capabilities beyond conversation.
✗ Avoid when
Avoid when native integrations exist (use official APIs directly), for real-time critical systems, or when security/compliance requires zero external dependencies.