Instagram comments and DMs from Claude Code
One command adds CueEditio to Claude Code. Then you can clear a comment backlog, wire a comment-to-DM funnel for tomorrow’s reel, or script a daily reply sweep with claude -p.
Claude Code by Anthropic · Coding agent in the terminal and IDE
Setup
Read https://www.cueedit.io/agent.md and set up CueEditio for me. Use my email: you@example.comclaude mcp add --transport http cueedit https://www.cueedit.io/api/mcp/mcp
# then in Claude Code: /mcp → cueedit → Authenticate- 1.Paste the line above into Claude Code. It signs up with an email code it reads, then gives you one link.
- 2.Open the link, check the email shown, and approve Instagram.
- 3.Ask it to list your Instagram accounts.
Your agent signs itself up with an email code. You only approve Instagram. Claude Code MCP docs
What you can ask
Example
You
For every reel in ./reels/*.md that has a "keyword:" line, make sure an Auto DM rule exists for that keyword on that reel. Show me the missing ones first.
Claude Code
4 reel notes have keywords. Rules already exist for 2 (LINK, PDF). Missing: • "hooks.md" → keyword HOOKS, link https://example.com/hooks • "setup.md" → keyword SETUP, link https://example.com/setup Create both with follow required?
Instagram tools Claude Code 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, Claude Code 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
Yes. Use claude -p in a cron job or CI step with --allowedTools set to the CueEditio tools you want. Set it up once in an interactive session; later runs reuse the saved sign-in.
A CueEditio account with an Instagram professional (business or creator) account connected. Claude Code 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 Claude Code
Create a free CueEditio account and connect Instagram. Agents can read on the free plan; sending replies and DMs needs Pro ($6 a month).