use postai from
any ai agent.
PostAI exposes a full Model Context Protocol server. connect it to Claude Desktop, Cursor, or any MCP-compatible client and schedule posts, generate content, and query analytics — all through natural language.
available on Pro Plus plan ($99/mo) and above · free for self-hosted
connect to your ai client
works with any MCP-compatible agent — three quick-start configs below
Claude Desktop
The most powerful setup. Claude reads your calendar, drafts posts, and schedules them using natural language — all inside Claude Desktop.
{
"mcpServers": {
"postai": {
"command": "npx",
"args": ["@postai/mcp"],
"env": {
"POSTAI_API_KEY": "your-api-key"
}
}
}
}Cursor
Schedule posts and query analytics right from your editor. Great for developers who want to automate content alongside code shipping.
{
"mcpServers": {
"postai": {
"command": "npx @postai/mcp",
"env": {
"POSTAI_API_KEY": "your-api-key"
}
}
}
}Custom Agent
Building your own AI agent? PostAI's MCP server runs over stdio — any MCP-compatible client that can launch a local process works out of the box. A remote HTTP transport is in progress.
# SSE transport for web-based clients
npx -y @postai/mcp
Authorization: Bearer <your-api-key>
Content-Type: text/event-streamavailable MCP tools
13 tools covering scheduling, media, analytics, and content generation
schedule_postSchedule a post to connected platforms at a specific time
create_draftSave a draft post for review before scheduling
list_postsList posts filtered by status, platform, or count
list_queueView upcoming scheduled posts across every connected platform
get_post_statusCheck the publishing status of a post, per platform
get_analyticsQuery X or LinkedIn analytics — impressions, engagement, follower growth
search_viral_postsKeyword search over PostAI's viral post corpus, ranked by engagement
generate_contentRun the AI Content Agent on a URL, text, or topic to produce posts
get_agent_run_statusCheck on a content-agent run and collect its output
list_accountsList connected social accounts and their status
get_next_slotFind the next free posting slot from your configured queue
add_media_from_urlImport an image or video from a URL into your media library
generate_imageGenerate an image from a text prompt (5 AI credits)
api key setup
POSTAI_API_KEY=postai_sk_live_xxxxxxxxxxxxxxxxxxxxsee it in action
a demo conversation — Claude Desktop scheduling a post via PostAI MCP
Schedule a LinkedIn post about our new product feature launching tomorrow. Make it professional but exciting, around 200 words.
I'll generate that LinkedIn post and schedule it for tomorrow morning at optimal time.
// generate_content
{
"platform": "linkedin",
"topic": "new product feature launch",
"tone": "professional, exciting",
"length": "~200 words"
}Got it. Generated a 194-word post. Scheduling for tomorrow at 8:00 AM based on your account's best engagement window.
// schedule_post
{
"platform": "linkedin",
"publish_at": "2025-05-01T08:00:00Z",
"status": "scheduled",
"post_id": "post_a4k2m9"
}Done. Your LinkedIn post is scheduled for tomorrow at 8:00 AM ET. I can preview it or make edits if you'd like.
let your ai assistant post for you.
set up in 2 minutes. schedule your first post from Claude Desktop.
get your API key →available on Pro Plus ($99/mo) · self-hostable · free trial