
Mcp Instagram Dm
io.github.KynuxDev由 GitHub 帳號 KynuxDev 發布v2.1.1更新於 Oct 24, 2026
Read, send, search & manage Instagram DMs through AI assistants. 15 tools, cookie auth.
概覽
讓助手使用你自己的工作階段 Cookie 讀取、搜尋、傳送及管理 Instagram 私訊。
- 可以做什麼
- 透過 15 個工具,把支援 MCP 的助手連接到 Instagram 的私有網頁 API。讀取類工具可列出收件匣、自動分頁抓取對話訊息、查看待處理的私訊要求,以及取得使用者或對話詳細資料。寫入類工具可傳送文字或連結、建立新對話、以表情符號回應、收回自己傳送的訊息、標記已讀並核准待處理要求。搜尋類工具可尋找對話、對話內的訊息及使用者。
- 適用情境
- 適合想在桌面助理中以自然語言查看、搜尋或回覆 Instagram 私訊,而不想開啟應用程式的人。最適合個人、低頻率使用,且願意自行管理工作階段 Cookie 的使用者。
- 執行需求
- 以 stdio 方式在本機執行,通常透過 npx mcp-instagram-dm 啟動,因此需要 Node.js。需要從已登入的 Instagram 瀏覽器工作階段取得三個環境變數:INSTAGRAM_SESSION_ID、INSTAGRAM_CSRF_TOKEN 和 INSTAGRAM_DS_USER_ID。選用的 INSTAGRAM_RATE_LIMIT_MS 可控制分頁請求間隔。僅支援桌面用戶端,且需要連線到 Instagram 的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Mcp Instagram Dm,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
📨 MCP Instagram DM
Control your Instagram DMs with AI
Read, send, search, and manage Instagram Direct Messages through natural language with any MCP-compatible AI assistant.
[npm version] [npm downloads] [GitHub stars]
[CI] [License: MIT] [Node.js] [TypeScript] [MCP]
A Model Context Protocol server that bridges Instagram Direct Messages with AI assistants like Claude, Cursor, and any MCP-compatible client.
Cookie-based authentication — no API keys, no OAuth, just works.
Getting Started · Features · Configuration · Tools Reference · Contributing
💡 If you find this useful, please consider giving it a ⭐ — it helps others discover the project!
⚡ Getting Started
Get up and running in under 60 seconds:
1. Add to your MCP config (Claude Desktop, Claude Code, or Cursor):
2. Talk to your AI assistant:
"Read my Instagram DMs"
That's it — you're ready. 🎉
Need help getting your cookies? See Configuration below.
🎬 What It Looks Like
✨ Features
15 tools across three categories — everything you need to manage your Instagram DMs:
📥 Read & Monitor
✏️ Send & Manage
🔍 Search & Discover
📦 Installation
npx (recommended — zero install)
npm global
From source
🔧 Configuration
Getting Your Cookies
- Open instagram.com in Chrome and log in
- Press
F12→ Application tab → Cookies →https://www.instagram.com - Copy these three values:
💡 Tip: You can also run
node get-cookies.jsfor a guided walkthrough.
Environment Variables
Client Setup
Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
Claude Code
Add to your project's .mcp.json:
Cursor
Add to .cursor/mcp.json in your project:
💬 Usage Examples
Just talk naturally to your AI assistant:
📖 Tools Reference
View all 15 tools with parameters
🏗️ Architecture
Design principles:
- Single dependency — only
@modelcontextprotocol/sdk. No axios, no puppeteer, no bloat. - TypeScript strict — zero
anytypes, fully typed interfaces insrc/types.ts - Auto-pagination — request 500 messages and the server handles the rest with rate limiting
- 14+ message types — text, media, voice, reels, links, clips, GIFs, posts, stories, and more
🔒 Security
- Session cookies are never logged or stored beyond runtime
- All credentials are read from environment variables only
- No data is sent to any third-party service
- See SECURITY.md for reporting vulnerabilities
⚠️ Disclaimer
This project uses Instagram's unofficial web API, which may change without notice.
- Personal use only — do not use for spam, mass messaging, or automation that violates Instagram's Terms of Service
- Your session cookies are sensitive credentials — never share or commit them
- This project is not affiliated with, endorsed by, or connected to Meta or Instagram
- Use at your own risk — the authors are not responsible for any account restrictions
🤝 Contributing
Contributions are welcome! Please see CONTRIBUTING.md for development setup and guidelines.
If you'd like to support the project financially, consider sponsoring on GitHub.
📄 License
If this project helped you, consider giving it a ⭐
來源:README.md,提交 6e435f1
工具
0版本歷史
1- v2.1.1最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分