Skip to content
LangChain

YouTube Data for LangChain

io.github.musama000/youtube-data

YouTube search, video details, transcripts with timestamps, comments, and every video on a channel.

client:LangChain transport:streamable-http

Install YouTube Data in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "youtube-data": {
            "transport": "streamable_http",
            "url": "https://mcp.apify.com/?tools=talcoe/youtube-transcripts,talcoe/youtube-comments,talcoe/youtube-channel-videos,talcoe/youtube-search-videos,talcoe/youtube-video-details",
        }
})

tools = await client.get_tools()

get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs

YouTube Data in other clients