Skip to main content
Glama

fetchYoutube

Retrieve all videos from the Goose YouTube channel using Content Fetcher MCP to track content updates across sessions.

Instructions

Fetch ALL YouTube videos from the Goose channel.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that fetches YouTube videos from the specified channel using RSS parser and maps them to ContentItem objects.
    async function fetchYoutube(): Promise<ContentItem[]> { const feed = await rssParser.parseURL( `https://www.youtube.com/feeds/videos.xml?channel_id=${YOUTUBE_CHANNEL_ID}` ); return feed.items.map((item) => ({ id: item.id || item.link || "", title: item.title || "", url: item.link || "", published_at: item.pubDate || "", type: "video" as const, })); }
  • src/server.ts:133-138 (registration)
    Registration of the fetchYoutube tool with FastMCP server, including empty input schema and execution that calls the handler.
    server.addTool({ name: "fetchYoutube", description: "Fetch ALL YouTube videos from the Goose channel.", parameters: z.object({}), execute: async () => JSON.stringify(await fetchYoutube()), });
  • Type definition for ContentItem used as output type for fetchYoutube and other fetch tools.
    interface ContentItem { id: string; title: string; url: string; published_at: string; type: "video" | "blog" | "release"; }
  • Zod input schema for the tool (empty object, no parameters).
    parameters: z.object({}),

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/EbonyLouis/content-fetcher-mcp2'

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