Instagram DM MCP サーバー
Instagramダイレクトメッセージ機能用のMCP(モデル・コンシューマー・プロトコル)サーバー。fastmcpとinstagrapi
fastmcp
使用して構築されています。このサーバーにより、AIアシスタントがInstagramダイレクトメッセージを読み取り、送信できるようになります。
現在のバージョン: 1.3.5
特徴
- 包括的なスレッド情報とともに、Instagram の受信トレイから最近のダイレクトメッセージを読むことができます
- Instagramユーザーにダイレクトメッセージを送信する
- シンプルな挨拶リソース(機能例)
- ステータス情報を含むヘルスチェックエンドポイント
- JSON 解析の問題を回避するために stderr に適切にログを記録する
- 環境変数を含むさまざまな認証方法のサポート
インストール
npm パッケージとして(推奨)
- パッケージをグローバルにインストールします。
- セットアップ スクリプトを実行して、Python の依存関係をインストールします。
- サーバーをClaude Desktopに登録し、資格情報を設定します。
InstagramのCookie情報を貼り付けるよう求められます。取得方法がわからない場合は、ChromeでInstagramにログインし、ページを右クリックして「検証」を選択してください。「アプリケーション」タブに移動し、左側のサイドバーにある「Cookie」をクリックします。Cookieのリストが表示されます。sessionid、 csrftoken
、 ds_user_id
の値sessionid
コピーしてください。
install
コマンドは、Instagram DM MCPサーバーをClaude Desktopに自動的に登録し、Claude Desktopの設定ファイルに追加します。このコマンドは、サーバーをnpx
アプローチを使用するように設定するため、メンテナンスが容易になります。同じ設定をClaudeや他のMCPクライアントにコピー&ペーストすることもできます。
Instagram の認証情報は、いくつかの方法で提供できます。
- コマンドライン引数の使用:
- 資格情報ファイルの使用:
- 環境変数(INSTAGRAM_SESSION_ID、INSTAGRAM_CSRF_TOKEN、INSTAGRAM_DS_USER_ID)の使用
インストーラーはこれらの資格情報を環境変数として Claude Desktop 構成ファイルに追加し、次のような構成を作成します。
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
AI アシスタントが instagrapi のモデル コンシューマー プロトコルを使用して Instagram ダイレクト メッセージを読み取り、送信できるようにします。
Related MCP Servers
- AsecurityAlicenseAqualityEnables AI models to interact with messages from various messaging platforms (Mobile, Mail, WhatsApp, LinkedIn, Slack, Twitter, Telegram, Instagram, Messenger) through a standardized interface.Last updated -38PythonMIT License
- -securityFlicense-qualityProvides AI agents with comprehensive Twitter functionality through the Model Context Protocol standard, enabling reading tweets, posting content, managing interactions, and accessing timeline data with robust error handling.Last updated -41JavaScript
- -securityAlicense-qualityA Model Context Protocol server that enables AI models and applications to interact directly with Twitter/X, providing capabilities to create posts, reply to tweets, retrieve user data, and manage account actions.Last updated -874TypeScriptMIT License
- -securityFlicense-qualityA Model Context Protocol server that enables AI models to perform function calls through Feishu/Lark messaging platform, using your personal account (no bot configuration needed) to create a full-featured AI assistant.Last updated -91Python