This MCP server allows users to read, send, search, and manage Instagram Direct Messages through natural language with any MCP-compatible AI assistant.
From the registry: Read, send, search & manage Instagram DMs through AI assistants. 15 tools, cookie auth.
Please install the `mcp-instagram-dm` MCP server into my current AI client (that's you).
Required prerequisites (do these first if not already done):
- **Get Instagram session cookies** — Open instagram.com in Chrome, log in, press F12 -> Application -> Cookies -> instagram.com. Copy sessionid, csrftoken, ds_user_id. (https://www.instagram.com)
Canonical MCP server config (stdio transport):
- command: `npx`
- args: ["-y","mcp-instagram-dm"]
- required environment variables:
- `INSTAGRAM_SESSION_ID`: Instagram sessionid cookie (example: `<your-session-id>`)
- `INSTAGRAM_CSRF_TOKEN`: Instagram csrftoken cookie (example: `<your-csrf-token>`)
- `INSTAGRAM_DS_USER_ID`: Instagram ds_user_id cookie (numeric user id) (example: `<your-user-id>`)
- optional environment variables:
- `INSTAGRAM_RATE_LIMIT_MS`: Delay between paginated API requests in ms (example: `300`)
Note: Uses Instagram unofficial web API via cookie auth. Personal use only.
Add this MCP server to my current client's config in the correct format for you. If you need secrets or credentials I haven't provided, ASK me — do not invent values or leave raw placeholders. After adding it, tell me how to verify the server is connected.INSTAGRAM_SESSION_IDrequiredYour Instagram session cookieINSTAGRAM_CSRF_TOKENrequiredCSRF token from cookiesINSTAGRAM_DS_USER_IDrequiredYour numeric user IDMCP server for WhatsApp Cloud API (Meta) — messages, media, and templates via Graph API