#!/usr/bin/env node
import { startMcpServer } from './server.js';
// Check for required environment variables
if (!process.env.YOUTUBE_API_KEY) {
console.error('Error: YOUTUBE_API_KEY environment variable is required.');
console.error('Please set it before running this server.');
process.exit(1);
}
// Start the MCP server
startMcpServer()
.then(() => {
console.log('YouTube MCP Server started successfully');
})
.catch(error => {
console.error('Failed to start YouTube MCP Server:', error);
process.exit(1);
});
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ZubeidHendricks/youtube-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server