AI

arjun1194/insta-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

13 stars 9 forks 质量 62 趋势 9

Instagram MCP 软件 服务器 - 为AI助理提供Instagram分析、见解和账户管理的工具

概览

一个专业的"模型背景协议"(MCP)服务器,为与Instagram互动提供了全面的工具包. 这个服务器使LLMs(如克洛德或双子座)能够管理账户,分析社会图表,发现内容,并直接从他们的界面与Instagram社区接触. - 编辑简介、管理隐私和跟踪活动。 - 阅读历史,发送文本/媒体,并对消息作出反应。 - 支持照片、录像、录像和卡鲁塞尔/阿尔布姆斯。 - 说吧 分析邮政业绩、追随者和接触情况。 - 智能比较工具,以寻找不跟踪者和粉丝。 - 以用户、标签或位置搜索。 标准账户证书 服务器通过环境变量或本地JSON文件支持灵活的配置. 复制示例并填写细节: - 获取 accounts overview: 获取配置数据(跟踪、跟踪、生物) - 获取 活动:见通知(类似,如下等).

概述(AI 翻译)

一个专业的"模型背景协议"(MCP)服务器,为与Instagram互动提供了全面的工具包. 这个服务器使LLMs(如克洛德或双子座)能够管理账户,分析社会图表,发现内容,并直接从他们的界面与Instagram社区接触.

□ * * * * 特点

  • ** 账户控制**:编辑配置、管理隐私和跟踪活动。
  • 先进消息:读取历史,发送文本/媒体,并对消息作出反应.
  • ** Content Creature**:支持相片、视频、相片和相机/相机。
  • 深度透视**: 分析邮政业绩、追随者和接触情况。
  • 社会图:寻找不跟踪者和粉丝的智能比较工具。
  • ** 发现**:按用户、标签或地点搜索。

□□ 先决条件

  • Node.js:v18或更高。
  • Instagram账户:标准账户证书。

□ 安装

□ QQ 配置

服务器通过环境变量或本地JSON文件支持灵活的配置.

环境变量

· 变量 · 说明 · 默认 · · |-----------.

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Instagram MCP Server

A professional Model Context Protocol (MCP) server that provides a comprehensive toolkit for interacting with Instagram. This server enables LLMs (like Claude or Gemini) to manage accounts, analyze social graphs, discover content, and engage with the Instagram community directly from their interface.

🚀 Features

  • Full Account Control: Edit profile, manage privacy, and track activity.
  • Advanced Messaging: Read history, send text/media, and react to messages.
  • Content Creation: Support for Photos, Videos, Reels, and Carousel/Albums.
  • Deep Insights: Analyze post performance, followers, and engagement.
  • Social Graph: Smart comparison tools to find unfollowers and fans.
  • Discovery: Search by user, hashtag, or location.

📋 Prerequisites

  • Node.js: v18 or higher.
  • Instagram Account: Standard account credentials.

🛠 Installation

git clone https://github.com/your-repo/insta-mcp.git
cd insta-mcp
npm install
npm run build

⚙️ Configuration

The server supports flexible configuration via environment variables or a local JSON file.

Environment Variables

Variable Description Default
INSTAGRAM_USERNAME Your Instagram username -
INSTAGRAM_PASSWORD Your Instagram password -
INSTA_DATA_DIR Path to store sessions/credentials ./data

Method 1: .env File (Local Dev)

Create a .env in the root:

INSTAGRAM_USERNAME=your_user
INSTAGRAM_PASSWORD=your_pass

Method 2: credentials.json

Copy the example and fill in your details:

cp config/credentials.example.json data/credentials.json

🔧 Tools Catalog

Account & Activity

  • get_account_overview: Get profile stats (followers, following, bio).
  • get_activity: See notifications (likes, follows, etc.).
  • edit_profile: Update name, bio, website, and email.
  • block_user: Block a specific user.
  • set_privacy: Toggle between Private and Public account.

Social Graph

  • get_followers: List a user’s followers.
  • get_following: List who a user follows.
  • compare_follow_lists: Detect “Unfollowers” or “Fans”.
  • follow_user / unfollow_user: Manage friendships.

Media & Interaction

  • get_recent_posts: View latest posts for any user.
  • get_post_insights: Detailed stats (likes, comments, viewers).
  • upload_photo / upload_video / upload_reel: Post content.
  • upload_album: Post carousels with multiple items.
  • search_locations: Find locations for tagging.
  • like_post / add_comment / reply_to_comment: Engage with posts.

Direct Messaging (DM)

  • get_inbox: View recent message threads.
  • get_direct_messages: Fetch history for a specific thread.
  • send_direct_message: Send text to users or groups.
  • react_to_message: Add heart reactions to messages.
  • get_pending_requests: Manage DM requests.
  • mute_thread / leave_thread: Thread management.

Feeds & Discovery

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "instagram": { "command": "node", "args": ["/ABSOLUTE/PATH/TO/insta-mcp/dist/index.js"], "env": { "INSTAGRAM_USERNAME": "your_username", "INSTAGRAM_PASSWORD": "your_password" } } } }