KosmoKrator

marketing

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.

7 functions 6 read 1 write Manual OAuth token auth

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.

Machine-Readable Metadata
integration_slug
instagram
route_slug
instagram
package
instagram
auth_strategy
oauth2_manual_token Manual OAuth token
cli_setup_supported
true
cli_runtime_supported
true
mcp_gateway_supported
true
lua_supported
true
supports_multi_account
true

Quick Links

Instagram MCP Client Matrix

Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Instagram.

Instagram CLI Matrix

Use these pages for direct Instagram CLI workflows in scripts, CI, cron, and agent wrappers.

Function Catalog

FunctionTypeParametersDescription
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.