Instagram → ChatGPT MCP Server
Connects an Instagram Professional (Business or Creator) account via Meta's official Instagram Platform API, enabling reading profile, posts/reels, insights, and comments; publishing image posts and reels; and managing comments such as replying, hiding/unhiding, and deleting.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Instagram → ChatGPT MCP Server
Open-source MCP server for connecting an Instagram Professional (Business or Creator) account to an MCP client such as ChatGPT, using Meta's official Instagram Platform API and OAuth. It does not ask for or store your Instagram password.
What it supports
Read profile information
Read posts/reels
Publish image posts
Publish reels
Read account/media insights
Read comments
Reply to comments
Hide/unhide comments
Delete comments
Delete media where Meta permits the operation
Related MCP server: instagram-mcp
Important platform limits
Meta's Instagram Platform API is for Professional accounts (Business/Creator). Personal accounts need to be converted first. API permissions and available metrics can change; use the current Meta App Dashboard and documentation when configuring the app.
Publishing requires the media to be reachable by Meta at a public HTTPS URL. A local file:// or localhost URL will not work.
Architecture
ChatGPT/MCP client → HTTPS /mcp + Bearer token → this server → official graph.instagram.com API.
OAuth endpoints:
/oauth/start/oauth/callback
The MCP endpoint requires Authorization: Bearer $MCP_AUTH_TOKEN. Keep this separate from the Meta access token.
Tokens are stored in a local SQLite database. The Instagram password is never handled by this server.
Local setup
Install Node.js 22+.
Create a Meta developer app and add Instagram API with Instagram Login.
Configure OAuth redirect URI as
https://YOUR-DOMAIN/oauth/callback(or your local tunnel URL).Request these scopes:
instagram_business_basicinstagram_business_content_publishinstagram_business_manage_commentsinstagram_business_manage_insights
Copy
.env.exampleto.envand fill in App ID, App Secret, redirect URI, public URL and a strong session secret.Run:
npm install
npm run build
npm startOpen
https://YOUR-DOMAIN/oauth/startin a browser and approve Instagram access.Configure your MCP client to use
https://YOUR-DOMAIN/mcpwith Streamable HTTP.
Docker
docker build -t instagram-chatgpt-mcp .
docker run --rm -p 3000:3000 --env-file .env -v "$PWD/data:/app/data" instagram-chatgpt-mcpProduction notes
Put the server behind HTTPS.
Keep
META_APP_SECRET,MCP_AUTH_TOKEN, and the SQLite database private.Back up the SQLite database securely; it contains access tokens.
Do not commit
.envor the SQLite database.Add rate limiting, structured audit logs, CSRF protections around OAuth, and persistent/session-aware MCP handling before exposing this to multiple users.
For a personal/single-account deployment, the included SQLite token store is intentionally simple.
ChatGPT connection
ChatGPT needs a publicly reachable HTTPS MCP endpoint. The source package cannot itself create that public endpoint. Deploy this server first, then add its MCP URL in the ChatGPT connector/plugin flow available to your account.
Meta references
Use Meta's current Instagram Platform documentation and App Dashboard for the exact current scopes, review requirements, API version and redirect URI settings.
This server cannot be deployed
Maintenance
Related MCP Connectors
Create your offers and launch AI Instagram DM sales agents from any MCP client, over OAuth.
OAuth MCP for Google, Meta, X, LinkedIn, Reddit, TikTok, GSC, GA4, WordPress and GHL.
Hosted MCP for Instagram, Facebook, X, LinkedIn, Pinterest, and Ghost. OAuth 2.1, 38 tools.
Publish to Instagram from chat — official Graph API, OAuth 2.1, free for your own posts.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to manage a Meta-linked Instagram professional account, including comments, replies, and messages, using Meta's official APIs with deterministic permissions and audit state.MIT
- AlicenseAqualityBmaintenanceEnables MCP clients to manage an Instagram Business or Creator account via the official Instagram Login Graph API, including profile/media retrieval, insights, comments, publishing, and direct messages. Write actions are optional and gated by configuration.2624 npmMIT
- FlicenseNot gradedqualityAmaintenanceEnables sending direct messages and managing conversations, media, user profiles, stories, followers, and engagement from an Instagram account through MCP tools.-
- FlicenseNot gradedqualityAmaintenanceEnables sending direct messages, managing conversations and media, and retrieving user/profile information on Instagram through MCP tools.-