@node2flow/instagram mcp
用于Instagram Graph API的MCP服务器-通过25种工具发布照片、卷轴、旋转木马和故事、管理评论、查看见解和搜索主题标签。
快速开始
克劳德桌面/光标
{
"mcpServers": {
"instagram": {
"command": "npx",
"args": ["-y", "@node2flow/instagram-mcp"],
"env": {
"INSTAGRAM_ACCESS_TOKEN": "your_access_token",
"INSTAGRAM_ACCOUNT_ID": "your_ig_business_account_id"
}
}
}
}
流式HTTP(适用于n8n,自定义客户端)
INSTAGRAM_ACCESS_TOKEN=xxx npx @node2flow/instagram-mcp --http
# Server starts on http://localhost:3000/mcp
码头工人
配置
| 变量 |
必填 |
描述 |
INSTAGRAM_ACCESS_TOKEN |
是 |
具有Instagram_*权限的Facebook/Instagram用户访问令牌 |
INSTAGRAM_ACCOUNT_ID |
否 |
Instagram商业帐户ID(通过Facebook页面设置查找) |
获取访问令牌
- 首选 Meta for Developers>Graph API资源管理器
- 选择您的应用程序,请求以下权限:
instagram_basic --阅读个人资料和媒体
instagram_content_publish --发布媒体
instagram_manage_comments --管理评论
instagram_manage_insights --阅读见解
pages_show_list, pages_read_engagement
- 生成一个 用户访问令牌 并兑换长期代币
查找您的Instagram帐户ID
GET /me/accounts?fields=instagram_business_account
这 instagram_business_account.id 是您的Instagram帐户ID。
25工具
| 类别 |
工具 |
描述 |
| 账户 (3) |
ig_get_account, ig_get_account_insights, ig_list_media |
个人资料信息、分析、媒体列表 |
| 出版 (4) |
ig_publish_photo, ig_publish_carousel, ig_publish_reel, ig_publish_story |
创建帖子、卷轴、旋转木马、故事 |
| 媒体 (3) |
ig_get_media, ig_get_media_insights, ig_get_children |
媒体详细信息、分析、轮播项目 |
| 评论 (5) |
ig_list_comments, ig_get_comment, ig_reply_comment, ig_delete_comment, ig_hide_comment |
评论管理+审核 |
| 故事 (2) |
ig_list_stories, ig_get_story_insights |
活跃的故事+分析 |
| 话题标签 (3) |
ig_search_hashtag, ig_get_hashtag_recent, ig_get_hashtag_top |
标签研究+发现 |
| 提及 (2) |
ig_list_tags, ig_get_mentioned_media |
标记和提及的媒体 |
提示
| 提示 |
描述 |
content-publishing |
发布照片、卷轴、旋转木马和故事的指南 |
analytics-guide |
查看帐户和媒体见解指南 |
许可证和链接