Best for
- LLM agents that need to minimize token consumption.
- Users who frequently access YouTube data and want to protect API quotas.
- Developers seeking a high-quality, well-tested MCP server.
Users praise the server for its token optimization, significantly reducing context window usage. The caching mechanism effectively protects API quotas. Code quality is high with 97% test coverage, and it is actively maintained. Suitable for production, but note it's unofficial and potential quota costs for search operations.
The YouTube Data MCP Server (@kirbah/mcp-youtube) is a production-grade MCP server designed for AI agents, fetching structured data via the YouTube Data API v3. It optimizes token usage, saving up to 87% on context window, includes smart caching to protect API quotas, and boasts high test coverage. It provides tools like fetching video details, searching videos, retrieving transcripts, channel statistics, trending videos, and more. Supports zero-config mode (no API key needed for transcripts) and optional MongoDB caching for quota savings.
npx -y @kirbah/mcp-youtube, no API key required for transcripts.YOUTUBE_API_KEY and MDB_MCP_CONNECTION_STRING in your client config.Example config:
{
"mcpServers": {
"youtube": {
"command": "npx",
"args": ["-y", "@kirbah/mcp-youtube"],
"env": {
"YOUTUBE_API_KEY": "YOUR_KEY",
"MDB_MCP_CONNECTION_STRING": "mongodb+srv://..."
}
}
}
}{
"mcpServers": {
"youtube": {
"command": "npx",
"args": ["-y", "@kirbah/mcp-youtube"]
}
}
}