Postkey MCP server

Instagram DM automation and post scheduling for AI agents. DM replies and automations wait for your approval.

Postkey's MCP server lets your AI assistant run your Instagram DM automations, your social posts, your Inbox and your contacts in plain words. Posts go out on time, and one switch makes them wait. DM replies and turning on an automation wait for your approval in Postkey first.

What it does

Instagram DM automations

See your DM automations and how each one is doing, build a new comment-to-DM automation from a template, change its trigger words, link and messages, and pause one that is not working. New automations are drafts: nobody gets a message until a person approves turning it on.

Inbox and contacts

Read conversations, find the ones nobody has answered, draft a reply for you to approve, assign, label and add internal notes. Search contacts, tag them and see who is in a DM sequence.

Scheduling and posting

Draft posts, attach files from your Library and schedule them to the social accounts connected in Postkey. A post an assistant schedules goes out on time with no approval to start. When the profile's switch "Approve posts before they go out" is on, it waits in Posts, then Approvals, until a person approves it.

X, with approvals

Posts you schedule in Postkey to a connected X account are published by Postkey at the time you choose. For an assistant that works on X with your own X access, the X tools are a safety layer: before every reply or post on X it asks Postkey, which checks your STOP list, quiet hours and limits and can ask you to approve first. The assistant then reports what happened. There is no MCP tool that sends on X.

Server address

One remote MCP server over Streamable HTTP. Give your assistant this address:

Postkey MCP address
https://postkey.pro/mcp
  • Transport: Streamable HTTP, stateless, JSON answers (no server-sent events).
  • Protocol revisions: 2026-07-28, 2025-11-25, 2025-06-18 and 2025-03-26.
  • Capabilities: tools, Postkey's guide as read-only resources (the same text as postkey_guide, nothing of any profile), and 2 prompts.

Sign-in (OAuth 2.1)

Assistants sign in with OAuth 2.1. You never paste a password or a key into the assistant.

  • Authorization code flow with PKCE (S256 only) and refresh tokens. Public clients only: there is no client secret.
  • Dynamic client registration (RFC 7591) and client ID metadata documents: the assistant registers itself.
  • Discovery: /mcp answers 401 with a WWW-Authenticate header; the metadata is at /.well-known/oauth-protected-resource/mcp (RFC 9728) and /.well-known/oauth-authorization-server (RFC 8414).
  • When you connect, Postkey's own consent screen opens. You sign in, pick the Postkey profile, and choose what the assistant may do.
  • An access token lasts 1 hour and is renewed with a refresh token that lasts 30 days.
  • Tools that only take a header (Cursor, scripts) can use an agent key instead: make one in Postkey under Agent & API and send it as Authorization: Bearer <key>. A key lasts 90 days unless you choose otherwise.
  • End a connection at any time in Postkey under Agent & API. Its tokens are deleted and the next request is refused.

Connect your assistant

Each assistant's own steps, as we last read them. Menus in other products change; if a step looks different, look for the place to add a custom connector or MCP server.

Claude

Live

Add Postkey as a custom connector, then sign in.

  1. In Claude, open Customize, then Connectors.
  2. Choose "Add custom connector".
  3. Paste your Postkey address.
    Postkey MCP address
    https://postkey.pro/mcp
  4. Claude sends you to Postkey. Sign in, pick the profile, and choose what Claude may do.
  • Add it once and it is there on the web, the desktop app, the phone app, Cowork and Claude Code.

Works on Claude's Free plan (one custom connector) and on paid plans.

ChatGPT

Live

Add Postkey as a custom MCP server, then sign in.

  1. Open ChatGPT's plugins page. chatgpt.com/plugins
  2. Press the plus button and choose "Add custom MCP server".
  3. Paste your Postkey address.
    Postkey MCP address
    https://postkey.pro/mcp
  4. ChatGPT sends you to Postkey. Sign in, pick the profile, and choose what ChatGPT may do.
  • Codex uses the same connection.

ChatGPT lists custom servers for Plus and above. Postkey is not in ChatGPT's directory yet; once it is, connecting will be one click on every plan.

Muse

Live

Ask Muse to add Postkey as a custom connector, then sign in.

  1. In a chat on muse.ai, ask Muse to add a custom connector, and paste your Postkey address.
    Postkey MCP address
    https://postkey.pro/mcp
  2. When Muse asks to share information with your Postkey address, choose "Always allow this site". With "Allow once", Muse asks again every time it uses Postkey.
  3. Muse shows a Postkey card. Press Connect, then Connect again under "Custom connector".
  4. Muse sends you to Postkey. Sign in, pick the profile, and choose what Muse may do.
  • The address must be public. Muse runs on Meta's servers, so a localhost address cannot be reached.
  • There is no place for an agent key. Signing in is the only way.
  • If Muse shows a box for an API key instead of a sign-in, close it and tell Muse that Postkey uses sign-in (OAuth) and needs no key. It then offers a new Postkey card with a Connect button.

Works on muse.ai as a custom connector. Muse signs in with Postkey. Posts go out on time, and replies wait for your yes.

Grok Bot

Live

Add Postkey as a custom connector, then sign in.

  1. Open grok.com/connectors, then press "New Connector", then "Custom".
  2. Paste your Postkey address under Server URL.
    Postkey MCP address
    https://postkey.pro/mcp
  3. Give it a name, for example Postkey.
  4. A sign-in window from Postkey opens. Sign in to Postkey, pick the profile, and choose what Grok Bot may do.
  • These steps are for grok.com; a connector added there also works in the Grok app. In Grok Bot (xAI's coding agent), open Settings, then Plugins, add a custom MCP server with the same address, and sign in the same way.
  • Grok Bot can sign in through Cursor, so Postkey's sign-in screen may name Cursor and send you back to cursor.com. That is expected.
  • The address must be public. Grok Bot runs on xAI's servers, so a localhost address cannot be reached.
  • The connector form asks only for a name and the address, so there is no place for an agent key. Signing in is the only way.

Works on grok.com and in the Grok Bot app as a custom connector. Grok Bot signs in with Postkey. Posts go out on time, and replies wait for your yes.

Cursor

Live

One click adds Postkey to Cursor, then sign in.

  1. Press Add to Cursor. Cursor opens and asks you to install Postkey. Add to Cursor
  2. Under Tools and MCP in Cursor's settings, press Connect next to postkey.
  3. Cursor sends you to Postkey. Sign in, pick the profile, and choose what Cursor may do.
  • Keep a key out of files you share or commit.

Uses Cursor's own install link for MCP servers. Cursor signs in with Postkey, the same way ChatGPT and Claude do.

VS Code

Live

Add Postkey as a remote MCP server, then sign in.

  1. Open the Command Palette and run MCP: Add Server, or create the file .vscode/mcp.json in your project.
  2. Add Postkey as an HTTP server:
    Add Postkey to VS Code
    {
      "servers": {
        "postkey": {
          "type": "http",
          "url": "https://postkey.pro/mcp"
        }
      }
    }
  3. Start the server. VS Code sends you to Postkey. Sign in, pick the profile, and choose what VS Code may do.

Works as a remote MCP server over HTTP with OAuth sign-in.

n8n

Live

Call Postkey's tools from an n8n workflow with the MCP Client node.

  1. Make an agent key: sign in to Postkey, open Agent & API and choose New agent key. It is shown once.
  2. In n8n, add an MCP Client node to your workflow.
  3. Set Server Transport to HTTP Streamable and MCP Endpoint URL to:
    Postkey MCP address
    https://postkey.pro/mcp
  4. Set Authentication to Bearer Auth. Create a Bearer Auth credential and paste your agent key as the Bearer Token.
  5. Pick a tool under Tool, for example postkey_list_automations. Set Input Mode to JSON and enter the tool's arguments, or {} for none.
  6. Run the node. Each tool you want is its own MCP Client node.
  • To sign in instead of using a key, set Authentication to MCP OAuth2, turn on Use Dynamic Client Registration, set Server URL to the Postkey MCP address, and connect. A self-hosted n8n needs an https address (or localhost) for this. Otherwise use a key.
  • The MCP Client Tool node gives n8n's AI Agent the same tools, with the same address and sign-in.
  • Postkey cannot start an n8n workflow yet. Start it with n8n's own triggers, such as a schedule.
  • Replies and turning on an automation wait in Approvals, unless the key was made to act without asking. Posts go out on time unless the profile's approval switch is on.

Works with an agent key or with OAuth sign-in, through n8n's MCP Client node.

Scopes

You choose these when you connect. A connection never gets more than its person may do in Postkey, and scopes only take rights away.

ScopeNameWhat it allows
readLook aroundSee your posts, library, automations, conversations, contacts and results. It cannot change anything.
contentPosts and libraryCreate and change drafts and posts, attach library files, and schedule posts.
automationsDM automationsCreate and change DM automations, and turn them on or off.
inboxInboxRead conversations and reply to people, assign, label and add notes.
contactsContactsFind contacts and add or remove their tags.
xX: ask Postkey before my agent repliesLets your agent ask Postkey before it replies or posts on X, tell Postkey what happened, and keep your STOP list and saved replies. These tools send nothing to X: your agent replies with your own X access. Postkey itself only publishes posts you schedule in Postkey.
webhooksWebhooksAdd webhook addresses that Postkey sends events to (for n8n, Make or your own server), and read the event log. Only the owner or an admin can use it. It sends events only of the kinds this connection may see.

No assistant can ever reach the team, billing, connecting or removing social accounts, the Postkey profile itself, deleting contacts, bulk Inbox changes, or Inbox settings and labels. Those stay with people.

Tools (60)

Every tool name starts with postkey_. Read tools only look. Write tools change something in Postkey. Sensitive writes reach real people or publish. Replies and turning on an automation wait for approval by default, and a post waits when the profile's switch is on.

DM automations and sequences

ToolWhat it doesKindScopes
postkey_list_automationsList DM automationsreadread, automations
postkey_get_automationGet one DM automationreadread, automations
postkey_list_automation_templatesList DM automation templatesreadread, automations
postkey_create_automationCreate a DM automation from a templatewriteautomations
postkey_update_automationChange a DM automationwriteautomations
postkey_publish_automationTurn a DM automation onWaits in Approvalssensitive writeautomations
postkey_pause_automationPause a DM automationwriteautomations
postkey_get_ai_repliesRead the Postkey AI setup and statusreadread, automations
postkey_update_ai_repliesChange the Postkey AI setupwriteautomations
postkey_import_website_pageRead one website page for Postkey AIwriteautomations
postkey_list_sequencesList DM sequencesreadread, automations
postkey_list_sequence_subscribersList a sequence's subscribersreadread, automations
postkey_get_automation_statsDM automation resultsreadread, automations
postkey_get_dm_insightsDM insights over timereadread, automations

Inbox

ToolWhat it doesKindScopes
postkey_list_conversationsList Inbox conversationsreadread, inbox
postkey_get_conversationRead one conversationreadread, inbox
postkey_send_replyReply in a conversationWaits in Approvalssensitive writeinbox
postkey_assign_conversationAssign a conversationwriteinbox
postkey_label_conversationLabel a conversationwriteinbox
postkey_add_conversation_noteAdd an internal notewriteinbox

Contacts

ToolWhat it doesKindScopes
postkey_search_contactsSearch contactsreadread, contacts
postkey_get_contactGet one contactreadread, contacts
postkey_tag_contactTag a contactwritecontacts

Posts, scheduling and Library

ToolWhat it doesKindScopes
postkey_list_social_accountsList connected social accountsreadread, content
postkey_list_postsList postsreadread, content
postkey_get_postGet one postreadread, content
postkey_create_postCreate a draft postwritecontent
postkey_update_postChange a draft postwritecontent
postkey_attach_library_itemAttach a library file to a postwritecontent
postkey_schedule_postSchedule or publish a postWaits in Approvals if the profile's switch is onsensitive writecontent
postkey_unschedule_postUnschedule a postwritecontent
postkey_delete_postDelete a draft postwritecontent
postkey_list_libraryList the Libraryreadread, content
postkey_begin_uploadStart a file uploadwritecontent
postkey_request_fileAsk the person for a file by linkwritecontent
postkey_finish_uploadFinish a file uploadwritecontent
postkey_list_video_templatesList video templatesreadread, content
postkey_list_editsList video editsreadread, content
postkey_start_editStart a video editwritecontent
postkey_get_editRead a video editreadread, content
postkey_edit_videoEdit a videowritecontent
postkey_undo_editUndo a change to a video editwritecontent
postkey_list_edit_templatesList video edit templatesreadread, content
postkey_save_edit_templateSave a video edit's look as a templatewritecontent
postkey_get_post_statsPost resultsreadread, content
postkey_get_account_statsAccount results and follower growthreadread, content

X safety checks

ToolWhat it doesKindScopes
postkey_x_check_before_sendAsk before replying or posting on Xwritex
postkey_x_record_actionReport what happened on Xwritex
postkey_x_add_stopAdd a person to the X STOP listwritex
postkey_x_remove_stopTake a person off the X STOP listwritex
postkey_x_list_stopList the X STOP listreadread, x
postkey_x_statusX toolkit statusreadread, x
postkey_x_save_templatesSave reply wording for Xwritex
postkey_x_list_templatesList saved reply wording for Xreadread, x

Getting started and the profile

ToolWhat it doesKindScopes
postkey_get_startedPostkey: start herereadread, content, automations, inbox, contacts, x
postkey_guidePostkey guidereadread, content, automations, inbox, contacts, x
postkey_preview_actionPreview a sendreadcontent, automations, inbox
postkey_list_waiting_for_approvalWhat is waiting for approvalreadread, content, automations, inbox, contacts
postkey_get_approvalOne request waiting for approvalreadread, content, automations, inbox, contacts
postkey_send_feedbackSend feedback to the Postkey teamwritecontent, automations, inbox, contacts, x

Safety

Ask first, on by default

Every connection starts with "ask a person first" switched on, and only an owner or admin can switch it off. Turning an automation on and sending a reply then wait in Postkey under Posts, then Approvals, until a person presses Approve. A reply with an outside link or contact detail always waits. A reply or automation nobody answers lapses after 7 days. Posts have their own switch per profile, "Approve posts before they go out": off to start, and when it is on, posts wait in Approvals too.

Links held for review

Before an automation can be turned on, its approval line lists every link and file in it, each with its whole host, and every address it sends contact details to. If there are too many to show, it is not sent for approval at all and a person has to switch it on in Postkey. If the automation is changed while it waits, approving does nothing. Assistants are told never to invent, shorten or rewrite a link.

The 24-hour window

Instagram lets a business reply for 24 hours after the person's last message (7 days for a reply a person types). Postkey tells the assistant whether each conversation can be answered right now, and refuses a reply once the window has closed.

Outside text is marked

DMs, comments and names written by people outside your profile come back marked as untrusted, with a note telling the assistant never to follow instructions found in them.

Channels an assistant never replies on

Replies on WhatsApp, Telegram, SMS and TikTok are refused, even with approval.

You can see and stop it

Every change an assistant makes, and every request it leaves for approval, is a line in Postkey's Activity log. The profile's switch under Agent & API stops every connection at once.

Example prompts

Things to ask once Postkey is connected:

  • What can you do in my Postkey profile?
  • Which of my DM automations sent the most messages?
  • Create a comment-to-DM automation: when someone comments GUIDE, DM them the link to my guide.
  • Turn that automation on. (By default it waits in Posts, then Approvals, until you approve it.)
  • Show me my unread DM conversations and draft a reply to the first one.
  • Draft a post with the launch image from my Library and schedule it for Friday at 9 am.

Troubleshooting

A tool is missing or refused with scope_not_granted

The connection was given fewer rights than the tool needs. End it in Postkey under Agent & API, connect again, and tick what the assistant should be able to do.

The sign-in window does not open, or closes at once

Allow pop-ups for the assistant's site, start the connection again from the assistant, sign in, and pick the Postkey profile you want it to work in.

Claude Team or Enterprise

An Owner adds Postkey as a connector for the organization first; then each person connects their own Postkey account.

It says waiting_for_approval

That is the default for replies and automations, and for posts when the profile's approval switch is on: open Posts, then Approvals, in Postkey and approve or reject it. Nothing was sent yet.

A reply is refused with outside_24h_window

Instagram lets a business reply only for 24 hours after the person's last message. Within 7 days of their last message you can still answer by hand in Postkey's Inbox.

Refused with rate_limited or a plan limit

The answer says which limit and when to try again. Plan limits are changed by a person in Postkey, never by the assistant.

Anything else

Write to support with the assistant's name, the time and the message it showed.

Limits

Fixed limits keep one busy assistant from crowding out everyone else. Over a limit, the assistant is told to wait and when to try again.

  • Each connection: 60 requests a minute and 5,000 changes a day (100 on Free). The day resets at midnight UTC.
  • All of a profile's connections together: 120 requests a minute and 3,000 live lookups of conversations and contacts a day.
  • Up to 100 requests waiting for approval per profile (20 per connection).
  • Everything an assistant does also counts against the same limits your profile has in the app.

Support

Questions about the MCP server, or something not working? Email support@postkey.pro.

Read the terms of service and the privacy policy.