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_tokenManual OAuth token- cli_setup_supported
true- cli_runtime_supported
true- mcp_gateway_supported
true- lua_supported
true- supports_multi_account
true
Quick Links
Lua APIAgent-facing namespace and function reference. Instagram CLIHeadless setup and direct function calls. Instagram MCPMCP gateway setup for external clients. Submit feedbackReport missing tools, auth problems, wrong docs, or runtime issues. ContributeAdd tools or improve metadata in the integrations repo.
Instagram MCP Client Matrix
Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Instagram.
Claude Code Instagram MCP setup for Claude Code. Cursor Instagram MCP setup for Cursor. Codex Instagram MCP setup for Codex. OpenAI Agents Instagram MCP setup for OpenAI Agents SDK. Claude Agent SDK Instagram MCP setup for Claude Agent SDK. Vercel AI SDK Instagram MCP setup for Vercel AI SDK. LangChain Instagram MCP setup for LangChain. LangGraph Instagram MCP setup for LangGraph. CrewAI Instagram MCP setup for CrewAI. MCP clients Instagram MCP setup for Generic MCP Clients.
Instagram CLI Matrix
Use these pages for direct Instagram CLI workflows in scripts, CI, cron, and agent wrappers.
CI Instagram CLI for CI. Cron Jobs Instagram CLI for cron jobs. Shell Scripts Instagram CLI for shell scripts. Headless Automation Instagram CLI for headless automation. Coding Agents Instagram CLI for coding agents.
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. |