CueDMDocs
Connect an AI agent

AI agents

Connect an AI agent

Let Claude, ChatGPT, Cursor or Claude Code set up and check automations through CueDM's MCP server, signed in with your account.

What an AI agent can do

CueDM runs an MCP server, the standard way AI apps connect to other tools. Connect Claude, ChatGPT, Cursor or Claude Code to it and you can ask, in your own words, for things like:

  • “When people comment GUIDE on my latest reel, DM them the guide link.”
  • “How did my protein guide automation do this month?”
  • “Change the DM on my ABS automation and add a public reply.”
  • “Add our refund policy to the knowledge base.”

The agent signs in as you, in the workspace you choose, so it sees what you see and nothing more. Automations it creates start switched off: it gives you a link to review each one, and turns one on only when you ask.

Rolling out

Connecting AI apps is being turned on for workspaces a few at a time. If the sign-in window says it isn't available yet, it will be soon. Studio workspaces can already connect with an API key.

Connect your AI app

Every app needs the same address. When you add it, a CueDM window opens: sign in, pick the workspace and choose Allow. There is no key to copy.

MCP server URL
https://cuedm.com/api/mcp

The quickest way: in CueDM open Settings → Integrations and choose Copy prompt on Connected AI apps. Paste it into your AI app and it walks you through the rest.

Claude

  1. Add a custom connector

    In Claude (on the web, desktop or mobile), open Settings → Connectors and choose Add custom connector. Name it CueDM and paste the URL above.

  2. Sign in to CueDM

    Choose Connect. Sign in to CueDM in the window that opens, pick the workspace and choose Allow.

  3. Ask for something

    Start a chat and ask, for example, “List my CueDM automations.”

ChatGPT

Add CueDM as a custom connector (an MCP server) in ChatGPT's settings, with the URL above. Depending on your plan, ChatGPT may ask you to turn on developer mode first. Then sign in to CueDM when asked.

Claude Code

Terminal
claude mcp add --transport http cuedm https://cuedm.com/api/mcp

Then run /mcp inside Claude Code and choose CueDM to sign in.

Cursor, VS Code and other MCP clients

Add a remote server with the URL. In Cursor, that's this in mcp.json:

JSON
{
  "mcpServers": {
    "cuedm": {
      "url": "https://cuedm.com/api/mcp"
    }
  }
}

The client finds the sign-in page by itself and opens it the first time it connects.

What the agent can use

These are the tools the server offers. An agent connected with read-only access can only use the ones marked reads.

list_accountsreads
The workspace's connected Instagram accounts and their ids.
list_recent_postsreads
An account's recent posts and reels with captions, to pick the post an automation runs on.
list_automationsreads
The workspace's automations and whether each is on.
get_automationreads
One automation in full: trigger, DM, buttons, public replies, review link.
get_automation_resultsreads
Comments that triggered it, DMs sent and failed, link taps and tap rate, top keywords, over 7, 30 or 90 days.
list_knowledgereads
What the account's AI agents answer from, and whether each source is ready.
create_comment_automationchanges
A comment-to-DM automation on a post, any post or the next reel. Created switched off.
update_automationchanges
Change any of an automation's settings: post, keywords, DM, buttons, replies, follow to unlock, opening DM, follow-up, dates, limits.
delete_automationchanges
Delete an automation and its delivery log. Turning it off is the reversible choice.
duplicate_automationchanges
Copy an automation with every setting, optionally onto another post. The copy starts switched off.
get_automation_activityreads
Each comment that reached an automation and whether the DM was sent, skipped or failed, and why.
list_automation_templatesreads
Ready-made automations (lead magnet, giveaway, product link…) to start from.
set_automation_activechanges
Turn an automation on or off. Only when the person has asked.
update_knowledgechanges
Switch a knowledge source off or on, re-word it, or read a page again.
remove_knowledgechanges
Remove a knowledge source for good.
list_conversationsreads
The inbox's DM conversations: last message, needs-reply, label, status, assignee, how long they have waited, and search over every message. Filter by view or assignee.
get_conversationreads
One conversation's messages, the contact's tags and notes, its status, assignee, wait and internal notes, and any draft waiting.
draft_replychanges
Leave a reply as a draft in the inbox for the creator to send.
send_replychanges
Send a DM reply now, inside Instagram's 24-hour window.
update_conversationchanges
Assign a conversation to a teammate, close or reopen it, snooze it until a time, or leave an internal note. Nothing is sent to the person.
search_contactsreads
Search contacts by name, username, email, notes or tag.
update_contactchanges
Add or remove a contact's tags, change notes, name, email or inbox label.
tag_contactschanges
Add or remove tags on up to 500 contacts at once.
enroll_prospectschanges
Enroll handles for outreach (optionally into a campaign), with notes on each; after the creator messages them first, the agent takes their reply.
list_prospectsreads
Outreach prospects and the funnel: not yet messaged, messaged, replied, goal reached, closed.
remove_prospectschanges
Take handles out of outreach; anyone already messaged goes back to normal DM handling.
create_campaignchanges
Start an outreach campaign: a goal, an agent, a brief and how much a person approves (auto, draft, learn or guarded).
update_campaignchanges
Change a campaign's goal, agent, brief, mode or stop rules, or pause, end or restart it.
list_campaignsreads
Outreach campaigns with the funnel for each: enrolled, messaged, replied, goal reached, closed, and drafts waiting.
list_draftsreads
Campaign replies waiting for approval: the prospect, their last message, the draft and when the reply window closes.
approve_draftchanges
Send a waiting campaign draft, as written or with edits. Safe to repeat.
reject_draftchanges
Turn down a campaign draft; the reason is saved to the agent's notes.
list_eventsreads
Outreach events (replies, goals reached, windows closing, drafts) since a cursor, for clients that can't receive webhooks.
list_publishing_accountsreads
The accounts posts can be scheduled to, with their connection ids.
list_postsreads
The posting calendar: drafts, scheduled, waiting for approval, posted, failed.
get_postreads
One post: caption, media, time, each account's status and link.
create_post_draftchanges
Save a post as a draft: caption, pictures from links, type, first comment.
update_postchanges
Change a post's caption, pictures, type, first comment or accounts.
schedule_postchanges
Give a post its time (or the next free slot), move it, or take it back to a draft.
delete_postchanges
Remove a post from the calendar, and optionally from Facebook and Threads; Instagram's copy stays.
review_postchanges
Approve or decline a member's post.
get_best_timesreads
When an account's posts do best, by weekday and time.
list_hashtag_groupsreads
Saved hashtag groups to paste into a post.
save_hashtag_groupchanges
Create a hashtag group, or rename or change one.
delete_hashtag_groupchanges
Delete a saved hashtag group.
get_post_resultsreads
How a published post did: likes and comments against the account's usual (median of its other recent posts).
list_post_templatesreads
Saved post templates (caption, first comment, media) and each brand's caption voice.
save_post_templatechanges
Save a post as a template, or change one. Copy it into create_post_draft to post from it.
delete_post_templatechanges
Delete a post template.
set_brand_voicechanges
Set how a brand writes its captions, for Write in brand voice. Owners and admins only.
list_mediareads
The media library: saved photos and videos by folder, kind or name, with where each is used.
add_media_from_urlchanges
Save a picture from a web link in the media library, in a folder if you name one.
list_broadcastsreads
DM broadcasts: message, when, reached, sent, failed.
get_broadcast_audiencereads
How many people a broadcast would reach now, optionally by tag.
send_broadcastchanges
Send a DM broadcast now or at a time, to everyone in the 24-hour window or a tag.
cancel_broadcastchanges
Cancel a scheduled broadcast before it starts.
get_bio_pagereads
The link-in-bio page: address, whether it's live, theme, and every link with its clicks.
update_bio_pagechanges
Change the bio page: title, bio, address, theme, pictures, socials; add, change, remove or reorder links; publish.
list_agentsreads
The account's AI agents: which answers DMs, whether it replies or drafts, its voice and goal.
update_agentchanges
Change an agent's voice, instructions, goal, topic handling, or whether it answers DMs.
get_usagereads
The plan, DMs and AI credits left this period, messaging and publishing connections used, and scheduled posts left this month.
add_knowledgechanges
Add a Q&A, some text, web pages or the account's captions to the knowledge base.

It can't see billing, change your team, delete anything, or send a DM to someone directly: DMs only go out through automations, after someone comments.

Permissions and disconnecting

readscope
See your Instagram accounts, posts, automations, their results and your knowledge base
writescope
Create and change automations, turn them on or off, and add to your knowledge base
  • The agent acts as the person who connected it. If you're a member limited to some accounts, so is the agent, and if you leave the workspace it stops working.
  • Everything it changes appears in Settings → Activity with the app's name, for example “Created automation … via Claude”.
  • Disconnect it any time in Settings → Integrations under Connected AI apps. Owners and admins can disconnect anyone's.

Connecting with an API key instead

For a script or a self-built agent that can't sign in through a browser, send a workspace API key (Studio) as a bearer token to the same URL. It acts as the workspace rather than a person. Authentication covers creating one.

JSON
{
  "mcpServers": {
    "cuedm": {
      "url": "https://cuedm.com/api/mcp",
      "headers": {
        "Authorization": "Bearer ${CUEDM_API_KEY}"
      }
    }
  }
}

For MCP client developers

The server speaks the 2026-07-28 MCP specification over Streamable HTTP, statelessly, and also answers 2025-era clients. Authorization follows the MCP authorization spec with OAuth 2.1:

DiscoveryRFC 9728, 8414
A request without a token gets 401 with a WWW-Authenticate header pointing at /.well-known/oauth-protected-resource, which names the authorization server; its metadata is at /.well-known/oauth-authorization-server.
Client identityCIMD, RFC 7591
Use an https URL to your client metadata document as the client_id (preferred), or register at /oauth/register. Redirect URIs must be https, loopback http (any port) or your app's own scheme.
Grantauthorization code
PKCE with S256 is required. Send resource=https://cuedm.com/api/mcp. The redirect carries iss (RFC 9207); codes are single-use and last five minutes.
Tokensopaque
Access tokens last 1 hour; refresh tokens 60 days and are replaced on every use. Presenting a used refresh token again ends the connection. Revoke at /oauth/revoke (RFC 7009).

Stuck, or something here is wrong? Email support@cuedm.com and a person will answer.