Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Tools

Functions exposed to the LLM to take actions

NameDescription
instagram_login

Login to an Instagram account using credentials from environment variables (IG_USERNAME and IG_PASSWORD). The session will be saved and persist across server restarts.

instagram_complete_2fa

Complete Instagram login by providing the 2FA verification code. Use this after 'instagram_login' indicates 2FA is required.

instagram_search_accounts

Search for Instagram accounts by username query. Returns a list of matching accounts with their profile information.

instagram_logout

Logout from Instagram and clear the saved session. This will invalidate the current session and require re-authentication for future operations.

instagram_get_user_profile

Get comprehensive Instagram profile information by user ID or username. Returns profile details including username, full name, bio, follower/following counts, verification status, profile picture, and account type flags.

instagram_get_current_user_profile

Get the authenticated user's own profile information. Returns complete account details including username, full name, bio, follower/following counts, verification status, profile picture, account type, and settings. Requires authentication.

instagram_get_user_posts

Get paginated feed of a user's Instagram posts. Returns posts with media URLs, captions, engagement metrics, and metadata. Supports pagination via maxId cursor.

instagram_like_post

Like an Instagram post or reel by media ID. Requires authentication.

instagram_like_comment

Like an Instagram comment by comment ID. Requires authentication.

instagram_comment_on_post

Add a comment to an Instagram post or reply to an existing comment. Requires authentication.

instagram_get_post_comments

Get comments for an Instagram post. Returns paginated list of comments with author info, text, timestamps, and engagement metrics. Supports pagination via maxId cursor. Requires authentication.

instagram_get_post_details

Get detailed information about a specific Instagram post by media ID. Returns comprehensive post details including caption, engagement metrics, media URLs, dimensions, location, and author information.

instagram_get_user_stories

Get active Instagram stories from a user by user ID or username. Returns story items with media URLs, timestamps, story type, duration, and viewer count (if viewing own stories). Stories expire after 24 hours.

instagram_get_timeline_feed

Get home feed (posts from accounts you follow). Returns paginated feed of posts with media URLs, captions, engagement metrics, and metadata. Supports pagination via maxId cursor. Requires authentication.

instagram_follow_user

Follow an Instagram user by user ID. Requires authentication. May require approval for private accounts.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/anand-kamble/mcp-instagram'

If you have feedback or need assistance with the MCP directory API, please join our Discord server