Instagram

io.github.mcp-dir由 GitHub 账号 mcp-dir 发布v0.1.0更新于 Oct 24, 2026

Instagram for AI agents: publish, read comments and DMs, insights, and engage from your account.

已验证Streamable HTTP可网页运行沟通与协作商业与电商媒体与设计

概览

AI 生成的概览

让助手为已连接的 Instagram 账号发布内容、读取评论和私信,并获取数据洞察。

可以做什么
连接一个 Instagram 账号后,助手可通过官方 API 发布照片、视频、轮播、Reels 和快拍,读取并回复评论,处理私信,并获取账号与媒体的洞察数据(如覆盖人数和展示次数)。另一组互动工具可以点赞帖子和评论、关注与取消关注、列出和查看快拍,以及发起私信对话。互动操作会进入队列并返回任务 id,可查询执行状态。
适用场景
适合让助手运营单个 Instagram 账号:发布内容、回复评论和私信、查看互动数据,或以人工节奏进行少量互动。它不适合批量或高频操作。
运行要求
通过 HTTP 连接的远程 MCP 端点,无需本地运行时或安装包。需要连接一个 Instagram 账号:官方 API 方案要求商业或创作者账号,高级方案使用用户名和密码并支持两步验证。部分功能需要按已连接账号计费的付费订阅。
安装前请注意
高级连接方式需要提供 Instagram 用户名和密码,属于敏感凭据。相关工具会在已连接账号上发布内容、发送消息、回复评论、点赞、关注和取消关注,这些操作对他人可见且难以撤回。工具返回的数据会发送给所使用的 LLM 服务方,说明中称其为不受提供方控制的次级处理者。该服务器为专有且托管运行。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Instagram,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.mcp-dir%2Finstagram-mcp/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "instagram": {
      "type": "http",
      "url": "https://api.mcp.ai/p_instagram"
    }
  }
}

README

该仓库没有 README。

工具

33

instagram_actions_list_accounts

List the Instagram accounts connected to this install — id, username, label.

输入参数account

instagram_actions_like

Like one or more Instagram posts, addressed by post URL or shortcode (NOT the numeric media id the official API returns). Returns a job_id; poll instagram_actions_get_job_status.

输入参数posts必填account

instagram_actions_list_comments

List the comments on a post, addressed by URL or shortcode. Returns each comment_id in the form that instagram_actions_like_comment accepts. The official API returns a DIFFERENT id that is not accepted there. Returns a job_id; poll instagram_actions_get_job_status.

输入参数posts必填account

instagram_actions_like_comment

Like one or more comments. Each comment_id MUST come from instagram_actions_list_comments. The id returned by the official instagram_get_ig_media_comments belongs to a different namespace and is rejected. Returns a job_id; poll instagram_actions_get_job_status.

输入参数accountcomment_ids必填

instagram_actions_follow

Follow one or more Instagram users by @username. Returns a job_id.

输入参数accounttargets必填

instagram_actions_unfollow

Unfollow one or more Instagram users by @username. Returns a job_id.

输入参数accounttargets必填

instagram_actions_list_stories

List a specific user's currently available stories (read-only, does not mark as seen). Returns a job_id (or the result inline when wait=true).

输入参数waittarget必填account

instagram_actions_view_story

Watch (mark as seen) the stories of one or more profiles. Omit `targets` to watch the home tray. Returns a job_id.

输入参数accounttargets

instagram_actions_send_message

Send the FIRST direct message to someone who has never messaged this account (the official API cannot do this). One recipient per call, low daily cap. Returns a job_id.

输入参数text必填target必填accountdry_run

instagram_actions_get_job_status

Get the status/progress/result of a previously started action by its job_id. Bulk support: accepts job_ids for batched execution.

输入参数job_id必填accountjob_ids

instagram_actions_list_jobs

List recent action jobs for the connected account, optionally filtered by status.

输入参数statusaccount

instagram_get_user_info

Get Instagram Business Account info including profile details and statistics. Use "me" to query your own authenticated account, or provide the numeric Business Account ID of an account you manage. NOTE: followers_count and follows_count are returned for your own profile (ig_user_id="me"). For other accounts, follower/… Bulk support: accepts ig_user_ids for batched execution.

输入参数accountig_user_idig_user_idsgraph_api_version

instagram_get_ig_user_media

List account media. REST response: read result.result.data and result.result.paging (not result.data). Null engagement fields mean unavailable, not zero; use media insights for saved, shares and views. Bulk support: accepts ig_user_ids, auto_resolve_fb_page_ids for batched execution.

输入参数afterlimitsinceuntilbeforefieldsaccountig_user_idig_user_idsgraph_api_versionauto_resolve_fb_page_idauto_resolve_fb_page_ids

instagram_get_ig_media

Get a published Instagram Media object (photo, video, story, reel, or carousel). Use when you need to retrieve detailed information about a specific Instagram post including engagement metrics, caption, media URLs, and metadata. NOTE: This action is for published media only. For unpublished container IDs (from INSTAGR… Bulk support: accepts ig_media_ids for batched execution.

输入参数fieldsaccountig_media_id必填ig_media_idsgraph_api_version

instagram_get_ig_media_comments

Tool to retrieve comments on an Instagram media object. Use when you need to fetch comments from a specific Instagram post, photo, video, or carousel owned by the connected Business/Creator account. Supports cursor-based pagination for navigating through large comment lists. An empty data array in the response indicat… Bulk support: accepts ig_media_ids for batched execution.

输入参数afterlimitbeforefieldsaccountig_media_id必填ig_media_idsgraph_api_version

instagram_get_ig_media_insights

Read media insights. REST response: read result.result.data. Request metric=[views,reach,saved,shares] for views, reach, saves and shares; availability depends on the media type and metric. Bulk support: accepts ig_media_ids for batched execution.

输入参数metric必填periodaccountbreakdownig_media_id必填ig_media_idsgraph_api_version

instagram_get_user_insights

Read account insights at result.result.data in REST. An empty data array means insights are unavailable, not zero. It does not by itself establish a follower-count restriction. Bulk support: accepts ig_user_ids for batched execution.

输入参数sinceuntilmetricperiodaccountbreakdowntimeframeig_user_idig_user_idsmetric_typegraph_api_version

instagram_post_ig_user_media

Tool to create a media container for Instagram posts. Use this to create a container for images, videos, Reels, or carousels. This is the first step in Instagram's two-step publishing process - after creating the container, use the media_publish endpoint to publish it. Bulk support: accepts ig_user_ids, location_ids for batched execution.

输入参数accountcaptionalt_textchildrencover_urlimage_urluser_tagsvideo_urlaudio_nameig_user_idimage_filemedia_type另有 8 个

instagram_post_ig_user_media_publish

Tool to publish a media container to an Instagram Business account. This action automatically waits for the container to finish processing before publishing. Instagram enforces an account-specific content-publishing rate limit over a 24-hour moving window; the exact cap varies by account and should be read live via IN… Bulk support: accepts ig_user_ids, creation_ids for batched execution.

输入参数accountig_user_idcreation_id必填ig_user_idscreation_idsmax_wait_secondsgraph_api_versionpoll_interval_seconds

instagram_post_ig_comment_replies

Tool to create a reply to an Instagram comment. Use when you need to reply to a specific comment on an Instagram post owned by a Business or Creator account. The reply must be 300 characters or less, contain at most 4 hashtags and 1 URL, and cannot consist entirely of capital letters. Bulk support: accepts ig_comment_ids for batched execution.

输入参数accountmessage必填ig_comment_id必填ig_comment_idsgraph_api_version

instagram_send_text_message

Send a text message to an Instagram user via DM in an existing conversation. Cannot initiate new DM threads — a prior conversation must exist. Requires an Instagram Business or Creator account with messaging permissions. Fails with error_subcode 2534022 if outside the messaging window; do not retry these failures. Bulk support: accepts ig_user_ids, recipient_ids, reply_to_message_ids for batched execution.

输入参数text必填accountig_user_idig_user_idsrecipient_id必填recipient_idsgraph_api_versionreply_to_message_idreply_to_message_ids

instagram_send_image

Send an image via Instagram DM to a specific user. Each send modifies inbox state; avoid bulk or automated sends without explicit user approval. Bulk support: accepts ig_user_ids, recipient_ids for batched execution.

输入参数accountimage_url必填ig_user_idig_user_idsrecipient_id必填recipient_idsgraph_api_version

instagram_mark_seen

Mark Instagram DM messages as read/seen for a specific user. Sends a 'mark_seen' sender action to indicate messages from the specified recipient have been read. Marking as seen is visible to the other party and changes inbox read state — use with explicit user approval in automated or bulk flows. IMPORTANT LIMITATIONS… Bulk support: accepts ig_user_ids, recipient_ids for batched execution.

输入参数accountig_user_idig_user_idsrecipient_id必填recipient_idsgraph_api_version

instagram_get_conversation

Get details about a specific Instagram DM conversation (participants, etc). Requires a Business or Creator account with Instagram messaging permissions; personal accounts will return permission errors. Newly sent/received messages may take a few seconds to appear in results. Bulk support: accepts conversation_ids for batched execution.

输入参数accountconversation_id必填conversation_idsgraph_api_version

instagram_list_all_conversations

List all Instagram DM conversations for the authenticated user. Requires a Business/Creator account with messaging permissions; personal accounts return empty results. Response conversations are nested under `data.data` — accessing top-level `data` as the final list returns zero items. An empty `data` list is a valid … Bulk support: accepts user_ids, ig_user_ids for batched execution.

输入参数afterlimitaccountuser_idplatformuser_idsig_user_idig_user_idsgraph_api_version

instagram_list_all_messages

List all messages from a specific Instagram DM conversation. Requires a Business or Creator account with messaging permissions; personal accounts return empty results. Response data is nested under data.data (double-wrapped); attachment-only messages may have empty text fields. Bulk support: accepts conversation_ids for batched execution.

输入参数afterlimitaccountconversation_id必填conversation_idsgraph_api_version

show_version

Show Version

Show the current MCP platform and adapter versions.

无需输入参数。

report_bug

Report Bug

Report a bug, missing feature, or send feedback. Include the conversation array with recent messages for reproduction.

输入参数contextmessage必填conversation

connect

Connection Status

Returns connection status and URLs. When all providers are connected, returns authenticated:true and empty pending[]. When credentials are missing, returns connect_url for the toolkit and per-install URLs.

无需输入参数。

toolkit_info

Toolkit Info

Returns the current toolkit state: installed MCPs, their connection status, the accounts connected to each one, and how many catalog tools each exposes.

无需输入参数。

marketplace

Marketplace

The official mcp.ai marketplace — the in-platform catalog of every MCP/tool, AND the way to run them. Covers capability requests like "find an MCP that does X", "consulta um CPF", "is there a tool for Y". Core flow: action=search discovers MCPs by intent → describe returns one MCP's full profile (every tool with its id + params, pricing, auth) so you pick the right tool_id → invoke RUNS that tool. KEY: invoke works even when the MCP is NOT installed — it runs the tool pontualmente (one-off), without adding the MCP to the toolkit and without bloating the tool list. If the MCP needs a credential/login, invoke returns a connect link; if it is paid and the wallet is empty, invoke returns a checkout/top-up link (the user opens it, then you retry). Use install only to make an MCP PERMANENT in the active toolkit (its tools then show up natively in future sessions); prefer invoke for a single/occasional use. list_tools lists what is callable right now. subscribe/cancel handle per-MCP billing; report_bug sends feedback; request_mcp asks us to build a NEW MCP when nothing fits. Search/describe flag installed_in_toolkit vs installed_in_workspace. Writes (install/uninstall/subscribe/cancel and the one-off install behind invoke) require workspace owner/admin. It also carries the mcp.ai PROMPT LIBRARY, which is about ready-made prompt TEXT rather than MCPs: search_prompts finds one, get_prompt returns its full text with {{variables}} filled, and publish_prompt saves a prompt and returns a shareable mcp.ai/p/<slug> link that opens without login.

输入参数limitqueryactionmcp_idmessagetool_idargumentsimmediatetier_slugprompt_bodyprompt_slugprompt_tool另有 11 个

authenticate

Authenticate

MCP.AI for IDE agents (Cursor, etc.): log in in the browser, copy the access token. Best: add it to this server's config as a header `Authorization: Bearer <token>` for a permanent, non-expiring connection. Or paste it here for a session-only login: call with { token: "<jwt>" } after the user pastes, or with no args to get the link.

输入参数token

版本历史

1
  1. v0.1.0最新Sep 16, 2026

评分

已满足适用检查项的 75%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分

    请声明包含 README 的 GitHub 仓库,或在 OAuth 受保护资源元数据中提供 resource_documentation。

  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。