Instagram DM MCP Server
Instagram DM MCP サーバー
Instagram の DM を送受信するための MCP (Model Context Protocol) サーバーです。
クイックスタート
uv run mcp_server.pyサーバーは stdin/stdout を介して JSON-RPC 2.0 で通信します。
Related MCP server: Instagram MCP Server
セットアップ
config/config.json.templateをconfig/config.jsonにコピーし、sessionid、任意のusername、max_messages_per_threadを追加します。config/recipients.json.templateをconfig/recipients.jsonにコピーします。オプションのエイリアスを持つ Instagram ユーザー名のリストです。.jsonファイルは gitignore されています。.templateファイルはガイドとして追跡されます。
ツール
send_dm(recipient, message)
特定の受信者に DM を送信します。
パラメータ:
recipient(必須) - DM を送信する Instagram ユーザー名message(必須) - 送信するメッセージテキスト
read_dm(recipient, max_messages=10)
特定の受信者のスレッドから最新の N 件のメッセージを読み取ります。
パラメータ:
recipient(必須) - DM を読み取る Instagram ユーザー名max_messages(オプション) - スレッドごとの最大メッセージ数 (省略時は設定ファイルのmax_messages_per_threadを使用)
list_recipients()
設定済みの全受信者とそのエイリアスを一覧表示します。エージェントはこのツールを使用して、メッセージを送信できる相手を把握する必要があります。
パラメータ: なし
設定
フィールド | デフォルト | 説明 |
| (必須) | あなたの Instagram セッション ID |
|
| あなたの Instagram ユーザー名 (オプション) |
|
| send_dm 使用時に送信されるメッセージ |
|
| スレッドごとに読み取る最大メッセージ数 |
recipients.json 内の受信者にのみ送信してください。スクリプトを直接変更しないでください。
受信者エイリアス
recipients.json では、各エントリにエージェントが使用する alias フィールドを含めることができます:
[
{
"username": "john_doe",
"alias": "John Doe"
}
]エイリアスはオプションです。省略した場合はユーザー名が使用されます。設定済みのエイリアスを確認するには、list_recipients ツールを使用してください。プレーンな文字列エントリ (後方互換) もサポートされています:
["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