> 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>`.

# Forums MCP

Search **forum and discussion** posts. One tool: `search_webz_discussions`.

## MCP endpoint

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

## How it works

Ask about threads, replies, or boards in plain language. The assistant calls `GET /api/forums` with a `q` string.

**Excerpt** is a short clip of the post or reply text (up to about 600 characters).

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

Token needs **forums** (`api_discussions`) access. Setup: `https://forums-mcp.webz.io/`.

### Claude Desktop

Merge the same `webz-forums` 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-forums https://forums-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://forums-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_discussions` tool.

### Claude.ai and ChatGPT (web)

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

> Show recent English Reddit threads about electric vehicles with a lot of replies.

### 2. What the assistant calls

Tool: `search_webz_discussions`

| Argument | Value |
|----------|--------|
| `days` | `3` |
| `q` | `site:reddit.com language:english "electric vehicle" replies_count:>20` |
| `size` | `10` |
| `sort` | `published` |

### 3. What the MCP tool returns

```text
Query: site:reddit.com language:english "electric vehicle" replies_count:>20
Total results: 8
More results available: 0
Requests left: 802

--- Result 1 ---
Title: EV tax credit confusion megathread
URL: https://www.reddit.com/r/electricvehicles/comments/example1/
Published: 2026-10-12T18:40:00.000+03:00
Site: reddit.com
Site type: discussions
Language: english
Excerpt: OP asks whether state rebates stack with federal credits after the latest rule draft. Top replies compare lease vs buy scenarios and paste links to DMV PDFs. Several users say their dealer still quotes last year's numbers...

--- Result 2 ---
Title: Road trip charging stops - is 150kW enough?
URL: https://www.reddit.com/r/electricvehicles/comments/example2/
Published: 2026-10-11T07:15:00.000+03:00
Site: reddit.com
Site type: discussions
Language: english
Excerpt: Thread debates winter range loss on a 400-mile route. Commenters share ABRP screenshots and argue about stopping every 120 miles vs pushing to 80% SOC...
```

### 4. What you see from the assistant

> I pulled **8** active English Reddit threads from the last 3 days about electric vehicles with more than 20 replies. Hot topics: confusion over stacked EV tax credits and lease vs buy advice in one megathread, and winter road-trip charging strategy in another. I can open any URL above or relax `replies_count` if you want quieter threads too.

## Tool parameters (simple view)

| Parameter | You usually say… | What the tool does |
|-----------|------------------|-------------------|
| `q` | forum site, topic, reply count | discussions query |
| `days` | how far back | crawl lookback |
| `size` | number of threads | page size |
| `webz_reporter` | include Webz Reporter posts | default false. A tool argument, not part of `q` |

Use `is_first:true` in `q` for opening posts only, or `is_first:false` for replies. Wait **0.4 seconds** between tool calls. Webz allows 3 requests per second per endpoint on your token through this server.

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

### When to use

- The user asks about forums, Reddit, boards, threads, or replies.
- The question is what people are discussing, rather than what news sites or blogs published.

### How to call

- `q`: required Boolean query. A space means AND. `AND`, `OR`, and `NOT` are uppercase. Quote phrases (`"electric vehicle"`). A leading minus means NOT.
- `days`: crawl lookback. The API default is 3 days. Use 7 for a week. 31 is the standard history limit.
- `size`: posts per page, 1-100. Default 10.
- `sort`: default `crawled`. Use `published` for newest first, or `replies_count` when the user wants the busiest threads. `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.
- 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`).

- Source: `site:reddit.com`, `site_section:` for a board, `domain_rank:<1000`.
- Content: `title:`, `text:`, `author:"jane doe"`.
- Thread: `is_first:true` for opening posts only, `is_first:false` for replies only.
- Volume: `replies_count:>20`, `participants_count:>5`.
- `rating:>4` on review-style posts (0-5).

Forums have no `category`, `sentiment`, `trust`, `person`, `organization`, `location`, or `ticker` filters. Those clauses return zero posts.

Map only what the user asked for. "English Reddit threads about electric vehicles with many replies" -> `site:reddit.com language:english "electric vehicle" replies_count:>20`.

### Using results

- Each result has a title, URL, publish date, site, language, and an excerpt of about 600 characters. A result may be an opening post or a reply.
- `Total results` is the match count. The page holds only `size` posts.
- Cite the thread URLs.
- Zero posts is a successful empty search. Retry once with a broader `q` (drop `site:`, `language:`, `replies_count`, 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

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

