instagram-mcp-server

v1.0.0
instagram-mcp-server Checked 5 days ago Published 5 months ago

MCP Server for full Instagram account control via AI agents — 68+ tools built with FastMCP + instagrapi

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

instagram_login_with_credentials Instagram Login With Credentials

Log in using username + password. Returns 'needs_2fa' or 'needs_challenge' if verification is required.

ParameterTypeDescription
password *string
username *string

instagram_login_with_sessionid Instagram Login With Sessionid

Log in via browser sessionid cookie — most reliable, bypasses 2FA. Get it: Instagram.com → F12 → Application → Cookies → copy 'sessionid'.

ParameterTypeDescription
session_id *string
username *string

instagram_complete_2fa Instagram Complete 2Fa

Submit the 2FA authenticator code after login returned 'needs_2fa'.

ParameterTypeDescription
code *string

instagram_complete_challenge Instagram Complete Challenge

Submit the email/SMS challenge code after login returned 'needs_challenge'.

ParameterTypeDescription
code *string

instagram_get_login_status Instagram Get Login Status

Check if the server is authenticated and which account is active.

instagram_logout Instagram Logout

Log out and delete the saved session file from disk.

instagram_get_profile Instagram Get Profile

Get full profile details for the logged-in account or any target username. Includes bio, follower/following counts, post count, website, verification status.

ParameterTypeDescription
username

instagram_edit_profile Instagram Edit Profile

Edit the logged-in account's profile. - full_name: Display name - biography: Bio text (supports emojis, newlines, @mentions, #hashtags) - external_url: Website link in bio Only fields you provide are updated.

ParameterTypeDescription
biography
external_url
full_name

instagram_change_profile_picture Instagram Change Profile Picture

Change the profile picture. Accepts local file path or image URL.

ParameterTypeDescription
image_path_or_url *string

instagram_post_photo Instagram Post Photo

Post a photo to the Instagram feed with FULL control. Parameters: - image_path_or_url: Local file path or direct image URL - caption: Main post caption/description text - hashtags: Comma-separated hashtags to append (e.g. "#python, #ai, #coding") - mentions: Comma-separated @usernames to mention in caption (e.g. "@nasa, @google") - tag_users_in_photo: Comma-separated @usernames to physically TAG in the image (people tags) - location_name: Location to tag (e.g. "New York, USA" or "Eiffel Tower") - alt_text: Accessibility alt text describing the image content - disable_comments: Set True to dis…

ParameterTypeDescription
caption *string
image_path_or_url *string
alt_text
disable_commentsboolean
hashtags
hide_likesboolean
location_name
mentions
tag_users_in_photo

instagram_post_album Instagram Post Album

Post a carousel album (2–10 photos/videos) with full caption control. Parameters: - image_paths_or_urls: List of local paths or URLs (up to 10 items) - caption: Main caption text - hashtags: Comma-separated hashtags (e.g. "#travel, #photography") - mentions: Comma-separated @mentions (e.g. "@friend1, @brand") - location_name: Location tag string - disable_comments: Set True to disable comments

ParameterTypeDescription
caption *string
image_paths_or_urls *array
disable_commentsboolean
hashtags
location_name
mentions

instagram_post_video Instagram Post Video

Post a video to the feed with full caption control. Parameters: - video_path_or_url: Local path or URL to MP4 file - caption: Caption text - hashtags: Comma-separated hashtags - mentions: Comma-separated @mentions - location_name: Location to tag - thumbnail_path_or_url: Custom thumbnail image (optional) - alt_text: Accessibility description for the video - disable_comments: Set True to disable comments

ParameterTypeDescription
caption *string
video_path_or_url *string
alt_text
disable_commentsboolean
hashtags
location_name
mentions
thumbnail_path_or_url

instagram_post_reel Instagram Post Reel

Post a Reel with full caption control. Reels have the highest organic reach. Parameters: - video_path_or_url: Local path or URL to MP4 video - caption: Caption text - hashtags: Comma-separated hashtags (crucial for Reel discovery) - mentions: Comma-separated @mentions - location_name: Location tag - disable_comments: Set True to disable comments

ParameterTypeDescription
caption *string
video_path_or_url *string
disable_commentsboolean
hashtags
location_name
mentions

instagram_edit_post_caption Instagram Edit Post Caption

Edit the caption of an existing post. Parameters: - media_id_or_url: Post media ID or full Instagram URL - new_caption: The new caption text (replaces the old one entirely) - hashtags: Hashtags to append to the new caption - mentions: @mentions to append to the new caption

ParameterTypeDescription
media_id_or_url *string
new_caption *string
hashtags
mentions

instagram_tag_users_in_post Instagram Tag Users In Post

Tag one or more users physically IN a photo (people tags). NOTE: Instagram's API only supports setting usertags at upload time. Use the tag_users_in_photo parameter in instagram_post_photo/post_reel instead. This tool attempts a post-upload tag via the private endpoint. Parameters: - media_id_or_url: Post media ID or Instagram URL - usernames: Comma-separated @usernames to tag in the photo

ParameterTypeDescription
media_id_or_url *string
usernames *string

instagram_set_post_alt_text Instagram Set Post Alt Text

Attempt to set accessibility alt text on an existing post via the private API. Alt text describes the image content for visually impaired users. Parameters: - media_id_or_url: Post media ID or full Instagram URL - alt_text: Text description of the image/video content

ParameterTypeDescription
alt_text *string
media_id_or_url *string

instagram_disable_comments Instagram Disable Comments

Disable comments on a post.

ParameterTypeDescription
media_id_or_url *string

instagram_enable_comments Instagram Enable Comments

Enable comments on a post (reverses a previous disable).

ParameterTypeDescription
media_id_or_url *string

instagram_archive_post Instagram Archive Post

Archive a post (hides it from your profile grid, but keeps it saved). Archived posts can be found in your Archive section.

ParameterTypeDescription
media_id_or_url *string

instagram_unarchive_post Instagram Unarchive Post

Unarchive a post (restores it to your profile grid).

ParameterTypeDescription
media_id_or_url *string

instagram_pin_post Instagram Pin Post

Pin a post to the top of your profile grid. You can pin up to 3 posts on your profile.

ParameterTypeDescription
media_id_or_url *string

instagram_unpin_post Instagram Unpin Post

Remove a pinned post from the top of your profile grid.

ParameterTypeDescription
media_id_or_url *string

instagram_delete_post Instagram Delete Post

Permanently delete a post. This cannot be undone.

ParameterTypeDescription
media_id_or_url *string

instagram_get_user_feed Instagram Get User Feed

Get recent posts from the logged-in account or any target username.

ParameterTypeDescription
amountinteger
username

instagram_get_timeline_feed Instagram Get Timeline Feed

Get the home timeline feed — posts from accounts you follow.

ParameterTypeDescription
amountinteger

instagram_get_media_info Instagram Get Media Info

Get detailed information about any post by ID or URL.

ParameterTypeDescription
media_id_or_url *string

instagram_get_tagged_posts Instagram Get Tagged Posts

Get posts where the logged-in account (or a target username) is tagged.

ParameterTypeDescription
amountinteger
username

instagram_get_saved_posts Instagram Get Saved Posts

Get posts saved in your Saved collection.

ParameterTypeDescription
amountinteger

instagram_download_post Instagram Download Post

Download a post's photo or video to local disk.

ParameterTypeDescription
media_id_or_url *string
save_dir

instagram_post_photo_story Instagram Post Photo Story

Post a photo Story with full sticker support. Parameters: - image_path_or_url: Local path or image URL - mentions: Comma-separated @usernames to add as mention stickers - hashtags: Comma-separated hashtags for hashtag stickers - location_name: Location sticker text - link_url: Link sticker URL (the swipe-up / link button on story) - close_friends_only: Post only to your Close Friends list

ParameterTypeDescription
image_path_or_url *string
close_friends_onlyboolean
hashtags
link_url
location_name
mentions

instagram_post_video_story Instagram Post Video Story

Post a video Story with full sticker support. Parameters: - video_path_or_url: Local path or URL to MP4 - mentions: Comma-separated @usernames for mention stickers - hashtags: Comma-separated hashtags for hashtag stickers - location_name: Location sticker text - link_url: Link sticker URL - close_friends_only: Post only to Close Friends

ParameterTypeDescription
video_path_or_url *string
close_friends_onlyboolean
hashtags
link_url
location_name
mentions

instagram_get_user_stories Instagram Get User Stories

Get active stories for the logged-in account or a target username.

ParameterTypeDescription
username

instagram_delete_story Instagram Delete Story

Delete one of your active stories by media ID.

ParameterTypeDescription
story_id *string

instagram_get_story_viewers Instagram Get Story Viewers

Get the list of users who viewed one of your stories.

ParameterTypeDescription
story_id *string

instagram_get_highlights Instagram Get Highlights

Get story highlights for the logged-in account or a target username.

ParameterTypeDescription
username

instagram_create_highlight Instagram Create Highlight

Create a new story highlight collection from existing stories.

ParameterTypeDescription
story_ids *array
title *string

instagram_delete_highlight Instagram Delete Highlight

Delete a highlights collection by its ID.

ParameterTypeDescription
highlight_id *string

instagram_like_post Instagram Like Post

Like a post by media ID or URL.

ParameterTypeDescription
media_id_or_url *string

instagram_unlike_post Instagram Unlike Post

Remove a like from a post.

ParameterTypeDescription
media_id_or_url *string

instagram_save_post Instagram Save Post

Save a post to your Saved collection.

ParameterTypeDescription
media_id_or_url *string

instagram_unsave_post Instagram Unsave Post

Remove a post from your Saved collection.

ParameterTypeDescription
media_id_or_url *string

instagram_get_post_likers Instagram Get Post Likers

Get the list of users who liked a post.

ParameterTypeDescription
media_id_or_url *string

instagram_comment_on_post Instagram Comment On Post

Post a comment on any media item.

ParameterTypeDescription
media_id_or_url *string
text *string

instagram_reply_to_comment Instagram Reply To Comment

Reply to a specific comment on a post.

ParameterTypeDescription
comment_id *string
media_id_or_url *string
text *string

instagram_delete_comment Instagram Delete Comment

Delete a comment by media ID/URL and comment ID.

ParameterTypeDescription
comment_id *string
media_id_or_url *string

instagram_like_comment Instagram Like Comment

Like a comment on a post.

ParameterTypeDescription
comment_id *string

instagram_get_post_comments Instagram Get Post Comments

Get comments on a post with usernames, text, and timestamps.

ParameterTypeDescription
media_id_or_url *string
amountinteger

instagram_follow_user Instagram Follow User

Follow a user by username.

ParameterTypeDescription
username *string

instagram_unfollow_user Instagram Unfollow User

Unfollow a user by username.

ParameterTypeDescription
username *string

instagram_get_followers Instagram Get Followers

Get the followers list for the logged-in account or a target username.

ParameterTypeDescription
amountinteger
username

instagram_get_following Instagram Get Following

Get the accounts that the logged-in account (or target username) is following.

ParameterTypeDescription
amountinteger
username

instagram_block_user Instagram Block User

Block a user by username.

ParameterTypeDescription
username *string

instagram_unblock_user Instagram Unblock User

Unblock a previously blocked user.

ParameterTypeDescription
username *string

instagram_get_blocked_users Instagram Get Blocked Users

Get the full list of users you have blocked.

instagram_get_direct_threads Instagram Get Direct Threads

Get recent DM threads with thread IDs, participants, and last activity.

ParameterTypeDescription
amountinteger

instagram_get_direct_messages Instagram Get Direct Messages

Get messages in a DM thread, sorted chronologically.

ParameterTypeDescription
thread_id *string
amountinteger

instagram_send_direct_message Instagram Send Direct Message

Send a text DM. Provide either: - username: to start or continue a conversation with a user. - thread_id: to reply in an existing thread.

ParameterTypeDescription
text *string
thread_id
username

instagram_send_dm_photo Instagram Send Dm Photo

Send a photo via DM. Provide username or thread_id.

ParameterTypeDescription
image_path_or_url *string
thread_id
username

instagram_send_dm_video Instagram Send Dm Video

Send a video via DM. Provide username or thread_id.

ParameterTypeDescription
video_path_or_url *string
thread_id
username

instagram_mark_thread_seen Instagram Mark Thread Seen

Mark a DM thread as seen/read.

ParameterTypeDescription
thread_id *string

instagram_search_users Instagram Search Users

Search for Instagram users by name or username.

ParameterTypeDescription
query *string
countinteger

instagram_search_hashtag Instagram Search Hashtag

Get recent posts for a hashtag. Do not include '#' symbol.

ParameterTypeDescription
hashtag *string
amountinteger

instagram_get_hashtag_top_posts Instagram Get Hashtag Top Posts

Get trending/top posts for a hashtag. Do not include '#' symbol.

ParameterTypeDescription
hashtag *string
amountinteger

instagram_get_hashtag_info Instagram Get Hashtag Info

Get information about a hashtag including total post count.

ParameterTypeDescription
hashtag *string

instagram_get_similar_accounts Instagram Get Similar Accounts

Find accounts similar to a given username (Instagram's 'suggested for you').

ParameterTypeDescription
username *string

instagram_get_location_posts Instagram Get Location Posts

Get recent posts tagged at a specific location.

ParameterTypeDescription
location_name *string
amountinteger

instagram_get_notifications Instagram Get Notifications

Get recent activity — likes, comments, follows, mentions, tags.

ParameterTypeDescription
amountinteger

instagram_get_pending_follow_requests Instagram Get Pending Follow Requests

Get pending follow requests for your account (relevant for private accounts).