Connect PrimaryAPI’s MCP server and your agent can search YouTube, read channels, videos and comments, and pull transcripts, all with one account.
Add the URL and sign in, with no key to copy. An API key works too. You only pay when data comes back.
Server URL
claude mcp add --transport http primaryapi \
https://api.primaryapi.com/mcpRun it in a terminal, then type /mcp in Claude Code to sign in.
Ask your agent
Get the transcript of this YouTube video and write a summary with timestamps: <video URL>
Search YouTube for running shoe reviews uploaded this month and compare what the reviewers liked.
List the newest videos from @ThePatMcAfeeShow with their views and lengths.
Read the comments on this video and list the feature requests people mention: <video URL>
YouTube APIs
Your agent runs each one with run_api and its name. Prices are in credits, from 1 credit per call, and a call that fails costs nothing.
YouTube is a trademark of its owner. PrimaryAPI is not affiliated with Google.
How it works
Connected to the server, the agent lists the YouTube APIs or searches for what it needs, reads the chosen API’s input schema, and runs it on your workspace’s credits. You set the spend limit when you approve its sign-in, or on its key, so it can only spend what you allow.
What an MCP server is, and every tool it has · YouTube in the API reference
// Find every YouTube API. Free.
{
"name": "list_apis",
"arguments": {
"platform": "youtube"
}
}
// Run one. This spends credits.
{
"name": "run_api",
"arguments": {
"sku": "youtube.video_transcript",
"input": {
"url": "https://www.youtube.com/watch?v=bjVIDXPP7Uk"
}
}
}Yes. It returns a video’s existing captions as plain text and timed segments, for long videos and Shorts alike. A video without captions comes back as a free miss.
Yes. It can search Shorts by keyword or hashtag and list the Shorts a channel has posted.
No. The agent uses your PrimaryAPI account, so there is no Google Cloud project, quota request or YouTube key to set up.
No. PrimaryAPI runs this MCP server and is not affiliated with Google. It gives your agent public YouTube data through PrimaryAPI’s APIs, next to every other platform in the catalog.
No. Your agent signs in to PrimaryAPI once, or uses one PrimaryAPI key, for every YouTube API on this page and for the rest of the catalog. There is no YouTube app to register.
Connecting and browsing are free. Each YouTube API above has its own price in credits, and you only pay when data comes back.
Add one URL to your MCP client and sign in. Prefer a key? Make one with a spend limit in the dashboard.