Instagram connector for Claude Code

Use Porter’s Instagram connector for Claude Code to pull posts, reach, saves and followers into your terminal, then turn them into files, scripts and scheduled reports in your own project.

  • Save Instagram post data as CSV in your repo
  • Compare Reels, carousels and images
  • Run a weekly Instagram report from a script
  • Track follower growth day by day
G2★★★★★Rated 4.6/5 from 288 G2 reviews (October 2026) · Used by 1,600+ marketing teams and agencies

By · Last updated November 26, 2026

Claude Codeporter connected
List last month’s posts by Post reach and Post saves and save them to reports/ig-posts.csv
porter / Instagram / Trailgear Demo✓ 4 rows
Saved reports/ig-posts.csv with 4 posts. The gear checklist carousel got the most saves.
PostPost reachPost saves
Gear checklist (carousel)18,2401,312
Trail at dawn (Reel)26,900840
Tent setup (Reel)14,110610
New colors (image)6,320120
Demo data, Trailgear Demo account
Posts, Reels and Stories
01Setup

How to connect Instagram to Claude Code

Connecting Instagram to Claude Code takes 3 steps and no API keys: connect your Instagram Business accounts in Porter with the Facebook account that manages it, add Porter’s MCP server to Claude Code with one command, then sign in from /mcp and ask. The same server also works in Cursor, VS Code and Codex, as Porter’s Instagram MCP server page shows. Using the Claude app instead? See the Instagram connector for Claude.

Before you start

  • You need Claude Code installed (Anthropic’s Claude Code overview), a free Porter account and an Instagram Business account linked to a Facebook Page.
  • Works with any Claude model in Claude Code, from Opus to Sonnet and Haiku.
  1. Step 1: Connect Instagram in Porter

    Sign up free at Porter, pick Instagram as the source and sign in with the Facebook account that manages it. Tick every Instagram account you want Claude Code to read.

  2. Step 2: Add Porter to Claude Code

    In your terminal, run this command. It adds Porter for every project on your machine; drop --scope user to add it to the current project only.

    Terminal
    claude mcp add --transport http --scope user porter https://mcp.portermetrics.com/mcp

    Or, inside Claude Code, install Porter’s plugin, which adds the server and Porter’s skill together: /plugin marketplace add portermetrics/porter, then /plugin install porter-metrics@portermetrics.

  3. Step 3: Sign in and ask

    Start claude, type /mcp, pick porter and sign in with the Google account you use in Porter. When porter shows as connected, paste this prompt:

    Prompt
    Which Instagram accounts can you see? List my posts from the last 30 days with Post date, Post type, Post reach and Post saves and save them to reports/ig-posts.csv.

Guides and videos

app.portermetrics.com / create
Porter's Select accounts window for Instagram Insights with the Add account button
First, in Porter, open Instagram Insights and select Add account.
Porter's Instagram Insights authorization page with the authorized profiles
Then, log in with Facebook and pick the Instagram profiles.
$ claude mcp add --transport http --scope user porter https://mcp.portermetrics.com/mcp

$ claude mcp list
porter: https://mcp.portermetrics.com/mcp (HTTP)
Then, add Porter's MCP server from your terminal.
> /mcp
porter · needs authentication → Authenticate

> Which Instagram accounts can you see?
● porter - list_accounts (MCP)
Trailgear Demo
After you sign in from /mcp, Claude Code lists your Instagram accounts.
02Use cases and prompts

What you can do in Claude Code

Claude Code works inside your project, so Instagram answers can become files, scripts and dashboards instead of chat replies. Each use case has a prompt to copy and uses the Instagram fields Porter reads.

Can Claude Code export Instagram post data?

The problemInstagram’s app shows one post at a time, so a full content audit means copying numbers by hand.

What Claude Code doesClaude Code pulls Post date, Post type, Media product type, Post reach and Post saves for every post through Porter and writes them to a CSV.

What you getA full post history in your repo, ready for analysis.

Prompt
For posts published last month, list Post date, Post type, Media product type, the first 80 characters of Post caption, Post reach and Post saves, and save them as data/ig-posts.csv.

Do Reels reach more people than carousels on my account?

The problemEveryone has an opinion on formats, but few accounts check their own numbers.

What Claude Code doesClaude Code groups posts by Post type and Media product type and averages reach and saves for each.

What you getA format table from your own account, not general advice.

Prompt
For posts from the last 90 days, group by Post type and Media product type. For each group show the number of posts, average Post reach and average Post saves, and save the table to reports/ig-formats.csv.

Can I schedule an Instagram report with Claude Code?

The problemInstagram insights show one period at a time, so the weekly recap means screenshots and notes.

What Claude Code doesEach Monday claude -p compares Profile reach and Profile new followers for last full week against the week before and finds the top 3 posts by Post reach.

What you getreports/ig-weekly.md with reach, follower growth and the posts that drove them.

Prompt
claude -p "Build my weekly Instagram report for the last full week vs the week before: Profile reach, Profile new followers, and the top 3 posts by Post reach. Write it to reports/ig-weekly.md" --allowedTools "mcp__porter" "Write"

Is my Instagram account gaining followers?

The problemThe follower count alone doesn’t show which days or posts drove growth.

What Claude Code doesClaude Code pulls Profile new followers and Profile reach by Date and flags the best days, so you can match them to posts.

What you getA daily growth file and the days worth repeating.

Prompt
For the last 30 days, show Profile new followers and Profile reach by Date, flag the 3 days with the most Profile new followers and save it to reports/ig-growth.csv.
03Why Porter

Why Porter for Instagram in Claude Code

Porter reads your Instagram Business account with no developer app or Graph API token, and puts Instagram next to Meta Ads, GA4 and 30+ other sources behind the same server.

✓

One server for all your sources

The same porter server answers about Instagram, Meta Ads, Google Ads, GA4 and Shopify, so one script can pull every channel.

⊞

Changes only after you approve

Claude Code can reply to comments and publish posts through Porter, and each one waits for your yes.

⚙

No Graph API token

You connect Instagram in Porter and sign in with Google in Claude Code. There is no Meta developer app or token refresh to maintain.

↻

Hosted dashboards when a file isn’t enough

Ask for a Porter AI dashboard and it is published at its own link, synced automatically and ready to share with a client.

04Dashboard

Dashboard template

Claude can build a dashboard through the connector, while Porter’s free Instagram Insights dashboard template shows followers, reach, top posts and Stories ready-made. Either ask Claude for scorecards and a daily reach trend, or open the hosted template.

AI dashboards

Build a live Instagram dashboard from your terminal

Describe the dashboard in one sentence and Porter builds it. A client-ready dashboard in minutes, with no chart dragging and no BI tool to learn. Ask Claude Code:

Prompt
Build a live Instagram dashboard for my account with the last 30 days, the main KPIs and a weekly trend.
Live URLEach dashboard at its own link: no login, no app, no download
Auto-syncFresh Instagram data, nobody re-exports each period
Scheduled deliveryEmail or PDF sends on a set day
White labelYour logo and branding for clients
Sharing permissionsView or edit access per person
Instagram dashboard template by Porter
Template

The Instagram AI dashboard template

Start from Porter’s official Instagram dashboard template, or run the prompt above in Claude Code and Porter publishes the dashboard at its own link.

05Pricing

Pricing

You can start free, since Porter’s Instagram connector for Claude comes with every plan. Use the calculator for your number of accounts, or see Porter pricing for every plan.

Free plan

$0, and it never expiresUnlimited connected accounts, the last 15 days of data in Claude (30 in Data Studio and Sheets) and 100 AI credits a month.

Start free

What you get

  • Reporting: from $12.50 per account a month billed annually, or $15 month to month for one account
  • Billing: each Instagram account counts as one account, with volume discounts and no per-seat fee
  • Changes: 1 AI credit per completed change; failed tasks are free, and the Free plan includes 100 credits a month
  • Trial: 14 days of full access, no card

Price calculator

$33.33/mo$6.67 per account

An account is one ad account, Stripe account, store, page or GA4 property. The Free plan never expires and has unlimited accounts, with the last 15 days of data in AI chats.

06Data and actions

Instagram data and actions in Claude Code

Through the connector, Claude reads your Instagram followers, reach, views, likes, comments, saves, Reels shares, Story exits and taps, audience and online followers. It can also read comments, publish posts and moderate comments. The full list of Instagram Insights fields shows every field, including its ID.

12 Instagram fields Claude uses most

Most questions need only these 12 fields, so start here.

Field (label)What it's for
Total followersfollowers_countLatest follower total
Profile new followersfollower_countNew followers per day
Profile reachreachAccounts reached per day
Profile impressionsimpressionsDaily account views, under the old name
Post reachpost_reachAccounts reached per post
Post savessavedSaves per post
Post total like count / Post comments countlike_count / comments_countLikes and comments per post
Post engagementengagementLikes plus comments per post
Reels shares / Reels total interactionsreels_shares / reels_total_interactionsShares and interactions per Reel
Story reach / Story exitsstory_reach / exitsHow many saw a Story and how many left it
Followers country / Followers cityaudience_country_name_related / audience_city_relatedWhere followers live
Online followersonline_followersWhen followers are online, with Online followers hour of day

Can Claude post or reply to Instagram comments?

Yes. Claude can publish content or manage comments on your account. Images go out as JPEG, without shopping tags or filters (Meta's Instagram content publishing guide).

Stories, caption edits, post deletes, DMs and boosts stay in the Instagram app as usual.

  • publish image, Reel and carousel posts, after Porter checks Instagram's daily publishing quota
  • comment on your posts, reply to comments and delete your own comments
  • hide or unhide comments, turn comments on or off and edit tagged people
  • read hashtag top posts, posts you're tagged or mentioned in, and public Business or Creator profiles

What happened to impressions?

Instagram made Views its main metric in August 2024, then Meta retired impressions, Reels plays and replays from the API on April 21, 2025 (Meta's announcement of the Views metric).

Porter's catalog still uses the old names (Profile impressions, Post impressions, Reels plays), and those fields still return numbers. This page calls them views instead.

How fresh is the data, and how far back?

Porter refreshes data once a day, so your newest posts can sit a few percent under the app. Posts go back years, while daily profile reach starts in January 2025. On paid plans, Porter stores follower totals and new followers daily from the day you start paying. The free plan covers the last 15 days in Claude (30 days in Data Studio and Sheets).

Product stats

WhatInstagram connector
FieldsProfile, posts, Reels, Stories, comments, followers and audience
ActionsPublish image, Reel and carousel posts; comment, reply, hide comments or delete your own; turn comments on or off, each after you approve
FreshnessRefreshed once a day
StoriesInstagram deletes them after 24 hours; Porter stores them daily on paid plans, from the day you start paying
HistoryPosts go back years; daily profile reach from January 2025; follower totals and new followers stored daily on paid plans, from the day you start paying; the last 15 days in Claude on the Free plan (30 days in Data Studio and Sheets)
AccessInstagram Business account linked to a Facebook Page, through Meta's official API

See all Instagram fields

07Security

Is it safe?

Yes. Porter uses Meta's official Instagram API, with only the permissions you grant when you connect. There's neither password sharing nor scraping. Reading posts, Reels, Stories and follower numbers leaves your account exactly as you set it.

How changes get approved

The connector asks before writing anything to Instagram, so Claude drafts the reply, comment or post and waits for your yes. Published posts, comments and replies are permanent, so Claude asks before each one, and you can still delete your own comment or hide someone else's. Porter checks Instagram's publishing quota before it publishes, and each completed change uses one AI credit.

What the connector needs from Instagram

Porter needs an Instagram Business account linked to a Facebook Page, and you approve access when you connect it. Meta's Instagram API overview explains how the API publishes media and moderates comments on professional accounts.

To read reports, Meta's API needs instagram_basic and instagram_manage_insights, as well as pages_show_list and pages_read_engagement. Publishing needs instagram_content_publish, while comments need instagram_manage_comments (Meta's permissions reference).

08FAQ

FAQ

Answers on setup, scope, scripts and credits, plus fixes for the most common Claude Code errors with Instagram. Setup questions every source shares, like where Claude Code saves the server and how to share it with your team, are in the Claude Code hub FAQ.

Can the Instagram report include Facebook Page results?

Yes. Connect your Facebook Page in Porter and ask for Page new followers next to Profile new followers. Claude Code reads both through the same server and writes one social report.

Does it work with personal Instagram accounts?

No. Instagram shares insights only for Business accounts linked to a Facebook Page. Switch the account in Instagram’s settings, then connect it in Porter.

Do Claude Code questions use Porter credits?

Reading Instagram data uses no AI credits. Each completed change, such as pausing a scheduled post, uses 1 credit, and every Porter account gets 100 free credits a month.

Troubleshooting

Why does /mcp show porter as needing authentication?

Claude Code adds the server before you sign in. Pick porter in /mcp, choose Authenticate and sign in with the Google account you use in Porter.

Why does my claude -p script stop and ask for permission?

Scripts can’t answer permission prompts. Pass the tools the script may use, for example --allowedTools "mcp__porter" "Write", so Claude Code can read Porter and save files without stopping.

09Next

More Claude connectors

Besides the Instagram connector, Claude can read many other sources through Porter, so you can compare social accounts in one chat. Start with the Facebook Insights connector for Claude, the TikTok Insights connector for Claude or the LinkedIn Pages connector for Claude. Or see all Claude connectors and Porter's MCP servers for marketing data.

Not only Claude. Send Instagram data anywhere

The same Porter account and connection also send Instagram data to these destinations, at no extra cost.

Try the connector in Claude Code

Porter’s Instagram connector for Claude Code takes one command, so your first post report can land in your project today. Start with a CSV, then compare formats or schedule a weekly script.

Free plan · 14-day trial · No card needed

Social media managers: post, format and follower reports come from the terminal, not screenshots.

Content marketers: your own numbers decide which formats get made next.

Agencies: one script builds the weekly report for every client account.