Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words Sign in

Unofficial Instagram MCP

by fanyzpversion 0.3.0i★ 0iRuns on your computerRepository ↗
Registry nameio.github.fanyzp/unofficial-instagram-mcp

How to install

What it does

Instagram for AI agents via signed-in Chrome: DMs, profiles, posts and stories.

  • Connects Runs on your computer
  • Account or key No key needed
  • Category Marketing & social media

Use together with

Skills that teach the AI this kind of work; they work alongside this one

scroll-world

A skill that turn any brand into a scrollable 3D world landing page

by oso95★ 11,0791 skills

Skill · How-to guide

social-auto-upload

自动化上传视频到社交媒体:抖音、小红书、视频号、tiktok、youtube、bilibili

by dreammis★ 16,718 (whole repo)4 skills

Skill · How-to guide

native-subtitle-quote-image

保留视频内嵌字幕,精确取帧并生成 3:4 社交长图的 Agent Skill

by chengyi-ai★ 2,8931 skills

Skill · How-to guide

Why it ranks here

Lists are ordered by a usage score (out of 100) built from these parts

Popularity0/80GitHub stars or weekly downloads: the larger counts 60, the smaller 20
Freshness12/12Full marks for a release or code change within 30 days
Still answering0/8The cloud endpoint answered at the last check
Usage score12/100

Quality: Passed 3/3 basic checks (shown, not used for ordering) · Momentum: No data yet (Used only on the Trending tab)

Install

Pick the AI app you use, then copy the settings.

Let your AI install it with one sentence

Please install Unofficial Instagram MCP. Follow https://mcp.popnx.com/i/fanyzp-unofficial-instagram-mcp.md, show me the commands and wait for my OK before running them.

Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads

Passed 3/3 checks · Runs on your computer · ✓ Commands checked Nov 17, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude, with some setup first

Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone

Let AI install it

Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Unofficial Instagram MCP for Claude on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "unofficial-instagram": { "command": "npx", "args": [ "-y", "unofficial-instagram-mcp" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Unofficial Instagram MCP tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  3. Paste these settings and save the file

    {
      "mcpServers": {
        "unofficial-instagram": {
          "command": "npx",
          "args": [
            "-y",
            "unofficial-instagram-mcp"
          ]
        }
      }
    }
  4. Quit Claude and open it again

  5. Try it

    Use Unofficial Instagram MCP and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using Unofficial Instagram MCP or shows a Unofficial Instagram MCP tool in the answer, you are connected

2 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • CDP_URL Chrome DevTools Protocol URL of a Chrome window already signed in to Instagram. · default http://127.0.0.1:9222
  • IG_DRY_RUN When true, write tools simulate the action without completing it. Keep true while testing. · default true

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

ChatGPT cannot connect Unofficial Instagram MCP yet

Unofficial Instagram MCP runs on your computer, but ChatGPT can only connect servers that run on the web

What you can do instead

A · Use an app that can connect Unofficial Instagram MCP

  • Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • Install Node.js on your computer first (one time)
  • Install Node.js on your computer first (one time)
  • Install Node.js on your computer first (one time)

B · Others in Marketing & social media that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code, with some setup first

Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Unofficial Instagram MCP for Claude Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user unofficial-instagram -- npx -y unofficial-instagram-mcp 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Unofficial Instagram MCP tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  3. Paste this command and press Enter

    claude mcp add --scope user unofficial-instagram -- npx -y unofficial-instagram-mcp
  4. Type /mcp in Claude Code

    You should see Unofficial Instagram MCP listed as connected

  5. Try it

    Use Unofficial Instagram MCP and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using Unofficial Instagram MCP or shows a Unofficial Instagram MCP tool in the answer, you are connected

2 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • CDP_URL Chrome DevTools Protocol URL of a Chrome window already signed in to Instagram. · default http://127.0.0.1:9222
  • IG_DRY_RUN When true, write tools simulate the action without completing it. Keep true while testing. · default true

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor, with some setup first

Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Unofficial Instagram MCP for Cursor on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "unofficial-instagram": { "command": "npx", "args": [ "-y", "unofficial-instagram-mcp" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Unofficial Instagram MCP tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  3. Open the AI chat in Cursor in Agent mode

  4. Try it

    Use Unofficial Instagram MCP and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using Unofficial Instagram MCP or shows a Unofficial Instagram MCP tool in the answer, you are connected

2 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • CDP_URL Chrome DevTools Protocol URL of a Chrome window already signed in to Instagram. · default http://127.0.0.1:9222
  • IG_DRY_RUN When true, write tools simulate the action without completing it. Keep true while testing. · default true

Descriptions are as written by the maker.

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code, with some setup first

Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Unofficial Instagram MCP for VS Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "unofficial-instagram": { "type": "stdio", "command": "npx", "args": [ "-y", "unofficial-instagram-mcp" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Unofficial Instagram MCP tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  3. Open the AI chat in VS Code in Agent mode

  4. Try it

    Use Unofficial Instagram MCP and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using Unofficial Instagram MCP or shows a Unofficial Instagram MCP tool in the answer, you are connected

2 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • CDP_URL Chrome DevTools Protocol URL of a Chrome window already signed in to Instagram. · default http://127.0.0.1:9222
  • IG_DRY_RUN When true, write tools simulate the action without completing it. Keep true while testing. · default true

Descriptions are as written by the maker.

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use Unofficial Instagram MCP💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

Claude Code

claude mcp add --scope user unofficial-instagram -- npx -y unofficial-instagram-mcp

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "unofficial-instagram": {
      "command": "npx",
      "args": [
        "-y",
        "unofficial-instagram-mcp"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "unofficial-instagram": {
      "command": "npx",
      "args": [
        "-y",
        "unofficial-instagram-mcp"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "unofficial-instagram": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "unofficial-instagram-mcp"
      ]
    }
  }
}

Values you fill in

  • CDP_URL env
    Chrome DevTools Protocol URL of a Chrome window already signed in to Instagram.
  • IG_DRY_RUN env
    When true, write tools simulate the action without completing it. Keep true while testing.

Descriptions are as written by the maker.

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Downloads per weeki
Not on npm/PyPI
Connection
Runs on your computer
Latest versioni
0.3.0
Published to registryi
Nov 17, 2026
Code last changedi
Nov 19, 2026
Maker
fanyzp
Packages
npm: unofficial-instagram-mcp
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 20, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account fanyzp, which owns the repo

  • ✓ Pass

    Still maintained

    Code last changed yesterday

  • ✓ Pass

    Has a licence

    Uses MIT

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Published vulnerabilities (OSV.dev)

No entries on OSV.dev for unofficial-instagram-mcp@0.3.0

Checks only this package version, not every dependency · checked Nov 17, 2026

What we check → · JSON

Makers: ask for a re-check or report wrong info
For makers: add a badge to your README

If you made this, paste this code into your README. The badge links back to this page.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/fanyzp-unofficial-instagram-mcp.svg)](https://mcp.popnx.com/en/servers/fanyzp-unofficial-instagram-mcp)

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

User reviews

No reviews yet

Sign in to write a review

Compared with others in Marketing & social mediai

  • More stars than 0% of the other 4275 servers in this category
  • Published to the registry more recently than 88% of the other 4275 servers in this category
  • Basic checks equal to or better than 99% of the other 4275 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Unofficial Instagram MCP safe?

It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

The registry does not list a required key, though some servers ask you to sign in on first use.

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed yesterday, and the latest version (0.3.0) reached the registry 3 days ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.

What can I use instead?

In the same category: Relaticle, ChatbotX, X (Twitter) MCP Server by Xquik, Betterlytics, BibiGPT YouTube Video Summarizer

Similar alternatives

Same category, other makers, commands already checked. Official ones first, then by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

ChatbotX

Omnichannel customer messaging, CRM contacts, flows, sequences, broadcasts, and AI automation.

by ChatbotXIOGrowing★ 1.1K Stars for the whole repoUpdated 14 days ago

Runs in the cloud✓ service owner · chatbotx.io

Betterlytics

Query your Betterlytics web analytics from AI agents: traffic, funnels, journeys, errors, uptime.

by betterlyticsGrowing★ 196Updated 4 months ago

Runs in the cloud✓ service owner · betterlytics.io
Compared with similar ones
This one
Unofficial Instagram MCP
RelaticleChatbotXX (Twitter) MCP Server by XquikBetterlyticsBibiGPT YouTube Video Summarizer
Runs whereInstalls on your computerRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to install
Needs a keyNoNoNoNoYesNo
Add with + in ClaudeNoNoNoNoNoNo
Basic checks3/34/44/44/44/44/4
LicenseMITAGPL-3.0NOASSERTIONMITAGPL-3.0MIT
PriceNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registry

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

unofficial-instagram-mcp

Instagram, now accessible to your AI agent.

An unofficial Model Context Protocol (MCP) server for Instagram Web. It gives an AI agent a set of focused tools for messages, profiles, posts, comments, stories, and notifications.

The server connects to a Chrome window that is already signed in to Instagram. It does not use the Meta API, and it does not ask for or store an Instagram password.

Quick start (no clone needed)

One command installs everything into your agent: it registers the MCP server and installs the Agent Skill. Pick your harness in the menu.

npx github:fanyzp/unofficial-instagram-mcp install

Or register the server in your MCP client config and let it run through npx directly:

{

"mcpServers": { "instagram": { "command": "npx", "args": ["-y", "github:fanyzp/unofficial-instagram-mcp"], "env": { "CDP_URL": "http://127.0.0.1:9222", "IG_DRY_RUN": "true" } } } }

Then start Chrome as described below and call ig_status. Prefer working from source instead? Use the clone based install after this section.

Test first. After connecting, run the built-in self-test to make sure every feature works end to end on your setup: call the ig_selftest tool or run npm run selftest. The default level only reads. The full level (npm run selftest -- full) exercises every write function on content it creates itself, then deletes all of it at the end. Use a second account for testing, not your main account.

What it does

The server provides the capability layer. The user and the agent decide how to use it.

Use it to:

  • Read and reply to Instagram direct messages.
  • Get notified automatically when a new direct message arrives: the DM watcher monitors the inbox and pushes an MCP notification, so the agent can react on its own instead of polling.
  • Check profiles, followers, following lists, posts, comments, stories, and notifications.
  • Search users and hashtags, and browse the home feed, Explore page, and hashtag pages.
  • Like posts and comments, reply to a specific comment, save posts, follow or unfollow users, and create posts.
  • Run the same tools from an MCP client, the command line, or the interactive TUI.

The MCP tools use standard annotations. Read tools use readOnlyHint, and write tools use destructiveHint. The server also returns instructions that tell the agent to call ig_status first and to respect the dryRun, sent, and alreadyLiked fields in tool results.

In use

An agent session in OpenCode, working through the MCP tools:

How it works

MCP client, CLI, or TUI

| v unofficial-instagram-mcp | v Playwright Core over CDP | v Chrome window signed in to Instagram Web

All actions use the visible Instagram web interface. The project does not call private Instagram APIs. Selectors are kept in config/selectors.json, so most interface changes can be fixed in one place.

Requirements

  • Node.js 20 or newer
  • Google Chrome or Chromium
  • An Instagram account signed in in that browser
  • An MCP client, if you plan to use the MCP server

Install from source

git clone https://github.com/fanyzp/unofficial-instagram-mcp.git

cd unofficial-instagram-mcp npm install cp .env.example .env

On Windows PowerShell, copy the environment file with:

Copy-Item .env.example .env

Keep IG_DRY_RUN=true for the first run. In dry run mode, write tools prepare and report the action without completing it.

Start Chrome

Start Chrome with remote debugging enabled, then sign in to Instagram manually in that window.

Linux example:

google-chrome \

--remote-debugging-port=9222 \ --user-data-dir="$HOME/.local/share/unofficial-instagram-mcp/chrome"

The default CDP address is http://127.0.0.1:9222. Keep the debugging port available only on your own machine. Any local process that can reach this port can control the signed-in browser session.

Give this to your AI agent

Paste this into your coding agent if you want it to set everything up for you:

Set up unofficial-instagram-mcp for me and learn how it works before using it.
  1. Read the Agent Skill first: https://github.com/fanyzp/unofficial-instagram-mcp/blob/main/skills/unofficial-instagram-mcp/SKILL.md It explains how the server works, the tool map, the workflows, and the safety rules. Follow it from now on.
  2. Run the installer for your own harness: npx github:fanyzp/unofficial-instagram-mcp install --harness --scope user --yes Harness ids: claude-code, opencode, cursor, codex, gemini-cli, pi, oh-my-pi, openclaw, zcode, goose, amp, vscode, claude-desktop, windsurf, zed, generic. T3 Code has no MCP config of its own: it runs other providers and reads their configs, so use claude-code or codex for it. If your harness is not listed, register the server manually with command "npx" and args ["-y", "github:fanyzp/unofficial-instagram-mcp"], env CDP_URL=http://127.0.0.1:9222 and IG_DRY_RUN=true, and copy the skills/unofficial-instagram-mcp folder into your agent skills directory, keeping the folder name unchanged.
  3. Start Chrome with remote debugging on port 9222 if it is not running yet. I will sign in to Instagram manually. Do not ask for or store my password.
  4. Call ig_status first and confirm the signed-in username with me.
  5. Before any write action, show me the exact target and content. Do not disable dry run unless I approve it.

MCP configuration

Most MCP clients use a configuration like this. Replace the path with the absolute path to your clone.

{

"mcpServers": { "instagram": { "command": "node", "args": [ "/absolute/path/to/unofficial-instagram-mcp/src/server.js" ], "env": { "CDP_URL": "http://127.0.0.1:9222", "IG_DRY_RUN": "true" } } } }

OpenCode

Add the server under the mcp key in opencode.json:

{

"$schema": "https://opencode.ai/config.json", "mcp": { "instagram": { "type": "local", "command": [ "node", "/absolute/path/to/unofficial-instagram-mcp/src/server.js" ], "enabled": true, "environment": { "CDP_URL": "http://127.0.0.1:9222", "IG_DRY_RUN": "true" } } } }

After registration, restart the MCP client and ask the agent to call ig_status.

Updating

Run the update command. It re-runs the installer with --force, which refreshes the Agent Skill files and rewrites the MCP registration with the latest version:

npx github:fanyzp/unofficial-instagram-mcp update

Installed from a clone instead? Run git pull, then node bin/install.mjs --force. If npx ever serves a stale cached copy, delete the ~/.npm/_npx folder and run the command again. Or simply tell your agent: "update unofficial-instagram-mcp".

Agent skill

This repository ships an Agent Skills skill at skills/unofficial-instagram-mcp/SKILL.md. The MCP server gives the agent the tools; the skill teaches it how the server works, when to use each tool, the standard workflows, and the safety rules.

Installing both is the intended setup. The skill loads by progressive disclosure, so the agent carries only its name and description in context and reads the full instructions when an Instagram task comes up, instead of needing a long briefing in every session.

Four ways to install:

1. One command through npx (MCP server + skill together, no clone). This is the bundled installer running straight from GitHub:

npx github:fanyzp/unofficial-instagram-mcp install

It asks for the scope and the harness, then registers the MCP server and installs the skill in one run. Non-interactive form: add --harness --scope user --yes.

2. The standard skills CLI. The open Agent Skills installer discovers the skill in this repository and lets you choose which agents (harnesses) to install it to:

npx skills add fanyzp/unofficial-instagram-mcp

Add -g for a user-wide install, or pin targets directly, for example npx skills add fanyzp/unofficial-instagram-mcp -g -a claude-code -a opencode. This installs the skill only; register the MCP server with the installer below or by hand.

3. The bundled installer from a clone. Same installer as route 1, run from a local clone of this repository:

node bin/install.mjs

It asks for the scope (user or this project) and the harness (16 targets: Claude Code, OpenCode, Cursor, Codex, Gemini CLI, Pi, Oh My Pi, OpenClaw, ZCode, Goose, Amp, VS Code, Claude Desktop, Windsurf, Zed, or a generic .agents/skills target; run it with --list for the ids), registers the instagram MCP server in that harness's own config format, and copies the skill into its skills directory where the harness supports skill folders. Existing config files are merged, not replaced. Non-interactive form:

node bin/install.mjs --harness claude-code,opencode --scope user --yes

node bin/install.mjs --all --scope project --dry-run

4. By hand. Copy the folder into your agent's skills directory (for example ~/.claude/skills/ for Claude Code, or the skills directory your client documents), keeping the folder name unofficial-instagram-mcp unchanged:

cp -r skills/unofficial-instagram-mcp ~/.claude/skills/

CLI usage

List the available tools:

node src/cli.js tools

Run a few read operations:

node src/cli.js ig_status

node src/cli.js dm_check --limit 5 node src/cli.js dm_read_thread --threadId node src/cli.js profile_get --username fanyzts node src/cli.js search --query "balikpapan" node src/cli.js post_comments --url --limit 20

Write operations use the same form:

node src/cli.js dm_send --threadId <thread-id> --text "Thanks, I will check and reply soon."

node src/cli.js post_like --url node src/cli.js post_create --files ./photo.jpg --caption "Posted with an AI agent."

With IG_DRY_RUN=true, these commands report what would happen instead of completing the action.

TUI usage

The TUI is the direct way to test the tools by hand. The main menu lists the tool categories (System, DM, Profile & Search, Posts, Discovery, Social, Stories); each category opens a sub-menu of its tools. It runs the tools against your live session right away and prints the raw result of each call:

npm run tui

Tools

Account and messages
ToolDescription
ig_statusCheck the browser connection and the signed-in account.
ig_selftestRun the built-in self-test. The safe level only reads; the full level tests every write function and deletes its own test content.
dm_list_threadsList recent DM threads. Opening a thread can mark it as read.
dm_checkFind threads where the latest message came from the other person.
dm_read_threadRead the latest messages in one thread.
dm_sendSend a message in an existing thread.
dm_send_to_userSend a message to a user by username.
dm_watchStart, stop, or check the DM watcher that monitors the inbox in the background.
dm_eventsRead watcher events (verified new messages and watcher state changes) since a cursor.
notifications_listRead recent likes, comments, follows, and mentions.
Profiles and social graph
ToolDescription
profile_getRead a profile, including counts and bio text.

| search | Search from a keyword and return matching users, hashtags, p

Only the beginning is shown; read the rest in the repo