# News MCP Server – Hacker News, Wikipedia, RSS & GDELT (`gazidev/news-mcp-server`) Actor

News tools for AI agents over MCP: search Hacker News, Wikipedia Current events (world news with cited sources), Wikipedia search and pageviews, your RSS feeds and publisher-permitted article text. GDELT global search when available, with automatic fallback. No API key. Pay only for useful calls.

- **URL**: https://apify.com/gazidev/news-mcp-server.md
- **Developed by:** [Cemal Atakli](https://apify.com/gazidev) (community)
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 mcp tool calls

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## News MCP Server – Hacker News, Wikipedia Current Events, RSS & GDELT for AI Agents

**An MCP server that gives Claude, Cursor, ChatGPT and other AI agents reliable news tools from open, keyless sources.** You can search Hacker News, read Wikipedia's daily *Current events* log (world news with the cited source links), search Wikipedia, track pageviews, read your own RSS feeds and extract article text when the publisher allows it. When the [GDELT Project](https://www.gdeltproject.org/) global news index is reachable, you also get multilingual search, coverage timelines, tone and top outlets. When GDELT is rate-limited, the tools switch to the open sources automatically and tell you so.

**$0.003 per useful tool call.** Calls that fail or find nothing are free. No API key, no sign-up, no Google, no social-media scraping.

### Tools

| Tool | Source | What you get |
|---|---|---|
| `wikipedia_current_events` | Wikipedia Portal:Current events + "In the news" | Each world event of the day, curated by Wikipedia editors: a one-sentence summary, a category (armed conflicts, politics, business, science, sports…), a topic path and the **news source links** Wikipedia cites. Covers 1-7 days, with an optional keyword filter. |
| `search_hacker_news` | Algolia HN Search API | Full-text search of Hacker News stories (or Show HN, Ask HN, comments) in a time window. Returns link, outlet domain, points, comments, author and date. Sort by relevance or newest, with a minimum-points filter. |
| `hacker_news_top` | Hacker News API | The current top, new, best, Ask HN, Show HN or job stories. |
| `search_wikipedia` | Wikipedia API | Article search with snippet and last-edit time, for background on people, companies and events. Any language edition. |
| `wikipedia_pageviews` | Wikimedia pageviews API (CC0) | Daily human pageviews of one article with total, peak and trend. A public-attention timeline. |
| `trending_wikipedia` | Wikimedia pageviews API (CC0) | The most-viewed articles of a day in any language edition. |
| `read_rss` | Your feeds | The latest items from 1-10 RSS, Atom or JSON feeds, newest first, with an optional keyword filter. |
| `get_article` | Publisher page | Title, authors, date, outlet, image and clean text of one article. **The text is returned only when the publisher allows it** (robots.txt, no paywall, no `noai`/`noarchive`). Otherwise you get metadata and the link. |
| `search_news` | GDELT, or the open-source fallback | GDELT returns headlines and links in 65+ languages, filtered by language, country, outlet or theme. If GDELT is rate-limited or empty, it searches Hacker News, Wikipedia Current events and the `feed_urls` you pass, and says so in `note`. |
| `news_volume_timeline` | GDELT, or Hacker News as a proxy | GDELT gives coverage volume over time. The fallback counts Hacker News stories per day. |
| `top_sources` | GDELT, or the open-source fallback | Which outlets cover a topic most. |
| `news_tone` | GDELT only | The sentiment of the coverage. There is no fallback: when GDELT is down, the call fails and is free. |

#### GDELT is optional

GDELT asks for at most one request every 5 seconds per IP, and it is often overloaded (HTTP 429). This server handles that in four ways:

- **Spacing:** all GDELT calls share one queue with at least 6 seconds between them.
- **One retry, then fallback:** a call that fails twice gets the open-source answer, with `backend: "open-sources"`, `gdeltAvailable: false` and a plain-English `note`.
- **Cool-down:** after a failure, GDELT is skipped for 5 minutes, so later calls answer in about a second instead of queueing.
- **`backend` argument:** `auto` (the default), `open` (skip GDELT) or `gdelt` (GDELT only, no fallback).

### Use cases

- **Ask "What happened today?" in chat.** Try: *"What happened in the world in the last two days? Group it by category and give me the source links."* This uses `wikipedia_current_events`.
- **Follow tech, AI and startup news.** Try: *"What is Hacker News saying about OpenAI this week? Only stories with 100+ points."*
- **Brand and PR monitoring.** Run `search_news`, `search_hacker_news` and `read_rss` with your industry feeds, plus `wikipedia_pageviews` for attention spikes.
- **Analysts and traders.** Spot news spikes and attention swings around companies, countries and commodities.
- **Agent builders.** A cheap, keyless news tool for RAG pipelines, daily briefings and alerting agents.

### Connect it to your AI client (MCP)

The server runs in Apify **Standby mode** and speaks MCP over Streamable HTTP:

```
https://gazidev--news-mcp-server.apify.actor/mcp
```

Authenticate with your Apify API token (`Authorization: Bearer <APIFY_TOKEN>`).

**Claude Desktop / Cursor (`mcp.json`):**

```json
{
  "mcpServers": {
    "news": {
      "url": "https://gazidev--news-mcp-server.apify.actor/mcp",
      "headers": { "Authorization": "Bearer YOUR_APIFY_TOKEN" }
    }
  }
}
```

**Claude Code:** `claude mcp add --transport http news https://gazidev--news-mcp-server.apify.actor/mcp --header "Authorization: Bearer YOUR_APIFY_TOKEN"`

It also works through the [Apify MCP server](https://mcp.apify.com) and with any client that supports remote MCP servers (OpenAI Agents SDK, LangChain, n8n and others).

#### Query tips

- Quote phrases: `"electric vehicles"`. Put OR between alternatives: `"artificial intelligence" OR openai`.
- The GDELT-only operators are `sourcelang:spanish`, `sourcecountry:france`, `domain:bbc.co.uk`, `theme:ENV_CLIMATECHANGE` and `tone<-5`. The fallback ignores them, except `domain`, and lists the ignored ones in `note`.
- `timespan` accepts `6h`, `1d`, `3d`, `1w`, `1m` or `3m`. You can also use `start_date` / `end_date` (UTC).

### Batch mode (normal Actor run)

Every tool also runs as a normal Actor run, for scheduled jobs, integrations or a quick test from the Console. Pick a `tool`, pass its `arguments`, and the results are saved as dataset rows.

```json
{"tool": "wikipedia_current_events", "arguments": {"days": 2}}
```

To run several calls in one run (max 50):

```json
{"calls": [
  {"tool": "search_news", "arguments": {"query": "\"artificial intelligence\" OR openai", "timespan": "3d",
                                        "feed_urls": ["https://feeds.bbci.co.uk/news/technology/rss.xml"]}},
  {"tool": "search_hacker_news", "arguments": {"query": "openai", "timespan": "3d", "limit": 5}},
  {"tool": "read_rss", "arguments": {"feed_urls": ["https://feeds.bbci.co.uk/news/world/rss.xml"], "limit_per_feed": 3}},
  {"tool": "wikipedia_current_events", "arguments": {"days": 2}}
]}
```

#### Output examples (dataset rows)

A Wikipedia Current events row:

```json
{
  "tool": "wikipedia_current_events",
  "status": "ok",
  "source": "wikipedia",
  "title": "Oman rescues 25 crew members from a burning Panamanian-flagged oil tanker in the Strait of Hormuz. ...",
  "url": "https://www.aljazeera.com/news/2026/10/30/oman-rescues-25-from-burning-oil-tanker-in-strait-of-hormuz",
  "domain": "aljazeera.com",
  "publishedAt": "2026-10-30",
  "details": {"category": "Armed conflicts and attacks",
              "topics": ["Middle Eastern crisis", "2026 Iran war", "2026 Strait of Hormuz crisis"],
              "sources": [{"name": "Al Jazeera", "url": "https://www.aljazeera.com/news/2026/10/30/..."}]}
}
```

A `search_news` row answered by the fallback:

```json
{
  "tool": "search_news",
  "status": "ok",
  "source": "hn",
  "title": "OpenAI slashes funding target by $10B amid tech rout, FT reports",
  "url": "https://www.reuters.com/business/openai-cuts-funding-target-by-10-billion-ft-reports-2026-10-31/",
  "domain": "reuters.com",
  "publishedAt": "2026-10-31T17:23:55Z",
  "details": {"points": 4, "comments": 1, "hnUrl": "https://news.ycombinator.com/item?id=50318079"},
  "note": "GDELT unavailable (HTTP 429 rate limit after 2 spaced attempts). Answered from open sources instead: Hacker News, Wikipedia Current events, your RSS feeds. Calls that find nothing are not charged."
}
```

In MCP mode every tool returns structured JSON. Every result includes `charged: true|false`.

### Pricing

Pay per event: you pay only for calls that return something.

| Event | Price |
|---|---|
| Tool call (any tool, MCP or batch, at least one result) | **$0.003** |
| Article full text (`get_article`, only when the text is returned) | $0.002 |
| Actor start | $0.00005 |

For example, 100 searches cost **$0.30**, and reading 10 full articles costs 10 × ($0.003 + $0.002) = $0.05. Errors, rate-limited calls and empty results cost nothing.

#### Compared with other news MCP servers on Apify (October 2026)

| Actor | Price |
|---|---|
| **This Actor** | **$0.003 per useful tool call** |
| mrbridge/latest-news-mcp-server | $0.008 per tool read, $0.015 enriched |
| halilc4/research-tools-mcp | $0.005–$0.03 per tool |

### Data sources and licensing

- **Hacker News**: the official Firebase API and the Algolia HN Search API (public, documented, no key needed).
- **Wikipedia / Wikimedia**: the official REST API, Action API and pageviews API. Requests are identified with a contact User-Agent and stay within the Wikimedia Robot policy limits (REST up to 3 parallel, Action API 1 at a time). Wikipedia text is CC BY-SA 4.0 and pageview data is CC0.
- **GDELT Project**: free for any use with citation. Results include an `attribution` field.
- **Publisher pages** (`get_article`, `read_rss`): fetched with an honest User-Agent and robots.txt is respected. Paywalled and opt-out (`noai`, `noarchive`) pages return metadata only. Social platforms (Reddit, X, Facebook, Medium, LinkedIn…) and Google News are not supported.

### FAQ

**Do I need an API key?** No. All sources are open.

**Does it use Google News or Bing?** No.

**What happens when GDELT is down?** `search_news`, `news_volume_timeline` and `top_sources` answer from Hacker News, Wikipedia Current events and your feeds, and say so in `note`. `news_tone` returns a free error. The other 8 tools never touch GDELT.

**How fresh is the data?** Hacker News is real time. Wikipedia Current events is updated by editors throughout the day (UTC). RSS is as fresh as your feeds.

**Can I get full article text for every result?** Only where the publisher allows automated access. You always get the link and metadata.

**Why was a call not charged?** It failed, was rate-limited, or found nothing (`charged: false`).

### Use with AI agents / Apify MCP

Add the Standby URL above to any MCP client, or call the Actor from the [Apify MCP server](https://mcp.apify.com) as `gazidev/news-mcp-server`. The server's instructions explain to the agent which tool to use for what, the query syntax and how the GDELT fallback works.

# Actor input Schema

## `tool` (type: `string`):

Which tool to run in batch mode (ignored when empty; with neither tool nor calls a demo wikipedia_current_events call runs).

## `arguments` (type: `object`):

Arguments for the tool. Examples: search_news {"query": ""artificial intelligence" OR openai", "timespan": "3d", "max_records": 10, "feed_urls": \["https://feeds.bbci.co.uk/news/technology/rss.xml"]} (add "backend": "open" to skip GDELT); search_hacker_news {"query": "rust", "timespan": "1w", "min_points": 50}; wikipedia_current_events {"days": 2, "query": "election"}; search_wikipedia {"query": "GDELT"}; wikipedia_pageviews {"article": "Nvidia", "days": 30}; trending_wikipedia {"project": "en.wikipedia"}; read_rss {"feed_urls": \["https://feeds.bbci.co.uk/news/rss.xml"], "query": "climate"}; get_article {"url": "https://..."}; hacker_news_top {"list": "top", "limit": 20}; news_volume_timeline {"query": "inflation", "timespan": "1m"}; news_tone {"query": "tesla"}. See the README for all arguments.

## `calls` (type: `array`):

Run several tool calls in one run (max 50): \[{"tool": "search_news", "arguments": {"query": "..."}}, {"tool": "search_hacker_news", "arguments": {"query": "..."}}]. GDELT calls are spaced at least 6 seconds apart; if GDELT is rate-limited, GDELT tools answer from open sources (or fail free).

## Actor input object example

```json
{
  "tool": "search_news",
  "arguments": {
    "query": "\"artificial intelligence\" OR openai",
    "timespan": "3d",
    "max_records": 10
  }
}
```

# Actor output Schema

## `news` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "tool": "search_news",
    "arguments": {
        "query": "\"artificial intelligence\" OR openai",
        "timespan": "3d",
        "max_records": 10
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("gazidev/news-mcp-server").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "tool": "search_news",
    "arguments": {
        "query": "\"artificial intelligence\" OR openai",
        "timespan": "3d",
        "max_records": 10,
    },
}

# Run the Actor and wait for it to finish
run = client.actor("gazidev/news-mcp-server").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "tool": "search_news",
  "arguments": {
    "query": "\\"artificial intelligence\\" OR openai",
    "timespan": "3d",
    "max_records": 10
  }
}' |
apify call gazidev/news-mcp-server --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,gazidev/news-mcp-server"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/TAoMNgWBbmD07Gyu6/builds/P2FPEGqqHf4VSO1jX/openapi.json
