For AI

Answers

Is there an Instagram MCP server for Claude or Cursor that reads profiles, reels, comments and hashtags?

Short answer

Yes. To read any public account, add okdata's MCP server (https://api.okdata.online/mcp) to Claude as a custom connector and sign in once, or put it in Cursor's mcp.json with your key: Claude can then read profiles, an account's posts or only its reels ($0.004 a page of 12), the comments under them, hashtag posts and what a reel says. Open-source servers built on Meta's API need a Meta app and suit your own professional account; for accounts you don't manage, Meta's Business Discovery gives counts, not the comments. The last 30 reels of 5 competitors, plus the comments under the 10 most-played and their transcripts, costs about $0.26.

A social media manager at a skincare brand opens Claude on Monday and asks: which reels did our five biggest competitors post this month, which ones took off, what do they say in the first seconds, and what are people asking in the comments? To answer from real reels instead of memory, Claude needs a tool that reads Instagram. An MCP server is that tool. You connect it once, then ask in plain words, and Claude fetches the reels, comments and transcripts and answers with links.

Two kinds of Instagram MCP server

okdata's server reads public data from any public account, personal accounts included. There is no Meta app, Instagram login or token to manage: in Claude you sign in to okdata once. The same URL also gives Claude TikTok, YouTube, X, Reddit and Amazon; the X MCP answer covers X, and TikTok, YouTube and X the video side.

Servers built on Meta's own API are open-source projects you run with a Meta developer app and your own Instagram professional account. They suit managing that account: publishing, insights, replying to comments on your posts. They stop where Meta's API stops. Meta's platform overview describes APIs for professional (business and creator) accounts, and an app that serves accounts you don't own or manage needs Advanced Access, which takes App Review and Business Verification. Business Discovery, the route into other professional accounts, returns their followers, media count and each post's comments_count, like_count and view_count, but a request for one of those posts "will fail due to insufficient permissions", so the comments themselves stay out of reach. Comment Moderation reads comments on media owned by your app's users, and Hashtag Search needs App Review for Instagram Public Content Access and allows 30 unique hashtags per account in any rolling 7 days. All four Meta pages were read on 18 November 2026.

Connect it once

Claude on claude.ai or the desktop app. Go to Customize → Connectors → Add → Add custom connector. Name it okdata, enter https://api.okdata.online/mcp as the URL and set Authentication to Sign in now; Claude picks No sign-in by default, so change it. Click Add, sign in to okdata and allow. Claude gets a key of its own, which can spend at most $5 a month unless you change it in the console. In a chat, open + → Connectors and switch okdata on. On Team and Enterprise plans an Owner adds the connector first. The full steps are on Claude setup.

Claude Code. Keep your key in OKDATA_API_KEY and run this once (keep the single quotes, so the key never lands in a settings file). More on Claude Code setup.

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

Cursor. Add this to ~/.cursor/mcp.json, quit Cursor completely and reopen it. Under Customize, okdata should show five tools (Cursor setup).

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

Any agent that reads the web, such as Claude Code, Cursor's agent or Codex, can also set itself up from one sentence that points it at agents.md.

To check it, ask "What is my okdata balance?" A number in the answer means the connection works.

What Claude can read on Instagram

Ask Claude for Endpoint Price
An account's posts, newest first, or only its reels Instagram account posts $0.004 a page of 12
Followers, following, post count, bio, links Instagram account profile $0.004 an account
One post or reel from its link: caption, likes, comments, plays Instagram post detail $0.004 a post
The comments under a post or reel, newest first Instagram post comments $0.004 a page of about 15
The replies to one comment Instagram comment replies $0.004 a page of about 15
Public posts under a hashtag Instagram hashtag posts $0.004 a page of about 10
What is said in a reel, with timestamps Instagram reel transcript $0.004 a reel
Accounts that match a name or keyword Instagram account search $0.002 for about 20 accounts

Accounts go by handle, with or without the @. Posts and reels go by the shortcode, the part after /p/ or /reel/ in the link, so you can paste the link itself. All Instagram endpoints are on one page.

Things to ask Claude

  • "Read the last 30 reels of @rival_one, @rival_two, @rival_three, @rival_four and @rival_five, three pages each at most. Rank them by plays, then read the newest 60 comments under the top 10 and sort what people say into praise, complaints and questions, with links."
  • "What does this reel say in its first five seconds, and what does it ask viewers to do at the end? instagram.com/reel/DeCPVhERA8e/"
  • "Get the follower counts of these 40 handles and flag the private accounts."
  • "Pull five pages of #homebarista and #pourover and list the accounts that turn up under both."
  • "Find the Instagram account of Acme Coffee and tell me which of its last 12 posts drew the most comments."

The competitor reel review, priced

Step Calls Cost
The last 30 reels of 5 accounts, 3 pages of 12 each 15 $0.06
Comments under the 10 most-played, 4 pages each (about 60 newest a reel) 40 $0.16
What those 10 reels say 10 $0.04
The competitor reel review 65 $0.26
Also: the 5 profiles, for followers and engagement rate 5 $0.02
Also: replies under the 20 most-liked comments 20 $0.08
Also: 3 hashtags, 5 pages each 15 $0.06
Also: the same review every week for a month 260 $1.04

You pay per call, with no subscription. Each endpoint has its own price, all on the pricing page, in US dollars. A new key comes with $0.10 of credit. Claude can read an endpoint's price before it calls it, so ask for an estimate before a long run.

The same job in Python

For a weekly report outside Claude, the review is a short script:

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 "(no speech)"
    print(r["handle"], r["url"], r["metrics"]["views"], "plays,", len(comments), "comments read")
    print("   says:", speech[:200])

A reel with only music has no transcript, so the script prints "(no speech)" for it.

Things that trip people up

  • Put a page cap in the prompt. Comments come about 15 a page, newest first, so a reel with 6,000 comments is 400 pages ($1.60). "Four pages at most" keeps one viral reel from eating the budget.
  • Say "reels". An account's posts mix photos, carousels and reels unless Claude asks for reels only.
  • Hashtag posts are a sample. They come as search engines found them, not every post under the tag and not in time order. The hashtag answer has the details.
  • Transcripts cover reels up to two minutes, speech only. Text on screen is not read.
  • Account search has no follower counts and no second page. Fetch the profiles of the handles it finds.
  • Only public data. Private accounts return nothing, and nothing posts, likes, comments or sends messages for you.
  • Strangers wrote the text. Tell Claude to treat captions, comments and transcripts as data, never as instructions.
  • The Instagram endpoints are in preview. Field names may still change.

Other routes

For your own professional account, Meta's API, or an open-source server built on it, is the right tool: it can publish, reply to and hide comments and read insights, which a read-only server cannot. Logged-in browser tools and open-source scrapers cost nothing but run on an Instagram login or browser cookies you supply, and they stop when the session expires or the account gets limited. For a single reel, opening Instagram yourself is quicker.

Each part of this job has its own answer: comments on accounts you don't manage, follower counts, hashtag posts, reel transcripts and finding creators in a niche. For Cursor across TikTok, Instagram and Reddit at once, see the Cursor MCP answer.

Sources

  1. Meta: Comment Moderation (comments on media your app's users own)developers.facebook.com · read
  2. Meta: Business Discovery (other professional accounts' basic data and media)developers.facebook.com · read
  3. Meta: Hashtag Search (top and recent media for a hashtag, with limits)developers.facebook.com · read
  4. Meta: Instagram Platform overview (APIs for professional accounts)developers.facebook.com · read

Where people asked this (read 2026-11-18)

Updated

Connect once, then just ask.

Every new key comes with $0.10 to try it. One sentence connects your agent.

Start free
Connect your AI

Paste this into your agent

Read https://okdata.online/agents.md and set up okdata for me; my key is in the OKDATA_API_KEY environment variable.

Claude Code, Cursor, Codex and other agents that can open a link set themselves up from it.

MCP serverhttps://api.okdata.online/mcp