home / mcp / youtube138 mcp server
Provides MCP access to Youtube138 API endpoints via stdio transport with API key authentication.
Configuration
View docs{
"mcpServers": {
"bach-ai-tools-bachai-youtube138": {
"command": "uvx",
"args": [
"--from",
"bach-youtube138",
"bach_youtube138"
],
"env": {
"API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}You can access the Youtube138 API through this MCP server using a stdio transport. It provides a set of YouTube-related endpoints you can query from your application with a consistent MCP experience and centralized API key management.
Connect to the Youtube138 MCP server from your MCP client using the stdio flow. You will run the MCP server as a local process and point your client to its standard input/output interface. Before you start, set your API key so requests are authenticated.
Two common startup patterns are supported: you can use the uvx launcher to start the server from the package, or run the server directly in development mode. Ensure you provide your API key via an environment variable and then invoke the start command from your MCP client.
# Prerequisites: Python and a package manager for your environment
# Install the server package from PyPI
pip install bach-youtube138
# Start in standard runtime (example 1) using uvx if available
uvx --from bach-youtube138 bach_youtube138
# Start in standard runtime (example 2) using uvx with latest version
uvx --from bach-youtube138@latest bach_youtube138
# Or run directly in development mode
python server.py
# After installation, you can also run the package as a command
# (the command name uses an underscore)
bach_youtube138Authentication requires an API key. Set the API key in your environment before starting the server or your client will be unable to authenticate requests.
If you are using MCP clients like Cursor or Claude Desktop, you can configure the server to run with the appropriate environment variables injected. Below are example configurations you can adapt to your environment.
Auto Complete endpoint to fetch suggested queries for a given input.
Trending endpoint to fetch currently popular items.
Home endpoint to fetch initial content with optional cursor and region parameters.
Search endpoint to query content by a text string.
Channel channels endpoint to list channels or collections for a given channel id.
Channel search endpoint to find channels by query.
Channel playlists endpoint to retrieve playlists for a channel with filtering options.
Channel details endpoint to fetch basic information about a channel.
Channel community endpoint to access community posts and related data.
Channel videos endpoint to list videos from a channel with filters.
Channel details v2 endpoint providing extended channel metadata.
Video comments endpoint to retrieve comments for a given video.
Video related contents endpoint to fetch related videos or content.
Video streaming data endpoint to obtain streaming-related information for a video.
Video details endpoint to fetch details for a specific video.
Video details v2 endpoint with extended video metadata.
Community post comments endpoint to access comments on a community post.
Community post details endpoint to retrieve data for a community post.
Playlist videos endpoint to list videos within a playlist.
Playlist details endpoint to fetch information about a playlist.