HasData

Instagram MCP Server

Connect your AI agents to HasData's Instagram MCP server. Scrape public profiles, post engagement, and bio links in structured JSON over streamable HTTP.

https://mcp.hasdata.com/api/mcp?apis=instagram
Transport
Streamable HTTP
Auth
OAuth or API key
Tools
2 Instagram tools
Price
10 credits / call
Get API Key Read the docs 1,000 free credits. No credit card required.
Data teams at
ClientsClients
Playground

See the Instagram MCP server in action

Select a sample prompt to inspect the tool it chooses and the JSON payload your agent receives.

Instagram · 2 tools Enter to send
How big is the nasa account on Instagram?
instagram_profile · 200 OK sample call
104,414,826 followers. It follows 91 accounts back.
Verified. Bio reads "Making the seemingly impossible, possible. ✨"
I also have their 12 latest posts if you would like to see them.
instagram_profile { "handle": "nasa" }
{
"url": "https://api.hasdata.com/scrape/instagram/profile?handle=nasa",
"status": 200,
"json": {
"id": "528817151", "username": "nasa", "fullName": "NASA",
"biography": "Making the seemingly impossible, possible. ✨",
"followersCount": 104414826, "followsCount": 91, "verified": true,
"latestPosts": [{ "shortcode": "Dcwk7e1yHaY", "type": "Video" }]
}
}
How big is the nasa account on Instagram?
instagram_profile · 200 OK sample call
104,414,826 followers. It follows 91 accounts back.
Verified. Bio reads "Making the seemingly impossible, possible. ✨"
I also have their 12 latest posts if you would like to see them.
instagram_profile { "handle": "nasa" }
{
"url": "https://api.hasdata.com/scrape/instagram/profile?handle=nasa",
"status": 200,
"json": {
"id": "528817151", "username": "nasa", "fullName": "NASA",
"biography": "Making the seemingly impossible, possible. ✨",
"followersCount": 104414826, "followsCount": 91, "verified": true,
"latestPosts": [{ "shortcode": "Dcwk7e1yHaY", "type": "Video" }]
}
}
Which of NASA's last dozen Instagram posts got the most engagement?
instagram_posts · 200 OK sample call
The eclipse image, by a wide margin.
"When the Moon and Sun align" · 2,430,956 likes · 4,654 comments
Tagged #NASA #Eclipse #TotalSolarEclipse
"With your powers combined…" · 502,216 likes · 3,536 comments
A spacewalk video · 98,709 likes · 831 comments
instagram_posts { "handle": "nasa", "limit": 12 }
{
"url": "https://api.hasdata.com/scrape/instagram/posts?handle=nasa&limit=12",
"status": 200,
"json": {
"username": "nasa",
"latestPosts": [
{ "shortcode": "Db9IVmrDvQ4", "type": "Image",
"likesCount": 2430956, "commentsCount": 4654,
"hashtags": ["#NASA", "#Eclipse", "#TotalSolarEclipse"] }
],
"pagination": { "morePostsAvailable": true, "nextPageToken": "3974764761495915161_528817151" }
}
}
Just the three most recent NASA posts, with play counts
instagram_posts · 200 OK sample call
Three posts. Only the video has a play count.
Image · 502,519 likes · 3,538 comments
Video · 98,732 likes · 831 comments · 3,550,048 plays
Image · 2,430,976 likes · 4,654 comments
The like counts have already ticked up a little since the last look.
instagram_posts { "handle": "nasa", "limit": 3 }
{
"url": "https://api.hasdata.com/scrape/instagram/posts?handle=nasa&limit=3",
"status": 200,
"json": { "latestPosts": [
{ "shortcode": "DcMXl1IPNtB", "type": "Video",
"likesCount": 98732, "commentsCount": 831, "playsCount": 3550048 }
] }
}
Page further back through NASA's Instagram posts
instagram_posts · 200 OK sample call
The next twelve, and engagement drops off:
73,090 likes · 4,957 comments
61,084 likes · 1,451 comments
43,251 likes · 354 comments
Nothing in this batch comes close to the eclipse post.
instagram_posts { "handle": "nasa", "limit": 12, "nextPageToken": "3974764761495915161_528817151" }
{
"url": "https://api.hasdata.com/scrape/instagram/posts?handle=nasa&nextPageToken=3974764…",
"status": 200,
"json": {
"latestPosts": [{ "shortcode": "Dcoem19Eb5_", "likesCount": 73090, "commentsCount": 4957 }],
"pagination": { "morePostsAvailable": true, "nextPageToken": "…_528817151" }
}
}
Tools

The Instagram tools your agent can call

2 tools

Typed parameters, required flags, and structured JSON fields for each tool. Read a public profile as it stands, then page through its posts with the likes, comments and plays attached to each.

+ hasdata_instagram_profile_getInstagramProfile One public profile by handle 1 param 10 creditsTry
Parameters of hasdata_instagram_profile_getInstagramProfile
ParameterTypeRequiredExample
handlestringrequired"nasa"
response
  • id
  • username
  • fullName
  • biography
  • followersCount
  • followsCount
  • verified
  • latestPosts
+ hasdata_instagram_posts_getInstagramPosts An account's posts, page by page 3 params 10 creditsTry
Parameters of hasdata_instagram_posts_getInstagramPosts
ParameterTypeRequiredExample
handlestringrequired"nasa"
limitnumberoptional12
nextPageTokenstringoptional"QVFIU…"
response
  • shortcode
  • caption
  • type
  • likesCount
  • commentsCount
  • playsCount
  • hashtags
  • mentions

Every call is 10 credits. Failed calls are not billed.

Connect

One endpoint, any MCP client

A config block for every major MCP client, in its native format. Authenticate with browser OAuth or an x-api-key header.

Claude Code

zsh — hasdata-instagram
$claude mcp add --transport http hasdata-instagram \
> https://mcp.hasdata.com/api/mcp?apis=instagram \
> --header "x-api-key: YOUR_API_KEY"
· One line, no restart. Run /mcp to confirm 2 tools.
Check the tools are thereIn the session
/mcp
hasdata-instagram · connected · 2 tools

Cursor

~/.cursor/mcp.json
{
"mcpServers": { "hasdata-instagram": {
"url": "https://mcp.hasdata.com/api/mcp?apis=instagram",
"headers": { "x-api-key": "YOUR_API_KEY" }
} }
}
· Add this entry to ~/.cursor/mcp.json. Servers already in the file stay as they are.
· Project-level config also works at .cursor/mcp.json
Check the tools are thereAfter saving the file
Settings → MCP
hasdata-instagram · 2 tools enabled

Claude Desktop

Recommended · OAuth connector
1.Settings → Connectors → Add custom connector
2.Paste https://mcp.hasdata.com/api/mcp?apis=instagram
3.Sign in with HasData
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": { "hasdata-instagram": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://mcp.hasdata.com/api/mcp?apis=instagram",
"--header", "x-api-key:YOUR_API_KEY"]
} }
}
· Add this entry to ~/Library/Application Support/Claude/claude_desktop_config.json. Servers already in the file stay as they are.
· The config file only takes stdio servers, so a static key rides the mcp-remote bridge. On Windows the file lives at %APPDATA%\Claude\claude_desktop_config.json.
Check the tools are thereReopen the app
Settings → Connectors
hasdata-instagram · connected · 2 tools

VS Code / Copilot

.vscode/mcp.json
{
"servers": { "hasdata-instagram": {
"type": "http",
"url": "https://mcp.hasdata.com/api/mcp?apis=instagram",
"headers": { "x-api-key": "YOUR_API_KEY" }
} }
}
· Add this entry to .vscode/mcp.json. Servers already in the file stay as they are.
· Agent mode picks the server up on save.
Check the tools are thereAgent mode
Ctrl/⌘ + Shift + P → MCP: List Servers
hasdata-instagram · running · 2 tools

Windsurf

~/.codeium/windsurf/mcp_config.json
{
"mcpServers": { "hasdata-instagram": {
"serverUrl": "https://mcp.hasdata.com/api/mcp?apis=instagram",
"headers": { "x-api-key": "YOUR_API_KEY" }
} }
}
· Add this entry to ~/.codeium/windsurf/mcp_config.json. Servers already in the file stay as they are.
· Windsurf reads serverUrl, not url. Header auth only.
Check the tools are thereIn Cascade
Cascade → MCP servers
hasdata-instagram · 2 tools

Cline

cline_mcp_settings.json
{
"mcpServers": { "hasdata-instagram": {
"type": "streamableHttp",
"url": "https://mcp.hasdata.com/api/mcp?apis=instagram",
"headers": { "x-api-key": "YOUR_API_KEY" }
} }
}
· Add this entry to cline_mcp_settings.json. Servers already in the file stay as they are.
· Header auth only. The type field tells Cline this is a remote server, not a command.
Check the tools are thereIn the MCP panel
MCP Servers → Installed
hasdata-instagram · 2 tools

ChatGPT / Agents SDK

Recommended · OAuth connector
1.Settings → Security and login → Developer mode
2.Plugins → + → developer-mode app, paste https://mcp.hasdata.com/api/mcp?apis=instagram
3.Sign in with HasData
agent.py
from agents import Agent, HostedMCPTool
tool = HostedMCPTool(tool_config={
"type": "mcp",
"server_label": "hasdata-instagram",
"server_url": "https://mcp.hasdata.com/api/mcp?apis=instagram",
"authorization": "YOUR_API_KEY",
"require_approval": "never",
})
agent = Agent(name="Researcher", tools=[tool])
· The Agents SDK sends authorization as a Bearer token, which the endpoint accepts. The ChatGPT route needs no key: it signs in with OAuth.
Check the tools are thereRun the agent
Runner.run(agent, "…")
hasdata-instagram · 2 tools listed

Codex CLI

~/.codex/config.toml
[mcp_servers.hasdata-instagram]
url = "https://mcp.hasdata.com/api/mcp?apis=instagram"
env_http_headers = { "x-api-key" = "HASDATA_API_KEY" }
· Add this entry to ~/.codex/config.toml. Servers already in the file stay as they are.
· TOML, not JSON. Codex reads the key from the HASDATA_API_KEY environment variable, so export it in the shell that starts Codex.
Check the tools are thereIn the terminal
codex mcp list
hasdata-instagram · 2 tools

Gemini CLI

~/.gemini/settings.json
{
"mcpServers": { "hasdata-instagram": {
"httpUrl": "https://mcp.hasdata.com/api/mcp?apis=instagram",
"headers": { "x-api-key": "YOUR_API_KEY" }
} }
}
· Add this entry to ~/.gemini/settings.json. Servers already in the file stay as they are.
· httpUrl, not url: Gemini keeps url for SSE servers. Header auth only.
Check the tools are thereIn the session
/mcp
hasdata-instagram · 2 tools

Raw HTTP / curl

zsh — hasdata-instagram
$curl -N https://mcp.hasdata.com/api/mcp?apis=instagram \
> -H "x-api-key: YOUR_API_KEY" \
> -H "Content-Type: application/json" \
> -H "Accept: application/json, text/event-stream" \
> -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
· Fallback for any client not listed. Streamable HTTP wants both Accept types, and leaving one out returns 406.
Check the tools are thereCall it yourself
curl … tools/list
{ "tools": [ … 2 items ] }
Scope

Instagram plus whatever else you need

Name the services in the query string and the server exposes only their tools. Every one draws from the same key and the same balance.

Instagram 2 tools See the full MCP server →
https://mcp.hasdata.com/api/mcp?apis=instagram,tiktok,youtube
10tools in your server
Build vs Buy

Free on GitHub, paid in hours

Anyone can clone a free MCP to scrape Instagram. Whether that stays free depends on the shape of your project.

Scenario

A script I run once

Self-hosted from GitHubyour machine, your upkeep
$0/ mo, runs locally
+ 3–6 h onceof someone’s time
Setup (clone, wire, run)3–6 h once
Markup changesnot yet
Retries and concurrencynot needed
Proxy and hosting$0
Nothing to own. You get the answer and delete the folder.
mcp.hasdata.comFree tier
$0/ mo
+ 0 hof someone’s time
Setup one line
Parser upkeep included
Retries and concurrency included
~25 calls 250 of 1,000 credits
The free tier renews every month. No card.
leans self-hosted
Take the free repo
Nothing has to keep working tomorrow, so upkeep never appears. Both cost nothing, so take whichever is already in front of you.

A weekly report

Self-hosted from GitHubyour machine, your upkeep
$0–40/ mo
+ 2–4 h / moof someone’s time
Setup (proxy, hosting, wiring)3–6 h once
Markup changes2–4 h / mo
Retries and concurrency2–4 h once
Proxy and hosting$0–40 / mo
Someone looks at it when the numbers come back wrong, which is how you find out.
mcp.hasdata.comFree tier
$0/ mo
+ 0 hof someone’s time
Setup one line
Parser upkeep included
Retries and concurrency included
~100 calls a month 1,000 of 1,000 credits
Exactly the free tier, so a heavier month moves you to Startup.
dead even
Either works
The repo is free if you have somewhere to run it, ours is free up to the credit ceiling. The two to four hours a month decide it.

A pipeline in production

Self-hosted from GitHubyour machine, your upkeep
$40–120/ mo
+ 6–10 h / moof someone’s time
Setup (proxy, hosting, wiring)3–6 h once
Markup changes2–4 h / mo
Retries, concurrency, rate limits4–8 h once
Proxy and hosting$40–120 / mo
Someone owns this permanently, and it is never the top of their list.
mcp.hasdata.comStartup, 200K credits, 5 concurrent
$49/ mo
+ 0 hof someone’s time
Setup one line
Parser upkeep included
Retries and concurrency included
5,000 calls 50K of 200K credits
A quarter of the plan used, and the rest is headroom.
leans hosted
Use the hosted server
The proxy and hosting bill alone is in the range of the whole plan, and that is before anyone spends the six to ten hours.

A feature in my product

Self-hosted from GitHubyour machine, your upkeep
$300+/ mo
+ on-callof someone’s time
Setup (proxy, hosting, wiring)3–6 h once
Markup changes, plus on-call2–4 h / mo
Retries, concurrency, rate limitsongoing
Proxy and hosting$300+ / mo
The thing your customers touch depends on one volunteer's spare evening.
mcp.hasdata.comBasic, 1M credits, 15 concurrent
$99/ mo
+ 0 hof someone’s time
Setup one line
Parser upkeep included
Retries and concurrency included
50,000 calls 500K of 1M credits
Same endpoint at ten calls and at ten million. One invoice.
leans hosted
Use the hosted server
A third of the price, and nobody has to carry a pager for a dependency your customers touch.
Pricing

One balance, every interface

A flat monthly price against a known credit ceiling. Move up a plan when you outgrow it.

Free
$0 /mo
Free forever
100 tool calls / month
1,000 credits / month
1 concurrent request
Every MCP tool on every plan
Failed calls are not billed
One balance across MCP and REST
Community support
Start free
Startup
$49 /mo
$2.46 / 1k tool calls
20K tool calls / month
200K credits / month
5 concurrent requests
Every MCP tool on every plan
Failed calls are not billed
One balance across MCP and REST
Email support
Get started
Basic
Recommended
$99 /mo
$0.99 / 1k tool calls
100K tool calls / month
1M credits / month
15 concurrent requests
Every MCP tool on every plan
Failed calls are not billed
One balance across MCP and REST
Priority email support
Get started
Growth
$208 /mo
$0.69 / 1k tool calls
3M credits / month
50 concurrent requests
Every MCP tool on every plan
Failed calls are not billed
One balance across MCP and REST
Dedicated account manager
Get started
Monthly tool call volume
Free 100K 500K 2M
Best fit
Basic
tool calls / mo
100K
Concurrency
15
$ / 1k tool calls
$0.99
$99 /mo
Get Started
Enterprise
Custom price based on required volume

Past 20M credits a month, or terms the self-serve plans do not cover. We shape the contract around your workload.

Credits rollover
Unused credits carry into the next billing period.
Concurrency 2000+
Parallel request limits set to your peak load.
#1 request priority
Highest speed, always first in the queue.
Personal manager
A direct line to the founding team.
SSO
SAML single sign-on for the whole team.
SOC-2 compliance
Security review, DPA, and audit reports.
Talk to sales Quote within one business day
FAQ

Before you wire it in

Which accounts can these tools read?

Public ones. Every tool reads the pages a signed-out visitor sees, so a private account returns nothing useful and there is no way to ask for more than the account itself publishes.

How is this different from the Instagram Graph API?

The Graph API reaches an account that has authorised your app, and it requires app review for most of what it exposes. These tools read public profiles and posts without that relationship, which is a different job rather than a shortcut into the same one.

How do I read more than the first page of posts?

The posts tool returns a nextPageToken. Hand it back on the next call and you get the following page. limit sets the page size and defaults to twelve.

How fresh is the data? Is anything cached?

Every tool call fetches the page at that moment, so follower and like counts are the ones on screen right now. Nothing is served from a cache.

What about personal data?

A profile is personal data even when it is public. HasData reads publicly available pages only, and you are responsible for having a lawful basis for what you collect and store under GDPR, CCPA or the equivalent rules where you operate.

How many calls can run in parallel?

One on the free tier, five on Startup, fifteen on Basic, and fifty on Growth. The larger Growth volumes raise it to 200, 300 and 500.

What happens when I run out of credits?

Nothing is charged on top of the plan. Calls stop until the billing cycle renews.

Does it work with Claude Desktop, Cursor, VS Code and Claude Code?

Yes, all four, plus anything else that speaks MCP over streamable HTTP. Claude Desktop connects through OAuth, and the rest take the URL and an API key header.

Is HasData affiliated with Instagram?

No. HasData is an independent service and is not affiliated with, endorsed by, or sponsored by Meta Platforms, Inc. Instagram is a trademark of its respective owner.