
demaalramhe/instagram-claude-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
Claude를 (읽기 전용) 연결하는 먼 MCP 서버.
개요
Claude를 (읽기 전용) 연결하는 먼 MCP 서버. Instagram 프로필, 미디어, 통찰력 및 MCP 도구로 의견을 노출하므로 Claude는 HTTPS MCP URL을 통해 호출 할 수 있습니다. 게시, 삭제, 메시징, 코멘트 답변, 또는 모든 쓰기 작업. - Node.js 20+ - Instagram 계정 (비즈니스 또는 크리에이터) - Instagram Graph API 액세스가있는 Meta 앱 - 계정에 대한 읽는 권한이있는 긴 라이브 액세스 토큰 - Instagram 계정 ID (IG 사용자 ID) .env.example을 .env로 복사하고 로컬 값으로 채우십시오. 절대로 .env. - 건강: GET http://localhost:3000/health - Auth debug (safe): GET http://localhost:3000/debug-instagram-auth - 프로필 도구 디버그: GET http://localhost:3000/debug-instagram-profile] - 미디어 목록 디버그: GET http://localhost:3000/debug-instagram-media - MCP (Streamable HTTP): http://localhost:3000/mcp] 그래프.instagram.
개요(AI 번역)
official Meta Instagram Graph API (read-only)에 Claude를 연결하는 원격 MCP 서버.
Instagram 프로필, 미디어, 통찰력 및 MCP 도구로 의견을 노출 ** 스트리밍 가능한 HTTP**, 그래서 Claude는 HTTPS MCP URL을 통해 호출 할 수 있습니다.
특징
| 도구 | 설명 |
|---|---|
get_instagram_profile |
커넥티드 인스 타 그램 전문 계정 프로필 |
list_instagram_media |
최근의 게시물 / 릴 / 캐러멜 |
| [T2] | 특정 미디어 아이템에 대한 상세 |
| [T3] | 계정 레벨 또는 미디어 레벨 인사이트 |
get_instagram_comments |
미디어 아이템에 댓글(그리고 답글) |
**Not 구현 (디자인에 의해) : ** 출판, 삭제, 메시징, 코멘트 답변, 또는 모든 쓰기 작업.
요구 사항
- Node.js 20 이상
- Instagram **전문가 ** 계정 (Business or Creator)
- Instagram Graph API 액세스가있는 Meta 앱
- 계정의 읽음 권한이 있는 긴 접속 토큰
- Instagram 계정 ID ([T5])
환경 변수
.env.example] .env]에 복사하고, 로컬 값에 기입합니다. 절대 .env을 갖는다.
| 변하기 쉬운 | Required | 묘사 |
|---|
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
instagram-claude-mcp
Remote MCP server that connects Claude to the official Meta Instagram Graph API (read-only).
Exposes Instagram profile, media, insights, and comments as MCP tools over Streamable HTTP, so Claude can call them via an HTTPS MCP URL.
Features
| Tool | Description |
|---|---|
get_instagram_profile |
Connected Instagram professional account profile |
list_instagram_media |
Recent posts / reels / carousels |
get_instagram_media |
Details for a specific media item |
get_instagram_insights |
Account-level or media-level insights |
get_instagram_comments |
Comments (and replies when available) on a media item |
Not implemented (by design): publishing, deleting, messaging, comment replies, or any write operations.
Requirements
- Node.js 20+
- An Instagram professional account (Business or Creator)
- A Meta app with Instagram Graph API access
- A long-lived access token with read permissions for the account
- The Instagram account ID (
IG User ID)
Environment variables
Copy .env.example to .env and fill in values locally. Never commit .env.
| Variable | Required | Description |
|---|---|---|
INSTAGRAM_ACCESS_TOKEN |
Yes | Instagram User access token (prefer long-lived) |
INSTAGRAM_ACCOUNT_ID |
Conditional | Optional for Instagram Login (graph.instagram.com) — IG ID is resolved from /me.user_id. Required for graph.facebook.com |
INSTAGRAM_GRAPH_API_BASE |
No* | Default https://graph.facebook.com. *Use https://graph.instagram.com for Instagram Login tokens |
INSTAGRAM_API_VERSION |
No | Default v22.0 |
INSTAGRAM_APP_SECRET |
No | App secret — only for short→long-lived token exchange |
PORT |
No | HTTP port (default 3000) |
MCP_AUTH_TOKEN |
No | If set, /mcp and /exchange-instagram-token require Authorization: Bearer |
Local development
npm install
cp .env.example .env
# Edit .env with INSTAGRAM_ACCESS_TOKEN and INSTAGRAM_ACCOUNT_ID
npm run dev
# or
npm run build && npm start
Endpoints:
- Health:
GET http://localhost:3000/health - Auth debug (safe):
GET http://localhost:3000/debug-instagram-auth - Profile tool debug:
GET http://localhost:3000/debug-instagram-profile - Media list debug:
GET http://localhost:3000/debug-instagram-media - MCP (Streamable HTTP):
http://localhost:3000/mcp
Instagram Login id vs user_id
On graph.instagram.com, GET /me returns:
id— app-scoped ID (not used for/media)user_id— Instagram professional account ID (``) used for/{user_id}/media, insights, etc.
This server resolves user_id from /me for Instagram Login and does not blindly trust INSTAGRAM_ACCOUNT_ID (which is often mistakenly set to id).
Instagram Login tokens (short vs long-lived)
- App Dashboard → Generate token: already long-lived (~60 days). Put it in
INSTAGRAM_ACCESS_TOKEN.
설치
npx @modelcontextprotocol/inspector설정
{
"mcpServers": {
"instagram-claude-mcp": {
"url": "https://your-service.example.com/mcp"
}
}
}