Skip to main content
Glama

AI News Agent

Multi-topic news aggregation agent suite. Fetches, summarizes, and lets you interactively explore news via CLI or MCP (Model Context Protocol) for use with AI coding assistants like Devin, Claude Code, and opencode.

Agents

Command

Agent

Sources

ainews

AI News

Hacker News, Reddit (9 AI subs), GitHub trending + releases (26 AI orgs), arXiv, 11 AI blog RSS feeds

mynews

Malaysian News

Malay Mail, FMT, World of Buzz, Rojak Daily, Coconuts KL, Cilisos, Soya Cincau, Reddit r/malaysia, Google News MY

denews

Germany SWE Jobs

The Local DE, DW, Deutschland.de, Reddit (r/germany, r/cscareerquestionsEU, etc.), Google News DE (visa, Blue Card, jobs)

Related MCP server: AI News MCP

Quick Start

# Clone and install
git clone https://github.com/sirhafizho/ai-news-agent.git
cd ai-news-agent
python -m venv .venv && source .venv/bin/activate
pip install -e .

# Set your LLM provider key (optional - only needed for AI summarization)
export NEXUS_API_KEY="your-key"  # genai-nexus

# Optional: GitHub PAT for trending repos (5000 req/hr vs 60)
export GITHUB_PAT_TOKEN="ghp_..."

# Run
ainews              # AI news briefing
mynews              # Malaysian news briefing
denews              # Germany job market briefing

CLI Usage

ainews                    # Full AI-summarized briefing
ainews -i                 # Interactive mode (ask follow-up questions)
ainews --raw              # Raw data dump, no LLM
ainews --sources hn,github  # Specific sources only
ainews --provider glm     # Switch LLM (kimi/glm/gemini)
ainews --no-banner        # Skip banner

Interactive Mode

After the briefing, you get a REPL for follow-up questions:

Command

What it does

#5 or article 5

Deep-dive into article #5 (fetches comments, page content)

list

Show all articles numbered

search <term>

Search fetched articles

/deep <topic>

Deep research on ANY topic (searches the web)

/web <query>

Web news search for anything

Any question

Ask the AI (auto-searches web if out of scope)

quit

Exit

MCP Server (for Devin / Claude Code / opencode)

Exposes 10 tools for programmatic access:

python -m src.mcp_server    # stdio transport

Tool

Description

get_ai_news

Latest AI news briefing

search_ai_news

Search AI news by keyword

get_hn_discussion

Fetch HN comments for a story

get_article_content

Fetch article text

get_malaysian_news

Malaysian news briefing

search_malaysian_news

Search Malaysian news

get_germany_news

Germany SWE job market briefing

search_germany_jobs

Search Germany job/visa topics

web_search_news

Web search for any topic

deep_research_topic

Multi-query deep research

Configuration

Environment variables:

Variable

Purpose

Required?

NEXUS_API_KEY

LLM summarization via genai-nexus

Only for AI summaries

GITHUB_PAT_TOKEN

Higher GitHub API rate limits

Recommended

LLM providers (via genai-nexus):

  • kimi — Kimi K2.5 (default)

  • glm — GLM-5

  • gemini — Gemini 2.5 Flash

Project Structure

src/
├── cli.py              # ainews entry point
├── my_cli.py           # mynews entry point
├── de_cli.py           # denews entry point
├── interactive.py      # Interactive REPL mode
├── mcp_server.py       # MCP server (stdio)
├── summarizer.py       # LLM summarization
├── details.py          # Article deep-dive (comments, page text)
└── fetchers/
    ├── hackernews.py   # Hacker News
    ├── reddit.py       # Reddit AI subs
    ├── github_trending.py  # GitHub trending + releases
    ├── arxiv.py        # arXiv papers
    ├── rss_feeds.py    # AI blog RSS feeds
    ├── web_search.py   # Web search (Google News + DDG)
    ├── malaysian/      # Malaysian news fetchers
    └── germany/        # Germany job market fetchers

License

MIT — see LICENSE

Available Tools

8 tools
get_ai_newsA

Fetch the latest AI news from multiple sources.

Returns structured data from Hacker News, Reddit, GitHub (trending repos + releases from 26 AI orgs), arXiv papers, and AI blog RSS feeds. All fetched in parallel.

Use this when the user asks about AI news, what's new in AI, latest developments, trending topics, new models, new tools, etc.

Args: sources: Comma-separated list of sources to fetch. Options: hn, reddit, github, arxiv, rss max_items_per_source: Max items per source (default 15, max 30)

Inputs: sources, max_items_per_source. Returns: result

get_article_contentA

Fetch the text content of a web article or blog post.

Use this when the user wants to read or learn more about a specific article, blog post, or news story from the briefing.

Args: url: The URL of the article to fetch max_chars: Maximum characters of content to return (default 4000)

Inputs: url (required), max_chars. Returns: result

get_germany_newsA

Fetch the latest Germany SWE job market and expat data.

Returns data from The Local Germany, DW, Deutschland.de, Reddit (r/germany, r/cscareerquestionsEU, r/expatsingermany, r/berlin, r/Munich), and Google News Germany (visa, Blue Card, Chancenkarte, tech hiring, layoffs).

Use this when the user asks about working in Germany, German tech jobs, visa/Blue Card news, Berlin/Munich tech scene, expat life in Germany, or Malaysian experiences in Germany.

Args: sources: Comma-separated sources: feeds, reddit, google max_items_per_source: Max items per source (default 15)

Inputs: sources, max_items_per_source. Returns: result

get_hn_discussionA

Fetch the Hacker News discussion comments for an article.

Use this when the user wants to know what people are saying about a specific Hacker News story, or wants more details/opinions on a topic.

Args: story_url: The HN discussion URL (https://news.ycombinator.com/item?id=...) or just the numeric ID max_comments: Maximum number of top-level comments to fetch (default 15)

Inputs: story_url (required), max_comments. Returns: result

get_malaysian_newsA

Fetch the latest Malaysian news, gossip, and viral stories.

Returns data from Malaysian news sites (Malay Mail, FMT, World of Buzz, Rojak Daily, Coconuts KL, Cilisos, Soya Cincau, etc.), Reddit (r/malaysia, r/bolehland), and Google News Malaysia.

Use this when the user asks about Malaysian news, gossip, what's trending in Malaysia, netizen buzz, viral stories, Malaysian politics, KL news, etc.

Args: sources: Comma-separated sources: feeds, reddit, google max_items_per_source: Max items per source (default 15)

Inputs: sources, max_items_per_source. Returns: result

search_ai_newsA

Search for specific AI topics across all news sources.

Fetches news and filters by keyword. Use this when the user asks about a specific topic (e.g., "any news about MCP?", "what's new with Claude?", "latest on open source models").

Args: query: Search keywords to filter results by (e.g., "MCP", "Claude", "open source") sources: Comma-separated sources to search

Inputs: query (required), sources. Returns: result

search_germany_jobsA

Search Germany job market, visa, and expat topics.

Use when the user asks about specific topics like "Blue Card changes", "Berlin startups hiring", "Munich salary", "Malaysian in Germany", "Chancenkarte requirements", etc.

Args: query: Search keywords (e.g., "Blue Card", "Berlin startup", "salary") sources: Comma-separated sources to search

Inputs: query (required), sources. Returns: result

search_malaysian_newsA

Search for specific topics in Malaysian news.

Fetches Malaysian news and filters by keyword. Use when the user asks about specific Malaysian topics (e.g., "Anwar news", "ringgit", "Johor", "Malaysian food", "election").

Args: query: Search keywords (e.g., "Anwar", "ringgit", "election") sources: Comma-separated sources to search

Inputs: query (required), sources. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 8 tools

    Disambiguation3/5

    Most tools have clear get/search distinctions, but get_germany_news and search_germany_jobs overlap heavily—both cover Germany visa, job, and expat topics. The AI and Malaysia pairs are distinct, but this one boundary creates real misselection risk.

    Naming Consistency4/5

    The get_/search_ verb pattern is mostly consistent, but search_germany_jobs breaks the get_<region>_news / search_<region>_news convention used elsewhere (search_malaysian_news, search_ai_news). get_hn_discussion and get_article_content also deviate, but their unique purposes justify it.

    Tool Count4/5

    8 tools is a reasonable count, but the server name says 'ai-news' while three tools cover Malaysia and Germany news, making the scope broader than the name suggests. The Germany tools could potentially be consolidated, but the total is not excessive.

    Completeness4/5

    The set covers fetch and search workflows for each news domain, plus article content and HN discussion deep-dives. Minor gaps include lack of date filtering and a unified cross-source search, but core news consumption workflows are well supported.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides a suite of AI tools for web search, mathematical calculations, and tech news aggregation via MCP, leveraging Groq LLMs.
      1
      GPL 3.0
    • F
      license
      Not graded
      quality
      D
      maintenance
      Local MCP server that ingests and normalizes recent AI, tech, and research news from multiple sources, exposing tools for media agents to query and retrieve article content on demand.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server for Hacker News research. Enables AI agents to search stories and comments, browse listings, read discussion threads, and look up users via structured tools.
      MIT