Instagram MCP Server
v1.0.0Instagram via Meta's official Graph API: publishing, comments, DMs, insights and discovery.
Values you need
| Variable | What it is | |
|---|---|---|
IG_ACCESS_TOKEN | required secret | Long-lived Instagram access token: an IGAA... token on instagram_login, or a long-lived Page or User token with the instagram_* scopes on facebook_login. |
IG_AUTH_MODE | optional | Which Meta API path to use. instagram_login needs no Facebook Page (37 tools). facebook_login needs a linked Page and adds hashtag search, business discovery, Page listing and media deletion (42 tools). Default: instagram_login |
IG_USER_ID | optional | Instagram professional account ID. Optional on instagram_login; required on facebook_login (find it with instagram_list_pages). |
IG_API_VERSION | optional | Graph API version to pin. Default: v26.0 |
IG_APP_ID | optional | Meta app ID. Needed only for instagram_get_token_info and instagram_refresh_token on facebook_login. |
IG_APP_SECRET | optional secret | Meta app secret. Needed only for instagram_get_token_info and instagram_refresh_token on facebook_login. |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add instagram-mcp-server -e 'IG_ACCESS_TOKEN=<IG_ACCESS_TOKEN>' -- npx -y @qaassim/instagram-mcp-server@1.0.0Add to
claude_desktop_config.json{
"mcpServers": {
"instagram-mcp-server": {
"args": [
"-y",
"@qaassim/instagram-mcp-server@1.0.0"
],
"command": "npx",
"env": {
"IG_ACCESS_TOKEN": "<IG_ACCESS_TOKEN>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"instagram-mcp-server": {
"args": [
"-y",
"@qaassim/instagram-mcp-server@1.0.0"
],
"command": "npx",
"env": {
"IG_ACCESS_TOKEN": "<IG_ACCESS_TOKEN>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "IG_ACCESS_TOKEN",
"id": "ig-access-token",
"password": true,
"type": "promptString"
}
],
"servers": {
"instagram-mcp-server": {
"args": [
"-y",
"@qaassim/instagram-mcp-server@1.0.0"
],
"command": "npx",
"env": {
"IG_ACCESS_TOKEN": "${input:ig-access-token}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.instagram-mcp-server]
command = "npx"
args = ["-y", "@qaassim/instagram-mcp-server@1.0.0"]
env = { "IG_ACCESS_TOKEN" = "<IG_ACCESS_TOKEN>" }For AI agents
- Ask the user for: IG_ACCESS_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: instagram_get_account, instagram_get_publishing_limit, instagram_get_token_info, instagram_refresh_token, instagram_publish_image, instagram_publish_reel, instagram_publish_story, instagram_publish_carousel, ….
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json