> For the complete documentation index, see [llms.txt](https://docs.webz.io/llms.txt). Any docs page is also available as markdown at `https://docs.webz.io/markdown/<environment>/<slug>`.

# News MCP

Search **news articles** from the open web. This server exposes one tool: `search_webz_news`.

## MCP endpoint

```text
https://news-mcp.webz.io/mcp
```

## How it works

You describe what you need in **plain language**. The assistant turns that into a Webz `q` query and calls `GET /api/news` with your token.

Each result includes metadata plus an **Excerpt**: a short clip (up to about 600 characters) from the post body (`text`), or from `summary` / `highlightText` when present. It is not the full article.

## Connect your client

Replace `YOUR_WEBZ_TOKEN` with your token.

### Cursor

Add this to `~/.cursor/mcp.json` (`%USERPROFILE%\.cursor\mcp.json` on Windows) and restart Cursor:

```json
{
  "mcpServers": {
    "webz-news": {
      "url": "https://news-mcp.webz.io/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_WEBZ_TOKEN"
      }
    }
  }
}
```

Token needs **news** (`api_news`) access. OAuth: `https://news-mcp.webz.io/`.

### Claude Desktop

Merge the same `webz-news` entry into your Claude Desktop config file - do not replace the whole file - then restart Claude Desktop:

| OS | Config file |
| --- | --- |
| macOS | `~/Library/Application Support/Claude/claude_desktop_config.json` |
| Linux | `~/.config/Claude/claude_desktop_config.json` |
| Windows | `%APPDATA%\Claude\claude_desktop_config.json` |

### Claude Code

Run in your project root:

```bash
claude mcp add --transport http webz-news https://news-mcp.webz.io/mcp --header "Authorization: Bearer YOUR_WEBZ_TOKEN"
```

### n8n

Add an **MCP Client Tool** node and connect it to an **AI Agent** node's **Tool** input:

| Field | Value |
| --- | --- |
| Endpoint | `https://news-mcp.webz.io/mcp` |
| Server Transport | `HTTP Streamable` |
| Authentication | `Bearer Auth` |
| Tools to Include | `All` |

Create a **Bearer Auth** credential and paste your Webz.io API token as the bearer token. The agent receives a `search_webz_news` tool.

### Claude.ai and ChatGPT (web)

Add `https://news-mcp.webz.io/mcp` as a custom connector (Claude.ai: Settings > Connectors; ChatGPT: Settings > Apps & Connectors with Developer mode on). Both use OAuth: leave Client ID and Secret empty, then paste your Webz token on the authorize page. Setup instructions for every client are at [news-mcp.webz.io](https://news-mcp.webz.io/).

> [!NOTE]
> Opening the `/mcp` endpoint in a browser returns `401 Unauthorized` by design - browsers do not send your token. Use an MCP client.

## End-to-end example

### 1. What you ask

> Search recent English UK news about Ronaldo and the Champions League.

### 2. What the assistant calls

Tool: `search_webz_news`

| Argument | Value |
|----------|--------|
| `days` | `1` |
| `q` | `Ronaldo (AFC OR Asian OR "Champions League") language:english country:GB` |
| `size` | `10` |
| `sort` | `published` |

The assistant may retry once with a broader `q` if the first call returns zero posts (that is success, not an error).

### 3. What the MCP tool returns

Plain text the model reads (truncated here after two results):

```text
Query: Ronaldo (AFC OR Asian OR "Champions League") language:english country:GB
Total results: 22
More results available: 12
Requests left: 783

--- Result 1 ---
Title: Cristiano Ronaldo Is Just 19 Goals Away From '1,000' Milestone While Portugal Chief Teases November Return
URL: https://www.ibtimes.co.uk/ronaldo-981-goals-portugal-return-speculation-1825224
Published: 2026-10-13T09:14:00.000+03:00
Site: ibtimes.co.uk
Site type: news
Language: english
Sentiment: positive
Excerpt: Meanwhile, Portuguese Football Federation (FPF) president Pedro Proença expressed optimism about Ronaldo's return despite an unresolved disciplinary dispute involving Portugal manager Jorge Jesus. The Portuguese forward converted after Sadio Mané delivered a cross that Ayman Yahya controlled and redirected into his path. The strike marked Ronaldo's 981st senior career goal, leaving him just 19 away from the unprecedented milestone he has repeatedly expressed ambitions of reaching...

--- Result 2 ---
Title: Manchester United thought they had found a star on their last visit to Atletico Madrid
URL: https://uk.sports.yahoo.com/news/manchester-united-thought-had-found-050000042.html
Published: 2026-10-13T08:00:00.000+03:00
Site: yahoo.com
Site type: news
Language: english
Sentiment: neutral
Excerpt: United were fortunate to nick a draw in Madrid that night, but it was a coming-of-age moment for Elanga, who demonstrated his mettle by bouncing back from a penalty miss earlier that month...

(... more results in the same format ...)
```

### 4. What you see from the assistant

A short summary in your language, with links, for example:

> In the last day of UK English coverage, Ronaldo stories focus on his 981st career goal and a possible Portugal return ([IBTimes](https://www.ibtimes.co.uk/ronaldo-981-goals-portugal-return-speculation-1825224)). Related pieces tie Champions League context to Manchester United and Atletico ([Yahoo Sports UK](https://uk.sports.yahoo.com/news/manchester-united-thought-had-found-050000042.html)). Several articles also cover Asian Cup security concerns in Saudi Arabia rather than Ronaldo directly. Webz reported **22** matching articles; the tool showed the first **10** by publish date.

## Tool parameters (simple view)

| Parameter | You usually say… | What the tool does |
|-----------|------------------|-------------------|
| `q` | topic, outlet, language, country | full search query (required) |
| `days` | "yesterday", "past week" | crawl lookback |
| `size` | "give me 20" | how many posts (default 10) |
| `sort` | "newest first" | e.g. `published` or `crawled` |
| `webz_reporter` | include Webz Reporter posts | default false. A tool argument, not part of `q` |

`breaking:true`, `has_canonical:true`, `ai_allow:true`, and `syndication.syndicated:false` stay inside `q`. `webz_reporter:true` inside `q` does not include Webz Reporter posts.

Wait at least **0.4 seconds** between searches on this server; through this server the Webz API allows 3 requests per second per endpoint on your token.

## Agent skill

A skill is a short instruction file your AI agent reads so it knows when to call this tool, how to fill its arguments and how to read the results, without being told each time. [Install the `webz-news` skill](https://docs.webz.io/docs/webz/skill-webz-news), or read what it tells the agent:

### When to use

- The user wants news articles, outlets, or coverage that can be written as a Boolean query.
- The user names a source, language, country, sentiment, category, person, company, or ticker.

### How to call

- `q`: required Boolean query. A space means AND. `AND`, `OR`, and `NOT` are uppercase. Quote phrases and filter values that contain spaces (`"data breach"`, `person:"elon musk"`). A leading minus means NOT (`tesla -car`).
- `days`: crawl lookback. The API default is 3 days. Use 7 for a week. 31 is the standard history limit. Earlier coverage needs `allow_news_history: true`.
- `size`: posts per page, 1-100. Default 10.
- `sort`: default `crawled`, which pages through the full result set. Use `published` when the user wants newest first. `order` is `asc` or `desc`.
- `webz_reporter`: default false. Pass it as its own argument. A `webz_reporter:` clause inside `q` does not include those posts.
- `include_syndicated`: default false. Set true only when the user wants wire copies.
- Pagination: reuse the `ts`, `ni`, `ns`, or `from_offset` from the previous response with the same `q`. `ts` overrides `days`.

### Filters inside `q`

Values are case-insensitive. Language names are lowercase full names (`language:english`). Country codes are ISO-2 (`country:US`, `country:GB`).

- Source: `site:cnn.com`, `site_section:business`, `domain_rank:<1000`, `site_category:tech`.
- Content: `title:bitcoin`, `text:"supply chain"`, `author:"jane doe"`.
- `sentiment`: `positive`, `negative`, or `neutral`.
- `category`: one of 17 values. Quote multi-word values, for example `category:"Economy, Business and Finance"`. Values: Arts, Culture and Entertainment; Crime, Law and Justice; Disaster and Accident; Economy, Business and Finance; Education; Environment; Health; Human Interest; Labor; Lifestyle and Leisure; Politics; Religion and Belief; Science and Technology; Social Issue; Sport; War, Conflict and Unrest; Weather.
- `topic:"climate change"`, `person:"elon musk"`, `organization:nvidia`, `location:paris`, `ticker:AAPL`, `exchange:NASDAQ`.
- Trust: `trust.bias:left`, `center`, or `right`. `trust.source.type:newsroom`, `gov_news`, or `local_news`.
- Flags that stay inside `q`: `breaking:true`, `has_canonical:true`, `ai_allow:true`, `syndication.syndicated:false`.

Map only what the user asked for. "English UK news about Ronaldo" -> `Ronaldo language:english country:GB`. "Only CNN" -> `site:cnn.com`. "Negative Nvidia coverage" -> `organization:"nvidia" sentiment:negative`. "Apple earnings" -> `organization:apple ticker:AAPL`.

### Using results

- Each result has a title, URL, publish date, site, language, sentiment, and an excerpt of about 600 characters.
- `Total results` is the match count. The page holds only `size` posts.
- Cite the article URLs.
- Zero posts is a successful empty search. Retry once with a broader `q` (drop `site:`, `language:`, `country:`, category, sentiment, or a tight phrase) or a larger `days` before reporting nothing found.
- Wait at least 0.4 seconds between calls. Do not call this tool in parallel.

## More detail

- [News API](https://docs.webz.io/docs/webz/news)
- [Query syntax](https://docs.webz.io/docs/webz/news-blogs-forums-query-syntax)
- [News filters](https://docs.webz.io/docs/webz/news-api-filters)

