CursorYouTube

Upload YouTube Shorts from Cursor

Upload a hosted vertical demo as an unlisted YouTube Short. Have Cursor confirm the upload through PubNio and return a link for review.

Connect Cursor

Project file. Merge the pubnio entry into mcpServers; Cursor's global MCP config takes the same entry for every project.

Add PubNio to .cursor/mcp.json

{
  "mcpServers": {
    "pubnio": {
      "url": "https://pubnio.com/mcp"
    }
  }
}
.cursor/mcp.json

Sign in

  1. Open Cursor's MCP settings.
  2. Click Connect on pubnio. Your browser opens PubNio sign-in; approve the workspace.
  3. Run the prompt from Cursor's Agent.

Connect your YouTube account

Open PubNio, choose your workspace, and go to Accounts. Use the same workspace when you sign in from Cursor.

  • Connect the YouTube channel in PubNio using Google OAuth and grant upload access.
  • Choose the exact channel if several channels are available in the workspace.
  • Export a square or vertical clip up to three minutes for Shorts classification.
  • The clip at an HTTPS URL. A public or signed HTTPS link PubNio can fetch. A file of up to 8 MiB can go inline as base64 instead.

Check the destination

Read-only destination check
List the YouTube channels in my PubNio workspace and show which are ready for uploads. Do not upload, schedule, or publish anything.

Upload an unlisted Short for team review

Paste the prompt into Cursor. It runs the job through PubNio's search and execute tools, as in the Code Mode flow below. Contract example: sample IDs and URLs. The request and both responses decode against PubNio's API schemas; no provider confirmed this post.

Find my ready YouTube channel in PubNio and ask which one to use if there are several. Import the clip at https://cdn.example.com/release-short.mp4 for an unlisted upload. Draft a short title and description from CHANGELOG.md. Show me the file, channel, title, description, and unlisted privacy setting before submitting. After I approve, wait for the clip to be ready and upload it once. Check the delivery and return the YouTube watch link, or the PubNio post ID and status if the upload is still pending.
Upload an unlisted Short for team review

Check delivery and get the link

If delivery is still pending, keep the PubNio post ID and check the same post. A published delivery with a provider reference confirms the result.

  1. Save the PubNio post ID after the upload is accepted.
  2. Check the delivery on that post while the upload is queued, submitting, or confirming.
  3. When the delivery is published, return the YouTube watch URL and keep the video unlisted for review.
  4. Check in YouTube Studio that the upload is unlisted and classified as a Short before sharing the link.

From approval to delivery

Illustrative conversation and result with sample data.

  1. Cursor

    I’ll upload release-short.mp4 to the Example Studio channel as unlisted. The title is “Delivery status in 45 seconds.” The description is “A quick tour of the new delivery status view.”

  2. You

    Approved. Keep it unlisted so the team can review it.

  3. Cursor

    The clip finished importing. I submitted one upload and checked the existing post until YouTube confirmed delivery. Here’s the watch link. Check its visibility and Shorts classification in YouTube Studio before sharing it.

Example delivery result

Status
published
Destination
Example Studio · Unlisted requested
Sample URL
https://www.youtube.com/watch?v=EXAMPLE0000

YouTube rules Cursor runs into

Account kinds: social channel. Connection scopes: https://www.googleapis.com/auth/youtube.upload.

YouTube placements from the capability catalog
PlacementMedia typesMax per targetCaption limit
video (default)video15,000
  • The video placement takes one video.
  • Export a square or vertical clip of up to three minutes for Shorts classification. YouTube decides whether the upload is a Short.
  • Keep the description within 5,000 characters, and set privacy to public, unlisted, or private.
  • Use unlisted for link-based review. Anyone with the link can view an unlisted video.

Failures and recovery

Match the error before asking Cursor to retry.

YouTube publishing failures and safe retry behavior
CodeCauseFixRetry
account_not_readyThe connected account's OAuth token is expired, revoked, or disconnected.Reconnect the account in the PubNio workspace, then re-validate.After reconnect
media_requiredPlacement (such as Instagram Feed/Reel, Pinterest Pin, TikTok, or YouTube) requires media.Import or upload media and attach its mediaId to the target.No
media_typeMedia kind (image, video, document) does not match the placement.Supply a matching media type for the selected placement.No
media_not_readyMedia import or verification is still in progress.Poll media.status until it reports ready, then re-validate.Yes

Cursor setup problems

pubnio shows as disconnected in Cursor's MCP settings.
Click Connect again and finish the browser sign-in.
Cursor does not list the pubnio server.
Check that the entry sits under mcpServers in .cursor/mcp.json and that the JSON is valid.
Writes fail with 403 read_only_mode.
PubNio returns 403 read_only_mode when the server URL ends in ?readOnly=1. Point the entry at https://pubnio.com/mcp to allow writes.

Cursor quirks

  • Sign-in starts from Cursor's MCP settings screen, not from a terminal command.
  • The entry needs only url, so the file is safe to commit; each teammate connects from their own settings.

What it won't do

  • Decide whether an upload becomes a Short. YouTube classifies it after upload.
  • Upload an image or text post to YouTube. The video placement takes one video.
  • Raise YouTube's daily API quota or a channel's upload limit.
  • Connect accounts, create API keys, or manage webhooks from an MCP session that uses an API key. Those operations need a person signed in, so connect the MCP server with browser OAuth or use the PubNio web app.
  • Stream binary uploads through execute. Import media from an HTTPS URL, or send a file of up to 8 MiB inline as base64.
  • Run one execute call past 30 seconds or past its request limit. The script returns the post ID so the next call can check it.

Frequently asked questions

Is there a separate Shorts upload operation?

Use the video placement. YouTube classifies eligible square and vertical videos as Shorts after upload.

Can Cursor upload an unlisted Short?

Set the YouTube target privacy to unlisted and confirm the resulting visibility in YouTube Studio.

Does a PubNio 202 response mean the Short is ready?

A 202 means PubNio accepted the upload. Read the existing post to check whether YouTube confirmed delivery.

Which link should I share for review?

Use the watch URL from the confirmed YouTube delivery after checking the video's privacy in YouTube Studio.

Is it safe to commit .cursor/mcp.json?

Yes. It contains only https://pubnio.com/mcp. Authentication happens per person through browser OAuth.

Where do I sign Cursor in to PubNio?

In Cursor's MCP settings. Click Connect on pubnio and approve the workspace in your browser.

Also works with

Get started with PubNio

Connect unlimited accounts at $0 per account. Pay as you go includes 50 free confirmed publishes a month on your first workspace, then $20 per 1,000. X API fees are separate.

REST API reference

Contract example: sample IDs and URLs. The request and both responses decode against PubNio's API schemas; no provider confirmed this post. A 202 response includes the post ID and initial delivery status. Use the settled status to confirm publishing.

POST /api/v1/posts?workspaceId=00000000-0000-4000-8000-000000000006
Authorization: Bearer pn_live_***
Idempotency-Key: cursor-youtube-release-short-2026-12-04
Content-Type: application/json

{
  "text": "A quick tour of the new delivery status view.",
  "publishNow": true,
  "targets": [
    {
      "accountId": "00000000-0000-4000-8000-000000000001",
      "provider": "youtube",
      "placement": "video",
      "settings": {
        "title": "Delivery status in 45 seconds",
        "description": "A quick tour of the new delivery status view.",
        "privacyStatus": "unlisted"
      },
      "media": [
        {
          "mediaId": "00000000-0000-4000-8000-000000000005"
        }
      ]
    }
  ]
}
create-post.http