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:
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
LiveAdd Postkey as a custom connector, then sign in.
- In Claude, open Customize, then Connectors.
- Choose "Add custom connector".
- Paste your Postkey address.
Postkey MCP address https://postkey.pro/mcp - 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
LiveAdd Postkey as a custom MCP server, then sign in.
- Open ChatGPT's plugins page. chatgpt.com/plugins
- Press the plus button and choose "Add custom MCP server".
- Paste your Postkey address.
Postkey MCP address https://postkey.pro/mcp - 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
LiveAsk Muse to add Postkey as a custom connector, then sign in.
- 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 - 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.
- Muse shows a Postkey card. Press Connect, then Connect again under "Custom connector".
- 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
LiveAdd Postkey as a custom connector, then sign in.
- Open grok.com/connectors, then press "New Connector", then "Custom".
- Paste your Postkey address under Server URL.
Postkey MCP address https://postkey.pro/mcp - Give it a name, for example Postkey.
- 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
LiveOne click adds Postkey to Cursor, then sign in.
- Press Add to Cursor. Cursor opens and asks you to install Postkey. Add to Cursor
- Under Tools and MCP in Cursor's settings, press Connect next to postkey.
- 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
LiveAdd Postkey as a remote MCP server, then sign in.
- Open the Command Palette and run MCP: Add Server, or create the file .vscode/mcp.json in your project.
- Add Postkey as an HTTP server:
Add Postkey to VS Code { "servers": { "postkey": { "type": "http", "url": "https://postkey.pro/mcp" } } } - 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
LiveCall Postkey's tools from an n8n workflow with the MCP Client node.
- Make an agent key: sign in to Postkey, open Agent & API and choose New agent key. It is shown once.
- In n8n, add an MCP Client node to your workflow.
- Set Server Transport to HTTP Streamable and MCP Endpoint URL to:
Postkey MCP address https://postkey.pro/mcp - Set Authentication to Bearer Auth. Create a Bearer Auth credential and paste your agent key as the Bearer Token.
- Pick a tool under Tool, for example postkey_list_automations. Set Input Mode to JSON and enter the tool's arguments, or {} for none.
- 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.
| Scope | Name | What it allows |
|---|---|---|
| read | Look around | See your posts, library, automations, conversations, contacts and results. It cannot change anything. |
| content | Posts and library | Create and change drafts and posts, attach library files, and schedule posts. |
| automations | DM automations | Create and change DM automations, and turn them on or off. |
| inbox | Inbox | Read conversations and reply to people, assign, label and add notes. |
| contacts | Contacts | Find contacts and add or remove their tags. |
| x | X: ask Postkey before my agent replies | Lets 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. |
| webhooks | Webhooks | Add 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
| Tool | What it does | Kind | Scopes |
|---|---|---|---|
| postkey_list_automations | List DM automations | read | read, automations |
| postkey_get_automation | Get one DM automation | read | read, automations |
| postkey_list_automation_templates | List DM automation templates | read | read, automations |
| postkey_create_automation | Create a DM automation from a template | write | automations |
| postkey_update_automation | Change a DM automation | write | automations |
| postkey_publish_automation | Turn a DM automation onWaits in Approvals | sensitive write | automations |
| postkey_pause_automation | Pause a DM automation | write | automations |
| postkey_get_ai_replies | Read the Postkey AI setup and status | read | read, automations |
| postkey_update_ai_replies | Change the Postkey AI setup | write | automations |
| postkey_import_website_page | Read one website page for Postkey AI | write | automations |
| postkey_list_sequences | List DM sequences | read | read, automations |
| postkey_list_sequence_subscribers | List a sequence's subscribers | read | read, automations |
| postkey_get_automation_stats | DM automation results | read | read, automations |
| postkey_get_dm_insights | DM insights over time | read | read, automations |
Inbox
| Tool | What it does | Kind | Scopes |
|---|---|---|---|
| postkey_list_conversations | List Inbox conversations | read | read, inbox |
| postkey_get_conversation | Read one conversation | read | read, inbox |
| postkey_send_reply | Reply in a conversationWaits in Approvals | sensitive write | inbox |
| postkey_assign_conversation | Assign a conversation | write | inbox |
| postkey_label_conversation | Label a conversation | write | inbox |
| postkey_add_conversation_note | Add an internal note | write | inbox |
Contacts
| Tool | What it does | Kind | Scopes |
|---|---|---|---|
| postkey_search_contacts | Search contacts | read | read, contacts |
| postkey_get_contact | Get one contact | read | read, contacts |
| postkey_tag_contact | Tag a contact | write | contacts |
Posts, scheduling and Library
| Tool | What it does | Kind | Scopes |
|---|---|---|---|
| postkey_list_social_accounts | List connected social accounts | read | read, content |
| postkey_list_posts | List posts | read | read, content |
| postkey_get_post | Get one post | read | read, content |
| postkey_create_post | Create a draft post | write | content |
| postkey_update_post | Change a draft post | write | content |
| postkey_attach_library_item | Attach a library file to a post | write | content |
| postkey_schedule_post | Schedule or publish a postWaits in Approvals if the profile's switch is on | sensitive write | content |
| postkey_unschedule_post | Unschedule a post | write | content |
| postkey_delete_post | Delete a draft post | write | content |
| postkey_list_library | List the Library | read | read, content |
| postkey_begin_upload | Start a file upload | write | content |
| postkey_request_file | Ask the person for a file by link | write | content |
| postkey_finish_upload | Finish a file upload | write | content |
| postkey_list_video_templates | List video templates | read | read, content |
| postkey_list_edits | List video edits | read | read, content |
| postkey_start_edit | Start a video edit | write | content |
| postkey_get_edit | Read a video edit | read | read, content |
| postkey_edit_video | Edit a video | write | content |
| postkey_undo_edit | Undo a change to a video edit | write | content |
| postkey_list_edit_templates | List video edit templates | read | read, content |
| postkey_save_edit_template | Save a video edit's look as a template | write | content |
| postkey_get_post_stats | Post results | read | read, content |
| postkey_get_account_stats | Account results and follower growth | read | read, content |
X safety checks
| Tool | What it does | Kind | Scopes |
|---|---|---|---|
| postkey_x_check_before_send | Ask before replying or posting on X | write | x |
| postkey_x_record_action | Report what happened on X | write | x |
| postkey_x_add_stop | Add a person to the X STOP list | write | x |
| postkey_x_remove_stop | Take a person off the X STOP list | write | x |
| postkey_x_list_stop | List the X STOP list | read | read, x |
| postkey_x_status | X toolkit status | read | read, x |
| postkey_x_save_templates | Save reply wording for X | write | x |
| postkey_x_list_templates | List saved reply wording for X | read | read, x |
Getting started and the profile
| Tool | What it does | Kind | Scopes |
|---|---|---|---|
| postkey_get_started | Postkey: start here | read | read, content, automations, inbox, contacts, x |
| postkey_guide | Postkey guide | read | read, content, automations, inbox, contacts, x |
| postkey_preview_action | Preview a send | read | content, automations, inbox |
| postkey_list_waiting_for_approval | What is waiting for approval | read | read, content, automations, inbox, contacts |
| postkey_get_approval | One request waiting for approval | read | read, content, automations, inbox, contacts |
| postkey_send_feedback | Send feedback to the Postkey team | write | content, 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.