Instagram MCP Server
Leverages the Facebook Graph API to access Facebook Pages and their linked Instagram business accounts, enabling management of Pages and sharing assets via Business Manager Partners.
Provides tools for managing Instagram Business and Creator accounts: list accounts, get profile info and insights, audience demographics, manage media (list recent posts, get insights, comments), and publish photos, reels, and carousels.
Integrates with Meta's Business Manager to centralize access across multiple client Instagram accounts using a single system user token, handling permissions and multi-account routing.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Instagram MCP ServerList all Instagram business accounts."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Instagram MCP Server (agency, Partners model)
Connect Claude to all your clients' Instagram accounts at once.
The agency runs a central Business Manager. Each client BM shares its Page + Instagram account into the central BM via Partners. One System User token in the central BM then sees every client → a single token covers everyone. Local stdio MCP server in Python.
The server also supports multiple tokens (one per BM) as a fallback — see "Multiple tokens" below — but the Partners model needs just one.
How it works
Uses the Facebook Graph API. The central token walks the Pages it can access (/me/accounts → each Page's linked instagram_business_account, including partner-shared ones) and builds a registry of every account (username + ig id). Per-account tools take an account argument; list_accounts shows them all.
Related MCP server: instagram-mcp
Tools (39)
Core
Tool | What it does |
| Every IG account across all client BMs (username, id, followers, BM label) |
| Profile + counts for one account |
| Reach, views, interactions, accounts engaged |
| Follower breakdown by country / city / age / gender |
| Recent posts (caption, type, likes, comments, permalink) |
| Per-post reach, likes, comments, saves, shares, views |
| Comments on a post |
| Post to one account |
| Reply to a comment |
Agency reports (combine many calls)
Tool | What it does |
| Insights for EVERY managed account at once |
| Side-by-side followers / reach / interactions / engagement rate |
| Best posts in a window (by engagement / likes / comments) |
| Avg engagement rate over a window |
| Best hours from online-followers data |
| One-shot client report: profile + insights + ER + top posts |
Deeper insights
Tool | What it does |
| Daily follower-count series |
| Reel reach/views + avg & total watch time |
| Story reach, replies, navigation (query while live) |
| Taps on profile links |
Competitor / market
Tool | What it does |
| Public profile data of any business/creator by username |
| A competitor's recent public posts |
| Resolve a hashtag to its id |
| Top / recent media for a hashtag |
Moderation + publishing+
Tool | What it does |
| Post a Story (photo or video) |
| Moderate comments |
| Enable/disable comments on a post |
| Posts where the account was @tagged |
| Currently-live stories |
| Remaining posts in the 24h quota |
Direct messages (needs instagram_manage_messages scope)
Tool | What it does |
| Recent DM threads (id, participants, last update) |
| Read messages in a thread |
| Send a DM (subject to Meta's 24h messaging window) |
Scheduling (Instagram has no native API scheduling — a local worker publishes the queue)
Tool | What it does |
| Queue a photo/reel/carousel/story for a future time ( |
| List queued posts (filter by status / account) |
| Cancel a pending job by id |
| Publish any due posts now, on demand |
Per-account tools accept account (username or id). Media-level tools also accept account so the server knows which BM's token to use — required when more than one BM is configured. Competitor/hashtag tools use one of your accounts to make the query.
Requirements (Meta's, not optional)
Each managed Instagram account must be Business or Creator and linked to its Facebook Page.
A central Business Manager that owns your Meta app.
Each client BM shares its Page into the central BM via Partners (steps below).
To manage accounts you don't own, the app needs Advanced Access (App Review) for
instagram_manage_insights/instagram_content_publish.Some metrics (demographics, etc.) need ≥100 followers.
Setup
1. Get your central BM's Business ID
https://business.facebook.com/settings → Business info → copy the Business Manager ID (a long number). You'll give this to each client BM.
2. In EACH client BM: share the Page as a partner
Open the client's BM (https://business.facebook.com/settings → switch business):
Users → Partners → Add → "Give a partner access to your assets".
Paste your central BM's Business ID (step 1).
Select that client's Page → grant full control (Manage). The linked IG account rides along.
Repeat for every client BM. (You add partners; the client BM is where assets are shared from.)
3. In the central BM: one System User + one token
Back in your central BM (https://business.facebook.com/settings):
Users → System Users → Add → role Admin.
Add Assets → Apps → your Meta app → full control.
Add Assets → Pages → you should now see the partner-shared client Pages → assign them (full control).
Generate New Token → your app → scopes:
instagram_basic,instagram_manage_insights,instagram_content_publish,pages_show_list,pages_read_engagement,business_management.Expiration off → never expires. Copy the token.
4. Install + store the token
macOS / Linux:
cd ~/insta-mcp # wherever you put the folder
python3 -m pip install -r requirements.txt
python3 quickstart.pyWindows (PowerShell):
cd C:\Users\eduardo\Desktop\insta-mcp
python -m pip install -r requirements.txt
python quickstart.py(Use python3 on macOS. If pip complains about a managed environment, make a venv first: python3 -m venv .venv && source .venv/bin/activate.)
In the wizard, paste the single central token (label it e.g. "Central"). Or set IG_ACCESS_TOKEN=<token> in .env, or put one entry in tokens.json.
5. Verify
python auth_helper.py me # checks the token, prints its owner
python auth_helper.py accounts # lists every shared IG account it can see
python smoke_test.py # runs all read tools against the first account
python smoke_test.py domino # or target one account by username/idaccounts should list every client whose Page you shared in step 2. Missing one → that client BM didn't share its Page (or you didn't assign it in step 3.3).
6. Wire into Claude
quickstart.py prints this for you with the correct paths. macOS example:
{
"mcpServers": {
"instagram": {
"command": "python3",
"args": ["/Users/you/insta-mcp/server.py"]
}
}
}Windows uses "command": "python" and a C:\\...\\server.py path. Tokens load from tokens.json automatically.
Claude Code (mac):
claude mcp add instagram -- python3 /Users/you/insta-mcp/server.pyRestart, then: "List my Instagram accounts, then last week's insights for @domino."
Tip: if you used a venv, point
commandat the venv's python (e.g./Users/you/insta-mcp/.venv/bin/python) so the deps are found.
Updating (new tools)
New tools ship as code — no reinstall, the Claude config never changes (it just runs server.py). On each machine:
python update.py # Windows
python3 update.py # macOS/Linuxor double-click update.sh (mac/Linux) / run update.ps1 (Windows). It does git pull --ff-only + installs any new deps, then tells you to quit and reopen Claude so it reloads the MCP. Your tokens.json / .env / scheduled.json are gitignored, so a pull never touches them.
Scheduling posts (the worker)
Instagram's API can't schedule posts (only Facebook Pages can), so we keep a local queue and a worker publishes each post at its time. schedule_post adds to the queue; the worker (scheduler.py) must be running for posts to actually go out.
schedule_post writes to scheduled.json (gitignored). The worker reads it and publishes due jobs using the same tokens as the server. Two ways to run it:
Once (for cron / Task Scheduler) — recommended:
python scheduler.py --once # publish anything due now, then exitmacOS / Linux cron, every minute:
crontab -e
# add (use absolute paths):
* * * * * cd /Users/you/insta-mcp && /usr/bin/python3 scheduler.py --once >> scheduler.log 2>&1Windows Task Scheduler: new task → trigger every 1 minute → action python C:\Users\eduardo\Desktop\insta-mcp\scheduler.py --once.
Always-on (no cron):
python scheduler.py --watch # loops, checks every 60s; leave it runningNo worker running? You can still flush due posts manually from Claude with run_due_posts. Times are ISO-8601; pass a timezone (2026-06-20T14:00:00-03:00) or Z for UTC — naive times are treated as UTC.
Multiple tokens (fallback)
If you ever can't use Partners for some client, you can run a separate token for that BM. Put several entries in tokens.json:
[
{ "label": "Central", "token": "EAA..." },
{ "label": "Standalone Client", "token": "EAA..." }
]The server discovers all of them, tags each account by business label, and auto-routes every call to the right token. A broken token shows as an error row in list_accounts (tagged with its BM); the rest keep working. With more than one token, media-level tools (get_media_insights etc.) need an account to pick the token.
Notes
list_accountsis cached per process; passrefresh=trueafter sharing a new client.Optional
IG_DEFAULT_ACCOUNT(in.env) lets tools omitaccount.Publishing media URLs must be public HTTPS (Meta fetches them server-side).
Troubleshooting
account not found → run
list_accounts(refresh=true); confirm the client shared its Page (step 2) and you assigned it to the System User (step 3.3).partner-shared Page not visible in step 3.3 → the client BM hasn't approved/shared it yet, or shared to the wrong Business ID.
demographics empty → that account has <100 followers.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/edunascimentt/insta-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server