Ocoya
← All articles

How to post to social media from Cursor and Claude Code

Ocoya TeamNovember 30, 20262 min readAI agents

To post to social media from Cursor or Claude Code, add Ocoya's remote MCP server (https://mcp.ocoya.com) with one command or one JSON block, sign in, and ask the agent to draft and schedule posts. It works with OAuth in the browser or with an Ocoya API key for headless runs, and reaches 20+ social networks plus blogs and email.

This is the developer's version: launch posts from the repo you just shipped, changelog threads, release notes to LinkedIn and X.

Claude Code

Add the server:

claude mcp add --transport http ocoya https://mcp.ocoya.com

Then run /mcp inside Claude Code, pick ocoya and sign in to approve access and pick your brands.

For CI, scripts or a machine without a browser, use an API key from Ocoya (Settings → API) instead:

claude mcp add --transport http ocoya https://mcp.ocoya.com \
  --header "Authorization: Bearer $OCOYA_API_KEY"

The key reaches every brand you own or administer, with the same tools OAuth gives. X-API-Key: <key> works too.

Cursor

Click Add to Cursor on ocoya.com/agents, or add this to ~/.cursor/mcp.json (or .cursor/mcp.json in a project):

{
  "mcpServers": {
    "ocoya": {
      "url": "https://mcp.ocoya.com"
    }
  }
}

Cursor shows Ocoya under Settings → MCP; click to sign in. With an API key instead:

{
  "mcpServers": {
    "ocoya": {
      "url": "https://mcp.ocoya.com",
      "headers": { "Authorization": "Bearer your-api-key" }
    }
  }
}

VS Code, Codex and other clients

VS Code (.vscode/mcp.json):

{ "servers": { "ocoya": { "type": "http", "url": "https://mcp.ocoya.com" } } }

Clients that only run local stdio servers can use the open-source npm package: npx -y @ocoya-com/mcp with OCOYA_API_KEY set.

Example: announce a release from the repo

Read CHANGELOG.md for v2.4. Write a LinkedIn post and a 3-post X thread
announcing it for my "Acme" brand in Ocoya. Keep them as drafts and show me.
Then schedule LinkedIn for tomorrow 09:00 and the thread for 15:00, Berlin time.

What the agent does:

  1. Reads the changelog from your repo.
  2. ocoya_list_brands and ocoya_list_channels find Acme's LinkedIn and X.
  3. ocoya_create_post saves the drafts and prints them.
  4. After your go-ahead, ocoya_schedule_post schedules each one.

Images: the agent can pass public image URLs (for example from your docs site) as mediaUrls, or render a post image from one of your Ocoya Studio designs with ocoya_render_studio_design.

Example: blog post plus social posts in one go

Turn docs/launch.md into a blog article for our WordPress site and three
social posts that link to it. Drafts only.

The agent uses ocoya_create_seo_post for the article (Markdown body, SEO title, meta description) and ocoya_create_post for the posts. See Write and publish SEO articles from your AI agent.

Useful tools for developers

ToolWhat it does
ocoya_get_meWho you are and which brands the token reaches; call it first
ocoya_create_postDraft or scheduled post from your own text and media URLs
ocoya_create_ai_postPost written by Ocoya's AI in the brand voice (uses credits)
ocoya_schedule_postSchedule or reschedule
ocoya_list_calendar_postsWhat is already planned
ocoya_request_post_approvalAsk a teammate to approve before it goes out

All 66 tools: docs.ocoya.com/mcp/tools.

FAQ

Can Claude Code post to social media?

Yes. Add Ocoya with claude mcp add --transport http ocoya https://mcp.ocoya.com, sign in with /mcp, and ask Claude Code to draft and schedule posts to your connected accounts.

Is there a social media MCP server for Cursor?

Yes. Ocoya's remote server works in Cursor with the JSON config above or the Add to Cursor button, with OAuth or an API key.

Can I use an API key instead of OAuth?

Yes. Send an Ocoya API key as Authorization: Bearer <key> or X-API-Key: <key>. Use it for CI, scripts and agents without a browser.

Does the agent publish straight away?

Only if you ask it to. Posts are drafts unless the agent schedules or publishes them.

Which networks are supported?

Facebook, Instagram, X, LinkedIn, TikTok, YouTube Shorts, Pinterest, Threads, Bluesky, Mastodon, Google Business, Telegram, Discord, Slack and more, plus WordPress, Wix, Framer, Notion and DEV.

All install options · Start free

Keep reading