Instagram MCP server
Let Claude, Codex or Cursor schedule Instagram posts, Reels, Stories and Trial Reels, run comment-to-DM automations and read analytics over MCP.
What is the aghost Instagram MCP server?
aghost's Instagram MCP server lets Claude, Codex, Cursor or another MCP client schedule Instagram posts, carousels, Reels, Stories and Trial Reels. It can attach a comment-to-DM automation to a post before it publishes, reply in the inbox and read analytics. The same connection posts to five other platforms.
Connect it at https://aghost.app/api/mcp. It’s included on every plan.
What your agent can do
- Attach a comment-to-DM automation to a post before it publishes: up to 20 keywords or any comment, a public reply, and up to 3 link buttons
- Ask non-followers to follow before they get the link
- Read automation stats and the log of every DM
- Read and reply to Instagram DM conversations
- Schedule a post here and on your other channels in one request, with its own caption for each
- Edit, reschedule or cancel a post before it publishes
- Read account and post analytics for the last 7, 30 or 90 days
- Suggest posting times from the account's history
What it can post
- Photo posts and carousels of up to 10 photos and videos
- Reels from one video
- Stories with one photo or video
- Trial Reels, shown to non-followers first
JPEG or PNG photos up to 20 MB and MP4 or MOV videos up to 300 MB, scheduled at least 5 minutes ahead.
To connect: Connect with Instagram's own sign-in; aghost never asks for your password. Comment automations and the inbox need a Business or Creator account.
Limits and metrics
- Caption
- 2,200 characters
- Media
- Up to 10 photos and videos
- Text-only posts
- No
- Metrics
- reach, views, likes, comments, shares, saves
Every copy is checked against these limits before anything is scheduled.
Connect once. Then ask.
Choose a plan and connect your channels in Settings → Channels first. Your agent connects in one of two ways.
Apps with MCP sign-in
In Claude, open Customize → Connectors → Add custom connector and paste the URL. Leave the client ID and secret empty, then choose Allow in aghost.
https://aghost.app/api/mcpClaude Code, Codex, Cursor and others
Create a key in Settings → API and keep it in your agent’s environment or secret store. The setup skill has each client’s steps.
{
"mcpServers": {
"aghost": {
"type": "http",
"url": "https://aghost.app/api/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}Ask your agent about Instagram
Supply your own media and links, then review the result in aghost. Scheduled posts publish at their time.
Schedule a reel with its DM
“Schedule my reel for Friday at 6 PM and DM my guide to anyone who comments GUIDE. Show me the caption, time and DM first.”
Test a reel on new viewers
“Post this video as a Trial Reel tomorrow at 9 AM and let Instagram share it with my followers if it does well with non-followers.”
Find what worked
“Which of my posts from the last 30 days got the most saves and shares? Suggest two times to post next week.”
MCP tools it uses
schedule_postcreate_automationupdate_automationset_automation_statusget_automation_statslist_automation_activitylist_conversationssend_messagelist_contactslist_accountscross_postlist_scheduled_postsupdate_scheduled_postdelete_scheduled_postcreate_media_uploadcreate_upload_linkget_account_insightslist_content_insightsget_posting_times
The same workspace API key works with the REST API:
https://aghost.app/api/v1Keep the keys
Agents cannot create API keys, change workspace settings, or connect or disconnect accounts. Revoke a key or an app in Settings → API whenever you’re finished.
What your agent can accessFrequently asked questions
Can my agent DM anyone on Instagram?
No. Instagram allows one private reply to each comment within seven days, and more messages only after the person responds. Automations and inbox replies follow those rules.
Can it schedule Stories and carousels?
Yes. A story holds one photo or video and has no caption or comments. A carousel holds up to 10 photos and videos; the first is its cover.
Does aghost need my Instagram password?
No. Accounts connect through Instagram's own authorization flow, and you can disconnect them in Settings.
Which AI agents can use it?
Claude, Claude Code, Codex, Cursor, or any MCP client over HTTP. Apps with MCP sign-in need only the URL; other clients send a workspace API key.
How much does it cost?
MCP access is included on every aghost plan, from $29/month, with a 7-day free trial.
Your audience is everywhere. Be there with one post.
Six platforms. Every comment answered. One workspace.