jlbadano/ig-mcp 是从 https://github.com/jlbadano/ig-mcp. 导入的 MCP 服务器候选
概览
jlbadano/ig-mcp 是从 https://github.com/jlbadano/ig-mcp. 导入的 MCP 服务器候选
概述(AI 翻译)
一个模型上下文协议(MCP)服务器,提供与 Instagram Graph API 无缝集成,使 AI 应用能够以程序方式与 Instagram Business 账户交互。
特色
🔧 工具(模型控制)
- 获取个人资料信息:获取Instagram企业资料详情
- 获取媒体帖子:从Instagram账号获取最新帖子
- 获取媒体洞察:获取特定帖子的互动指标
- 发布媒体:上传并发布图片/视频到Instagram。
- 获取账户页面:列出与账户相关的Facebook页面
- 获取对话:列出Instagram私信对话(需高级访问)
- 获取对话消息:阅读特定对话中的消息(需高级访问)
- 发送私信:回复Instagram私信(需高级访问)
📊 资源(应用控制)
- 个人资料数据:访问个人资料信息,包括粉丝数、简介等。
- 媒体推送:近期带有互动指标的帖子
- 洞察数据:帖子和账户表现的详细分析
💬 提示(用户控制)
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Instagram MCP Server
A Model Context Protocol (MCP) server that provides seamless integration with Instagram’s Graph API, enabling AI applications to interact with Instagram Business accounts programmatically.
Features
🔧 Tools (Model-controlled)
- Get Profile Info: Retrieve Instagram business profile details
- Get Media Posts: Fetch recent posts from an Instagram account
- Get Media Insights: Retrieve engagement metrics for specific posts
- Publish Media: Upload and publish images/videos to Instagram
- Get Account Pages: List Facebook pages connected to the account
- Get Conversations: List Instagram DM conversations (requires Advanced Access)
- Get Conversation Messages: Read messages from specific conversations (requires Advanced Access)
- Send DM: Reply to Instagram direct messages (requires Advanced Access)
📊 Resources (Application-controlled)
- Profile Data: Access to profile information including follower counts, bio, etc.
- Media Feed: Recent posts with engagement metrics
- Insights Data: Detailed analytics for posts and account performance
💬 Prompts (User-controlled)
- Analyze Engagement: Pre-built prompt for analyzing post performance
- Content Strategy: Template for generating content recommendations
- Hashtag Analysis: Prompt for hashtag performance evaluation
Prerequisites
- Instagram Business Account: Must be connected to a Facebook Page
- Facebook Developer Account: Required for API access
- Access Token: Long-lived access token with appropriate permissions
- Python 3.10+: For running the MCP server (required by MCP dependencies)
Required Instagram API Permissions
Standard Access (available immediately):
instagram_basicinstagram_content_publishinstagram_manage_insightsinstagram_manage_commentspages_show_listpages_read_engagementpages_manage_metadatapages_read_user_contentbusiness_management
Advanced Access (requires Meta App Review):
instagram_manage_messages- Required for Direct Messaging features
⚠️ Instagram DM Features: Reading and sending Instagram direct messages requires Advanced Access approval from Meta. See INSTAGRAM_DM_SETUP.md for the App Review process.
🔑 How to Get Instagram API Credentials
📖 Quick Start: See AUTHENTICATION_GUIDE.md for a 5-minute setup guide!
This section provides a step-by-step guide to obtain the necessary credentials for the Instagram MCP server.
Step 1: Set Up Instagram Business Account
- Convert to Business Account (if not already):
- Open Instagram app → Settings → Account → Switch to Professional Account
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"instagram": {
"command": "python",
"args": ["/path/to/ig-mcp/src/instagram_mcp_server.py"],
"env": {
"INSTAGRAM_ACCESS_TOKEN": "your_access_token"
}
}
}
}
