Skip to content
dmswiftdmswift

MCP for comment to DM

Comment to DM campaigns, set up by Claude or ChatGPT.

Yes, an AI agent can set up an Instagram comment to DM campaign: connect dmswift to Claude, ChatGPT or another MCP client, and one message can publish a post and arm a keyword on it, tested before it goes live. Comment to DM means that whoever comments your keyword gets a public reply and one private message, usually with your link. MCP is included from $19 a month, with a 7-day free trial and no card.

Last updated 2026-11-19

Connection details

Server URLhttps://app.dmswift.com/mcp
Sign-in
OAuth, or an API key
Plan
Included from Starter, $19/month

7 days free with Pro features, no card

Can an AI agent set up an Instagram comment to DM campaign?

Yes. A comment to DM campaign is a rule: when someone comments a keyword such as GUIDE on your post or reel, dmswift replies under the comment and sends that person one private message through Meta's official API.

Over MCP, your agent gets the tools to build that rule, attach it to a post, test it with a sample comment and read the results later. The campaign itself runs on dmswift, so it keeps answering comments after the chat is closed.

Connect your agent first

Terminal
claude mcp add --transport http --scope user dmswift https://app.dmswift.com/mcp

That is the Claude Code command; then run /mcp and choose Authenticate. In Claude on the web or desktop, add https://app.dmswift.com/mcp as a custom connector (Claude guide). In ChatGPT, add it as a custom MCP server with OAuth (ChatGPT guide). Every other client is listed on the Instagram MCP server page.

On the consent screen, Full access lets the agent publish and switch campaigns on. With Read + draft it prepares posts and campaigns, a publish waits for your approval, and switching a campaign on is left to you.

Step by step: publish a post and arm the keyword in one chat

A new post with its campaign attached, drafted, tested and published only after you have seen it.

Sample conversation
You

Make a three-slide carousel announcing my free guide, with a caption that ends "comment GUIDE". Attach a campaign: a short public reply and a DM with https://example.com/guide, once per person. Show me everything before it goes live.

Claude

Draft ready: three text slides and the caption below. The campaign "Guide" is attached with the keyword guide, the public reply "Sent you a DM" and your link by DM, once per person. Tests: "guide please" matches, and so does "great guide!", since matching is by whole word. Shall I add an exclusion, or publish as is?

You

Publish as is.

Claude

The dry run passed and the carousel is live. From now on, anyone who comments GUIDE gets the reply and the DM. Ask me any time for the numbers.

The same flow works for a post that is already live: the agent finds it with list_live_posts and creates the campaign on it, as the step-by-step guide to auto DM commenters shows.

The tools the agent calls, in order

  1. list_pages finds your Instagram account and its id.
  2. For a post that is already live, list_live_posts returns its Meta id. For a new one, create_post makes a draft with ig_type, the media (a public image URL in media_urls, or slides drawn by render_text_card), the caption and an attached campaign with the keywords, the public reply and the DM text.
  3. For a live post, create_campaign with that post's id as post_id, the keywords, public_reply and dm_text. Options include once_per_user, exclude_keywords and first_level_only.
  4. test_campaign_match with a sample comment, to see which campaign it would trigger.
  5. publish_post with dry_run: true to validate the draft, then for real once you have seen it.
  6. get_stats for comments seen, public replies, private messages sent and button clicks, and get_activity_log to check that messages are actually delivered.

How does the agent test a keyword before going live?

test_campaign_match takes a comment text, and optionally a post id, and reports which campaign that comment would trigger. It sends nothing, to anyone. An agent should call it right after it creates a campaign and before the post goes live.

Matching is by whole word by default, ignores upper and lower case and accents, and can be switched to contains or exact. A too-broad keyword messages everyone who uses the word, so testing a few real-looking comments, including ones that should not match, is the cheapest check there is. The test covers comment text only; for story replies, mentions and DM keywords, try it once from a second Instagram account.

Which rules does Meta enforce?

  • One private reply per comment. A business may send one private message to the person who wrote a comment, within 7 days of the comment (Meta's Private Replies docs).
  • Then the 24-hour window. More messages are allowed only if the person answers, and only within 24 hours of their answer (Meta's Instagram messaging docs).
  • Only the commenter. The message goes to the person who wrote the comment. Nobody can be messaged who never wrote to you, and an agent cannot send a broadcast.
  • dmswift's caps on top. Each connection has daily caps (by default 15 publishes, 30 comment replies and 100 private messages), and a campaign the agent creates or switches on is capped at the connection's message cap.

Other triggers: story replies, mentions and DM keywords

  • trigger: "story_reply" answers people who reply to your stories with a keyword. Stories have no comments, so this is how a story asks for a response.
  • trigger: "mention" answers people who mention your account in their story.
  • trigger: "dm" answers a direct message that contains a keyword, inside the 24-hour window. See DM automation.
  • These three need dm_text, because their answer is a private message. A comment campaign can answer with a public reply, a DM, or both.

What to check when comparing agent-ready comment to DM tools

  • Official API. Does it connect with Instagram's own login, or does it ask for your password or a session cookie?
  • Triggers. Comments on posts and reels, story replies, mentions and DM keywords: which ones can the agent set up?
  • A dry-run test. Can the agent check a keyword against sample comments before the post is live?
  • Approval mode and caps. Can you make publishes wait for your approval, set daily caps per connection, limit the agent to some accounts and disconnect it in one click? See security.
  • Pricing model. What is metered (contacts, messages or agent actions), and which plan includes MCP? Our model is on pricing.

Several Instagram automation products now offer an MCP server for comment to DM, so it is worth running this checklist on each. For sourced pricing and feature facts, see our comparisons with Inro, ManyChat and LinkDM, and check each product's own pages before you choose.

Prompts that work

Paste one into your chat

  • Create a comment campaign on my newest reel: keyword PRICE, reply publicly, DM the price list link once per person. Test it first.

  • What did people ask under my posts this month that no campaign answered? Propose a campaign for the most common question.

  • Make a story campaign: whoever replies LINK to my stories gets https://example.com/offer by DM.

  • Pause the Guide campaign and show me its stats and the last ten entries in the activity log.

  • Draft a carousel with a 'comment GUIDE' caption and attach the campaign. Do not publish; I will approve it.

FAQ

Frequently asked questions

Does the campaign keep running when I close the chat?

Yes. The campaign lives on dmswift and answers matching comments as they arrive, day and night. The agent is only needed to create, change or report on it.

Can the agent change or pause a campaign later?

Yes. list_campaigns and get_campaign read campaigns, update_campaign edits one, set_campaign_active pauses or resumes it and delete_campaign removes it.

Can the agent DM everyone who commented last month?

No. A campaign answers comments as they arrive, Meta allows one private reply per comment within 7 days, and broadcasts are not available to agents.

How much does it cost?

MCP is included from Starter at $19/month. Each automated private message counts toward your plan's monthly messages, 3,000 a month on Starter, and contacts are never counted. Every new account starts with a 7-day trial, no card. See pricing.

Does it work on Facebook Pages?

Facebook Pages are coming soon for new accounts. Today comment to DM campaigns run on Instagram professional accounts.

Try dmswift free for a week.

No card. If it does not pay for itself in a week, let it pause.

  • 15,000 DMs a month on Pro
  • Unlimited contacts on every plan
  • Messages only go to people who wrote first