Skip to main content
Glama
jdenp

Instagram DM MCP Server

by jdenp

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

セットアップ

  1. config/config.json.templateconfig/config.json にコピーし、sessionid、任意の usernamemax_messages_per_thread を追加します。

  2. config/recipients.json.templateconfig/recipients.json にコピーします。オプションのエイリアスを持つ Instagram ユーザー名のリストです。

  3. .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()

設定済みの全受信者とそのエイリアスを一覧表示します。エージェントはこのツールを使用して、メッセージを送信できる相手を把握する必要があります。

パラメータ: なし

設定

フィールド

デフォルト

説明

sessionid

(必須)

あなたの Instagram セッション ID

username

""

あなたの Instagram ユーザー名 (オプション)

message_text

"test"

send_dm 使用時に送信されるメッセージ

max_messages_per_thread

10

スレッドごとに読み取る最大メッセージ数

recipients.json 内の受信者にのみ送信してください。スクリプトを直接変更しないでください。

受信者エイリアス

recipients.json では、各エントリにエージェントが使用する alias フィールドを含めることができます:

[
    {
        "username": "john_doe",
        "alias": "John Doe"
    }
]

エイリアスはオプションです。省略した場合はユーザー名が使用されます。設定済みのエイリアスを確認するには、list_recipients ツールを使用してください。プレーンな文字列エントリ (後方互換) もサポートされています:

["john_doe", "jane_smith"]
F
license - not found
Not graded
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

View all related MCP servers

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.

View all MCP Connectors

Latest Blog Posts

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