Skip to main content
Glama
Instagram Posting MCP

Instagram Posting MCP

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
IG_DRY_RUNNoSet to true to simulate posts without calling Instagram. Defaults to false.
IG_USER_IDYesInstagram Business Account ID from the Meta Graph API. Required for real posting.
WAKE_SECRETNoSecret token required by the wake helper.
IG_ACCESS_TOKENYesLong-lived Instagram Graph API access token. Required for real posting.
MCP_SECRET_TOKENNoSecret token required for HTTP mode, sent as the X-MCP-Token header. Not needed for local stdio mode.
IG_PUBLIC_BASE_URLNoBase URL where local media files are publicly served, used to build public HTTPS URLs for the Instagram Graph API.
IDLE_TIMEOUT_MINUTESNoMinutes of idle time before the bridge shuts itself off. Defaults to 5.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
post_reelA

Only call this after the user has approved the exact media, caption, hashtags and settings. Do not post without that approval. Publish a Reel (video under 90 seconds, under 100 MB, vertical 1080x1920). A cover image is required. The video must be a public https URL, or a local file when IG_PUBLIC_BASE_URL is set (see README).

post_feed_imageA

Only call this after the user has approved the exact media, caption, hashtags and settings. Do not post without that approval. Publish a single feed photo (JPEG/PNG/WebP, under 100 MB).

post_storyA

Only call this after the user has approved the exact media, caption, hashtags and settings. Do not post without that approval. Publish a Story (image, or a video under 100 MB). Stories expire after 24 hours. NOTE: Instagram Stories have no caption field via the API — a caption passed here is checked for length only and is NOT posted. Put any text on the image/video itself.

schedule_postA

Only call this after the user has approved the exact media, caption, hashtags and settings. Do not post without that approval. Schedule a Reel or feed image for a future time instead of publishing now. Instagram does not let this bridge list, edit or cancel a scheduled post — check it in the Instagram app after scheduling.

list_postsB

List the account's recent posts / reels (id, caption, type, permalink, time, likes, comments). Read-only — no Instagram app needed.

get_post_insightsA

Read lifetime insights for one post / reel (Views, likes, comments, saves, shares where Instagram returns them). Read-only.

get_account_insightsA

Read account totals / trends over a rolling window (followers, views, accounts reached, etc.). Read-only.

update_post_settingsA

Only call this after the user has approved the exact media, caption, hashtags and settings. Do not post without that approval. Change one setting on a post the account owns: turn comments on/off. Note: Instagram Graph API does NOT allow editing a published post's caption — edit captions in the Instagram app.

request_uninstallA

Start the uninstall flow for this bridge. This tool NEVER uninstalls anything by itself. It only creates a one-time link to the local uninstall page. The AI MUST ask the user first ('Do you want to uninstall the bridge?'), and only if the user says yes, tell them to open the uninstall_url and click through Step 1 (Yes) and Step 2 (final Uninstall button). Nothing is deleted until the user clicks that final button in their own browser. The link expires in 15 minutes and works once.

set_startup_modeA

Switch the bridge between auto-start and on-demand, any time, with no reinstall. This tool NEVER switches silently: a call with confirm=false (or omitted) changes NOTHING — it only returns the exact Yes/No question to ask the user. Only call it again with confirm=true after the user said Yes to that question. auto_start: a tiny wake helper (5–10 MB RAM) starts at login so your AI can wake the bridge when you need to post; the full bridge still shuts itself off after 5 min idle. on_demand: nothing runs at login; you start the bridge yourself when you want to post. The mode is saved to config.json (startup_mode) and the OS auto-start entry is created/removed (Windows: HKCU Run value, user hive, no admin; macOS: LaunchAgent plist; Linux: autostart .desktop file). If the OS entry cannot be changed, the mode is NOT saved and the tool returns a clear error.

list_accountsA

List the Instagram accounts this bridge can post to (id, username, which one is the default, and how many days each token has left). Read-only. Tokens and full Instagram user ids are NEVER shown here — only the short id and username. A token expiring within 7 days is flagged so you can warn the user to reconnect in time; an account with unknown expiry (old single-account setup) shows null, never a guessed number. Use the id (or username) from this list as the 'account' on a post, or in set_default_account to change the default.

set_default_accountA

Change which Instagram account posts go to by default. This tool NEVER switches silently: a call with confirm=false (or omitted) changes NOTHING — it only returns the exact Yes/No question to ask the user. Only call it again with confirm=true after the user said Yes to that question. After the switch, every post without an 'account' goes to the new default; you can still post to another account any time by naming it on that one post. The default is saved to config.json (default_account_id). There is deliberately NO tool that adds an account with a pasted token — a second account is added only through the one-click Instagram login, which delivers the token to this PC. Never paste a token in chat.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.9/5.0

Scored across 12 tools

Disambiguation4/5

Each tool targets a distinct action/resource: reads (list_accounts, list_posts, get_post_insights, get_account_insights), publishing by media type (post_reel, post_feed_image, post_story), and one-off admin actions (set_default_account, set_startup_mode, request_uninstall). The main soft spots are schedule_post vs the three post_* tools (same media, deferred time) and update_post_settings, whose name implies broad post editing but actually only toggles comments — both are clarified in the description but still invite a brief second look.

Naming Consistency5/5

Strict verb_noun snake_case throughout: get_*, list_*, post_*, schedule_*, update_*, request_*, set_*. No camelCase or style drift, and the verb choice (post_ vs schedule_ vs update_) reflects the actual semantic difference between tools.

Tool Count5/5

12 tools is a good fit for a posting bridge: 3 publish tools, 1 schedule, 4 read/insight tools, and 4 account/bridge admin tools. Nothing looks redundant or bolted on, and the deliberately absent token-paste tool is justified in the description.

Completeness4/5

Core lifecycle for its stated purpose is covered: account discovery, publish/schedule across all three Instagram formats, post listing, post- and account-level insights, plus bridge admin and a safe uninstall path. Gaps exist around engagement (no reading or replying to comments, no carousel/multi-image or single-post fetch-by-id) and scheduled posts cannot be listed/cancelled — the latter is an API limitation the description discloses, so it's a workable rather than blocking gap.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues