Connect PrimaryAPI’s MCP server and your agent can search YouTube, read channels, videos and comments, and pull transcripts, all with one key.
Server URL
claude mcp add --transport http primaryapi \
https://api.primaryapi.com/mcp \
--header "Authorization: Bearer $PRIMARYAPI_API_KEY"Run it in a terminal. Your shell fills in the key from the environment.
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 with your key. You set the key’s spend limit, 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. No key needed.
{
"name": "list_apis",
"arguments": {
"platform": "youtube"
}
}
// Run one with your key.
{
"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 key, 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 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.
Create an account, make a key with a spend limit, and add one URL to your MCP client.