AI

aleemhaider/instagram-mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

9 stars 6 forks 품질 76 트렌드 21MIT

Instagram Graph API 용 MCP 서버 - 게시물, 의견, DM 및 통찰력을위한 24 도구.

개요

So Claude (또는 MCP 클라이언트)를 감싸는 모형 Context 의정서 서버는 Instagram 또는 계정에서, 간행, 의견, DM 및 잡아당기기 통찰력을 읽을 수 있습니다. 5개의 기능 영역에서 24개의 도구 — 프로필/미디어, 출판, 의견, DM, 그리고 통찰력 — FastMCP + httpx에 내장. 1. 이동 https://developers.facebook.com/apps → 사용 케이스 → 유형. 2. 앱 대시보드에서 제품 추가 (제품 추가 → Instagram → 설정). Instagram 계정이 Facebook에 연결되거나 . 앱 대시보드에서 걷고 계정을 연결하십시오. 이 범위를 가진 토큰을 생성 (Graph API Explorer 또는 Instagram API 설정 페이지에서): - instagram basic - instagram content publish - instagram manage comments - instagram manage messages - instagram manage insights - 페이지 show list - 페이지 read engagement 앱이 있더라도 앱의 역할 목록 (admins/developers/testers)의 계정만 인증할 수 있습니다. 개인정보 보호정책.

개요(AI 번역)

A Model Context Protocol 서버로 포장 Instagram Graph API ** so Claude (또는 MCP 클라이언트)는, 게시, 코멘트를 읽을 수 있습니다, DM, Instagram ** Business 또는 Creator 계정에서 통찰력을 잡아.

5개의 기능 영역에서 24개의 공구 — 단면도/미디어, 출판, 의견, DMs, 그리고 통찰력 - FastMCP + httpx에 내장.

빠른 설치

또는 uv:

설치

##1. 메타 앱 만들기

  1. https://developers.facebook.com/apps → Create 앱 → 사용 사례 ** 기타 ** → 유형 ** 비즈니스**.
  2. 앱 대시보드에서 Instagram 제품 추가 (제품 → Instagram → 설정).

##2. Instagram Business/Creator 계정 연결

Business 또는 Creator로 전환한 Instagram 계정이 필요합니다. Facebook페이지. 앱 대시보드에서 **Instagram → API 설정 Facebook 로그인 → 단계 1 : 액세스 토큰 생성 ** 및 계정 연결.

##3. 필요한 권한을 얻으십시오.

이 범위를 가진 토큰 생성 (Graph API Explorer 또는 Instagram API에서 설정 페이지):

  • [T2]]
  • [T3]
  • [T4]]
  • [T5]
  • [T6]]
  • [T7]]

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

instagram-mcp

A Model Context Protocol server that wraps the Instagram Graph API so Claude (or any MCP client) can read, publish, comment, DM, and pull insights from an Instagram Business or Creator account.

24 tools across five capability areas — profile/media, publishing, comments, DMs, and insights — built on FastMCP + httpx.

Quick install

pip install instagram-mcp

Or with uv:

uv tool install instagram-mcp

Setup

1. Create a Meta App

  1. Go to https://developers.facebook.com/apps → Create app → use case Other → type Business.
  2. In the app dashboard, add the Instagram product (Add Product → Instagram → Set up).

You need an Instagram account switched to Business or Creator, linked to a Facebook Page. In the app dashboard, walk through Instagram → API setup with Facebook login → Step 1: Generate access tokens and link your account.

3. Get the required permissions

Generate a token with these scopes (in Graph API Explorer or the Instagram API setup page):

  • instagram_basic
  • instagram_content_publish
  • instagram_manage_comments
  • instagram_manage_messages
  • instagram_manage_insights
  • pages_show_list
  • pages_read_engagement
  • business_management

While your app is in Development mode, only accounts in your app’s Roles list (admins/developers/testers) can authenticate. That’s fine for personal use. For other users, you need App Review with Advanced Access.

4. Mint a long-lived Page token

The fastest way: run the bundled helper.

instagram-mcp-get-token

It will ask for your short-lived user token + app ID/secret, exchange it for a long-lived user token, list your linked IG accounts, and write .env for you.

Manual alternative:

# Exchange short-lived user token → long-lived (~60 days)
curl -G "https://graph.facebook.com/v21.0/oauth/access_token" \
  --data-urlencode "grant_type=fb_exchange_token" \
  --data-urlencode "client_id=YOUR_APP_ID" \
  --data-urlencode "client_secret=YOUR_APP_SECRET" \
  --data-urlencode "fb_exchange_token=SHORT_LIVED_TOKEN"

# Find your Pages and their IG accounts
curl -G "https://graph.facebook.com/v21.0/me/accounts" \
  --data-urlencode "fields=name,instagram_business_account,access_token" \
  --data-urlencode "access_token=LONG_LIVED_USER_TOKEN"

Use the Page’s access_token (never expires) and the instagram_business_account.id of the linked IG account.

5. Configure .env

IG_USER_ID=17841446575432302
GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "instagram": { "command": "instagram-mcp", "env": { "IG_USER_ID": "17841446575432302", "IG_ACCESS_TOKEN": "EAAxxxxxxxxxxxxxxxxxxx" } } } }