# How to connect Instagram to Claude Code

> One command adds Saypage to Claude Code: build pages from your files, publish Reels from your disk, script daily Instagram reports.

Source: https://saypage.ai/integrations/claude-code · Updated December 2, 2026

Claude Code can't reach Instagram by itself. Saypage is an MCP server that gives it Instagram tools, through the official Instagram API: your insights, your comments, posting, Reels, your pages on `yourname.saypage.page` and your comment-to-DM automations. One command adds it, then you sign in once. Because Claude Code runs on your computer, it does things a chat can't: it builds pages from the files in your project, uploads photos and videos straight from your disk, and runs Instagram reports from a script.

## What you need

- **Claude Code**, on any plan that includes it.
- **An Instagram professional account**, Business or Creator. Switching a personal account to a professional one is free, in the Instagram app's settings.
- **A Saypage account.** You create it when you first sign in.

## Step 1: add Saypage

In a terminal:

```bash
claude mcp add --transport http saypage https://api.saypage.ai/mcp
```

That adds Saypage to the current project. To have it in every project, add `--scope user`:

```bash
claude mcp add --transport http --scope user saypage https://api.saypage.ai/mcp
```

With `--scope project`, Claude Code writes the server in a `.mcp.json` file at the root of the project instead, which you can commit so your team gets it too. Each person still signs in with their own Saypage account.

## Step 2: sign in and connect Instagram

Start Claude Code, run `/mcp`, pick **saypage** and follow the sign-in link. Signing in the first time creates your Saypage account, then asks you to connect your Instagram account on Instagram's own screen: Saypage never sees your Instagram password.

Skipped the Instagram step? Ask Claude Code **"Connect my Instagram to Saypage"** and open the link it gives you.

## Step 3: add the Saypage skills (recommended)

The skills teach Claude how to analyze your account, plan how to sell from your Reels and write in your voice. Run these two commands, or ask Claude Code to run them:

```bash
claude plugin marketplace add saypage-ai/saypage-plugin
```

```bash
claude plugin install saypage@saypage-ai
```

They start in your next session. Then ask **"Get started with Saypage."**

## What Claude Code does better than a chat

- **Pages from your project.** Ask for a landing page, a menu or a link in bio, and Claude Code writes the HTML in your project, sends the file to Saypage, shows you a private preview and publishes it on your address when you say so. You keep the source in git.
- **Uploads from your disk.** "Use ~/Pictures/portrait.jpg as the hero photo": Claude Code uploads the file itself, with no upload link (`start_image_upload`). The same goes for a video you want to post as a Reel (`start_video_upload`, then `publish_instagram_video`).
- **Batches.** "Make a page for each of my last ten Reels, with the recipe from its caption", then check each preview before it goes online.
- **Reports from a script.** Claude Code runs without a chat with `claude -p`, so a scheduled job can ask for yesterday's numbers (see below).

Everything public still waits for your go-ahead: a page goes online, a comment reply or a post goes out only after you approve it.

## Run it from a script, with an API key

A scheduled job can't open a sign-in page. Create an [API key](https://saypage.ai/docs/api-keys) in your Saypage account instead (read only is enough for a report), keep it in an environment variable, and add Saypage with the key as a header:

```bash
claude mcp add --transport http --scope user saypage https://api.saypage.ai/mcp \
  --header "Authorization: Bearer $SAYPAGE_API_KEY"
```

The shell writes the key itself into Claude Code's settings. In a project's `.mcp.json`, write `${SAYPAGE_API_KEY}` instead and Claude Code reads the variable when it starts:

```json
{
  "mcpServers": {
    "saypage": {
      "type": "http",
      "url": "https://api.saypage.ai/mcp",
      "headers": { "Authorization": "Bearer ${SAYPAGE_API_KEY}" }
    }
  }
}
```

Then, from cron or any scheduler:

```bash
claude -p "Give me yesterday's Instagram brief: reach, views, new followers, the best post and why, and one idea for today." \
  --allowedTools "mcp__saypage__get_instagram_insights,mcp__saypage__list_instagram_posts"
```

## What Claude Code can do with your Instagram

What it can do depends on your Saypage plan. Each paid plan starts with a 7-day free trial, and you can cancel anytime.

| Ask Claude Code to… | Saypage plan |
|---|---|
| Read your posts, Reels and insights, and say what to post next | Free and every plan |
| Find the comments you haven't answered, draft replies, hide spam | Creator ($19 a month) and Premium |
| Publish photo posts, carousels, Reels and stories, once you turn publishing on | Creator and Premium |
| Build pages and put them online on your address | Creator and Premium |
| Send a link by DM to everyone who comments a keyword | Creator and Premium |

The full list of tools is in the [MCP tools reference](https://saypage.ai/docs/tools).

## What it can't do

Saypage only does what the official Instagram API allows. Claude Code can't read or answer your DM inbox (Saypage only sends your automations' DMs, to people who wrote your keyword), message your followers in bulk, change your bio, delete a published post, or act on someone else's account.

## Questions

### Does Claude Code have an Instagram integration?

Not one of its own. Claude Code reaches other services through MCP servers, and Saypage is one built for Instagram creators: insights, comments, posting, Reels, pages and DM automations, through the official Instagram API.

### Is it free?

Adding Saypage is free, and on Saypage's Free plan Claude Code reads your posts and insights. Comments, posting, pages and DM automations start with Creator, at $19 a month, with 7 days free. See [Plans and limits](https://saypage.ai/docs/plans).

### Sign-in or API key: which one should I use?

Sign in with `/mcp` when you use Claude Code yourself. Use an API key for scripts and scheduled jobs, which can't open a sign-in page. A read-only key can't post, reply or send anything, whatever the prompt asks.

### Can several people on a project use it?

Yes. Add Saypage with `--scope project` and commit `.mcp.json`: each person signs in with their own Saypage account. Never commit an API key: keep keys in environment variables.

### Is it safe for my Instagram account?

Saypage connects through Instagram's official login and passed Meta App Review for every permission it uses. It never sees your Instagram password and never reads your DMs. See [Privacy and safety](https://saypage.ai/docs/privacy-and-safety).

## Next

- [How to connect Instagram to OpenAI Codex](https://saypage.ai/integrations/codex)
- [How to connect Instagram to Cursor and Grok Build](https://saypage.ai/integrations/cursor)
- [Saypage API keys](https://saypage.ai/docs/api-keys)
