Instagram MCP Server
by laptimehq
README.md
<div align="center">
<img src="assets/banner.png" alt="Instagram MCP: Instagram data for your AI assistant" width="820">
# Instagram MCP Server
**Read Instagram from Claude, ChatGPT, Cursor, VS Code, any MCP client or your own code: profiles, reels with exact view counts, hashtags, comments and reel transcripts. No Instagram login.**
[](#quick-start)
[](https://registry.modelcontextprotocol.io)
[](https://github.com/laptimehq/instagram-mcp/actions/workflows/validate.yml)
[](LICENSE)
[](https://cursor.com/en/install-mcp?name=instagram&config=eyJ1cmwiOiJodHRwczovL21jcC5hcGlmeS5jb20vP3Rvb2xzPWZldGNoLWFjdG9yLWRldGFpbHMsZ2V0LWFjdG9yLXJ1bixnZXQtZGF0YXNldC1pdGVtcyxsYXB0aW1lL2luc3RhZ3JhbS1wcm9maWxlLXNjcmFwZXIsbGFwdGltZS9pbnN0YWdyYW0tcmVlbHMtc2NyYXBlcixsYXB0aW1lL2luc3RhZ3JhbS1oYXNodGFnLXNjcmFwZXIsbGFwdGltZS9pbnN0YWdyYW0tY29tbWVudHMtc2NyYXBlcixsYXB0aW1lL2luc3RhZ3JhbS1yZWVscy10cmFuc2NyaXB0LXNjcmFwZXIifQ==)
[](https://vscode.dev/redirect/mcp/install?name=instagram&config=%7B%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fmcp.apify.com%2F%3Ftools%3Dfetch-actor-details%2Cget-actor-run%2Cget-dataset-items%2Claptime%2Finstagram-profile-scraper%2Claptime%2Finstagram-reels-scraper%2Claptime%2Finstagram-hashtag-scraper%2Claptime%2Finstagram-comments-scraper%2Claptime%2Finstagram-reels-transcript-scraper%22%7D)
[](https://insiders.vscode.dev/redirect/mcp/install?name=instagram&config=%7B%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fmcp.apify.com%2F%3Ftools%3Dfetch-actor-details%2Cget-actor-run%2Cget-dataset-items%2Claptime%2Finstagram-profile-scraper%2Claptime%2Finstagram-reels-scraper%2Claptime%2Finstagram-hashtag-scraper%2Claptime%2Finstagram-comments-scraper%2Claptime%2Finstagram-reels-transcript-scraper%22%7D&quality=insiders)
[](#client-setup)
[Quick start](#quick-start) · [Agent setup](#set-up-with-your-ai-agent) · [Tools](#tools) · [Client setup](#client-setup) · [Use from code](#use-it-from-code) · [Pricing](#pricing) · [FAQ](#faq)
</div>
Instagram MCP connects your AI assistant to public Instagram data. Ask a question: your assistant looks up profiles and follower counts, pulls a creator's reels with exact views, finds reels under a hashtag, reads every comment on a post and turns reels into text. Results come back as structured rows it can sort, filter, compare and summarise.
## Set up with your AI agent
Paste this repository's URL into Claude Code, Codex, Cursor or another agent and ask it to set up Instagram MCP. The steps below are written so your agent can follow them.
**For AI agents installing this server:**
1. This is a hosted remote MCP server (streamable HTTP). There is nothing to download or build. It needs a free Apify account and an Apify sign-in (OAuth) in the user's browser; do not ask for an API token unless the sign-in fails.
2. Server name `instagram`, server URL:
```text
https://mcp.apify.com/?tools=fetch-actor-details,get-actor-run,get-dataset-items,laptime/instagram-profile-scraper,laptime/instagram-reels-scraper,laptime/instagram-hashtag-scraper,laptime/instagram-comments-scraper,laptime/instagram-reels-transcript-scraper
```
3. Add it with the client's own command:
- Claude Code: `claude plugin marketplace add laptimehq/instagram-mcp`, then `claude plugin install instagram@instagram-mcp` (adds the server and the Instagram MCP skill).
- Codex: `codex mcp add instagram --url "<server URL>"`, then `codex mcp login instagram`.
- VS Code: `code --add-mcp '{"name":"instagram","type":"http","url":"<server URL>"}'`.
- Cursor and other clients: add `{"mcpServers": {"instagram": {"url": "<server URL>"}}}` to the client's MCP config file (Cursor: `~/.cursor/mcp.json`).
4. Ask the user to complete the sign-in. In Claude Code they run `/mcp`, select instagram and choose **Authenticate**; other clients open the Apify sign-in page themselves. A client restart may be needed before the tools appear.
5. Check it works with a small call, for example `laptime--instagram-profile-scraper` with `{"usernames": ["nasa"], "latestPosts": 12}`. Every returned row is billed to the user's Apify account, so keep test runs small.
6. Before real requests, read the [Instagram MCP skill](skills/instagram/SKILL.md): it explains the run flow and which inputs return good results.
## Why Instagram MCP
- **No Instagram account.** No login, cookies or session. Your own Instagram account is never involved.
- **Exact view counts.** Reels come with their real play counts, likes and comments, not rounded labels.
- **Five tools in one server.** Profiles, reels, hashtags, comments and transcripts: research a creator end to end in one conversation.
- **Reels to text.** 2 reels in 3.2 s, the fastest of the Instagram transcript Actors Laptime ran on the same reels (18 Nov 2026).
- **Nothing to install.** A hosted remote MCP server: add one URL and sign in with Apify. Works in claude.ai and ChatGPT, not only in desktop apps.
- **Made for assistants.** A bundled skill teaches your assistant the inputs that work, and tool descriptions carry every option.
- **Pay per result.** Billed to your own Apify account, no subscription, no start fee. Apify's free plan includes $5 of usage a month.
| | Instagram MCP | Instagram Graph API |
|---|---|---|
| Instagram account | Not needed | A Business account, a Facebook app and app review |
| Other people's profiles and reels | Any public profile | Only limited business discovery |
| Comments on any public post | Included | Only on your own media |
| Reel transcripts | Included | Not available |
## Tools
| Tool | What you get | Store page |
|---|---|---|
| **Profiles** | Followers, following, posts count, bio and links, verified, business category, latest posts, related profiles. | [instagram-profile-scraper](https://apify.com/laptime/instagram-profile-scraper?utm_source=github&utm_medium=mcp) |
| **Reels** | A profile's reels, newest first, with exact views, likes, comments, date, caption and hashtags. Date window, minimum views, skip pinned. | [instagram-reels-scraper](https://apify.com/laptime/instagram-reels-scraper?utm_source=github&utm_medium=mcp) |
| **Hashtags** | Reels and posts under a hashtag with views, likes and dates. | [instagram-hashtag-scraper](https://apify.com/laptime/instagram-hashtag-scraper?utm_source=github&utm_medium=mcp) |
| **Comments** | Every comment on a post or reel with text, likes, date and author. Keyword and date filters. | [instagram-comments-scraper](https://apify.com/laptime/instagram-comments-scraper?utm_source=github&utm_medium=mcp) |
| **Reel transcripts** | Reels to text: full transcript with timestamps, the spoken hook, language and caption. Music-only reels are free. | [instagram-reels-transcript-scraper](https://apify.com/laptime/instagram-reels-transcript-scraper?utm_source=github&utm_medium=mcp) |
All tools are read-only. They never post, message, follow or buy anything.
## Quick start
1. **Create a free [Apify account](https://console.apify.com/sign-up?utm_source=github&utm_medium=mcp)** if you do not have one.
2. **Add the server to your assistant.** Click a button above, or follow the steps for your client below.
3. **Sign in with Apify when your assistant asks**, then ask a question such as *"Compare the last 20 reels of @natgeo and @bbcearth by views and engagement, and show the top five in a table."*
**About the Apify sign-in page.** Apify notes that your assistant was registered dynamically and asks for API access; every assistant that signs in this way sees that notice. It lets your assistant start runs on your account, and you can remove the access at any time on your [Apify Console integrations page](https://console.apify.com/settings/integrations).
Server URL, for any client that accepts a remote MCP server:
```text
https://mcp.apify.com/?tools=fetch-actor-details,get-actor-run,get-dataset-items,laptime/instagram-profile-scraper,laptime/instagram-reels-scraper,laptime/instagram-hashtag-scraper,laptime/instagram-comments-scraper,laptime/instagram-reels-transcript-scraper
```
## Client setup
<details open>
<summary><b>Claude (claude.ai and Claude Desktop)</b></summary>
1. Open **Settings** > **Connectors** and select **Add custom connector**.
2. Name it `Instagram MCP` and paste the server URL above.
3. Select **Connect** and sign in with Apify.
4. In a chat, enable the Instagram MCP connector from the tools menu.
For better results, also add the [Instagram MCP skill](skills/instagram/SKILL.md): zip the `skills/instagram` folder and upload it under **Skills** in Claude's settings.
</details>
<details>
<summary><b>Claude Code</b></summary>
Plugin (server plus the Instagram MCP skill, recommended):
```text
/plugin marketplace add laptimehq/instagram-mcp
/plugin install instagram@instagram-mcp
```
Server only:
```bash
claude mcp add --transport http instagram "https://mcp.apify.com/?tools=fetch-actor-details,get-actor-run,get-dataset-items,laptime/instagram-profile-scraper,laptime/instagram-reels-scraper,laptime/instagram-hashtag-scraper,laptime/instagram-comments-scraper,laptime/instagram-reels-transcript-scraper"
```
Then sign in: run `/mcp`, select the instagram server and choose **Authenticate**.
</details>
<details>
<summary><b>Cursor</b></summary>
Click **Install in Cursor** above, or add [`examples/cursor-mcp.json`](examples/cursor-mcp.json) to `~/.cursor/mcp.json` (all projects) or `.cursor/mcp.json` (one project). Cursor asks you to sign in with Apify on first use.
</details>
<details>
<summary><b>VS Code and GitHub Copilot</b></summary>
Click **Install in VS Code** above, or add [`examples/vscode-mcp.json`](examples/vscode-mcp.json) to `.vscode/mcp.json`. Start the server from the MCP view and sign in with Apify when prompted. Use the tools in Copilot Chat agent mode.
</details>
<details>
<summary><b>ChatGPT</b></summary>
1. In ChatGPT, add a custom MCP server (connector) and name it `Instagram MCP`.
2. Paste the server URL above and choose **OAuth** authentication.
3. Sign in with Apify, then select Instagram MCP in a new chat.
Business, Enterprise and Edu workspaces may need an admin to enable custom servers. See OpenAI's [custom MCP server guide](https://help.openai.com/en/articles/12584461-connecting-custom-mcp-servers-in-chatgpt).
</details>
<details>
<summary><b>Codex</b></summary>
```bash
codex mcp add instagram --url "https://mcp.apify.com/?tools=fetch-actor-details,get-actor-run,get-dataset-items,laptime/instagram-profile-scraper,laptime/instagram-reels-scraper,laptime/instagram-hashtag-scraper,laptime/instagram-comments-scraper,laptime/instagram-reels-transcript-scraper"
codex mcp login instagram
```
Or copy [`examples/codex-config.toml`](examples/codex-config.toml) into `~/.codex/config.toml`.
</details>
<details>
<summary><b>Other clients, or a token instead of sign-in</b></summary>
Most clients that support remote MCP servers accept:
```json
{
"mcpServers": {
"instagram": {
"url": "https://mcp.apify.com/?tools=fetch-actor-details,get-actor-run,get-dataset-items,laptime/instagram-profile-scraper,laptime/instagram-reels-scraper,laptime/instagram-hashtag-scraper,laptime/instagram-comments-scraper,laptime/instagram-reels-transcript-scraper"
}
}
}
```
If your client cannot complete the Apify sign-in, send your Apify token as a header instead, see [`examples/bearer-token-mcp.json`](examples/bearer-token-mcp.json). Copy the token from your [Apify Console integrations page](https://console.apify.com/settings/integrations) and keep it out of shared files. Clients that only run local servers can bridge with `mcp-remote`, see [`examples/claude-desktop-config.json`](examples/claude-desktop-config.json).
</details>
## Use it from code
Each tool is also an [Apify Actor](https://apify.com/laptime?utm_source=github&utm_medium=mcp) with a REST API, so you can call it from your own code, a pipeline or an automation, without an assistant. Copy your API token from the [Apify Console integrations page](https://console.apify.com/settings/integrations). The input fields are the same ones the assistant uses; each Store page has an **API** tab with the full input reference.
<details open>
<summary><b>Python</b></summary>
```bash
pip install apify-client
```
```python
import os
from apify_client import ApifyClient
client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("laptime/instagram-profile-scraper").call(run_input={"usernames": ["nasa"], "latestPosts": 12})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item)
```
</details>
<details>
<summary><b>JavaScript and TypeScript</b></summary>
```bash
npm install apify-client
```
```js
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('laptime/instagram-profile-scraper').call({"usernames": ["nasa"], "latestPosts": 12});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```
</details>
<details open>
<summary><b>One GET request</b></summary>
`instagram-reels-transcript-scraper` also answers a plain GET request, with the answer in the response. No run to start or poll:
```bash
curl -H "Authorization: Bearer $APIFY_TOKEN" "https://laptime--instagram-reels-transcript-scraper.apify.actor/?url=https%3A%2F%2Fwww.instagram.com%2Freel%2FDehZj9wggt0%2F&format=text"
```
The query parameters are the ones in the [skill](skills/instagram/SKILL.md). The first request can take a few seconds longer while the server starts.
</details>
<details>
<summary><b>HTTP</b></summary>
Start a run and get its results in one request:
```bash
curl -X POST "https://api.apify.com/v2/acts/laptime~instagram-profile-scraper/run-sync-get-dataset-items" \
-H "Authorization: Bearer $APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"usernames": ["nasa"], "latestPosts": 12}'
```
This waits up to 300 seconds. For bigger runs, start the run asynchronously and read its dataset when it finishes, see the [Apify API reference](https://docs.apify.com/api/v2/act-run-sync-get-dataset-items-post).
</details>
<details>
<summary><b>n8n, Make and Zapier</b></summary>
Use Apify's official integration for [n8n](https://docs.apify.com/platform/integrations/n8n), [Make](https://docs.apify.com/platform/integrations/make) or [Zapier](https://docs.apify.com/platform/integrations/zapier), choose the Actor (for example `laptime/instagram-profile-scraper`) and pass the same JSON input. Ready-made n8n workflows: [laptimehq/n8n-templates](https://github.com/laptimehq/n8n-templates).
</details>
Other tools: replace the Actor ID with `laptime/instagram-reels-scraper`, `laptime/instagram-hashtag-scraper`, `laptime/instagram-comments-scraper`, `laptime/instagram-reels-transcript-scraper`.
## Example prompts
- *How many followers does @nasa have, and what did it post this week?*
- *Find @mrbeast's 10 most viewed reels from the last 90 days with views, likes and captions.*
- *Show the 30 most recent reels under #matcha with more than 50,000 views.*
- *Export every comment on this reel and group them by sentiment: https://www.instagram.com/reel/...*
- *Transcribe this creator's last 10 reels and list the hooks they open with: @garyvee*
- *Which of these 20 influencers have more than 100k followers and a business email in their bio?*
## Use cases
- **Influencer research.** Followers, engagement and recent reels for a list of creators before you reach out.
- **Competitor tracking.** What rivals post, how it performs and what their audience says in the comments.
- **Content ideas.** Transcripts and hooks of the reels that work in your niche.
- **Social listening.** Comments that mention your brand, a price or a question, collected on a schedule.
- **Giveaways.** Every comment that tags a friend, exported for a fair draw.
## Example output
One row from a real run of [instagram-reels-scraper](https://apify.com/laptime/instagram-reels-scraper?utm_source=github&utm_medium=mcp) on Apify (2 December 2026), abridged. Your assistant reads rows like this and answers in plain language.
```json
{
"url": "https://www.instagram.com/reel/DgNWTVJhPJX/",
"profileUsername": "nasa",
"position": 1,
"timestamp": "2026-11-26T14:46:01.000Z",
"videoPlayCount": 4314427,
"likesCount": 68959,
"commentsCount": 756,
"engagementRate": 0.0162,
"caption": "Chez ISS -Season 2: Thanksgiving Reunion. Thanksgiving is a time for us to come together with friends family and loved ones. We will be..."
}
```
Each tool's Store page lists every field.
## How long requests take
Most Laptime runs finish in seconds, inside the first tool call. Bigger requests keep running on Apify after the call returns, and your assistant checks back until the results are ready, then reads them in pages. The [Instagram MCP skill](skills/instagram/SKILL.md) teaches assistants this flow, along with input recipes for each tool. Claude Code gets it with the plugin.
## Pricing
Pay per result, billed to your Apify account, no start fee. There is no subscription to this repository. Prices on 2 December 2026 (Apify free-plan list prices; paid plans pay less, and each pricing page has the details):
- [Profiles](https://apify.com/laptime/instagram-profile-scraper/pricing?utm_source=github&utm_medium=mcp): $1.50 per 1,000
- [Reels](https://apify.com/laptime/instagram-reels-scraper/pricing?utm_source=github&utm_medium=mcp): $1.20 per 1,000
- [Hashtags](https://apify.com/laptime/instagram-hashtag-scraper/pricing?utm_source=github&utm_medium=mcp): $1.20 per 1,000
- [Comments](https://apify.com/laptime/instagram-comments-scraper/pricing?utm_source=github&utm_medium=mcp): $0.80 per 1,000
- [Reel transcripts](https://apify.com/laptime/instagram-reels-transcript-scraper/pricing?utm_source=github&utm_medium=mcp): $3.99 per 1,000
Your assistant controls cost through result caps such as `maxItems`. Ask for a small number first, then scale up. Runs that return nothing are not charged.
## Troubleshooting
- **`/mcp` says the server is not authenticated, or its tools could not be fetched.** Select the server and choose **Authenticate**. Other clients show a **Connect** or **Sign in** button.
- **A profile returns nothing.** Check the username is public and spelled without the @ or with it; both work. The run's status message says why a profile was skipped.
- **Your assistant says a run is still going.** That is normal for bigger requests. Ask it to keep checking the same run; a new run for the same question is billed again.
- **Your client cannot complete the sign-in.** Use an Apify token header instead, see [Other clients](#client-setup).
## FAQ
**Is there an Instagram API for other accounts?**
Instagram's official Graph API covers your own Business account and limited discovery. These tools read any public profile, reel or comment thread, over MCP or a REST API (see [Use it from code](#use-it-from-code)).
**Do I need an Instagram account?**
No. You only need an Apify account. Your Instagram account is never used.
**Does it work on private accounts?**
No. Only public profiles and posts.
**Which AI assistants work with it?**
Any client that supports remote MCP servers, including Claude (claude.ai, Claude Desktop, Claude Code), ChatGPT, Codex, Cursor, VS Code with GitHub Copilot and many more.
**Is it free?**
Apify's free plan includes $5 of usage a month, enough to try every tool. After that you pay per result; see [Pricing](#pricing).
**Is this an official Instagram product?**
No. Instagram MCP is an independent product by Laptime and is not affiliated with the platforms it reads.
## Privacy
Requests go to Apify's hosted MCP server and run on your Apify account. Apify's [privacy policy](https://docs.apify.com/legal/privacy-policy) applies. This repository contains configuration and instructions only; it collects nothing.
## More from Laptime
Instagram MCP is built on [Laptime's Apify Actors](https://apify.com/laptime?utm_source=github&utm_medium=mcp): fast, timed scrapers with pay-per-result pricing. You can also run each tool directly on Apify, from its API, or on a schedule.
- [Reddit MCP](https://github.com/laptimehq/reddit-mcp): Reddit for your AI assistant.
- [YouTube Transcript MCP](https://github.com/laptimehq/youtube-transcript-mcp): Video transcripts for your AI assistant.
- [Web Search MCP](https://github.com/laptimehq/web-search-mcp): Search and read the web from any agent.
- [Ad Library MCP](https://github.com/laptimehq/facebook-ad-library-mcp): Ad libraries for your AI assistant.
- [Job Search MCP](https://github.com/laptimehq/job-search-mcp): Job listings for your AI assistant.
- [Threads MCP](https://github.com/laptimehq/threads-mcp): Threads for your AI assistant.
- [trendsfetch](https://github.com/laptimehq/trendsfetch): Google Trends for Python, a drop-in pytrends replacement.
## License
[MIT](LICENSE). Platform names are trademarks of their respective owners.
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues