# HasData Instagram

A hosted MCP server that retrieves public Instagram profiles, feeds, and comments without an account login. Built for competitive analysis and content auditing.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 15
- Author: HasData
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/HasData/instagram-mcp
- Updated: 2026-10-12
- HTML: https://affpapa.org/en/nevibecode/mcp/hasdata-instagram

## What it does

The server queries public Instagram endpoints and returns structured JSON to the client. It handles profile lookups, feed walking, and comment extraction on individual posts or reels. Captions arrive with hashtags and mentioned handles pre-parsed into distinct arrays, saving your agent from parsing text with regex.

Setup requires no social media account credentials. The server runs as a hosted endpoint over streamable HTTP at `https://mcp.hasdata.com/mcp?apis=instagram` or locally via the `@hasdata/instagram-mcp` launcher package. A single profile request bundles the twelve latest posts right away, saving round trips during account reviews.

Usage requires a `HASDATA_API_KEY`. The free tier includes 1,000 monthly credits, which equals 100 API queries. Without a valid HasData API key, calls fail immediately.

## Requirements
- Needs: Node.js (commands run via npx)
- Remote server: `https://mcp.hasdata.com/mcp?apis=instagram`
- Environment variables: `HASDATA_API_KEY` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

1. **Platform CLI**
```bash
claude mcp add instagram -e HASDATA_API_KEY=<HASDATA_API_KEY> -- npx -y @hasdata/instagram-mcp
```
Replace <…> with your own values

2. **Platform CLI: remote server**
```bash
claude mcp add --transport http hasdata-instagram 'https://mcp.hasdata.com/mcp?apis=instagram'
```

### Codex

1. **Platform CLI: remote server**
```bash
codex mcp add hasdata-instagram --url 'https://mcp.hasdata.com/mcp?apis=instagram'
```

2. **Platform CLI**
```bash
codex mcp add hasdata-instagram --env HASDATA_API_KEY=<HASDATA_API_KEY> -- npx -y @hasdata/instagram-mcp
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "hasdata-instagram": {
            "url": "https://mcp.hasdata.com/mcp?apis=instagram"
        }
    }
}
```
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "hasdata-instagram": {
            "command": "npx",
            "args": [
                "-y",
                "@hasdata/instagram-mcp"
            ],
            "env": {
                "HASDATA_API_KEY": "<HASDATA_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "hasdata-instagram": {
            "type": "http",
            "url": "https://mcp.hasdata.com/mcp?apis=instagram"
        }
    }
}
```
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "hasdata-instagram": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@hasdata/instagram-mcp"
            ],
            "env": {
                "HASDATA_API_KEY": "<HASDATA_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

1. **Platform CLI: remote server**
```bash
gemini mcp add -t http hasdata-instagram 'https://mcp.hasdata.com/mcp?apis=instagram'
```

2. **Platform CLI**
```bash
gemini mcp add -e HASDATA_API_KEY=<HASDATA_API_KEY> hasdata-instagram npx -y @hasdata/instagram-mcp
```
Replace <…> with your own values

## When to use it
- fetch public profile metadata and bio links
- extract recent posts with pre-parsed hashtags and mentions
- retrieve comments and engagement counts from a specific post URL
- compare follower counts across multiple public accounts

## Example prompts
- Fetch the profile for @nasa and summarize the bio links.
- Review the last twelve posts from @natgeo and list every mentioned account.
- Retrieve the comments and like count for this post URL.

## Similar
- [scraping-instagram-comments](https://affpapa.org/en/nevibecode/skills/scraping-instagram-comments.md) — skill · 750 installs
- [scraping-instagram-location-content](https://affpapa.org/en/nevibecode/skills/scraping-instagram-location-content.md) — skill · 810 installs
- [HasData TikTok](https://affpapa.org/en/nevibecode/mcp/hasdata-tiktok.md) — MCP server · ★ 12
- [HasData Facebook](https://affpapa.org/en/nevibecode/mcp/hasdata-facebook.md) — MCP server · ★ 11
- [instagram-scraper](https://affpapa.org/en/nevibecode/skills/instagram-scraper.md) — skill · 8000 installs
- [instagram-api](https://affpapa.org/en/nevibecode/skills/instagram-api.md) — skill · 6700 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
