Skip to main content
Glama

MCP-RSS-Crawler

by mshk
route.ts1.18 kB
import { NextResponse } from 'next/server'; import { fetchAllFeeds } from '@/lib/fetch-feeds'; export async function POST() { try { console.log('Fetching RSS feeds...'); // Use our fetchAllFeeds function to fetch feeds const result = await fetchAllFeeds(20); // Fetch 20 items per feed if (!result.success) { console.error('Error fetching feeds:', result.error); return NextResponse.json( { success: false, error: result.error || 'Failed to fetch RSS feeds' }, { status: 500 } ); } console.log(`Successfully fetched feeds: ${result.feedsProcessed} feeds, ${result.totalItems} items`); return NextResponse.json({ success: true, message: 'RSS feeds fetched successfully', feedsProcessed: result.feedsProcessed, totalItems: result.totalItems }); } catch (error) { console.error('Error fetching RSS feeds:', error); return NextResponse.json( { success: false, error: 'Failed to fetch RSS feeds', details: error instanceof Error ? error.message : String(error) }, { status: 500 } ); } }

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/mshk/mcp-rss-crawler'

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