Instagram comments and DMs from Gemini CLI

Gemini CLI supports remote MCP servers with OAuth discovery. Add CueEditio, run /mcp auth, and Gemini can work through your Instagram comments and rules.

Gemini CLI by Google · Open-source terminal agent from Google

Setup

Paste this to Gemini CLI
Read https://www.cueedit.io/agent.md and set up CueEditio for me. Use my email: you@example.com
Or add it yourself
gemini mcp add --transport http --scope user cueedit https://www.cueedit.io/api/mcp/mcp
# then in Gemini CLI: /mcp auth cueedit
  1. 1.Paste the line above into Gemini CLI. It signs up with an email code and gives you one link.
  2. 2.Open the link, check the email shown, and approve Instagram.
  3. 3.Ask Gemini to list your Instagram accounts.

Your agent signs itself up with an email code. You only approve Instagram. Gemini CLI MCP docs

What you can ask

Example

You

Turn my latest reel into a funnel: keyword NOTES, follow required, DM https://example.com/notes, then catch up earlier commenters.

Gemini CLI

Rule ready. 8 earlier NOTES comments, all within 7 days. Create the rule and DM the 8?

Instagram tools Gemini CLI gets

  • list_accountsConnected Instagram accounts, your plan, and whether sending is on.
  • list_postsRecent posts and reels with comment and like counts.
  • list_commentsComments on a post, flagged replied, DMed and still DM-eligible.
  • reply_to_commentPosts a public reply under a comment.
  • send_dmSends a private DM to the person who commented.
  • list_autodm_rulesYour Auto DM rules and whether each is active.
  • create_autodm_ruleCreates a keyword (or any-comment) rule with optional public reply and follow gate.
  • set_autodm_rule_statusPauses or resumes a rule.

Why not a posting-only MCP?

  • Scheduler MCPs publish the post. The work that turns views into leads happens in the comments.
  • With CueEditio, Gemini CLI can reply to every comment and DM the people who ask for your link.
  • Auto DM rules keep running on CueEditio’s servers after the chat ends.

Questions

This page covers Gemini CLI. Custom MCP apps in the consumer Gemini app are limited by region and plan, so use Gemini CLI if you do not see them.

A CueEditio account with an Instagram professional (business or creator) account connected. Gemini CLI connects to https://www.cueedit.io/api/mcp/mcp. Agents that can run commands sign themselves up with an email code; you only approve Instagram.

CueEditio’s tools tell the agent to show you the exact message and get a yes before any reply, DM or rule change. You can also keep your agent’s per-tool approval prompts on.

Not yet for everyone. Facebook Page replies and Messenger DMs are waiting on Meta’s review, so these pages cover Instagram only.

Reading posts, comments and rules works on the free plan. Sending replies and DMs and creating Auto DM rules needs CueEditio Pro: $6 a month, or ₹459 in India.

Start with Gemini CLI

Create a free CueEditio account and connect Instagram. Agents can read on the free plan; sending replies and DMs needs Pro ($6 a month).

Other agents