YouTube for LangChain
io.github.mcp-dir/youtube-mcp
Search, video, channel, playlist, comments, trending and related items from YouTube. Hosted by the p
client:LangChain
transport:streamable-http
tools:35
Install YouTube in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"youtube-mcp": {
"transport": "streamable_http",
"url": "https://api.mcp.ai/p_youtube",
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs
What LangChain can do once it is connected
- youtube_home_feed
- youtube_trending
- youtube_search
- youtube_resolve_url
- youtube_download
- youtube_hype
- youtube_hashtag
- youtube_playlist
- youtube_comments
- youtube_video_related
- youtube_channel_home
- youtube_channel_about
- youtube_channel_videos
- youtube_channel_shorts
- youtube_channel_playlists
- youtube_channel_community
- youtube_channel_featured
- youtube_channel_store
- youtube_channel_search
- youtube_channel_videos_post
- youtube_channel_shorts_post
- youtube_api
- youtube_my_channels
- youtube_comment_threads