Aerostack
electrical_services

Instagram MCP Server — Hosted Api Connectors Integration

MCP Server language Hosted language Public

Manage your Instagram Business Account — publish posts, reels, carousels, reply to comments, pull engagement analytics, and discover trending hashtags.

aerostack @aerostack verified
v0.1.0 MIT Updated Jun 28, 2026
robot_2

Use with AI AssistantsMCP

Connect Claude, Cursor, or any MCP-compatible client — then call tools directly

① Add This MCP Server

Paste into your AI client config — then all its tools are available instantly.

.claude/mcp.json
{
  "mcpServers": {
    "instagram": {
      "url": "https://mcp.aerostack.dev/s/aerostack/mcp-instagram",
      "headers": {
        "Authorization": "Bearer YOUR_AEROSTACK_TOKEN"
      }
    }
  }
}

Replace YOUR_AEROSTACK_TOKEN with your API token from the dashboard.

② Call a Tool

Ask your AI assistant to call a specific tool, or send raw JSON-RPC:

+11 more

Natural Language Prompt

“Use the get_media tool to get details of a media object (image, video, or reel) by id. returns id, caption, media_type, media_url, thumbnail_url, timestamp, permalink, like_count, comments_count

Using a Workspace?

Add this MCP to your Workspace — your team shares one token, secrets are stored securely, and every AI agent in the workspace can call it without per-user setup.

add_circleAdd to Workspace

description Overview

mcp-instagram — Instagram MCP Server

Publish posts, manage comments, pull analytics, and discover trending content on Instagram — all from any AI agent.

Instagram is the world's leading visual social platform with over 2 billion monthly active users. This MCP server gives your agents full access to the Instagram Graph API for Business Accounts: publishing photos, videos, reels, and carousels; managing comments and replies; retrieving detailed engagement metrics; fetching account-level insights; and exploring hashtag trends.

Live endpoint: https://mcp.aerostack.dev/s/aerostack/mcp-instagram


What You Can Do

  • Automatically publish content from your brand calendar — photos, reels, carousels — by passing a public image/video URL and caption
  • Monitor engagement in real time: pull impressions, reach, likes, saves, and comments per post and automatically reply to top comments
  • Build reporting dashboards from account-level insights — follower growth, profile views, reach over any date range
  • Discover trending hashtags and get top/recent media for any tag to inform your content strategy

Available Tools

Tool Description
get_media Get details of a media object (image, video, reel) by ID
list_media List media for the business account with pagination
create_photo_post Publish a photo from a public URL with caption
create_video_post Publish a video or reel from a public URL
create_carousel_post Publish a carousel post with 2-10 images
delete_media Delete a media object (post)
get_comments Get comments on a media object
reply_to_comment Reply to a comment
delete_comment Delete a comment
get_media_insights Get engagement metrics for a post (impressions, reach, likes, comments, saves)
get_account_insights Get account-level insights for a date range
get_followers_demographics Get follower demographics (age, gender, city, country)
get_stories Get current active stories for the account
get_story_insights Get insights for a specific story
search_hashtag Search for a hashtag and get top or recent media
get_hashtag_insights Get post count and recent media for a hashtag ID
_ping Verify credentials — calls GET /{account_id}?fields=id,name

Configuration

Variable Required Description How to Get
INSTAGRAM_ACCESS_TOKEN Yes Meta User Access Token with instagram_basic, instagram_content_publish, instagram_manage_comments, instagram_manage_insights permissions Meta for Developers → Graph API Explorer → Generate Token
INSTAGRAM_BUSINESS_ACCOUNT_ID Yes Numeric Instagram Business Account ID Call GET /me/accounts then GET /{page-id}?fields=instagram_business_account via the Graph API Explorer

Note: Your Instagram account must be a Business or Creator account connected to a Facebook Page. Personal accounts are not supported by the Instagram Graph API.


Quick Start

Add to Aerostack Workspace
  1. Go to aerostack.dev → Your Project → MCPs
  2. Search for "Instagram" and click Add to Workspace
  3. Add your INSTAGRAM_ACCESS_TOKEN and INSTAGRAM_BUSINESS_ACCOUNT_ID under Project → Secrets

Once added, every AI agent in your workspace can publish and manage Instagram content automatically.

Example Prompts
"Post this product image to Instagram with the caption 'New arrival! #fashion #style'"
"Get the engagement metrics for our last 5 Instagram posts and summarize the best performing one"
"Reply to all unanswered comments on our latest Instagram post with a thank-you message"
"What are the top posts for the hashtag #productivity right now?"
Direct API Call
curl -X POST https://mcp.aerostack.dev/s/aerostack/mcp-instagram \
  -H 'Content-Type: application/json' \
  -H 'X-Mcp-Secret-INSTAGRAM-ACCESS-TOKEN: your-access-token' \
  -H 'X-Mcp-Secret-INSTAGRAM-BUSINESS-ACCOUNT-ID: your-account-id' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"list_media","arguments":{"limit":5}}}'

License

MIT

terminal Tools (17)

Available tools on this MCP server. Each tool can be called directly from any AI agent.

terminal
get_media #1

Get details of a media object (image, video, or reel) by ID. Returns id, caption, media_type, media_url, thumbnail_url, timestamp, permalink, like_count, comments_count.

terminal
list_media #2

List media objects for the business account with pagination support. Returns id, caption, media_type, media_url, timestamp, permalink.

terminal
create_photo_post #3

Create a photo post on the Instagram Business Account. Publishes an image from a public URL with an optional caption.

terminal
create_video_post #4

Create a video or reel post on the Instagram Business Account. Publishes a video from a public URL with an optional caption.

terminal
create_carousel_post #5

Create a carousel post with multiple images on the Instagram Business Account.

terminal
delete_media #6

Delete a media object (post) from the Instagram Business Account.

terminal
get_comments #7

Get comments on a media object. Returns comment id, text, username, timestamp.

terminal
reply_to_comment #8

Reply to a comment on a media object. Creates a reply comment.

terminal
delete_comment #9

Delete a comment from a media object.

terminal
get_media_insights #10

Get engagement metrics for a post: impressions, reach, likes, comments, saves, shares.

terminal
get_account_insights #11

Get account-level insights for a date range: impressions, reach, follower_count, profile_views, website_clicks.

terminal
get_followers_demographics #12

Get follower demographics breakdown: age ranges, gender distribution, top cities, top countries.

terminal
get_stories #13

Get current active stories for the Instagram Business Account. Returns id, media_type, media_url, timestamp.

terminal
get_story_insights #14

Get insights for a specific story: impressions, reach, exits, replies, taps_forward, taps_back.

terminal
search_hashtag #15

Search for a hashtag ID and get top or recent media for that hashtag.

terminal
get_hashtag_insights #16

Get post count and recent media for a hashtag by hashtag ID.

terminal
_ping #17

Verify credentials by fetching the Instagram Business Account name and ID. Returns {ok: true, account_id, name} on success.

Details

upgrade Version 0.1.0
gavel License MIT
wifi Transport streamable-http
lock Access Public
category Category API Connectors
terminal Tools 17

language Live Endpoint

https://mcp.aerostack.dev/s/aerostack/mcp-instagram

Sub-50ms globally · Zero cold start

Publisher

aerostack
@aerostack verified

Pre-built functions for the most common MCP tool patterns. Clone, extend, and deploy.

Tags

Browse more servers

More in API Connectors

Browse API Connectors MCPs →

Frequently asked questions

What is the Instagram MCP server and what can it do? +

The Instagram MCP server is hosted on Aerostack and exposes these tools to your AI agent: `get_media`, `list_media`, `create_photo_post`, `create_video_post`, `create_carousel_post`. You get one hosted URL — no self-hosting — that works from Claude, Cursor, ChatGPT, Gemini, VS Code, or any MCP-compatible client, and you can share it with your team or combine it with other MCP servers in a workspace.

Is the Instagram MCP server hosted, or do I have to run it myself? +

It's hosted on Aerostack's edge infrastructure — you don't deploy or maintain anything. Add it to a workspace and you get one authenticated URL, with secrets encrypted, that any AI agent or editor can connect to. Use it solo or share the same URL across your whole team.

Which AI agents and editors can use the Instagram MCP server? +

Any MCP client: Claude and Claude Code, Cursor, ChatGPT, Gemini, Windsurf, Cline, VS Code, and custom agents. Because it's one hosted URL, the same Instagram MCP server works everywhere — and you can compose it with other MCP servers, skills, and functions behind a single workspace URL.

How do I install the Instagram MCP server in Claude Desktop? +

Add the following to your Claude Desktop config (`claude_desktop_config.json`): ```json { "mcpServers": { "@aerostack/mcp-instagram": { "command": "npx", "args": ["-y", "@aerostack/@aerostack/mcp-instagram"] } } } ``` Then restart Claude Desktop and the tools will appear automatically.

How do I use the Instagram MCP server in Cursor? +

In Cursor, open **Settings → MCP** and add: ```json { "name": "@aerostack/mcp-instagram", "command": "npx", "args": ["-y", "@aerostack/@aerostack/mcp-instagram"] } ``` Save and reload Cursor. The MCP tools will be available in Agent mode.

Does Instagram MCP require authentication? +

Yes. Instagram requires authentication. Check the MCP's documentation for the required credentials.