Instagram MCP for AI Agents

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Instagram MCP or direct API to post content, fetch insights, schedule stories, and moderate comments through natural language.
Trusted by
AWS
Glean
Zoom
Airtable

30 min · no commitment · see it on your stack

Instagram Logo
Gradient Top
Gradient Middle
Gradient Bottom
divider

Try Instagram now

Enter a prompt below to test the integration in our Tool Router playground. You'll be redirected to sign in and try it live.

Supported Tools

Tools
Create Carousel ContainerCreate a draft carousel post with multiple images/videos before publishing.
Delete CommentTool to delete a comment on Instagram media.
Delete Messenger ProfileTool to delete messenger profile settings for an Instagram account.
Get ConversationGet details about a specific Instagram DM conversation (participants, etc).
Get IG Comment RepliesGet replies to a specific Instagram comment.
Get Instagram MediaGet a published Instagram Media object (photo, video, story, reel, or carousel).
Get IG Media ChildrenTool to get media objects (images/videos) that are children of an Instagram carousel/album post.
Get IG Media CommentsTool to retrieve comments on an Instagram media object.
Get IG Media InsightsTool to get insights and metrics for Instagram media objects (photos, videos, reels, carousel albums).
Get IG User Content Publishing LimitGet an Instagram Business Account's current content publishing usage.
Get IG User Live MediaGet live media objects during an active Instagram broadcast.
Get IG User MediaGet Instagram user's media collection (posts, photos, videos, reels, carousels).
Get IG User StoriesGet active story media objects for an Instagram Business or Creator account.
Get IG User TagsGet Instagram media where the user has been tagged by other users.
Get Messenger ProfileGet the messenger profile settings for an Instagram account.
Get Page ConversationsGet Instagram conversations for a Page connected to an Instagram Business account.
Get User InfoGet Instagram Business Account info including profile details and statistics.
Get User InsightsGet Instagram account-level insights and analytics (profile views, reach, follower count, etc.
List All ConversationsList all Instagram DM conversations for the authenticated user.
List All MessagesList all messages from a specific Instagram DM conversation.
Mark SeenMark Instagram DM messages as read/seen for a specific user.
Post IG Comment RepliesTool to create a reply to an Instagram comment.
Post IG Media CommentsTool to create a comment on an Instagram media object.
Post IG User MediaTool to create a media container for Instagram posts.
Publish IG User MediaTool to publish a media container to an Instagram Business account.
Reply to IG User MentionsTool to reply to a mention of your Instagram Business or Creator account.
Send ImageSend an image via Instagram DM to a specific user.
Send Text MessageSend a text message to an Instagram user via DM in an existing conversation.
Update Messenger ProfileTool to update the messenger profile settings for an Instagram account.
Python
TypeScript

Install Composio

python
pip install composio claude-agent-sdk
Install the Composio SDK and Claude Agent SDK

Create Tool Router Session

python
from composio import Composio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions

composio = Composio(api_key='your-composio-api-key')
session = composio.create(user_id='your-user-id')
url = session.mcp.url
Initialize the Composio client and create a Tool Router session

Connect to AI Agent

python
import asyncio

options = ClaudeAgentOptions(
    permission_mode='bypassPermissions',
    mcp_servers={
        'tool_router': {
            'type': 'http',
            'url': url,
            'headers': {
                'x-api-key': 'your-composio-api-key'
            }
        }
    },
    system_prompt='You are a helpful assistant with access to Instagram tools.',
    max_turns=10
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query('Get post insights for last week')
        async for message in client.receive_response():
            if hasattr(message, 'content'):
                for block in message.content:
                    if hasattr(block, 'text'):
                        print(block.text)

asyncio.run(main())
Use the MCP server with your AI agent

Why Use Composio?

AI Native Instagram Integration

  • Supports both Instagram MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable tool execution
  • Rich coverage for reading, writing, and querying your Instagram data

Managed Auth

  • Built-in OAuth handling with automatic token refresh and rotation
  • Central place to manage, scope, and revoke Instagram access
  • Per user and per environment credentials instead of hard-coded keys

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Comprehensive execution logs so you always know what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access Instagram
  • Scoped, least privilege access to Instagram resources
  • Full audit trail of agent actions to support review and compliance

Frequently Asked Questions

Do I need my own developer credentials to use Instagram with Composio?

No, you can get started immediately using Composio's built-in Instagram app. For production, we recommend configuring your own OAuth credentials.

Can I use multiple toolkits together?

Yes! Composio's Tool Router enables agents to use multiple toolkits. Learn more.

Is Composio secure?

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. Learn more.

What if the API changes?

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

Used by agents from

Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai

Never worry about agent reliability

We handle tool reliability, observability, and security so you never have to second-guess an agent action.