# 有沒有給 Claude 或 Cursor 用的 Instagram MCP 服務，能看主頁、Reels、評論和話題？

> 一個 MCP 地址，讓 Claude、Claude Code 或 Cursor 讀到即時的 Instagram 資料：帳號主頁、帖子和 Reels、評論、話題帖子、Reel 口播文字。附配置方法、提問示例和一次任務的費用。

網頁版：https://okdata.online/zh-hant/answers/instagram-mcp-server-claude/

**簡短回答：**有。想讀任意公開帳號，把 okdata 的 MCP 服務（https://api.okdata.online/mcp）加成 Claude 的自定義聯結器，登入一次就行；用 Cursor 的話，連同 key 寫進 mcp.json。之後 Claude 能看帳號主頁、帳號的帖子或只看 Reels（每頁 12 條，$0.004）、帖子下的評論、話題帖子，還能讀出 Reel 裡說了什麼。基於 Meta 官方 API 的開源服務要先建 Meta 應用，適合管自己的專業帳號；別人的帳號，官方的 Business Discovery 只給數字，不給評論內容。5 個競品各自最近 30 條 Reels，再加播放最高的 10 條的評論和口播文字，約 $0.26。

一個做護膚品出海的運營，週一早上在 Claude 裡問：五個主要競品這個月發了哪些 Reels？哪幾條爆了？開頭幾秒說的是什麼？評論區的人都在問什麼？要讓 Claude 拿真實的影片和評論來回答，而不是憑印象編，它得有一個能讀 Instagram 的工具。MCP 服務就是這個工具。接一次，之後直接用大白話問，Claude 自己去取 Reels、評論和口播文字，回答時附上鍊接。

## 兩類 Instagram MCP 服務

**okdata 的服務**讀任意公開帳號的公開資料，個人帳號也行。不用建 Meta 應用，不用登入 Instagram，也不用管 token，在 Claude 裡登入一次 okdata 就夠了。同一個地址還能讀 TikTok、YouTube、X、Reddit 和亞馬遜。X 那邊見 [X 的 MCP 服務](/zh/answers/x-twitter-mcp-server-claude/)，影片平台見 [TikTok、YouTube 和 X 的 MCP 服務](/zh/answers/tiktok-youtube-x-mcp-server/)。

**基於 Meta 官方 API 的服務**多是開源專案，要用你自己的 Meta 開發者應用和 Instagram 專業帳號跑起來。它們適合管自己的帳號：發帖、看資料、回覆自己帖子下的評論。官方 API 管不到的，它們也管不到。下面幾條都出自 Meta 開發者文件，2026 年 11 月 18 日查的：

- [平台概覽](https://developers.facebook.com/docs/instagram-platform/overview/)寫的是面向專業帳號（商家和創作者）的 API。應用要服務不歸你管的帳號，得拿到 Advanced Access，這要過 App Review 和企業驗證。
- [Business Discovery](https://developers.facebook.com/docs/instagram-platform/instagram-api-with-facebook-login/business-discovery/) 是讀別的專業帳號的入口，能拿到粉絲數、帖子數，以及每條帖子的 `comments_count`、`like_count`、`view_count`。但直接請求其中某條帖子會因為權限不足失敗，所以評論內容拿不到。
- [Comment Moderation](https://developers.facebook.com/docs/instagram-platform/comment-moderation/) 讀的是你的應用使用者自己的帖子下的評論。
- [Hashtag Search](https://developers.facebook.com/docs/instagram-platform/instagram-api-with-facebook-login/hashtag-search/) 要為 Instagram Public Content Access 過 App Review，每個帳號在任意連續 7 天裡最多查 30 個不同的話題。

## 先接上

**claude.ai 網頁版或桌面版。** 開啟 Customize → Connectors → Add → Add custom connector。名稱填 `okdata`，地址填 `https://api.okdata.online/mcp`，認證選 **Sign in now**。Claude 預設選的是 No sign-in，要手動改過來。點 Add，在 okdata 的授權頁登入並允許。Claude 會拿到它自己的一把 key，預設每月最多花 $5，可以在控制台裡改。之後在對話裡點 + → Connectors，把 okdata 開啟。Team 和 Enterprise 版要先由 Owner 新增。完整步驟見 [Claude 接入](/zh/integrations/claude/)。

**Claude Code。** key 放進環境變數 `OKDATA_API_KEY`，執行一次下面的命令。單引號別去掉，這樣設定檔案裡存的是變數名，不是 key 本身。詳見 [Claude Code 接入](/zh/integrations/claude-code/)。

```bash
claude mcp add --transport http --scope user okdata https://api.okdata.online/mcp \
  --header 'Authorization: Bearer ${OKDATA_API_KEY}'
```

**Cursor。** 寫進 `~/.cursor/mcp.json`，徹底退出 Cursor 再開啟。在 **Customize** 裡能看到 `okdata` 和五個工具，就是加上了（詳見 [Cursor 接入](/zh/integrations/cursor/)）：

```json
{
  "mcpServers": {
    "okdata": {
      "url": "https://api.okdata.online/mcp",
      "headers": { "Authorization": "Bearer ${env:OKDATA_API_KEY}" }
    }
  }
}
```

**能上網的 agent**，比如 Claude Code、Cursor 的 agent、Codex，也可以發[一句話](/zh/integrations/one-sentence/)讓它照著 [agents.md](/agents.md) 自己配好。

想確認連上沒有，就問一句“我的 okdata 餘額是多少？”。回答裡有數字，就是通了。

## Claude 能讀到 Instagram 的哪些資料

| 想讓 Claude 做的事 | 介面 | 價格 |
|---|---|---|
| 看一個帳號的帖子，從新到舊，也可以只看 Reels | [Instagram 帳號帖子](/zh/apis/instagram/users/posts/list/) | 每頁 12 條，$0.004 |
| 粉絲數、關注數、帖子數、簡介、主頁連結 | [Instagram 帳號資訊](/zh/apis/instagram/users/get/) | 每個帳號 $0.004 |
| 按連結看一條帖子或 Reel：文案、點贊、評論數、播放 | [Instagram 帖子詳情](/zh/apis/instagram/posts/get/) | 每條 $0.004 |
| 帖子或 Reel 下的評論，從新到舊 | [Instagram 帖子評論](/zh/apis/instagram/posts/comments/list/) | 每頁約 15 條，$0.004 |
| 某條評論下的回覆 | [Instagram 評論回覆](/zh/apis/instagram/comments/replies/list/) | 每頁約 15 條，$0.004 |
| 某個話題下的公開帖子 | [Instagram 話題帖子](/zh/apis/instagram/hashtags/posts/list/) | 每頁約 10 條，$0.004 |
| Reel 裡說了什麼，帶時間戳 | [Instagram 影片字幕](/zh/apis/instagram/posts/transcript/get/) | 每條 $0.004 |
| 按名字或關鍵詞找帳號 | [Instagram 帳號搜尋](/zh/apis/instagram/users/search/) | 每次 $0.002，約 20 個帳號 |

帳號用使用者名稱找，帶不帶 @ 都行。帖子和 Reel 用短碼，也就是連結裡 `/p/` 或 `/reel/` 後面那一段，直接貼連結也可以。所有介面見 [Instagram 全部介面](/zh/apis/instagram/)。

## 可以這樣問

- 讀 @rival_one、@rival_two、@rival_three、@rival_four、@rival_five 最近 30 條 Reels，每個帳號最多翻 3 頁。按播放排序，再讀前 10 條下面最新的 60 條評論，按誇獎、吐槽、提問分三類，附上鍊接。
- 這條 Reel 開頭五秒說了什麼？結尾讓觀眾做什麼？instagram.com/reel/DeCPVhERA8e/
- 查一下這 40 個帳號的粉絲數，私密帳號標出來。
- #homebarista 和 #pourover 各翻 5 頁，列出兩個話題下都出現過的帳號。
- 找到 Acme Coffee 的 Instagram 帳號，看看最近 12 條帖子裡哪條評論最多。

## 一次競品 Reels 復盤，花多少錢

| 步驟 | 呼叫次數 | 費用 |
|---|---|---|
| 5 個帳號各取最近 30 條 Reels，每個翻 3 頁（每頁 12 條） | 15 | $0.06 |
| 播放最高的 10 條，每條讀 4 頁評論（每條約 60 條最新評論） | 40 | $0.16 |
| 這 10 條 Reels 的口播文字 | 10 | $0.04 |
| **競品 Reels 復盤合計** | 65 | $0.26 |
| 加一項：5 個帳號的主頁，用來算互動率 | 5 | $0.02 |
| 加一項：點贊最高的 20 條評論下的回覆 | 20 | $0.08 |
| 加一項：3 個話題，每個翻 5 頁 | 15 | $0.06 |
| 加一項：每週復盤一次，做一個月 | 260 | $1.04 |

按次付費，沒有訂閱。每個介面單獨定價，都列在[價格頁](/zh/pricing/)上，以美元計。新 key 自帶 $0.20 額度。Claude 呼叫前能看到介面價格，跑長任務前可以先讓它報個預估。

## 用 Python 跑同一件事

想每週定時出報告、不經過 Claude，寫個小指令碼就夠：

```python
import os, requests

API = "https://api.okdata.online"
H = {"Authorization": f"Bearer {os.environ['OKDATA_API_KEY']}"}

def get(path, **params):
    body = requests.get(API + path, headers=H, params=params, timeout=120).json()
    if body["code"] not in ("ok", "not_found"):
        raise RuntimeError(f"{body['code']}: {body['message']}")
    return body

def pages(path, max_pages, **params):
    cursor = None
    for _ in range(max_pages):
        body = get(path, **params, **({"cursor": cursor} if cursor else {}))
        if body["code"] != "ok":
            return
        yield from body["data"]["items"]
        if not body["page"]["has_more"]:
            return
        cursor = body["page"]["next_cursor"]

HANDLES = ["rival_one", "rival_two", "rival_three", "rival_four", "rival_five"]
reels = [dict(r, handle=h) for h in HANDLES
         for r in list(pages("/v1/instagram/users/posts/list", 3, username=h, type="reel"))[:30]]
top = sorted(reels, key=lambda r: r["metrics"]["views"] or 0, reverse=True)[:10]
for r in top:
    comments = list(pages("/v1/instagram/posts/comments/list", 4, id=r["id"]))
    said = get("/v1/instagram/posts/transcript/get", id=r["id"])
    speech = said["data"]["item"]["text"] if said["code"] == "ok" else "（沒有口播）"
    print(r["handle"], r["url"], r["metrics"]["views"], "次播放，讀了", len(comments), "條評論")
    print("   口播：", speech[:200])
```

只有音樂、沒人說話的 Reel 沒有文字稿，指令碼會列印“沒有口播”。

## 容易踩的坑

- **提示詞裡寫上翻頁上限。** 評論每頁約 15 條，從新到舊，一條有 6,000 條評論的 Reel 就是 400 頁（$1.60）。加一句“最多翻 4 頁”，碰上一條爆款也不會把預算吃光。
- **要說清楚只看 Reels。** 不說的話，帳號帖子裡圖片、輪播和 Reels 是混在一起的。
- **話題帖子是抽樣。** 按搜尋引擎收錄的順序返回，不是話題下的全部帖子，也不按時間排。詳見[話題帖子那篇](/zh/answers/instagram-hashtag-posts-api/)。
- **口播文字只支援兩分鐘以內的 Reel**，只認說的話，畫面上的字讀不出來。
- **帳號搜尋不帶粉絲數**，也沒有下一頁。搜到使用者名稱以後，再查主頁。
- **只有公開資料。** 私密帳號什麼都拿不到，也不會替你發帖、點贊、評論或發私信。
- **內容是陌生人寫的。** 告訴 Claude 把文案、評論和口播文字當資料看，別當指令執行。
- **Instagram 介面還在預覽階段。** 欄位名可能還會調整。

## 其他路子

管自己的專業帳號，用 Meta 官方 API 或基於它的開源服務更合適：能發帖、回覆和隱藏評論、看後臺資料，這些只讀服務做不了。登入態的瀏覽器工具和開源爬蟲不花錢，但要用你提供的 Instagram 帳號或瀏覽器 cookie，會話一過期、帳號一受限就停了。只看一兩條 Reel 的話，自己開啟 Instagram 更快。

這次任務裡的每一塊都有單獨的解答：[讀不歸你管的帳號的評論](/zh/answers/instagram-comments-api-other-accounts/)、[查粉絲數](/zh/answers/instagram-follower-count-api/)、[話題帖子](/zh/answers/instagram-hashtag-posts-api/)、[Reel 轉文字](/zh/answers/instagram-reel-transcript-api/)、[按細分領域找博主](/zh/answers/find-instagram-creators-by-niche/)。想在 Cursor 裡同時查 TikTok、Instagram 和 Reddit，見 [Cursor 的 MCP 服務](/zh/answers/cursor-mcp-tiktok-instagram-reddit/)。

## 用到的介面

- [Instagram 帳號帖子](https://okdata.online/zh/apis/instagram/users/posts/list/) `instagram.users.posts.list`：$0.004/次 · 每頁約 12 條帖子
- [Instagram 帖子評論](https://okdata.online/zh/apis/instagram/posts/comments/list/) `instagram.posts.comments.list`：$0.004/次 · 每頁約 15 條評論
- [Instagram 影片字幕](https://okdata.online/zh/apis/instagram/posts/transcript/get/) `instagram.posts.transcript.get`：$0.004/次
- [Instagram 帳號資訊](https://okdata.online/zh/apis/instagram/users/get/) `instagram.users.get`：$0.004/次
- [Instagram 話題帖子](https://okdata.online/zh/apis/instagram/hashtags/posts/list/) `instagram.hashtags.posts.list`：$0.004/次 · 每頁約 10 條帖子
- [Instagram 帖子詳情](https://okdata.online/zh/apis/instagram/posts/get/) `instagram.posts.get`：$0.004/次
- [Instagram 評論回覆](https://okdata.online/zh/apis/instagram/comments/replies/list/) `instagram.comments.replies.list`：$0.004/次 · 每頁約 15 條評論
- [Instagram 帳號搜尋](https://okdata.online/zh/apis/instagram/users/search/) `instagram.users.search`：$0.002/次 · 每頁約 20 個帳號

## 更多Instagram內容

- [Instagram API](https://okdata.online/zh/apis/instagram/)
- [Instagram API Python 教程：帳號、帖子、評論和 Reels 字幕（2026）](https://okdata.online/zh/guides/instagram-api-python/)
- [有沒有給 Claude 或 Cursor 用的 Instagram MCP 服務，能看主頁、Reels、評論和話題？](https://okdata.online/zh/answers/instagram-mcp-server-claude/)
- [怎麼找到某個細分領域的 Instagram 博主，並按粉絲數排序？](https://okdata.online/zh/answers/find-instagram-creators-by-niche/)
- [不是自己管理的 Instagram 帳號，怎麼用 API 拿到帖子下的評論？](https://okdata.online/zh/answers/instagram-comments-api-other-accounts/)
- [怎麼用 API 拿到某個 Instagram 話題標籤下的帖子？](https://okdata.online/zh/answers/instagram-hashtag-posts-api/)
- [按千次播放給剪輯手結算，怎麼統計 TikTok、YouTube Shorts、Instagram Reels 和 X 上每條切片的播放量？](https://okdata.online/zh/answers/clipper-payout-view-tracking/)
- [有沒有能讓 Cursor 搜 TikTok、Instagram 和 Reddit 的 MCP？](https://okdata.online/zh/answers/cursor-mcp-tiktok-instagram-reddit/)
- [評論介面](https://okdata.online/zh/roles/posts-comments-list/)
- [評論回覆介面](https://okdata.online/zh/roles/comments-replies-list/)
- [話題內容介面](https://okdata.online/zh/roles/topics-posts-list/)
- [帳號資訊介面](https://okdata.online/zh/roles/accounts-get/)
- [帳號作品列表介面](https://okdata.online/zh/roles/accounts-posts-list/)
- [內容詳情介面](https://okdata.online/zh/roles/posts-get/)

## 資料來源

- [Meta: Comment Moderation (comments on media your app's users own)](https://developers.facebook.com/docs/instagram-platform/comment-moderation/) (讀取於 2026-11-18)
- [Meta: Business Discovery (other professional accounts' basic data and media)](https://developers.facebook.com/docs/instagram-platform/instagram-api-with-facebook-login/business-discovery/) (讀取於 2026-11-18)
- [Meta: Hashtag Search (top and recent media for a hashtag, with limits)](https://developers.facebook.com/docs/instagram-platform/instagram-api-with-facebook-login/hashtag-search/) (讀取於 2026-11-18)
- [Meta: Instagram Platform overview (APIs for professional accounts)](https://developers.facebook.com/docs/instagram-platform/overview/) (讀取於 2026-11-18)

這個問題出現過的地方（讀取於 2026-11-18）：

- https://github.com/dmthepm/mainbranch/issues/8
- https://github.com/jlbadano/ig-mcp/issues/30
- https://github.com/CLABS-ORGANIZATION/clabs-instagram-mcp/issues/2
- https://stackoverflow.com/questions/73741109
- https://stackoverflow.com/questions/76578220

更新於 2026-11-18
