Instagram comments and DMs from Codex
Codex speaks streamable HTTP MCP. Paste one line and Codex signs itself up, adds the server and starts on your Instagram comments.
Codex by OpenAI · Coding agent CLI
Setup
Read https://www.cueedit.io/agent.md and set up CueEditio for me. Use my email: you@example.comcodex mcp add cueedit --url https://www.cueedit.io/api/mcp/mcp
codex mcp login cueedit- 1.Paste the line above into Codex. It signs up with an email code and gives you one link.
- 2.Open the link, check the email shown, and approve Instagram.
- 3.Ask Codex to list your Instagram accounts.
Your agent signs itself up with an email code. You only approve Instagram. Codex MCP docs
What you can ask
Example
You
Build the comment funnel from funnel.json (keyword, link, follow gate) on the reel id inside it, then DM people who already commented.
Codex
funnel.json: keyword AUDIT, follow required, link https://example.com/audit, reel 1803…. Rule ready to create. 9 existing AUDIT comments are DM-eligible. Create the rule and send the 9 DMs?
Instagram tools Codex 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, Codex 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
codex mcp add writes the server to ~/.codex/config.toml under [mcp_servers.cueedit]. Codex stores the sign-in itself.
A CueEditio account with an Instagram professional (business or creator) account connected. Codex 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 Codex
Create a free CueEditio account and connect Instagram. Agents can read on the free plan; sending replies and DMs needs Pro ($6 a month).