Instagram MCP Server for Claude and Cursor

Hosted Instagram MCP for Claude, Cursor, and ChatGPT. Post content, fetch insights, and schedule stories with managed OAuth.

Instagram logoInstagram
Oauth2

Instagram is a social platform for sharing photos, videos, and stories with your audience. It helps brands and creators engage, grow, and analyze their online presence.

29 Tools

Try Instagram now

Type what you want done — sign in and watch it run live in the Tool Router playground.

TOOL ROUTER PLAYGROUND
Instagram
Try asking
TOOLS

Supported Tools

Every Instagram action and event your agent gets out of the box.

Create Carousel Container

Create a draft carousel post with multiple images/videos before publishing.

Delete Comment

Tool to delete a comment on Instagram media.

Delete Messenger Profile

Tool to delete messenger profile settings for an Instagram account.

Get Conversation

Get details about a specific Instagram DM conversation (participants, etc).

Get IG Comment Replies

Get replies to a specific Instagram comment.

Get Instagram Media

Get a published Instagram Media object (photo, video, story, reel, or carousel).

Get IG Media Children

Tool to get media objects (images/videos) that are children of an Instagram carousel/album post.

Get IG Media Comments

Tool to retrieve comments on an Instagram media object.

Get IG Media Insights

Tool to get insights and metrics for Instagram media objects (photos, videos, reels, carousel albums).

Get IG User Content Publishing Limit

Get an Instagram Business Account's current content publishing usage.

Get IG User Live Media

Get live media objects during an active Instagram broadcast.

Get IG User Media

Get Instagram user's media collection (posts, photos, videos, reels, carousels).

Get IG User Stories

Get active story media objects for an Instagram Business or Creator account.

Get IG User Tags

Get Instagram media where the user has been tagged by other users.

Get Messenger Profile

Get the messenger profile settings for an Instagram account.

Get Page Conversations

Get Instagram conversations for a Page connected to an Instagram Business account.

Get User Info

Get Instagram Business Account info including profile details and statistics.

Get User Insights

Get Instagram account-level insights and analytics (profile views, reach, follower count, etc.

List All Conversations

List all Instagram DM conversations for the authenticated user.

List All Messages

List all messages from a specific Instagram DM conversation.

Mark Seen

Mark Instagram DM messages as read/seen for a specific user.

Post IG Comment Replies

Tool to create a reply to an Instagram comment.

Post IG Media Comments

Tool to create a comment on an Instagram media object.

Post IG User Media

Tool to create a media container for Instagram posts.

Publish IG User Media

Tool to publish a media container to an Instagram Business account.

Reply to IG User Mentions

Tool to reply to a mention of your Instagram Business or Creator account.

Send Image

Send an image via Instagram DM to a specific user.

Send Text Message

Send a text message to an Instagram user via DM in an existing conversation.

Update Messenger Profile

Tool to update the messenger profile settings for an Instagram account.

SETUP GUIDE

Connect Instagram MCP Tool with your Agent

1

Install Composio

typescript
npm install @composio/core ai @ai-sdk/mcp @ai-sdk/openai
Install the Composio SDK and your agent framework
2

Create a session with MCP enabled

typescript
import { Composio } from "@composio/core";

const composio = new Composio();
const { mcp } = await composio.create("your-user-id", {
  toolkits: ["instagram"],
  mcp: true,
});
Create a session scoped to Instagram and read its MCP URL and headers
3

Connect your agent to the MCP server

typescript
import { createMCPClient } from "@ai-sdk/mcp";
import { openai } from "@ai-sdk/openai";
import { generateText, stepCountIs } from "ai";

const client = await createMCPClient({
  transport: { type: "http", url: mcp.url, headers: mcp.headers },
});

const { text } = await generateText({
  model: openai("gpt-5.6-sol"),
  tools: await client.tools(),
  prompt: "Get post insights for my last published reel",
  stopWhen: stepCountIs(10),
});

console.log(text);
await client.close();
Pass the session's MCP URL and headers to your agent and run a Instagram request
SETUP GUIDE

Connect Instagram API Tool with your Agent

1

Install Composio

typescript
npm install @composio/core @composio/openai openai
Install the Composio SDK, the OpenAI provider, and the OpenAI SDK
2

Create a Composio session

typescript
import OpenAI from "openai";
import { Composio } from "@composio/core";
import { OpenAIResponsesProvider } from "@composio/openai";

const composio = new Composio({ provider: new OpenAIResponsesProvider() });
const client = new OpenAI();

const session = await composio.create("your-user-id", { toolkits: ["instagram"] });
const tools = await session.tools();
Initialize Composio with the OpenAI Responses provider and create a session scoped to Instagram
3

Run Instagram tools with your agent

typescript
let response = await client.responses.create({
  model: "gpt-5.6-sol",
  tools,
  input: [{ role: "user", content: "Get post insights for my last published reel" }],
});

while (response.output.some((o) => o.type === "function_call")) {
  const outputs = await composio.provider.handleToolCalls(session, response.output);
  response = await client.responses.create({
    model: "gpt-5.6-sol",
    tools,
    previous_response_id: response.id,
    input: outputs,
  });
}

console.log(response.output_text);
Send a request, execute the Instagram tool calls through the session, and print the final answer
Guide

Connect multiple Instagram accounts to Claude and tell it which one to use by name.

Read the guide

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

Rolling this out across your team?

Give your team centralized access control across every framework with Composio’s MCP Gateway.

EXPLORE MCP GATEWAY
FAQ

Frequently asked questions

No. Composio provides a managed OAuth app for Instagram, so you sign in with your normal Instagram account and approve access. If you later want the consent screen to show your own company name, you can add your own Instagram OAuth app in the Composio dashboard, and every connection after that uses it.

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

Yes. Composio is SOC 2 Type II compliant and is built to keep your Instagram connection and credentials secure. OAuth tokens and API keys are encrypted, and sensitive customer data is protected at rest and in transit.

Composio also undergoes independent security testing and continuously monitors its systems for security threats. You can review the latest reports and policies in the Composio Trust Center.

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

When you connect a Instagram account through Composio, every action runs under that account, so anything the agent creates, sends, or changes shows up in Instagram as done by you. Keep an approval step in your prompt for actions with side effects, such as sending or deleting, and have the agent draft first.

Exactly the ones Instagram lists on its consent screen when you connect. Review that screen before approving. If you connect a work account, your Instagram administrator may need to approve the app first, and you can revoke the access inside Instagram whenever you want.

Yes. Composio supports multiple connected accounts for the same app, and that works in Claude, ChatGPT, or any other assistant you connect through Composio. Give each Instagram connection a name such as work or personal, and the assistant uses the one you mention in the request. Each account keeps its own credentials and nothing is merged.

Composio refreshes Instagram tokens automatically, so day to day you do nothing. If you revoke access inside Instagram, or Instagram invalidates the session, the connection shows as expired in Composio and the agent stops acting on that account until you reconnect it, which is a single sign-in.

Composio's free plan includes 100,000 tool calls per month with no credit card, and up to 20,000 of those can run through Composio-managed apps like Instagram. Personal Instagram use rarely gets near that. Paid plans add higher limits and team features, and Instagram's own pricing is unaffected.

Built-in connectors usually give one AI access to a limited set of apps. Many people use Composio because it lets their AI connect to more apps than it normally supports, or connect to multiple accounts for the same app (e.g. connect Claude to multiple Instagram accounts).

With Composio, you connect Instagram once and then use it across different AI assistants without setting it up separately in each one. Connect your apps to Composio once, then connect Composio to whichever AI you use, whether that's Claude, ChatGPT, Hermes, or your own custom assistant.

Start with Instagram.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Instagram tool your agent needs.Free to start.

Start building