能做什么
Instagram for AI agents via signed-in Chrome: DMs, profiles, posts and stories.
作者提供的原文
- 连接方式 在你的电脑上运行
- 账号或密钥 无需密钥
- 分类 营销与社交媒体
可搭配使用
教 AI 做这类工作的 Skill,可与本项一起使用
为什么排在这里
列表按使用分(满分 100)排序,由以下部分组成
| 热度 | 0/80 | GitHub 星标或每周下载量:较大的计 60,较小的计 20 |
|---|---|---|
| 新鲜度 | 12/12 | 30 天内有发布或代码更新得满分 |
| 仍在响应 | 0/8 | 上次检查时云端端点有响应 |
| 使用分 | 12/100 |
质量: 基础检查通过 3/3 项(仅展示,不用于排序) · 上升势头: 暂无数据 (只用于“上升中”标签)
安装
选择你使用的 AI 应用,然后复制设置。
用一句话让 AI 帮你安装
请帮我安装 Unofficial Instagram MCP。按照 https://mcp.popnx.com/i/fanyzp-unofficial-instagram-mcp.md 操作,先把命令给我看,等我同意后再运行。粘贴到能在你电脑上工作的 AI(如 Claude Code、Cursor)。它会读取我们的步骤,先给你看命令,等你同意。无需密钥,无需注册。 · 查看 AI 会读取的全文
通过 3/3 项检查 · 在你的电脑上运行 · ✓ 命令已检查 2026年11月17日
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
可连接 Claude,但需要先准备
需要先在电脑上安装 Node.js(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
让 AI 帮你安装
把这段话复制到 Claude 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Claude 安装 MCP server Unofficial Instagram MCP,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "unofficial-instagram": { "command": "npx", "args": [ "-y", "unofficial-instagram-mcp" ] } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) 不需要密钥。5) 按约定执行,然后确认 Unofficial Instagram MCP 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
安装 Node.js(如果还没有)
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
node -v- 显示版本号(例如 v26.13.1)= 已安装,可跳过这一步
- 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
怎么打开终端
Mac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令
装好后关掉终端再打开,重新运行同一条命令,应显示版本号:
node -v安装一次,所有需要 Node.js 的工具都能用
打开电脑版 Claude 应用的设置文件
SettingsDeveloperEdit Config
粘贴这些设置并保存文件
{ "mcpServers": { "unofficial-instagram": { "command": "npx", "args": [ "-y", "unofficial-instagram-mcp" ] } } }退出 Claude 再重新打开
试一试
用 Unofficial Instagram MCP 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude 说正在使用 Unofficial Instagram MCP,或回答中出现 Unofficial Instagram MCP 的工具名称,就表示连接成功
2 项可选设置(不填也能用)
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
CDP_URL已登录 Instagram 的 Chrome 窗口的 Chrome DevTools Protocol URL· 默认值 http://127.0.0.1:9222查看英文原文
Chrome DevTools Protocol URL of a Chrome window already signed in to Instagram.IG_DRY_RUN设为 true 时,写入类工具只模拟操作而不实际完成。测试期间请保持为 true。· 默认值 true查看英文原文
When true, write tools simulate the action without completing it. Keep true while testing.
说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 Unofficial Instagram MCP
Unofficial Instagram MCP 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器
你可以改用这些方式
A · 使用能连接 Unofficial Instagram MCP 的应用
- 需要先在电脑上安装 Node.js(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
- 需要先在电脑上安装 Node.js(只需一次)
- 需要先在电脑上安装 Node.js(只需一次)
- 需要先在电脑上安装 Node.js(只需一次)
B · 营销与社交媒体 类中能连接 ChatGPT 的其他服务器
从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的
- Google Ads + Meta Ads + SEO/GEO MCP✓ ChatGPT
- Cargo✓ ChatGPT
- NotFair✓ ChatGPT
可连接 Claude Code,但需要先准备
需要先在电脑上安装 Node.js(只需一次)
让 AI 帮你安装
把这段话复制到 Claude Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Claude Code 安装 MCP server Unofficial Instagram MCP,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):claude mcp add --scope user unofficial-instagram -- npx -y unofficial-instagram-mcp 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) 不需要密钥。5) 按约定执行,然后确认 Unofficial Instagram MCP 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
安装 Node.js(如果还没有)
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
node -v- 显示版本号(例如 v26.13.1)= 已安装,可跳过这一步
- 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
怎么打开终端
Mac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令
装好后关掉终端再打开,重新运行同一条命令,应显示版本号:
node -v安装一次,所有需要 Node.js 的工具都能用
打开终端
Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell
粘贴这条命令并按 Enter
claude mcp add --scope user unofficial-instagram -- npx -y unofficial-instagram-mcp在 Claude Code 中输入 /mcp
应能看到 Unofficial Instagram MCP 在列表中并显示已连接
试一试
用 Unofficial Instagram MCP 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude Code 说正在使用 Unofficial Instagram MCP,或回答中出现 Unofficial Instagram MCP 的工具名称,就表示连接成功
2 项可选设置(不填也能用)
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
CDP_URL已登录 Instagram 的 Chrome 窗口的 Chrome DevTools Protocol URL· 默认值 http://127.0.0.1:9222查看英文原文
Chrome DevTools Protocol URL of a Chrome window already signed in to Instagram.IG_DRY_RUN设为 true 时,写入类工具只模拟操作而不实际完成。测试期间请保持为 true。· 默认值 true查看英文原文
When true, write tools simulate the action without completing it. Keep true while testing.
说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
可连接 Cursor,但需要先准备
需要先在电脑上安装 Node.js(只需一次)
让 AI 帮你安装
把这段话复制到 Cursor 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Cursor 安装 MCP server Unofficial Instagram MCP,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "unofficial-instagram": { "command": "npx", "args": [ "-y", "unofficial-instagram-mcp" ] } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) 不需要密钥。5) 按约定执行,然后确认 Unofficial Instagram MCP 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
安装 Node.js(如果还没有)
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
node -v- 显示版本号(例如 v26.13.1)= 已安装,可跳过这一步
- 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
怎么打开终端
Mac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令
装好后关掉终端再打开,重新运行同一条命令,应显示版本号:
node -v安装一次,所有需要 Node.js 的工具都能用
在 Cursor 中以 Agent 模式打开 AI 聊天
试一试
用 Unofficial Instagram MCP 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Cursor 说正在使用 Unofficial Instagram MCP,或回答中出现 Unofficial Instagram MCP 的工具名称,就表示连接成功
2 项可选设置(不填也能用)
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
CDP_URL已登录 Instagram 的 Chrome 窗口的 Chrome DevTools Protocol URL· 默认值 http://127.0.0.1:9222查看英文原文
Chrome DevTools Protocol URL of a Chrome window already signed in to Instagram.IG_DRY_RUN设为 true 时,写入类工具只模拟操作而不实际完成。测试期间请保持为 true。· 默认值 true查看英文原文
When true, write tools simulate the action without completing it. Keep true while testing.
说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同
可连接 VS Code,但需要先准备
需要先在电脑上安装 Node.js(只需一次)
让 AI 帮你安装
把这段话复制到 VS Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 VS Code 安装 MCP server Unofficial Instagram MCP,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "servers": { "unofficial-instagram": { "type": "stdio", "command": "npx", "args": [ "-y", "unofficial-instagram-mcp" ] } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) 不需要密钥。5) 按约定执行,然后确认 Unofficial Instagram MCP 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
安装 Node.js(如果还没有)
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
node -v- 显示版本号(例如 v26.13.1)= 已安装,可跳过这一步
- 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
怎么打开终端
Mac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令
装好后关掉终端再打开,重新运行同一条命令,应显示版本号:
node -v安装一次,所有需要 Node.js 的工具都能用
在 VS Code 中以 Agent 模式打开 AI 聊天
试一试
用 Unofficial Instagram MCP 告诉我你能帮我做什么,然后做一件给我看✓ 如果 VS Code 说正在使用 Unofficial Instagram MCP,或回答中出现 Unofficial Instagram MCP 的工具名称,就表示连接成功
2 项可选设置(不填也能用)
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
CDP_URL已登录 Instagram 的 Chrome 窗口的 Chrome DevTools Protocol URL· 默认值 http://127.0.0.1:9222查看英文原文
Chrome DevTools Protocol URL of a Chrome window already signed in to Instagram.IG_DRY_RUN设为 true 时,写入类工具只模拟操作而不实际完成。测试期间请保持为 true。· 默认值 true查看英文原文
When true, write tools simulate the action without completing it. Keep true while testing.
说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同
开发者专用:终端命令和 JSON 设置
安装在电脑上
Claude Code
claude mcp add --scope user unofficial-instagram -- npx -y unofficial-instagram-mcpClaude 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"
]
}
}
}需要你填写的值
CDP_URLenv已登录 Instagram 的 Chrome 窗口的 Chrome DevTools Protocol URL查看英文原文
Chrome DevTools Protocol URL of a Chrome window already signed in to Instagram.IG_DRY_RUNenv设为 true 时,写入类工具只模拟操作而不实际完成。测试期间请保持为 true。查看英文原文
When true, write tools simulate the action without completing it. Keep true while testing.
说明为自动翻译,变量名保持原样;不确定时请查看原文。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
一览
哪些应用可以使用它
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月20日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 fanyzp 验证,该账户拥有此仓库
- ✓ 通过
仍在维护
代码最后更新于昨天
- ✓ 通过
有许可证
使用 MIT
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
已公开的漏洞(OSV.dev)
OSV.dev 中没有 unofficial-instagram-mcp@0.3.0 的记录
只检查这个版本的包本身,不包括所有依赖 · 检查于 2026年11月17日
作者:申请重新检查或报告信息错误
给作者:在 README 中加徽章
如果你是作者,可把这段代码贴到 README。徽章会链接回本页。
[](https://mcp.popnx.com/en/servers/fanyzp-unofficial-instagram-mcp)讨论
提问、分享技巧或报告无法使用。按“有帮助”数量排序。
用户评价
还没有评价
与“营销与社交媒体”中的其他服务器比较i
- 星标数多于此分类中其他 4275 个服务器的 0%
- 发布到注册中心的时间比此分类中其他 4275 个服务器的 88% 更新
- 基础检查结果等于或优于此分类中其他 4275 个服务器的 99%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
Unofficial Instagram MCP 安全吗?
它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于昨天,最新版本(0.3.0)于3天前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
有什么可以替代它?
同一分类中有:Relaticle, ChatbotX, X (Twitter) MCP Server by Xquik, Betterlytics, BibiGPT YouTube Video Summarizer
功能相近的其他选择
同一分类、其他作者、命令已通过检查。官方的排在前面,再按星标排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Relaticle
Open-source CRM your AI agents can write to: companies, people, opportunities, tasks and notes.
ChatbotX
Omnichannel customer messaging, CRM contacts, flows, sequences, broadcasts, and AI automation.
X (Twitter) MCP Server by Xquik
Xquik is the world's fastest and cheapest X (Twitter) data API with the most complete X data.
Betterlytics
Query your Betterlytics web analytics from AI agents: traffic, funnels, journeys, errors, uptime.
BibiGPT YouTube Video Summarizer
AI video summarizer: summarize and transcribe YouTube, Bilibili, TikTok and podcast videos.
| 本项 Unofficial Instagram MCP | Relaticle | ChatbotX | X (Twitter) MCP Server by Xquik | Betterlytics | BibiGPT YouTube Video Summarizer | |
|---|---|---|---|---|---|---|
| 运行位置 | 需要安装在电脑上 | 在云端运行,无需安装 | 在云端运行,无需安装 | 在云端运行,无需安装 | 在云端运行,无需安装 | 在云端运行,无需安装 |
| 需要密钥 | 否 | 否 | 否 | 否 | 是 | 否 |
| 可在 Claude 中按 + 添加 | 否 | 否 | 否 | 否 | 否 | 否 |
| 基础检查 | 3/3 | 4/4 | 4/4 | 4/4 | 4/4 | 4/4 |
| 许可证 | MIT | AGPL-3.0 | NOASSERTION | MIT | AGPL-3.0 | MIT |
| 价格 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 |
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
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_selftesttool or runnpm 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.
- 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.
- 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.
- 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.
- Call ig_status first and confirm the signed-in username with me.
- 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
| Tool | Description |
|---|---|
ig_status | Check the browser connection and the signed-in account. |
ig_selftest | Run 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_threads | List recent DM threads. Opening a thread can mark it as read. |
dm_check | Find threads where the latest message came from the other person. |
dm_read_thread | Read the latest messages in one thread. |
dm_send | Send a message in an existing thread. |
dm_send_to_user | Send a message to a user by username. |
dm_watch | Start, stop, or check the DM watcher that monitors the inbox in the background. |
dm_events | Read watcher events (verified new messages and watcher state changes) since a cursor. |
notifications_list | Read recent likes, comments, follows, and mentions. |
Profiles and social graph
| Tool | Description |
|---|---|
profile_get | Read a profile, including counts and bio text. |
| search | Search from a keyword and return matching users, hashtags, p