> 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 Answers MCP

Ask one question in plain language and get a written answer from Webz.io news. This server exposes one tool: `answer_webz_news`.

## MCP endpoint

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

## How it works

You ask a question in **plain language**. The assistant passes that question as `query` and calls `POST /api/news/answers` with your token.

`detailed` chooses the length:

| `detailed` | Answer |
|------------|--------|
| `false` (default) | Short |
| `true` | Long, with the developments, sources, and where reports disagree |

The tool does not take a boolean `q` string, dates, or filters. The question itself is the whole request.

The response text starts with `Style: short` or `Style: detailed`, then the answer. `[1]` is the first citation.

## 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-answers": {
      "url": "https://news-answers-mcp.webz.io/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_WEBZ_TOKEN"
      }
    }
  }
}
```

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

`query` is required. At most 750 characters and 100 words. Allow up to 30 seconds for the response.

### Claude Desktop

Merge the same `webz-news-answers` 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-answers https://news-answers-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-answers-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 `answer_webz_news` tool.

### Claude.ai and ChatGPT (web)

Add `https://news-answers-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-answers-mcp.webz.io](https://news-answers-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

> Why has Nvidia been under regulatory scrutiny in the past week? Keep it short.

### 2. What the assistant calls

Tool: `answer_webz_news`

| Argument | Value |
|----------|--------|
| `query` | `Why has Nvidia been under regulatory scrutiny in the past week?` |
| `detailed` | `false` |

### 3. What comes back

```text
Style: short

Nvidia has been under regulatory scrutiny because the White House AI Task Force is reviewing AI companies [1].

Citations:
[1] White House AI Task Force Puts Nvidia, Big Tech Under Regulatory Scrutiny
https://markets.businessinsider.com/news/stocks/white-house-ai-task-force-puts-nvidia-big-tech-under-regulatory-scrutiny-1036595619

total_results: 10
```

### 4. Long answer

Same question with `detailed` set to `true`. The style line is `Style: detailed`.

## 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-answers` skill](https://docs.webz.io/docs/webz/skill-webz-news-answers), or read what it tells the agent:

### When to use

- The user asks a question and wants a written answer with sources.
- A short answer is enough unless they ask for detail, developments, or where reports disagree.

For a list of articles, use `search_webz_news` or `news_search_by_webz`. For mention counts, use `aggregate_webz_news`.

### How to call

- `query`: the question in the user's words. Required. At most 750 characters and 100 words. Leave it as a question. Do not rewrite it into a Boolean `q` string, and do not add dates or filters. The question is the whole request.
- `detailed`: `false` (default) is the short answer. `true` is the long answer, with developments, sources, and where reports disagree.
- Allow up to 30 seconds for the response.
- Wait at least 1 second between calls. Do not call this tool in parallel.

"Why has Nvidia been under regulatory scrutiny in the past week? Keep it short." -> `query`: that question, `detailed`: `false`.

### Using results

- The response starts with `Style: short` or `Style: detailed`, then the answer. `[1]` is the first citation. Keep the citation numbers and URLs in your reply.
- `total_results` is how many news matches backed the answer.
- If the answer says there is not enough evidence, say that. Do not invent sources or fill gaps from general knowledge.
- A failed call is not charged. Empty question, or a question over 750 characters or 100 words, is a 400. Shorten the question and call once more.

## Errors

A failed call is not charged. Common cases:

- 400: empty question, or more than 750 characters or 100 words
- 401: missing or invalid token
- 402: not enough credits
- 429: more than about one call per second on this endpoint

