MCP RSS News Agent

by teo4348
MIT License

Integrations

  • Supports configuration through environment variables using .env files for flexible deployment settings.

  • Supports formatting extracted web content as Markdown, allowing for clean, structured representation of articles with optional image inclusion.

  • Provides tools for discovering RSS feeds from websites, fetching entries from feeds, extracting and formatting content, searching news articles by keyword, and generating summaries of news articles from RSS sources.

Agente de noticias RSS de MCP

Un agente de procesamiento y agregación de noticias RSS basado en FastMCP que puede descubrir, recuperar y resumir contenido de varias fuentes RSS.

Características

  • Descubra los feeds RSS de cualquier sitio web
  • Obtener entradas de fuentes RSS
  • Extraer y dar formato al contenido de las entradas del feed
  • Extraer y procesar contenido web desde cualquier URL
  • Buscar artículos de noticias por palabra clave
  • Generar resúmenes para artículos de noticias
  • Obtenga las principales noticias por categoría y país

Instalación

  1. Clonar el repositorio
  2. Instale las dependencias necesarias:
pip install -r requirements.txt
  1. Cree un archivo .env si necesita variables de entorno (opcional)

Uso

Iniciar el servidor MCP

python server.py

Esto iniciará el servidor MCP que expone varias herramientas relacionadas con RSS.

Herramientas disponibles

  1. get_rss_feed_entries : obtiene entradas de una URL de fuente RSS
  2. discover_rss_feeds : Encuentra feeds RSS disponibles en un sitio web
  3. download_feed_content : Descarga y procesa el contenido de una entrada de feed
  4. fetch_webpage : extrae el contenido principal de cualquier URL de página web utilizando técnicas avanzadas (NUEVO)
  5. search_news_by_keyword : busca artículos de noticias en múltiples feeds usando una palabra clave
  6. create_news_summary : Crea resúmenes para artículos de noticias
  7. get_top_news_from_category : Obtiene las principales noticias de categorías y países específicos

Ejemplos

Descubra los canales RSS en un sitio web

response = mcp.invoke("discover_rss_feeds", {"website_url": "https://www.theguardian.com"}) print(f"Found {response['feeds_count']} feeds") for feed in response['feeds']: print(f"- {feed['title']}: {feed['url']}")

Obtenga artículos de noticias por palabra clave

response = mcp.invoke("search_news_by_keyword", { "keyword": "climate change", "max_results": 5 }) for article in response['results']: print(f"- {article['title']} ({article['source']})") print(f" Link: {article['link']}") print()

Extraer contenido de cualquier página web

response = mcp.invoke("fetch_webpage", { "url": "https://example.com/article", "output_format": "markdown", "include_images": True }) print(f"Title: {response['title']}") print(f"Extraction method: {response['extracted_by']}") print(f"Content preview: {response['content'][:200]}...")

Obtenga las principales noticias de una categoría

response = mcp.invoke("get_top_news_from_category", { "category": "technology", "country": "us", "max_results": 3 }) for article in response['results']: print(f"- {article['title']} ({article['source']})")

Ejemplo de cliente

El proyecto incluye un cliente de línea de comandos ( client_example.py ) que proporciona acceso fácil a todas las herramientas del servidor MCP:

# Get feed entries python client_example.py feed https://www.theguardian.com/international/rss # Search news by keyword python client_example.py search "artificial intelligence" # Extract content from a webpage with advanced extraction python client_example.py webpage https://example.com/article --format markdown --images --save # Get news by category python client_example.py category technology --country us

Contribuyendo

¡Agradecemos sus contribuciones! No dude en enviar una solicitud de incorporación de cambios.

Licencia

Este proyecto está licenciado bajo la licencia MIT: consulte el archivo de LICENCIA para obtener más detalles.

-
security - not tested
A
license - permissive license
-
quality - not tested

Un servidor basado en FastMCP que proporciona herramientas para descubrir canales RSS, obtener y procesar contenido de noticias, buscar artículos por palabra clave y generar resúmenes de múltiples fuentes y categorías de noticias.

  1. Características
    1. Instalación
      1. Uso
        1. Iniciar el servidor MCP
        2. Herramientas disponibles
      2. Ejemplos
        1. Descubra los canales RSS en un sitio web
        2. Obtenga artículos de noticias por palabra clave
        3. Extraer contenido de cualquier página web
        4. Obtenga las principales noticias de una categoría
      3. Ejemplo de cliente
        1. Contribuyendo
          1. Licencia

            Related MCP Servers

            • -
              security
              A
              license
              -
              quality
              This MCP server performs multi-topic searches in business, news, finance, and politics using the Tavily API, providing high-quality sources and intelligent summaries.
              Last updated -
              1
              1
              Python
              MIT License
              • Apple
              • Linux
            • -
              security
              A
              license
              -
              quality
              An MCP server implementation that integrates the RSS3 API, allowing users to query data from decentralized chains, social media platforms, and the RSS3 network through natural language.
              Last updated -
              1
              JavaScript
              MIT License
            • -
              security
              F
              license
              -
              quality
              An MCP server that fetches RSS feeds and shares them with LLMs, allowing AI assistants to access and present the latest news and articles from configured feeds.
              Last updated -
              1
              TypeScript
            • -
              security
              F
              license
              -
              quality
              A FastMCP-based service that provides stock data including historical prices, fundamental information, and financial news.
              Last updated -
              1
              Python
              • Linux
              • Apple

            View all related MCP servers

            ID: xyc425usll