Vidiyo

Integrations

MCP Server

The Vidiyo MCP server exposes your account as Model Context Protocol tools. Connect Cursor, Claude Desktop, or any MCP-compatible agent — then upload videos, manage your schedule, and query analytics using natural language or tool calls.

Connect your MCP client

Cursor IDE

Add this to .cursor/mcp.json in your project root, then restart Cursor:

{
  "mcpServers": {
    "vidiyo": {
      "command": "npx",
      "args": ["mcp-remote", "https://vidiyo-mcp-server.workers.dev/mcp"]
    }
  }
}

Claude Desktop

Add to claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/):

{
  "mcpServers": {
    "vidiyo": {
      "command": "npx",
      "args": ["mcp-remote", "https://vidiyo-mcp-server.workers.dev/mcp"]
    }
  }
}

Restart Claude Desktop, then verify: "Use the ping tool to check the Vidiyo MCP server."

MCP Inspector (debugging)

npx @modelcontextprotocol/inspector@latest # Enter: https://vidiyo-mcp-server.workers.dev/mcp

Authentication

Method 1 — API Key (recommended for agents)

For autonomous agents, CI pipelines, and any workflow that runs without a browser.
Generate a key in Studio → Account → API Keys, then call set_api_key.
set_api_key(api_key: "vk_live_...")

The key is stored in the Durable Object session and sent on every API call. It is not echoed back or logged. The tool verifies the key against the API before storing it and will reject invalid or revoked keys immediately.

Method 2 — Google OAuth (for interactive users)

  1. Call authenticate — returns a URL
  2. Visit the URL in your browser and sign in with Google
  3. Return to your MCP client — the session is linked
  4. JWTs refresh automatically; sessions persist for the Durable Object's lifetime

Tools

Core (4 tools)

ToolAuthDescription
pingNoneHealth check. Returns server status and auth method.
authenticateNoneStart Google OAuth. Returns a URL for the user to visit.
set_api_keyNoneAuthenticate with a creator API key. For agents without a browser.
whoamiYesCurrent user's profile and active auth method.

Browse (10 tools — no auth)

ToolAuthDescription
list_channelsNonePaginated channel list, sorted by viewers.
get_channelNoneChannel detail by slug.
get_channel_scheduleNoneSchedule blocks for a channel on a date.
get_now_playingNoneCurrent content + next upcoming on a channel.
searchNoneSearch channels and content.
get_trendingNoneTrending search terms.
get_home_feedNoneFeatured, live, and popular channels.
get_contentNonePublic content item by UUID.
list_categoriesNoneAll categories with channel counts.
get_categoryNoneCategory detail with paginated channels.

Content library (1 tool)

ToolAuthDescription
list_my_contentcontent:readList your content library. Filter by status: 'ready' to find schedulable videos.

Schedule management (5 tools)

ToolAuthDescription
get_scheduleschedule:readSchedule blocks + gaps for a channel + date window.
create_schedule_blockschedule:writePlace a ready content item at a specific time. Returns 409 on overlap.
update_schedule_blockschedule:writeMove, resize, or swap content of an existing block.
delete_schedule_blockschedule:writeRemove a block. Content item is not deleted.
fill_schedule_gapsschedule:writeTrigger async auto-fill to cover gaps with library content.

Uploads (2 tools)

ToolAuthDescription
init_direct_uploadcontent:writeStart a direct-to-R2 upload. Returns a presigned URL + contentItemId.
complete_direct_uploadcontent:writeFinalize after the PUT succeeds. Triggers transcoding.

Channel management (5 tools)

ToolAuthDescription
create_channelchannel:writeCreate a new channel.
update_channelchannel:writeUpdate name, description, kind, category.
publish_channelchannel:writePublish a draft channel.
unpublish_channelchannel:writeTake a channel offline.
get_my_profileYesAuthenticated user's profile.

Analytics (4 tools)

ToolAuthDescription
get_analytics_overviewanalytics:readKPIs: views, watch time, revenue, trends.
get_content_performanceanalytics:readPer-content metrics with pagination.
get_viewer_demographicsanalytics:readAge, geography, devices, traffic sources.
get_realtime_viewersanalytics:readLive viewer count and per-minute activity.

Favorites (3 tools)

ToolAuthDescription
list_my_favoritesYesUser's favorited channels.
add_favoriteYesFavorite a channel by slug.
remove_favoriteYesUnfavorite a channel.

Autonomous agent workflow

The complete flow for an AI agent that generates videos throughout the day and schedules them automatically:

# 1. Authenticate with API key (no browser needed)
set_api_key(api_key: "vk_live_...")

# 2. Upload a generated video
init_direct_upload(
  filename: "daily-briefing.mp4",
  title: "Daily Briefing — May 3",
  size_bytes: 52428800,
  content_type: "video/mp4",
  channel_id: "01936f4e-..."
)
# → { contentItemId, uploadUrl }
# Agent PUTs the file bytes to uploadUrl via HTTP

complete_direct_upload(content_item_id: "01936f4e-...")

# 3. Wait for transcoding (poll until status === "ready")
get_content(id: "01936f4e-...")   # repeat every 30s

# 4. Find an open slot
get_schedule(
  channel_id: "01936f4e-...",
  from: "2026-05-03T00:00:00Z",
  to: "2026-05-04T00:00:00Z"
)
# → inspect gaps[] to find open windows

# 5. Schedule the content
create_schedule_block(
  channel_id: "01936f4e-...",
  content_item_id: "01936f4e-...",
  starts_at: "2026-05-03T14:00:00Z"
)

Error handling

StatusMCP response
401Authentication required. Call authenticate or set_api_key.
403 (scope)API key is missing required scope(s): schedule:write
403 (ownership)You don't own this channel.
404The requested resource was not found.
409That time slot already has a block. Move or shorten it first.
429Rate limit exceeded. Please wait before retrying.
503The Vidiyo API is currently unavailable. Please try again later.

MCP endpoints

EnvironmentURL
Productionhttps://vidiyo-mcp-server.workers.dev/mcp
Staginghttps://vidiyo-mcp-server-staging.workers.dev/mcp
Local devhttp://localhost:8787/mcp

Transport: Streamable HTTP (SSE fallback supported). Standard MCP protocol — no vendor extensions.