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.

33 ToolsManaged auth

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

Delete ice breakers or a persistent menu from an Instagram messenger profile.

Enable Webhook Subscriptions

Enable selected Instagram Login webhook fields for delivery to the connected professional 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.

List Media Comments

List selected comments for an Instagram media object ID using fields, limit, and after cursors.

Get IG Media Insights

Get performance insights for an Instagram media object, such as views, reach, likes, comments, saves and shares.

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 for an Instagram Business or Creator account during an active broadcast, including the live video media ID and metadata.

List User Media

List one cursor-paginated page of user media with selected fields; use ig_user_id='me' for the authenticated account.

Get IG User Stories

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

Get IG User Tags

Get one page of media tagging an Instagram Business or Creator account using Instagram Login.

Get Messenger Profile

Get the messenger profile settings for an Instagram account.

Get Multiple Graph Nodes

Retrieve selected fields for multiple Instagram Graph nodes and return the results keyed by requested node ID.

Get Page Conversations

Get a page of Instagram conversations for an Instagram Business account, with cursor pagination.

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 one cursor-paginated page of Instagram DM conversations for the authenticated or specified Business/Creator account, optionally selecting conversation fields and filtering for one participant.

List All Messages

List one cursor-paginated page of messages from a specific Instagram DM conversation, with a caller-selectable field projection.

List Subscribed Apps

Return one provider page of apps enabled for webhook notifications on the authenticated Instagram professional account, including subscribed fields.

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

Publish a media container to an Instagram Business account and return the published media ID.

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.

Set Media Comment Availability

Enable or disable new comments on owned, published Instagram media.

Update Messenger Profile

Update ice breakers for an Instagram Business account's messenger profile.

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

Start with Instagram.It takes 30 seconds.

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

Start building