Instagram

v0.1.0
io.github.mcp-dir/instagram-mcp Checked 5 days ago Published 3 months ago

Instagram for AI agents: publish, read comments and DMs, insights, and engage from your account.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

instagram_actions_list_accounts

List the Instagram accounts connected to this install — id, username, label.

ParameterTypeDescription
accountstring

instagram_actions_like

Like one or more Instagram posts, addressed by post URL or shortcode (NOT the numeric media id the official API returns). Returns a job_id; poll instagram_actions_get_job_status.

ParameterTypeDescription
posts *array
accountstring

instagram_actions_list_comments

List the comments on a post, addressed by URL or shortcode. Returns each comment_id in the form that instagram_actions_like_comment accepts. The official API returns a DIFFERENT id that is not accepted there. Returns a job_id; poll instagram_actions_get_job_status.

ParameterTypeDescription
posts *array
accountstring

instagram_actions_like_comment

Like one or more comments. Each comment_id MUST come from instagram_actions_list_comments. The id returned by the official instagram_get_ig_media_comments belongs to a different namespace and is rejected. Returns a job_id; poll instagram_actions_get_job_status.

ParameterTypeDescription
comment_ids *array
accountstring

instagram_actions_follow

Follow one or more Instagram users by @username. Returns a job_id.

ParameterTypeDescription
targets *array
accountstring

instagram_actions_unfollow

Unfollow one or more Instagram users by @username. Returns a job_id.

ParameterTypeDescription
targets *array
accountstring

instagram_actions_list_stories

List a specific user's currently available stories (read-only, does not mark as seen). Returns a job_id (or the result inline when wait=true).

ParameterTypeDescription
target *string
accountstring
waitboolean

instagram_actions_view_story

Watch (mark as seen) the stories of one or more profiles. Omit `targets` to watch the home tray. Returns a job_id.

ParameterTypeDescription
accountstring
targetsarray

instagram_actions_send_message

Send the FIRST direct message to someone who has never messaged this account (the official API cannot do this). One recipient per call, low daily cap. Returns a job_id.

ParameterTypeDescription
target *string
text *string
accountstring
dry_runboolean

instagram_actions_get_job_status

Get the status/progress/result of a previously started action by its job_id. Bulk support: accepts job_ids for batched execution.

ParameterTypeDescription
job_id *string
accountstring
job_idsarray

instagram_actions_list_jobs

List recent action jobs for the connected account, optionally filtered by status.

ParameterTypeDescription
accountstring
statusstring

instagram_get_user_info

Get Instagram Business Account info including profile details and statistics. Use "me" to query your own authenticated account, or provide the numeric Business Account ID of an account you manage. NOTE: followers_count and follows_count are returned for your own profile (ig_user_id="me"). For other accounts, follower/… Bulk support: accepts ig_user_ids for batched execution.

ParameterTypeDescription
accountstring
graph_api_versionstring
ig_user_idstring
ig_user_idsarray

instagram_get_ig_user_media

List account media. REST response: read result.result.data and result.result.paging (not result.data). Null engagement fields mean unavailable, not zero; use media insights for saved, shares and views. Bulk support: accepts ig_user_ids, auto_resolve_fb_page_ids for batched execution.

ParameterTypeDescription
accountstring
afterstring
auto_resolve_fb_page_idboolean
auto_resolve_fb_page_idsarray
beforestring
fieldsstring
graph_api_versionstring
ig_user_idstring
ig_user_idsarray
limitnumber
sincenumber
untilnumber

instagram_get_ig_media

Get a published Instagram Media object (photo, video, story, reel, or carousel). Use when you need to retrieve detailed information about a specific Instagram post including engagement metrics, caption, media URLs, and metadata. NOTE: This action is for published media only. For unpublished container IDs (from INSTAGR… Bulk support: accepts ig_media_ids for batched execution.

ParameterTypeDescription
ig_media_id *string
accountstring
fieldsstring
graph_api_versionstring
ig_media_idsarray

instagram_get_ig_media_comments

Tool to retrieve comments on an Instagram media object. Use when you need to fetch comments from a specific Instagram post, photo, video, or carousel owned by the connected Business/Creator account. Supports cursor-based pagination for navigating through large comment lists. An empty data array in the response indicat… Bulk support: accepts ig_media_ids for batched execution.

ParameterTypeDescription
ig_media_id *string
accountstring
afterstring
beforestring
fieldsstring
graph_api_versionstring
ig_media_idsarray
limitnumber

instagram_get_ig_media_insights

Read media insights. REST response: read result.result.data. Request metric=[views,reach,saved,shares] for views, reach, saves and shares; availability depends on the media type and metric. Bulk support: accepts ig_media_ids for batched execution.

ParameterTypeDescription
ig_media_id *string
metric *array
accountstring
breakdownstring
graph_api_versionstring
ig_media_idsarray
periodstring

instagram_get_user_insights

Read account insights at result.result.data in REST. An empty data array means insights are unavailable, not zero. It does not by itself establish a follower-count restriction. Bulk support: accepts ig_user_ids for batched execution.

ParameterTypeDescription
accountstring
breakdownstring
graph_api_versionstring
ig_user_idstring
ig_user_idsarray
metricarray
metric_typestring
periodstring
sincenumber
timeframestring
untilnumber

instagram_post_ig_user_media

Tool to create a media container for Instagram posts. Use this to create a container for images, videos, Reels, or carousels. This is the first step in Instagram's two-step publishing process - after creating the container, use the media_publish endpoint to publish it. Bulk support: accepts ig_user_ids, location_ids for batched execution.

ParameterTypeDescription
accountstring
alt_textstring
audio_namestring
captionstring
childrenarray
cover_urlstring
graph_api_versionstring
ig_user_idstring
ig_user_idsarray
image_fileobject
image_urlstring
is_carousel_itemboolean
location_idstring
location_idsarray
media_typestring
share_to_feedboolean
thumb_offsetnumber
trial_paramsobject
user_tagsarray
video_fileobject
video_urlstring

instagram_post_ig_user_media_publish

Tool to publish a media container to an Instagram Business account. This action automatically waits for the container to finish processing before publishing. Instagram enforces an account-specific content-publishing rate limit over a 24-hour moving window; the exact cap varies by account and should be read live via IN… Bulk support: accepts ig_user_ids, creation_ids for batched execution.

ParameterTypeDescription
creation_id *string
accountstring
creation_idsarray
graph_api_versionstring
ig_user_idstring
ig_user_idsarray
max_wait_secondsnumber
poll_interval_secondsnumber

instagram_post_ig_comment_replies

Tool to create a reply to an Instagram comment. Use when you need to reply to a specific comment on an Instagram post owned by a Business or Creator account. The reply must be 300 characters or less, contain at most 4 hashtags and 1 URL, and cannot consist entirely of capital letters. Bulk support: accepts ig_comment_ids for batched execution.

ParameterTypeDescription
ig_comment_id *string
message *string
accountstring
graph_api_versionstring
ig_comment_idsarray

instagram_send_text_message

Reply by DM to someone who messaged this account in the last 24 hours, in that same conversation (recipient_id from instagram_list_all_conversations / instagram_list_all_messages). Cannot start a conversation or message someone who has not written: Instagram refuses it with error code messaging_window_closed (do not retry). For a first message, use instagram_actions_send_message (Advanced plan). Requires an Instagram Business or Creator account. Bulk support: accepts ig_user_ids, recipient_ids, reply_to_message_ids for batched execution.

ParameterTypeDescription
recipient_id *string
text *string
accountstring
graph_api_versionstring
ig_user_idstring
ig_user_idsarray
recipient_idsarray
reply_to_message_idstring
reply_to_message_idsarray

instagram_send_image

Reply with an image by DM to someone who messaged this account in the last 24 hours, in that same conversation. Cannot start a conversation: Instagram refuses it with error code messaging_window_closed (do not retry). Each send changes the inbox; avoid bulk sends without explicit user approval. Bulk support: accepts ig_user_ids, recipient_ids for batched execution.

ParameterTypeDescription
image_url *string
recipient_id *string
accountstring
graph_api_versionstring
ig_user_idstring
ig_user_idsarray
recipient_idsarray

instagram_mark_seen

Mark Instagram DM messages as read/seen for a specific user. Sends a 'mark_seen' sender action to indicate messages from the specified recipient have been read. Marking as seen is visible to the other party and changes inbox read state — use with explicit user approval in automated or bulk flows. IMPORTANT LIMITATIONS… Bulk support: accepts ig_user_ids, recipient_ids for batched execution.

ParameterTypeDescription
recipient_id *string
accountstring
graph_api_versionstring
ig_user_idstring
ig_user_idsarray
recipient_idsarray

instagram_get_conversation

Get details about a specific Instagram DM conversation (participants, etc). Requires a Business or Creator account with Instagram messaging permissions; personal accounts will return permission errors. Newly sent/received messages may take a few seconds to appear in results. Bulk support: accepts conversation_ids for batched execution.

ParameterTypeDescription
conversation_id *string
accountstring
conversation_idsarray
graph_api_versionstring

instagram_list_all_conversations

List all Instagram DM conversations for the authenticated user. Requires a Business/Creator account with messaging permissions; personal accounts return empty results. Response conversations are nested under `data.data` — accessing top-level `data` as the final list returns zero items. An empty `data` list is a valid … Bulk support: accepts user_ids, ig_user_ids for batched execution.

ParameterTypeDescription
accountstring
afterstring
graph_api_versionstring
ig_user_idstring
ig_user_idsarray
limitnumber
platformstring
user_idstring
user_idsarray

instagram_list_all_messages

List all messages from a specific Instagram DM conversation. Requires a Business or Creator account with messaging permissions; personal accounts return empty results. Response data is nested under data.data (double-wrapped); attachment-only messages may have empty text fields. Bulk support: accepts conversation_ids for batched execution.

ParameterTypeDescription
conversation_id *string
accountstring
afterstring
conversation_idsarray
graph_api_versionstring
limitnumber

show_version

Show the current MCP platform and adapter versions.

report_bug

Report a bug, missing feature, or send feedback. Include the conversation array with recent messages for reproduction.

ParameterTypeDescription
message *string
contextstring
conversationstring

connect

Returns connection status and URLs. When all providers are connected, returns authenticated:true and empty pending[]. When credentials are missing, returns connect_url for the toolkit and per-install URLs.

toolkit_info

Returns the current toolkit state: installed MCPs, their connection status, the accounts connected to each one, and how many catalog tools each exposes.

marketplace

The official mcp.ai marketplace — the in-platform catalog of every MCP/tool, AND the way to run them. Covers capability requests like "find an MCP that does X", "consulta um CPF", "is there a tool for Y". Core flow: action=search discovers MCPs by intent → describe returns one MCP's full profile (every tool with its id + params, pricing, auth) so you pick the right tool_id → invoke RUNS that tool. KEY: invoke works even when the MCP is NOT installed — it runs the tool pontualmente (one-off), without adding the MCP to the toolkit and without bloating the tool list. If the MCP needs a cr…

ParameterTypeDescription
actionstring
argumentsstring
cancel_commentstring
cancel_reasonstring
conversationstring
immediateboolean
limitnumber
mcp_idstring
messagestring
prompt_bodystring
prompt_categorystring
prompt_descriptionstring
prompt_slugstring
prompt_targetsarray
prompt_titlestring
prompt_toolstring
prompt_varsstring
querystring
report_contextstring
request_detailsstring
request_namestring
tier_slugstring
tool_idstring

authenticate

MCP.AI for IDE agents (Cursor, etc.): log in in the browser, copy the access token. Best: add it to this server's config as a header `Authorization: Bearer <token>` for a permanent, non-expiring connection. Or paste it here for a session-only login: call with { token: "<jwt>" } after the user pastes, or with no args to get the link.

ParameterTypeDescription
tokenstring