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

# Blogs MCP

Search **blog posts**. This server exposes one tool: `search_webz_blogs`.

## MCP endpoint

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

## How it works

You write in normal language. The assistant calls `GET /api/blogs` with a `q` string it builds from your request.

**Excerpt** in each result is a clipped part of the post body (up to about 600 characters), not the full post.

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

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

### Claude Desktop

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

### Claude.ai and ChatGPT (web)

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

> Find English blog posts from the past week about supply chain delays on Medium.

### 2. What the assistant calls

Tool: `search_webz_blogs`

| Argument | Value |
|----------|--------|
| `days` | `7` |
| `q` | `"supply chain" delays site:medium.com language:english` |
| `size` | `10` |
| `sort` | `published` |

If `site:medium.com` returns zero posts, the assistant should broaden the query (drop `site:` or widen the topic) and call the tool once more.

### 3. What the MCP tool returns

Example when posts exist:

```text
Query: "supply chain" delays site:medium.com language:english
Total results: 14
More results available: 4
Requests left: 790

--- Result 1 ---
Title: Why port backlogs still ripple through retail blogs
URL: https://medium.com/example/why-port-backlogs-still-ripple-2026
Published: 2026-10-11T14:22:00.000+03:00
Site: medium.com
Site type: blogs
Language: english
Excerpt: Retailers that diversified suppliers after 2022 are still seeing two-week slips on inbound containers. Blog authors argue that "just in time" is returning slowly, but finance teams want proof before they cut safety stock again...

--- Result 2 ---
Title: Supply chain delays are not just a shipping story
URL: https://medium.com/example/supply-chain-delays-are-not-just-shipping
Published: 2026-10-09T09:05:00.000+03:00
Site: medium.com
Site type: blogs
Language: english
Excerpt: Component lead times for industrial controllers lengthened again in Q3. The post walks through vendor allocation letters and why assembly lines pause even when freight looks healthy...
```

Example when nothing matches (successful API call, zero hits):

```text
Query: "supply chain" delays site:medium.com language:english
Total results: 0
More results available: 0
Requests left: 791

No posts matched this search. The API call succeeded; there is simply no content for this query right now.
If this was the first try, call this tool once more with a broader q (drop site:, language:, country:, category, sentiment, or tight phrases; widen the topic or increase days).
```

### 4. What you see from the assistant

> I searched English Medium blogs from the last 7 days for supply chain delays. Webz found **14** posts; here are the main themes from the top results: port and container backlogs affecting retail inventory decisions, and longer component lead times beyond shipping alone. [Link to first post], [link to second post]. If you want non-Medium blogs too, I can rerun without `site:medium.com`.

## Tool parameters (simple view)

| Parameter | You usually say… | What the tool does |
|-----------|------------------|-------------------|
| `q` | site, author, topic | blogs search query |
| `days` | time window | lookback in days |
| `size` | how many results | page size |
| `webz_reporter` | include Webz Reporter posts | default false. A tool argument, not part of `q` |

Space calls by at least **0.4 seconds** on this server to avoid rate limits. 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-blogs` skill](https://docs.webz.io/docs/webz/skill-webz-blogs), or read what it tells the agent:

### When to use

- The user asks about blogs, bloggers, Medium, or a company blog.
- The question is about posts on blogs, rather than news articles or forum threads.

### 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 (`"supply chain"`, `author:"jane doe"`). 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` 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.
- 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:medium.com`, `site_section:`, `domain_rank:<1000`.
- Content: `title:bitcoin`, `text:"supply chain"`, `author:"jane doe"`.
- Entities: `person:"elon musk"`, `organization:nvidia`, `location:paris`, `ticker:AAPL`, `exchange:NASDAQ`. Entity extraction covers English, German, Spanish, and Italian.

`category:`, `sentiment:`, and `trust.*` are news-only and return zero blog posts. Leave them out.

Map only what the user asked for. "English Medium posts about supply chain delays" -> `"supply chain" delays site:medium.com language:english`.

### Using results

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

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

