igmcp
Read-only access to a connected Instagram professional account via the official Instagram Graph API: retrieves the account profile (name, bio, follower/following/media counts), lists recent posts and reels, fetches individual media items, reads comments on media, and pulls account or media insights (e.g. reach, views, shares). Cannot publish, delete, or send anything.
Exposes a bearer-protected Prometheus /metrics endpoint with request counts and latency, tool outcomes, and Meta app usage percentage for monitoring the server.
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.
igmcp
A small, read-only MCP server for the official Instagram Graph API. It lets an MCP client (Claude Code, etc.) read your own professional account's profile, media, comments and insights. It cannot publish, delete, or send anything.
Streamable HTTP, stateless. Python 3.12+, FastMCP, httpx, pydantic v2.
Tools
All annotated readOnlyHint:
Tool | Purpose |
| Account name, bio, follower/following/media counts |
| Recent posts and reels |
| One media item |
| Comments on a media item |
| Account or media insights ( |
Related MCP server: Instagram MCP
Security design
GET requests only. The Graph token travels in the
Authorizationheader, never in a URL.Mandatory bearer auth on
/mcpand/metrics; the server refuses to start withoutMCP_AUTH_TOKEN(>= 24 chars)./healthzand/readyzare open.Host-header allow-list. No debug endpoints.
Secrets are read from
*_FILEpaths and redacted from logs.Container: non-root user, read-only filesystem, all capabilities dropped, no published port.
/metrics(Prometheus): request counts and latency, tool outcomes, Meta app usage %.
Configuration
Variable | Meaning |
| Instagram professional account id |
| Graph API version (default |
| Path to a file holding the Graph access token |
| Path to a file holding the bearer token clients must send |
Develop
python3 -m venv .venv && .venv/bin/pip install -e '.[dev]'
.venv/bin/ruff check src tests && .venv/bin/mypy src && .venv/bin/pytestDeploy
mkdir -p secrets && chmod 700 secrets
# create secrets/ig_graph_token and secrets/mcp_auth_token (readable by uid 10001)
# create .env with INSTAGRAM_ACCOUNT_ID=... (and optionally GRAPH_VERSION=...)
docker compose up -d --buildRegister it in Claude Code:
claude mcp add --transport http instagram http://<host>:8000/mcp \
--header "Authorization: Bearer <MCP_AUTH_TOKEN>"compose.yml attaches to an external Docker network named by AI_NETWORK (default ai-network);
create it first (docker network create ai-network) or set AI_NETWORK in .env.
Limits
The Graph user token lasts 60 days; renewing it needs the Meta app secret, which this service does not handle.
Reads only the connected account, not other people's content.
Not affiliated with Meta.
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Read-only access to InfluSense influencer discovery, ratings, watchlists, and reports via MCP.
Read-only public Instagram data: profiles, posts, reels, stories, comments, top-accounts ranking.
Hosted MCP for Instagram, Facebook, X, LinkedIn, Pinterest, and Ghost. OAuth 2.1, 38 tools.
Instagram data over MCP: profiles, posts, reels, stories, highlights and search as JSON
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceMCP server for organic Instagram analytics via the Meta Graph API, providing read-only tools for profiles, media, insights, audience, and optional publishing.GPL 3.0
- 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
- AlicenseNot gradedqualityBmaintenanceEnables a Professional Instagram account to connect to an MCP client through Meta's official API and OAuth, supporting profile and media reading, publishing, insights, and comment management.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