# IG Pilot MCP server

> Let Claude, Claude Code or Codex run your Instagram through the IG Pilot Chrome extension, with the extension's own safety rules in charge.

IG Pilot is a Chrome side-panel extension that runs a business's Instagram. It is also an MCP server. Connect Claude, Claude Code or Codex once, at `https://api.igpilot.io/mcp`, then ask them to check on your Instagram, handle drafts or run a session. Your AI app decides what to ask for. IG Pilot does it in your own Chrome, under the same rules it always follows.

- [Quickstart](quickstart.md): Connect Claude, Claude Code or Codex in a few minutes. Nothing to install.
- [What it can do](#what-your-ai-app-can-do): The 14 tools the connector offers.
- [Safety & limits](safety.md): What IG Pilot refuses, and why a refusal is final.
- [The local companion](#companion): For a version of IG Pilot you install yourself.

## How it works

A request travels from your AI app to the extension and back. Only the extension talks to Instagram.

```text
Claude · Claude Code · Codex   (Your AI app decides what to do)
    │  MCP over HTTPS (your IG Pilot sign-in or an access token)
    ▼
api.igpilot.io/mcp   (IG Pilot's server checks your account and passes the request on)
    │  a connection your own browser opens
    ▼
IG Pilot in Chrome   (Runs each tool with its own safety checks)
    │  your signed-in browser
    ▼
Instagram   (Only the extension touches it)
```

1. Your AI app calls a tool at `https://api.igpilot.io/mcp`, for example `status` or `run_growth_session`.
2. IG Pilot's server checks who you are and your plan, then passes the call to your own signed-in IG Pilot in Chrome.
3. IG Pilot runs the tool with the same code the side panel uses, then sends back the result.

The server is a relay. It never touches Instagram, and every limit, refusal and approval is decided in the extension, not by your AI app and not by the server.

Keep Chrome open with IG Pilot signed in: the work happens there. While it is closed, most tools fail. `run_growth_session` waits and starts when the browser comes back.

## What your AI app can do

The connector has 14 tools:

| Tools | What they cover |
| --- | --- |
| `status`, `get_limits`, `get_history` | Your account and the Autopilot, today's limits, and what IG Pilot did |
| `get_review_queue`, `approve_draft`, `reject_draft` | The drafts waiting for you, and approving or rejecting the ones you OK |
| `run_growth_session`, `chat` | A growth session, or a message to IG Pilot's own agent |
| `list_routines`, `create_routine`, `confirm_routine`, `pause_routine`, `resume_routine` | Standing instructions that run on a schedule. A new routine is a proposal until you confirm it |
| `stop_all` | The emergency stop |

`chat` and `run_growth_session` can take a while. After about two minutes they answer that they are still running, and the work carries on in Chrome. Ask your AI app to call `status` later.

## The rules stay in IG Pilot

- **Daily limits and pacing.** Follows, likes, comments, DMs and replies count against the same daily limits as the side panel, at a human pace.
- **The Never-contact list.** Accounts on it are never touched, whatever the request.
- **Ask me before sending.** When it is on, drafted DMs, comments and replies wait in the review queue for your OK.
- **Refusals are final.** Your AI app is told to explain a refusal and stop, never to work around it.
- **Routines are proposals.** One your AI app creates becomes active only when you save it in the side panel or tell your AI app to confirm it.

Read [Safety & limits](safety.md) for the details.

## What you need

- A paid plan or the 7-day free trial.
- Chrome with IG Pilot installed, signed in to your IG Pilot account and to Instagram, and open while your AI app works.
- Claude (web, desktop or mobile), Claude Code or Codex. Nothing is installed on your computer.

## The local companion

IG Pilot also has a local companion, the npm package `igpilot-local`. It connects Claude Desktop, Claude Code, Codex or Grok straight to IG Pilot in your Chrome, with no server in between, and offers 51 tools: setup, the inbox, missions, the Brain, the CRM and more.

> [!IMPORTANT]
> **Self-installed version only.** The companion works with a version of IG Pilot you install yourself. The Chrome Web Store version can't talk to it and has no **Control from Claude desktop** switch: use the [connector](quickstart.md) instead.

```text
Claude Desktop · Claude Code · Codex · Grok   (Your AI app decides what to do)
    │  MCP over stdio
    ▼
igpilot-local mcp   (The MCP server your app starts)
    │  ~/.igpilot/bridge.sock (a private local socket)
    ▼
igpilot-local host   (Started by Chrome as a native-messaging host)
    │  Chrome native messaging
    ▼
IG Pilot in Chrome   (Runs each tool with its own safety checks)
    │  your signed-in browser
    ▼
Instagram   (Only the extension touches it)
```

The companion is a relay too: every limit, refusal and approval is still decided in the extension. Its pages:

- [Install the companion](companion.md): Install it and turn on Control from Claude desktop.
- [Connect a client](connect.md): The exact config for Claude Desktop, Claude Code, Codex and Grok.
- [Tools reference](tools.md): All 51 tools, with parameters and examples.
- [Troubleshooting](troubleshooting.md): Fixes for each doctor check and error message.
