productivity
Instagram MCP, CLI, and Lua Integration for AI Agents
Instagram integration docs for AI agents: MCP gateway setup, Instagram CLI commands, Lua API reference, credentials, and function schemas.Instagram for agents
Credentials can be configured manually in web or CLI hosts.
Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.
Agent Surfaces
Machine-Readable Metadata
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
instagram.instagram_list_media | Read read | 4 | List media published by the authenticated Instagram user. Returns media IDs, captions, types, URLs, and timestamps. Supports cursor-based pagination. |
instagram.instagram_get_media | Read read | 2 | Get details of a specific Instagram media item by its ID. Returns caption, media type, URL, timestamp, like count, and comment count. |
instagram.instagram_create_media | Write write | 4 | Publish a new media item (photo or video) to Instagram. Provide the media URL and an optional caption. The media is published immediately unless publish is set to false. |
instagram.instagram_list_comments | Read read | 3 | List comments on a specific Instagram media item. Returns comment IDs, text, timestamps, usernames, and like counts. Supports pagination. |
instagram.instagram_get_comment | Read read | 1 | Get details of a specific Instagram comment by its ID. Returns the comment text, timestamp, username, and like count. |
instagram.instagram_list_insights | Read read | 4 | Get account-level insights and performance metrics for the authenticated Instagram user. Supports metrics like impressions, reach, follower count, and profile views with configurable time periods. |
instagram.instagram_get_current_user | Read read | 0 | Get the currently authenticated Instagram user profile. Returns user ID, username, name, account type, media count, and follower/following counts. |