Instagram MCP server and posting API for AI agents
Why not call the Instagram API directly?
Doing it yourself with the Instagram API
- Create a Meta developer app and pass App Review for the content publishing permission before it can post for anyone but you.
- Work only with Business or Creator accounts, and run the OAuth flow and token refresh yourself.
- Publish in two steps: create a media container from a public URL, wait for it to finish processing, then publish it. Carousels need one container per item.
With SleekPost
- Connect an Instagram Business or Creator account in the dashboard once. No developer app, review or token handling on your side.
- Give your agent an API key. Revoke it anytime.
- One create_post call publishes, schedules or drafts, on Instagram and any other network.
- Instagram's limits are checked before anything goes live, and errors say exactly what to fix.
Set up in a few minutes
1. Connect Instagram
Instagram's API only publishes for Business and Creator accounts, and switching to one is free in the Instagram app.
Connect accounts →claude mcp add --transport http sleekpost https://sleekpost.com/mcp --header "Authorization: Bearer YOUR_SLEEKPOST_API_KEY"Example: post to Instagram
You ask your agent
“Post these three product photos to Instagram as a carousel tomorrow at 9am New York time.”
The agent calls list_accounts to find the account id, then makes one create_post call.
{
"tool": "create_post",
"arguments": {
"text": "Three ways to style the new linen shirt ☀️ Which one is your favorite?",
"account_ids": [
"ACCOUNT_ID"
],
"media_urls": [
"https://example.com/look-1.jpg",
"https://example.com/look-2.jpg",
"https://example.com/look-3.jpg"
],
"scheduled_at": "2026-12-02T14:00:00Z"
}
}Instagram rules your agent doesn't have to memorize
| Text limit | 2,200 characters (caption) |
|---|---|
| Media | Required (image or video) |
| Images per post | Up to 10 |
| Video | Up to 10 per post |
| Connect with | An Instagram Business or Creator account |
If your agent sends a text-only post to Instagram, nothing is published and the API explains what to change:
{
"error": {
"code": "invalid_request",
"message": "The post can't be published as-is: Instagram needs at least one image or video. Add media_urls or media_ids.",
"hint": "Fix the listed problems and send the request again. text_overrides lets you give individual accounts their own text.",
"details": {
"problems": [
{
"account_id": "ACCOUNT_ID",
"platform": "instagram",
"message": "Instagram needs at least one image or video. Add media_urls or media_ids."
}
]
}
}
}MCP tools
list_accountsList connected social accounts and their ids.
create_postPublish now, schedule, or draft a post to one or more accounts, with optional images/videos.
upload_mediaImport an image or video from a public URL and get a media id.
list_postsList scheduled, published, failed or draft posts.
get_postGet a post's per-account status, errors and live URLs.
delete_postDelete a draft or cancel a scheduled post.
Machine-readable docs: /llms.txt · /llms-full.txt · OpenAPI · MCP endpoint https://sleekpost.com/mcp
Other networks, same MCP server
Frequently asked questions
Do I need my own Instagram developer app?
No. You connect an Instagram Business or Creator account in the SleekPost dashboard once, and your agent only needs a SleekPost API key. It never sees your Instagram login or tokens.
Which AI tools can use the MCP server?
Claude Code, Cursor, VS Code, Codex, Gemini CLI and Claude Desktop, and any other client that supports remote MCP servers over HTTP. Anything that can send HTTP requests can use the REST API instead.
Can my agent schedule Instagram posts for later?
Yes. Pass scheduled_at as an ISO 8601 time to schedule, publish_now: true to post immediately, or draft: true to save a draft for a person to review.
How does the agent attach images or video?
Pass public URLs in media_urls. SleekPost downloads, converts and hosts the files, then publishes them with the post.
What does API and MCP access cost?
API and MCP access are included in every plan. Plans start at $9/month ($5.40/month billed yearly) with unlimited posts and a 7-day free trial.
Give your agent Instagram.
API and MCP access are included in every plan. Plans start at $9/month ($5.40/month billed yearly) with unlimited posts and a 7-day free trial.