instagram-mcp-server
v1.0.0MCP 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.
| Parameter | Type | Description |
|---|---|---|
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'.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | |
username * | string |
instagram_complete_2fa Instagram Complete 2Fa
Submit the 2FA authenticator code after login returned 'needs_2fa'.
| Parameter | Type | Description |
|---|---|---|
code * | string |
instagram_complete_challenge Instagram Complete Challenge
Submit the email/SMS challenge code after login returned 'needs_challenge'.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
biography | ||
external_url | ||
full_name |
instagram_change_profile_picture Instagram Change Profile Picture
Change the profile picture. Accepts local file path or image URL.
| Parameter | Type | Description |
|---|---|---|
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…
| Parameter | Type | Description |
|---|---|---|
caption * | string | |
image_path_or_url * | string | |
alt_text | ||
disable_comments | boolean | |
hashtags | ||
hide_likes | boolean | |
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
| Parameter | Type | Description |
|---|---|---|
caption * | string | |
image_paths_or_urls * | array | |
disable_comments | boolean | |
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
| Parameter | Type | Description |
|---|---|---|
caption * | string | |
video_path_or_url * | string | |
alt_text | ||
disable_comments | boolean | |
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
| Parameter | Type | Description |
|---|---|---|
caption * | string | |
video_path_or_url * | string | |
disable_comments | boolean | |
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
| Parameter | Type | Description |
|---|---|---|
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
| Parameter | Type | Description |
|---|---|---|
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
| Parameter | Type | Description |
|---|---|---|
alt_text * | string | |
media_id_or_url * | string |
instagram_disable_comments Instagram Disable Comments
Disable comments on a post.
| Parameter | Type | Description |
|---|---|---|
media_id_or_url * | string |
instagram_enable_comments Instagram Enable Comments
Enable comments on a post (reverses a previous disable).
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
media_id_or_url * | string |
instagram_unarchive_post Instagram Unarchive Post
Unarchive a post (restores it to your profile grid).
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
media_id_or_url * | string |
instagram_unpin_post Instagram Unpin Post
Remove a pinned post from the top of your profile grid.
| Parameter | Type | Description |
|---|---|---|
media_id_or_url * | string |
instagram_delete_post Instagram Delete Post
Permanently delete a post. This cannot be undone.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
amount | integer | |
username |
instagram_get_timeline_feed Instagram Get Timeline Feed
Get the home timeline feed — posts from accounts you follow.
| Parameter | Type | Description |
|---|---|---|
amount | integer |
instagram_get_media_info Instagram Get Media Info
Get detailed information about any post by ID or URL.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
amount | integer | |
username |
instagram_get_saved_posts Instagram Get Saved Posts
Get posts saved in your Saved collection.
| Parameter | Type | Description |
|---|---|---|
amount | integer |
instagram_download_post Instagram Download Post
Download a post's photo or video to local disk.
| Parameter | Type | Description |
|---|---|---|
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
| Parameter | Type | Description |
|---|---|---|
image_path_or_url * | string | |
close_friends_only | boolean | |
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
| Parameter | Type | Description |
|---|---|---|
video_path_or_url * | string | |
close_friends_only | boolean | |
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.
| Parameter | Type | Description |
|---|---|---|
username |
instagram_delete_story Instagram Delete Story
Delete one of your active stories by media ID.
| Parameter | Type | Description |
|---|---|---|
story_id * | string |
instagram_get_story_viewers Instagram Get Story Viewers
Get the list of users who viewed one of your stories.
| Parameter | Type | Description |
|---|---|---|
story_id * | string |
instagram_get_highlights Instagram Get Highlights
Get story highlights for the logged-in account or a target username.
| Parameter | Type | Description |
|---|---|---|
username |
instagram_create_highlight Instagram Create Highlight
Create a new story highlight collection from existing stories.
| Parameter | Type | Description |
|---|---|---|
story_ids * | array | |
title * | string |
instagram_delete_highlight Instagram Delete Highlight
Delete a highlights collection by its ID.
| Parameter | Type | Description |
|---|---|---|
highlight_id * | string |
instagram_like_post Instagram Like Post
Like a post by media ID or URL.
| Parameter | Type | Description |
|---|---|---|
media_id_or_url * | string |
instagram_unlike_post Instagram Unlike Post
Remove a like from a post.
| Parameter | Type | Description |
|---|---|---|
media_id_or_url * | string |
instagram_save_post Instagram Save Post
Save a post to your Saved collection.
| Parameter | Type | Description |
|---|---|---|
media_id_or_url * | string |
instagram_unsave_post Instagram Unsave Post
Remove a post from your Saved collection.
| Parameter | Type | Description |
|---|---|---|
media_id_or_url * | string |
instagram_get_post_likers Instagram Get Post Likers
Get the list of users who liked a post.
| Parameter | Type | Description |
|---|---|---|
media_id_or_url * | string |
instagram_comment_on_post Instagram Comment On Post
Post a comment on any media item.
| Parameter | Type | Description |
|---|---|---|
media_id_or_url * | string | |
text * | string |
instagram_reply_to_comment Instagram Reply To Comment
Reply to a specific comment on a post.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
comment_id * | string | |
media_id_or_url * | string |
instagram_like_comment Instagram Like Comment
Like a comment on a post.
| Parameter | Type | Description |
|---|---|---|
comment_id * | string |
instagram_get_post_comments Instagram Get Post Comments
Get comments on a post with usernames, text, and timestamps.
| Parameter | Type | Description |
|---|---|---|
media_id_or_url * | string | |
amount | integer |
instagram_follow_user Instagram Follow User
Follow a user by username.
| Parameter | Type | Description |
|---|---|---|
username * | string |
instagram_unfollow_user Instagram Unfollow User
Unfollow a user by username.
| Parameter | Type | Description |
|---|---|---|
username * | string |
instagram_get_followers Instagram Get Followers
Get the followers list for the logged-in account or a target username.
| Parameter | Type | Description |
|---|---|---|
amount | integer | |
username |
instagram_get_following Instagram Get Following
Get the accounts that the logged-in account (or target username) is following.
| Parameter | Type | Description |
|---|---|---|
amount | integer | |
username |
instagram_block_user Instagram Block User
Block a user by username.
| Parameter | Type | Description |
|---|---|---|
username * | string |
instagram_unblock_user Instagram Unblock User
Unblock a previously blocked user.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
amount | integer |
instagram_get_direct_messages Instagram Get Direct Messages
Get messages in a DM thread, sorted chronologically.
| Parameter | Type | Description |
|---|---|---|
thread_id * | string | |
amount | integer |
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.
| Parameter | Type | Description |
|---|---|---|
text * | string | |
thread_id | ||
username |
instagram_send_dm_photo Instagram Send Dm Photo
Send a photo via DM. Provide username or thread_id.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
video_path_or_url * | string | |
thread_id | ||
username |
instagram_mark_thread_seen Instagram Mark Thread Seen
Mark a DM thread as seen/read.
| Parameter | Type | Description |
|---|---|---|
thread_id * | string |
instagram_search_users Instagram Search Users
Search for Instagram users by name or username.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
count | integer |
instagram_search_hashtag Instagram Search Hashtag
Get recent posts for a hashtag. Do not include '#' symbol.
| Parameter | Type | Description |
|---|---|---|
hashtag * | string | |
amount | integer |
instagram_get_hashtag_top_posts Instagram Get Hashtag Top Posts
Get trending/top posts for a hashtag. Do not include '#' symbol.
| Parameter | Type | Description |
|---|---|---|
hashtag * | string | |
amount | integer |
instagram_get_hashtag_info Instagram Get Hashtag Info
Get information about a hashtag including total post count.
| Parameter | Type | Description |
|---|---|---|
hashtag * | string |
instagram_get_similar_accounts Instagram Get Similar Accounts
Find accounts similar to a given username (Instagram's 'suggested for you').
| Parameter | Type | Description |
|---|---|---|
username * | string |
instagram_get_location_posts Instagram Get Location Posts
Get recent posts tagged at a specific location.
| Parameter | Type | Description |
|---|---|---|
location_name * | string | |
amount | integer |
instagram_get_notifications Instagram Get Notifications
Get recent activity — likes, comments, follows, mentions, tags.
| Parameter | Type | Description |
|---|---|---|
amount | integer |
instagram_get_pending_follow_requests Instagram Get Pending Follow Requests
Get pending follow requests for your account (relevant for private accounts).