MCP tools
YouTube transcripts in Agno
Agno's MCPTools connects an agent to any MCP server. Point it at the GetYouTubeTranscript server and the agent gets tools for transcripts in any caption language a video has (optionally timestamped or translated), YouTube search, and channel, playlist and video data. The example below is also in Agno's official cookbook.
Set it up
- 1
Install Agno
With the MCP extra and your model provider:
uv pip install "agno[mcp,openai]" - 2
Get an API key
Sign in at getyoutubetranscript.com and create a key on the developers page (100 free credits to start). Keys start with sk_live_. Set it as an environment variable:
export GETYOUTUBETRANSCRIPT_API_KEY=sk_live_...
A YouTube research agent
import asyncio
from os import getenv
from agno.agent import Agent
from agno.models.openai import OpenAIResponses
from agno.tools.mcp import MCPTools
async def main():
async with MCPTools(
url="https://getyoutubetranscript.com/api/mcp",
transport="streamable-http",
headers={"Authorization": f"Bearer {getenv('GETYOUTUBETRANSCRIPT_API_KEY')}"},
) as youtube_tools:
agent = Agent(
model=OpenAIResponses(id="gpt-5.6-luna"),
tools=[youtube_tools],
instructions="Fetch a transcript before summarizing a video. Quote with timestamps.",
markdown=True,
)
await agent.aprint_response(
"Summarize https://www.youtube.com/watch?v=jNQXAC9IVRw and quote it with a timestamp.",
stream=True,
)
asyncio.run(main())What you can build
- A research agent that searches YouTube for talks on a topic and summarizes the top results.
- A channel monitor that lists a creator's latest uploads and writes one line on each.
- Quote finder: ask what a speaker said about a topic and get timestamped quotes.
Links
Questions about Agno
Does it work with models other than OpenAI?
Yes. MCPTools works with any Agno model; swap the model line and install that provider's extra.
What does it cost?
Each transcript, search or channel page uses one credit from your account, and failed requests are not charged. New accounts get 100 free credits to start, and paid plans add more credits each month.







































































