Skip to main content
Glama
news-mcp

news-mcp

news-mcp

Curated RSS/Atom/RDF news → SQLite (rolling ~14-day window) → structured MCP tools. Items are stored in their original language; the LLM translates, summarizes and compares framing at query time. Design rationale: CLAUDE.md.

Tools

tool

use

latest_news(source?, lang?, country?, category?, hours=24, n=15)

newest headlines, filterable

news_by_topic(query, days=7, lang?, n=20)

keyword search; spaces = AND, | = OR ("Noboa | ノボア") — case/accent-insensitive

compare_coverage(topic, days=7, per_source=3)

matches grouped by outlet + outlets with no match → framing comparison

sources()

curated feeds, item counts, freshness / last status

Related MCP server: world-news-feeds

Run

uv sync
uv run news-mcp refresh                      # pull all feeds once (conditional GET), upsert, prune
uv run news-mcp serve                        # stdio (Claude Desktop / dev)
NEWS_MCP_TOKEN=secret uv run news-mcp serve --transport http --host 0.0.0.0 --port 8000   # streamable-http at /mcp
uv run pytest

env

default

NEWS_DB

data/news.db

SQLite path (WAL; refresh and server can share it)

NEWS_FEEDS

packaged src/news_mcp/feeds.toml

curated feed list

NEWS_RETENTION_DAYS

14

rolling window

NEWS_REFRESH_MINUTES

0 (off)

>0: serve also refreshes in the background (no timer needed)

NEWS_MCP_TOKEN

unset

bearer token required on HTTP (/healthz stays open)

NEWS_USER_AGENT, NEWS_FETCH_TIMEOUT

polite UA, 20

Claude Desktop

%APPDATA%\Claude\claude_desktop_config.json:

{
  "mcpServers": {
    "news": {
      "command": "uv",
      "args": ["--directory", "C:\\Code\\news-mcp", "run", "news-mcp", "serve"],
      "env": { "NEWS_DB": "C:\\Code\\news-mcp\\data\\news.db", "NEWS_REFRESH_MINUTES": "45" }
    }
  }
}

Docker Compose (e.g. mcpo → Open WebUI)

Build the image with docker build -t news-mcp .. By default it serves HTTP on :8000 at /mcp, with an open /healthz endpoint for the built-in healthcheck.

services:
  news-mcp:
    image: news-mcp:latest
    restart: unless-stopped
    environment:
      NEWS_MCP_TOKEN: ${NEWS_MCP_TOKEN}      # put it in .env; clients send "Authorization: Bearer <token>"
      NEWS_REFRESH_MINUTES: "45"             # refresh at startup, then every 45 min (no timer needed)
      NEWS_USER_AGENT: "news-mcp/0.1 (+https://example.org/your-contact)"   # identify your deployment
      # NEWS_FEEDS: /config/feeds.toml       # use your own curated list
    volumes:
      - news-data:/data                      # SQLite; local disk, not NFS/SMB
      # - ./feeds.toml:/config/feeds.toml:ro
    # ports: ["8000:8000"]                   # only if clients live outside this compose network
volumes:
  news-data:

If you'd rather use a host timer, leave NEWS_REFRESH_MINUTES unset and have the timer run docker compose run --rm news-mcp refresh. It uses the same /data volume.

mcpo entry (from a container on the same network):

{ "mcpServers": { "news": { "type": "streamable-http", "url": "http://news-mcp:8000/mcp",
  "headers": { "Authorization": "Bearer ${NEWS_MCP_TOKEN}" } } } }

Auth and exposure

The server is deliberately simple about auth: stdio, or streamable-HTTP with a single bearer token (NEWS_MCP_TOKEN) for a private network, e.g. behind mcpo. It has no OAuth, no users and no audit log, by design. To publish it more widely (at work or on the internet), put a management layer in front of it: an MCP gateway or auth proxy that handles OAuth, users and audit for all your servers at once.

Every tool declares a title and all four MCP hints. They are all read-only, non-destructive, idempotent and closed-world, because tools only query the local SQLite store and only the refresh job touches the network. Hints are advisory for clients and directories; they don't replace the bearer token or a gateway.

AI assistance

news-mcp is developed openly with the help of Claude (Anthropic). We state this plainly: commits Claude helped write carry a Co-Authored-By: Claude trailer. The code and design are open source so the work can be inspected, reused, and given back.

License

Code: MPL-2.0. The repo ships only feed URLs; the news content it fetches belongs to each publisher and stays in your local database. Respect each feed's terms, keep the refresh interval polite (≥30 min), and set NEWS_USER_AGENT to identify your own deployment.

Available Tools

4 tools
compare_coverageA
Read-only

How different outlets/countries covered one story - for framing comparison ("compare how the German, Qatari, US and Ecuadorian press covered X"). Returns matching items grouped by outlet, plus the active outlets with NO matching item (silence can be telling, but may also just mean the keywords were in another language).

    Same matching as `news_by_topic`: include the key term in every relevant language separated by
    "|", e.g. "Ecuador | Équateur | エクアドル | الإكوادور".
    When answering, compare emphasis, word choice and what each outlet includes or omits, citing each
    outlet by name; translate faithfully and do not inject your own view.

    Args:
        topic: keywords; spaces = AND, "|" = OR between alternatives.
        days: look-back window in days (default 7).
        per_source: max items per outlet (default 3, max 10).
    

Inputs: topic (required), days, per_source.

latest_newsA
Read-only

Most recent headlines, newest first. Use for "what's the news", "latest from Ecuador", "what does DW say today", "tech news". All filters are optional and combine with AND.

    Args:
        source: feed id from `sources()` (e.g. "elcomercio", "bbc-mundo", "dw-de").
        lang: ISO 639-1 language of the original items (e.g. "es", "en", "de", "fr", "ar", "ja").
        country: ISO 3166 alpha-2 country of the outlet (e.g. "EC", "US", "DE"); "INT" = international.
        category: one of general, politics, economy, science, tech, sport.
        hours: look-back window in hours (default 24; up to ~336 = two weeks).
        n: max items (default 15, max 50).
    

Inputs: n, lang, hours, source, +2 more.

news_by_topicA
Read-only

Search recent headlines + summaries by keyword, newest first. Use for "news about X", "what happened with X this week".

    Matching is case- and accent-insensitive substring search on the ORIGINAL-language text, so a
    Spanish word will not find German or Japanese items. Words separated by spaces must ALL appear;
    separate alternatives with "|". To search across languages give the key name/term in each
    language, e.g. "Noboa | ノボア" or "elecciones | Wahl | élection | election".
    Prefer short distinctive terms (names, places) over full sentences.

    Args:
        query: keywords; spaces = AND, "|" = OR between alternatives.
        days: look-back window in days (default 7, max ~14).
        lang: optional ISO 639-1 filter on the original language.
        n: max items (default 20, max 50).
    

Inputs: query (required), n, days, lang.

sourcesA
Read-only

List the curated feeds: id, outlet name, language, country, category, whether active, when it was last refreshed successfully, and how many items it currently holds. Use to know which ids/filters exist or to check how fresh the data is.

Inputs: no named parameters.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: listing feeds, browsing latest news with metadata filters, keyword search, and cross-outlet comparison. Although latest_news and news_by_topic both return news, their descriptions clearly separate browsing from searching, and compare_coverage is uniquely analytical.

    Naming Consistency3/5

    The names mix a bare noun (sources), a noun phrase (latest_news), a prepositional phrase (news_by_topic), and a verb_noun pattern (compare_coverage). While all are readable, there is no consistent convention across the set.

    Tool Count5/5

    With only 4 tools, the set is well-scoped and each tool earns its place. There is no redundancy, and the count fits the narrow domain of news retrieval and comparison.

    Completeness4/5

    The surface covers listing sources, browsing, searching, and comparing coverage, which are the core operations for a news server. Minor gaps exist, such as fetching full article content or paginating results beyond the n parameter, but agents can work around these.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables interaction with RSS readers that support the FreshRSS API through natural language. Allows users to manage and query their RSS feeds and articles via LLM conversations.
      7
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Provides curated international news feeds with tools to list, read, and fetch RSS/Atom/RDF feeds. Enables AI agents to access and filter world news data through natural language.
      64 npm
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables users to subscribe to RSS feeds, read clean extracted article text without ad-heavy sites, and perform full-text and semantic searches using local SQLite storage with no account required.
      6
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables natural-language querying of historical AI news through tools that return database statistics and semantic search results over existing SQLite and Chroma data, including titles, links, sources, content, and vector distances.
      MIT