Skip to content

Docs

MCP server

The same API, native to AI agents. The MCP server runs at https://ytapi.dev/api/mcp and authenticates with your regular ytapi API key. Tool calls are billed exactly like REST calls (1 credit on success, failures free).

Tools

  • get_transcript — full timestamped transcript (1 credit)
  • get_video_metadata — title, channel, views, duration (1 credit)
  • search_youtube — videos or channels (1 credit/page)
  • list_latest_videos — channel's recent uploads (free)

Claude Code

shell
claude mcp add ytapi \
  --transport http \
  --header "Authorization: Bearer yta_YOUR_KEY" \
  https://ytapi.dev/api/mcp

Then just ask: “Get the transcript of https://youtu.be/… and summarize it.”

Cursor

~/.cursor/mcp.json
{
  "mcpServers": {
    "ytapi": {
      "url": "https://ytapi.dev/api/mcp",
      "headers": {
        "Authorization": "Bearer yta_YOUR_KEY"
      }
    }
  }
}

Any MCP client

The server speaks streamable HTTP JSON-RPC (protocol 2025-06-18). POST initialize, then tools/list / tools/call with your key in the Authorization header.