Skip to main content
Glama

fetchRss

Retrieve all blog posts from any RSS feed URL to monitor content updates and track new publications.

Instructions

Fetch ALL blog posts from any RSS feed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesRSS feed URL

Implementation Reference

  • The core handler function for the fetchRss tool: fetches and parses the RSS feed from the given URL and maps each item to a ContentItem object.
    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, })); }
  • Input schema definition using Zod for the fetchRss tool, specifying the required 'url' parameter.
    parameters: z.object({ url: z.string().describe("RSS feed URL"), }),
  • src/server.ts:141-148 (registration)
    Registration of the fetchRss tool on the FastMCP server instance, including name, description, input schema, and execution wrapper that calls the handler and stringifies the result.
    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)), });

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