Draft and schedule social posts from Cursor or Claude Desktop with an MCP server

2026-11-27来源 dev.to AIEnglish

Disclosure: I'm the developer of Auto Poster AI, so this post covers my own tool.

Ever wanted to write the release note, rework it for LinkedIn and X, and pick a posting time without leaving your editor? That is the workflow this post covers, using the Model Context Protocol (MCP) to draft, schedule and check social posts from Cursor or Claude Desktop.

What MCP is

MCP is an open standard that lets AI applications discover and call external tools. It has three parts:

  • MCP client: the AI-side runtime (Claude Desktop, Cursor, your own agent)
  • MCP server: the side that exposes tools
  • Tools and prompts: the capabilities the server defines

Transport is JSON-RPC 2.0 over stdio or Streamable HTTP.

What the Auto Poster AI MCP server exposes

Auto Poster AI runs an MCP gateway at agent.autoposter.ai, reachable over Streamable HTTP or stdio. It covers nine networks: LinkedIn, X, Instagram, TikTok, YouTube, Threads, Bluesky, Pinterest and Facebook.

Tool What it does
autoposter_list_accounts List connected accounts and IDs (read-only)
autoposter_get_rules Per-network character and media limits (read-only)
autoposter_draft_post Create a draft for review
autoposter_schedule_post Schedule a post for a date and time
autoposter_publish_draft Publish an approved draft right away
autoposter_get_post_status Delivery status and public URL (read-only)

Setup

  1. Create an API key in the dashboard under Settings, then AI Agents & MCP.
  2. Install with the CLI:
npx -y @autoposter/mcp install cursor --key YOUR_API_KEY npx -y @autoposter/mcp install claude --key YOUR_API_KEY npx -y @autoposter/mcp install vscode --key YOUR_API_KEY 
  1. Or configure it by hand in .cursor/mcp.json or claude_desktop_config.json:
{ "mcpServers": { "autoposter": { "command": "npx", "args": ["-y", "@autoposter/mcp"], "env": { "AUTOPOSTER_API_KEY": "ap_live_your_api_key_here" } } } } 
  1. Restart the client and confirm the autoposter tools are enabled.

Example workflows

Announce a change from your git diff (Cursor). Have the agent read the diff, write a LinkedIn post and a two-tweet thread for X, then say "schedule it for 9am tomorrow".

Turn a README into a draft (Claude Desktop). Ask it to save the post as a draft so you can review it before anything goes live.

Check the rules first. Ask the agent to call autoposter_get_rules so it knows image aspect ratios and length limits before it writes.

Safety notes

  • Scoped API keys mean you never hand your passwords to an agent.
  • Drafts can wait for approval in the dashboard before anything is published.
  • Read-only tools are annotated as such, and autoposter_publish_draft is the only call that publishes immediately.

One caveat: the official guide does not document token scope details, key rotation, rate limits or data retention. Check the MCP setup docs before giving an agent autonomous publishing rights.

Wrap-up

With MCP you can go from writing to rules check, draft, schedule and status check without leaving the editor. Starting with draft-only access is the safest way to begin.

原文:https://www.a8q9.cn/en/article/draft-and-schedule-social-posts-from-cursor-or-claude-desktop-with-an-mcp-server-21e032.html

相关文章