Skip to content

Claude Code + Optimizly

From a folder of images to a month of scheduled posts.

Connect Claude Code — or Claude Desktop, Cursor, Gemini CLI or ChatGPT — to Optimizly over MCP. Your agent uploads the files on your disk to the media library and puts the posts on your Publisher calendar.

  • One command to connect
  • Local files straight into the media library
  • Posts land on the calendar for you to review

No card needed.

Product illustration with sample data.

Connect

One command for Claude Code

Optimizly runs an MCP server at https://api.optimizly.io/mcp over Streamable HTTP. In Claude Code you add it with an API key from MCP & agents in the dashboard. Claude Desktop and ChatGPT connect with OAuth instead: you sign in and approve on an Optimizly screen.

  • Works with Claude Code, Claude Desktop, Cursor, Gemini CLI and ChatGPT
  • API key or OAuth sign-in
  • No password ever goes to the agent
Product illustration with sample data.

Control

Write access is a box you tick

By default an agent can only read, with around 80 tools. To let it create, edit and schedule, tick “Also create, edit and schedule content, campaigns and bookings” on the approval screen — or give its API key the growth:write scope. Then it gets around 150 tools.

  • Read-only unless you opt in
  • Scheduling and publishing need an explicit confirm
  • Start with drafts while you build trust
Product illustration with sample data.

Upload

Your local files, straight into the media library

The media_upload_link tool returns a signed upload link that is valid for one hour. The agent posts your files to it with curl — up to 100 files per request and 25 MB per file — into the folder you name. Files that are already there come back as the existing asset instead of a duplicate.

  • PNG, JPEG, GIF, WebP, AVIF, MP4, WebM and MOV
  • Optional folder per upload
  • Public links via media_import_url, up to 50 per call
Product illustration with sample data.

Schedule

A month of posts in two tool calls

publisher_bulk_schedule takes up to 25 posts per call, each with a time in ISO format and a time zone. A post can carry up to 10 media items, and a carousel keeps the order you give it. For single posts there is publisher_create_post, which saves a draft, schedules, or publishes now.

  • Instagram, Facebook, LinkedIn, TikTok, YouTube, Pinterest, X, Threads and Bluesky
  • List, update and delete posts from the agent too
  • Up to 10 media per post
Product illustration with sample data.

Review

Everything lands on your calendar

Whatever the agent schedules shows up in the Publisher like any other post. Open it to check the caption and media, or drag it to another day.

Product illustration with sample data.

How it works

Set it up once, then just ask.

  1. Connect your channels

    Link Instagram, Facebook, LinkedIn or any of the other networks once, at Connections in the dashboard.

  2. Create an API key

    In MCP & agents. Tick write access (the growth:write scope) if the agent should schedule.

  3. Add the server

    claude mcp add --transport http optimizly https://api.optimizly.io/mcp --header "x-api-key: YOUR_API_KEY"

  4. Ask your agent

    “Upload docs/social to a new folder and schedule a post every day at 18:30.”

FAQ

Questions about posting from an AI agent

Will the agent post without me?

Only if you give it write access. Without it the agent can read but not create anything. With it, scheduling or publishing still needs confirm: true in the tool call. A good start is to ask for drafts and schedule them yourself in the Publisher.

Where do my files go?

Into your workspace's media library, in the folder the agent names. From there you can use them in any post, just like files you upload yourself.

Which agents can I use?

Any MCP client that speaks Streamable HTTP. We describe Claude Code, Claude Desktop, Cursor, Gemini CLI and ChatGPT. Claude Code uses an API key; Claude Desktop and ChatGPT can sign in with OAuth.

Is my API key safe?

Keep it in your agent's own configuration, never in a repository or a shared file. If a key leaks, revoke it in MCP & agents and create a new one; a revoked key stops working straight away.

Which networks can it schedule to?

Instagram, Facebook, LinkedIn, TikTok, YouTube, Pinterest, X, Threads and Bluesky — whichever you have connected at Connections in the dashboard.

Hand your agent the folder. Keep the calendar.

Every plan starts with a 14-day trial of the whole platform — no card needed.