Skip to main content
Glama

get_subscribed_channels

Retrieve your YouTube channel subscriptions using browser cookies to manage viewing preferences and content discovery.

Instructions

List your subscribed YouTube channels using Chrome cookies.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax channels to return (default 30)

Implementation Reference

  • The tool `get_subscribed_channels` is registered and defined as a handler in `src/index.ts`. It uses `fetchFeed` to retrieve data from the YouTube subscriptions feed and returns a list of channels.
    server.tool(
      'get_subscribed_channels',
      'List your subscribed YouTube channels using Chrome cookies.',
      { limit: z.number().min(1).max(100).default(30).describe('Max channels to return (default 30)') },
      async ({ limit }) => {
        const depErr = checkDeps();
        if (depErr) return errorResult(depErr);
    
        try {
          const result = await fetchFeed('https://www.youtube.com/feed/channels', limit);
          const channels = (result.entries || []).map((e) => ({
            channel: e.channel, channel_url: e.channel_url || e.url, title: e.title,
          }));
          return textResult({ count: channels.length, channels });
        } catch (err) {
          return errorResult(`Error: ${err instanceof Error ? err.message : String(err)}`);
        }
      }
    );

Latest Blog Posts

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/ronantakizawa/social-video-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server