Skip to main content
Glama

fetchRss

Retrieve all blog posts from RSS feeds to monitor content updates and access complete article archives for research or content aggregation.

Instructions

Fetch ALL blog posts from any RSS feed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesRSS feed URL

Implementation Reference

  • Core handler function that parses the given RSS URL using rss-parser and maps items to ContentItem objects with type 'blog'.
    async function fetchRss(url: string): Promise<ContentItem[]> { const feed = await rssParser.parseURL(url); return feed.items.map((item) => ({ id: item.guid || item.link || "", title: item.title || "", url: item.link || "", published_at: item.pubDate || "", type: "blog" as const, })); }
  • src/server.ts:141-148 (registration)
    Registers the 'fetchRss' tool with FastMCP server, specifying name, description, input parameters schema, and execute handler that calls the fetchRss function.
    server.addTool({ name: "fetchRss", description: "Fetch ALL blog posts from any RSS feed.", parameters: z.object({ url: z.string().describe("RSS feed URL"), }), execute: async ({ url }) => JSON.stringify(await fetchRss(url)), });
  • Zod input schema defining the required 'url' parameter as a string for the RSS feed URL.
    parameters: z.object({ url: z.string().describe("RSS feed URL"), }),
  • TypeScript interface defining the structure of ContentItem returned by fetchRss (with type 'blog').
    interface ContentItem { id: string; title: string; url: string; published_at: string; type: "video" | "blog" | "release"; }

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