# HasData Instagram [Health: Active]

**Category:** 🌐 Social Media  
**Repository:** https://github.com/HasData/instagram-mcp  
**GitHub Stars:** 13  
**npm Downloads (last month):** 310  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/hasdata-instagram

## Description
Public Instagram profiles and post feeds by handle, with hashtags and mentions parsed.

## Tools
Capabilities this server exposes over MCP:

- **hasdata_instagram_comments_getInstagramComments** — Get Instagram Comments

Fetches the comments on a public Instagram post or reel from its URL (`/p/`, `/reel/` or `/tv/` links, with or without the username segment). The first page returns the post (id, shortcode, caption, hashtags, mentions, likes and comments counts, owner, display image, images, video URL, DASH manifest, hasAudio flag, tagged location, and every carousel item as childPosts) plus the first comments; with includeMusic=true the post also carries music (audioId, artistName, songName) for the reel's licensed track or original sound; later pages return comments only. Each comment has text, timestamp, like count, reply count, and owner (username, verified flag, profile picture, hasdataLink to the profile endpoint). Supports token-based pagination via nextPageToken. Instagram sizes pages server-side (about 10 to 15 comments). Use for sentiment analysis, engagement research, or building comment datasets from posts discovered via the posts API, whose items carry a hasdataLink to this endpoint.
- **hasdata_instagram_posts_getInstagramPosts** — Get Instagram Posts

Fetches the latest posts of a public Instagram account by username (handle) and returns each post with caption, hashtags, mentions, like and comment counts, play counts on videos and Reels, image and video URLs, and timestamp. Supports token-based pagination via nextPageToken to walk older posts. Private accounts and handles that do not exist or are hidden from logged-out viewers return an error field instead of posts. Use to monitor competitor content, track engagement of creator posts, or build datasets of account content for vetting and analytics.
- **hasdata_instagram_profile_getInstagramProfile** — Get Instagram Profile

Fetches a public Instagram profile by username (handle) and returns full name, biography, external link, profile picture URL, followers count, following count, and verified/private flags. Use to enrich CRM/lead records, verify influencer reach before outreach, monitor competitor accounts, or build datasets of creator metadata for vetting and analytics.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "hasdata-instagram": {
    "command": "npx",
    "args": ["-y","@hasdata/instagram-mcp"],
    "env": {
      "HASDATA_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `HASDATA_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What HasData Instagram does

HasData Instagram exposes three read-only tools for public Instagram data. Profile lookup accepts a username and returns the account’s full name, biography, external or bio links, profile image, follower and following counts, and verified or private status. It also includes the account’s recent posts in the profile response.

Post-feed lookup accepts a public account handle and retrieves the latest posts, including captions, parsed hashtags and mentions, timestamps, media URLs, likes, comments, and video or Reel play counts. Post objects can also include carousel items, tagged users, post type information, and links for related lookups.

Comment lookup accepts a public Instagram post or Reel URL using `/p/`, `/reel/`, or `/tv/` paths. The first page includes post details and initial comments; subsequent pages return comments. Comment records contain text, timestamp, like count, reply count, and author details. Music metadata can be included for Reels when requested.

## How it works

The hosted endpoint uses streamable HTTP:

`https://mcp.hasdata.com/mcp?apis=instagram`

Requests authenticate with the `x-api-key` header. Each tool call returns structured JSON through the MCP response. When calling the endpoint directly, the JSON payload is contained in `result.content[0].text`; parsing that value exposes the response data under its `json` field.

Post feeds and comment results support token-based pagination through `nextPageToken`. This allows an agent to continue through older account posts or additional comments without repeating the initial request. Instagram sizes comment pages server-side at roughly 10 to 15 comments. Public handles that do not exist, are private, or are hidden from logged-out viewers produce an error field rather than a post feed.

## Setup and configuration

Create a HasData API key and configure an MCP client that supports streamable HTTP with custom headers. The remote setup needs the endpoint URL and this header:

```text
x-api-key: HASDATA_API_KEY
```

Claude Code, Cursor, Windsurf, Cline, VS Code, and Gemini CLI can be configured with the remote URL and header. Claude Desktop uses a local stdio launcher because its configuration loads local servers; use the `@hasdata/instagram-mcp` npm package with `npx`, or the `hasdata-instagram-mcp` PyPI package with `uvx`, and provide `HASDATA_API_KEY` in the launcher environment. Clients with OAuth connector support can add the hosted URL as a connector instead of placing the key in a configuration file.

The service offers 1,000 free credits per month, equivalent to 100 calls at the stated rate of 10 credits per call. No local container is required for the hosted configuration.

## Tools and capabilities

- `hasdata_instagram_profile_getInstagramProfile` looks up one public profile by handle.
- `hasdata_instagram_posts_getInstagramPosts` walks a public account’s latest posts with pagination.
- `hasdata_instagram_comments_getInstagramComments` retrieves post or Reel details and comments by URL.
- Profile, post, and comment responses expose structured fields rather than requiring caption parsing by the client.
- Hashtags and mentions are returned as arrays parsed from post captions.
- Post and comment pagination uses `nextPageToken` for continued retrieval.

These capabilities fit public-account vetting, influencer and creator research, competitor-content tracking, engagement comparisons, hashtag or mention frequency analysis, and comment sentiment or dataset workflows.

_Full upstream README: https://allmcps.com/mcp/hasdata-instagram/readme_

