ig-mcp
by jlbadano·★ 127·Score 46
Production-ready MCP server enabling AI applications to interact with Instagram Business accounts through the Graph API.
Overview
The ig-mcp server provides comprehensive access to Instagram's business features through MCP tools, resources, and prompts. It enables profile information retrieval, media management, publishing capabilities, conversation handling, and analytics. The server includes robust authentication handling with clear documentation for both standard and advanced access levels. The codebase is well-structured with proper error handling, rate limiting, and security considerations.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this MCP server if you need to integrate Instagram Business API into AI applications for content management, analytics, or customer interactions through DMs.
When NOT to choose this
Avoid this if you need personal Instagram account integration, don't have a Facebook-connected business account, or require features not available through the Instagram Graph API.
Tools this server exposes
8 tools extracted from the READMEGet Profile InfoRetrieve Instagram business profile details
Get Media PostsFetch recent posts from an Instagram account
Get Media InsightsRetrieve engagement metrics for specific posts
Publish MediaUpload and publish images/videos to Instagram
Get Account PagesList Facebook pages connected to the account
Get ConversationsList Instagram DM conversations (requires Advanced Access)
Get Conversation MessagesRead messages from specific conversations (requires Advanced Access)
Send DMReply to Instagram direct messages (requires Advanced Access)
Comparable tools
Installation
Installation
- Clone the repository:
git clone <repository-url>
cd ig-mcp- Install dependencies:
pip install -r requirements.txt- Set up environment variables:
cp .env.example .env
# Edit .env with your Instagram API credentials- Configure the MCP server:
# Edit config.json with your specific settings- Add to Claude Desktop:
{
"mcpServers": {
"instagram": {
"command": "python",
"args": ["/path/to/ig-mcp/src/instagram_mcp_server.py"],
"env": {
"INSTAGRAM_ACCESS_TOKEN": "your_access_token"
}
}
}
}FAQ
- What permissions are required for Instagram DM features?
- Instagram direct messaging features require Advanced Access approval from Meta, specifically the 'instagram_manage_messages' permission, which needs to go through the App Review process.
- How do I handle token expiration?
- The server provides a refresh strategy using the Facebook Graph API to exchange expired tokens for new ones. Long-lived tokens expire after 60 days, so implement automatic refresh before expiration.
Compare ig-mcp with
Last updated · Auto-generated from public README + GitHub signals.