Instagram DM MCP Server
Instagram DM MCP Server
MCP-Server (Model Context Protocol) zum Senden und Lesen von Instagram-DMs.
Schnellstart
uv run mcp_server.pyDer Server kommuniziert über JSON-RPC 2.0 über stdin/stdout.
Related MCP server: Instagram MCP Server
Einrichtung
Kopieren Sie
config/config.json.templatenachconfig/config.json– fügen Sie Ihresessionid, optionalenusernameundmax_messages_per_threadhinzu.Kopieren Sie
config/recipients.json.templatenachconfig/recipients.json– Liste von Instagram-Benutzernamen mit optionalen Aliasen.Die
.json-Dateien sind in .gitignore ausgenommen; die.template-Dateien werden als Anleitungen versioniert.
Tools
send_dm(recipient, message)
Senden Sie eine DM an einen bestimmten Empfänger.
Parameter:
recipient(erforderlich) – Instagram-Benutzername, an den die DM gesendet werden sollmessage(erforderlich) – Nachrichtentext, der gesendet werden soll
read_dm(recipient, max_messages=10)
Liest die letzten N Nachrichten aus dem Thread eines bestimmten Empfängers.
Parameter:
recipient(erforderlich) – Instagram-Benutzername, von dem DMs gelesen werden sollenmax_messages(optional) – Maximale Nachrichten pro Thread (verwendetmax_messages_per_threadaus der Konfiguration, wenn nicht angegeben)
list_recipients()
Listet alle konfigurierten Empfänger mit ihren Aliasen auf. Agents sollten dieses Tool verwenden, um herauszufinden, wem sie Nachrichten senden können.
Parameter: Keine
Konfiguration
Feld | Standard | Beschreibung |
| (erforderlich) | Ihre Instagram-Sitzungs-ID |
|
| Ihr Instagram-Benutzername (optional) |
|
| Nachricht, die bei Verwendung von send_dm gesendet wird |
|
| Maximale Nachrichten, die pro Thread gelesen werden |
NUR an Empfänger in recipients.json senden. Ändern Sie das Skript nicht direkt.
Empfänger-Aliase
In recipients.json kann jeder Eintrag ein alias-Feld enthalten, das Agents verwenden können:
[
{
"username": "john_doe",
"alias": "John Doe"
}
]Der Alias ist optional – wenn er weggelassen wird, wird der Benutzername verwendet. Verwenden Sie das list_recipients-Tool, um alle konfigurierten Aliase zu sehen. Einfache String-Einträge (abwärtskompatibel) werden ebenfalls unterstützt:
["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 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.
Public Instagram profiles and post feeds by handle, with hashtags and mentions parsed.
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