instagram-mcp
Instagram MCP Server
MCP đăng & quản lý nội dung Instagram (tài khoản Business/Creator) qua Instagram Graph API v21.0. Chạy STDIO (npx từ GitHub). Ai cũng dùng được — chỉ điền 2 biến môi trường.
10 tools: get_account_info, post_photo, post_reel, post_story_photo, post_story_video, post_carousel, list_media, get_media, get_comments, reply_comment.
Đăng bài Instagram theo quy trình container (tạo → chờ xử lý → publish). Với video/reels, server tự chờ xử lý xong mới publish.
Biến môi trường
Biến | Bắt buộc | Mô tả |
IG_USER_ID | ✅ | ID tài khoản Instagram Business/Creator |
IG_ACCESS_TOKEN | ✅ | Access Token (long-lived, quyền instagram_content_publish) |
FB_GRAPH_VERSION | ❌ | Mặc định v21.0 |
Lấy token
Instagram phải là Business/Creator và liên kết với 1 Facebook Page.
developers.facebook.com → App → cấp quyền:
instagram_basic,instagram_content_publish,pages_show_list.Graph API Explorer → generate long-lived token.
Lấy IG_USER_ID: gọi
GET /{page-id}?fields=instagram_business_account.
Import vào Evose (STDIO / npx)
{
"mcpServers": {
"instagram": {
"command": "npx",
"args": ["-y", "github:<user>/instagram-mcp"],
"env": {
"IG_USER_ID": "...",
"IG_ACCESS_TOKEN": "..."
}
}
}
}Thay <user> bằng GitHub username. Execution Timeout để 120s (video reels cần chờ xử lý).
Ghi chú
Ảnh/video đăng từ URL công khai. Reels yêu cầu 9:16, 3–90s.
Giới hạn 100 bài/24h (chính sách Instagram). License MIT.
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/Maz1n0-zzz/instagram-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server