hasdata-instagram

hasdata-instagram is a cursor rule for Cursor from HasData/instagram-mcp. It costs 15 tokens per session (605 once invoked), scanned A, original, MIT.

A set of rules for retrieving public Instagram profile information and post feeds through the HasData MCP server. It describes the fields available and the limits of the returned data.

In plain words
What is it for?
Use it to inspect a public profile, collect its posts, read captions, and extract mentions or hashtags. It is not suitable for engagement rankings or timestamp-based analysis from this data alone.
Why use it?
It prevents unsupported conclusions, such as ranking posts by likes or comments when those counts are not provided. It also explains how to fetch more than the first page of posts.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit Use it to inspect a public profile, collect its posts, read captions, and extract mentions or hashtags. It is not suitable for engagement rankings or timestamp-based analysis from this data alone.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/hasdata/instagram-mcp/hasdata-instagram
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/HasData/instagram-mcp

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for hasdata-instagram

README.md
[![agentmods](https://agentmods.dev/badge/rules/hasdata/instagram-mcp/hasdata-instagram/github.svg)](https://agentmods.dev/rules/hasdata/instagram-mcp/hasdata-instagram)
Your own site
<a href="https://agentmods.dev/rules/hasdata/instagram-mcp/hasdata-instagram"><img src="https://agentmods.dev/badge/rules/hasdata/instagram-mcp/hasdata-instagram/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for hasdata-instagram

Your own site · 80×15
<a href="https://agentmods.dev/rules/hasdata/instagram-mcp/hasdata-instagram"><img src="https://agentmods.dev/badge/rules/hasdata/instagram-mcp/hasdata-instagram.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 605 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00015 $0.00605
Opus 5.5 $0.00006 $0.00242
Sonnet 5.5 $0.00003 $0.00121
Haiku 4.5 $0.00002 $0.00060

Measured 3d ago against content hash 26c3d5db5689, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

hasdata-instagram scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

rules/hasdata-instagram.mdc · 36 lines

How it starts

The opening of the file, as written. The whole thing — 36 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Instagram through HasData

Three tools. Two are keyed on handle, the third on the URL of a single post. hasdata_instagram_profile_getInstagramProfile returns the account, and hasdata_instagram_posts_getInstagramPosts returns its feed with limit and nextPageToken.

The profile already embeds latestPosts, so a question about the account and its recent work is one call rather than two.

What a post does not carry

A post holds id, shortcode, caption, type, productType, url, displayUrl, images, dimensionsWidth, dimensionsHeight, ownerUsername, ownerId and hasdataLink. It also carries likesCount, commentsCount, timestamp and publishDate, so the feed alone can rank posts by engagement and filter them by date. Do not spend a call on hasdata_instagram_comments_getInstagramComments to collect numbers the feed already returned; reach for it when the comment thread itself is wanted. mentions and hashtags appear only when the caption has them, taggedUsers lists accounts tagged in the media, and a carousel puts its members in childPosts.

mentions appears on many posts and hashtags on fewer, so both are optional. Parsing the caption yourself finds the same tags, which is the reliable route when coverage matters.

Twelve is the ceiling

One call returns twelve posts. limit above that still returns twelve, so a larger feed comes from following nextPageToken rather than from asking for more. The first page also repeats the twelve the profile already gave you, which makes the profile call the cheaper start.

Public, private and broken

A private account answers with private: true and little else. Branch on that flag before reading anything else, because the rest of the payload is thin by design rather than missing by accident.

A handle that does not resolve comes back with isError true and a 400. Read the error text rather than only the flag, because the same flag carries a 401 for a bad key and MCP error -32602 for a schema violation, and reporting a key problem as a missing account sends the reader after the wrong bug.

Read the full file on GitHub · 36 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago Changed · +5 lines 26c3d5db5689
  2. 8d ago Changed 5d180316fa90
  3. 10d ago Changed 4b8c59edc6e9
  4. 23d ago First seen · 31 lines · 15 tokens per session scan A 24130f249aeb

Subscribe to this mod's changes

hasdata-instagram is a cursor rule published in the GitHub repository HasData/instagram-mcp (16 stars, last pushed 3d ago), licensed MIT. It adds 15 tokens to every session and 605 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-23.